⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui.naf

📁 Novocode的 SWT 控件框架 丰富了MDI功能
💻 NAF
字号:
<?xml version="1.0" encoding="UTF-8"?>

<Shell title="XPathExample" width="600px" height="500px" image="bundle_obj.gif" xmlns="http://www.novocode.com/namespaces/naf">

	<Menu role="menubar">
		<Menu text="|File">
			<Button text="|Quit" accelerator="Ctrl+Q" m.action="exit" />
		</Menu>
		<Menu text="|View">
			<Button image="expandall.gif" text="|Expand All Tree Nodes" accelerator="Ctrl++" m.action="expand-all" />
			<Button image="collapseall.gif" text="|Collapse All Tree Nodes" accelerator="Ctrl+-" m.action="collapse-all" />
			<Separator />
			<Toggle image="hierarchicalLayout.gif" text="|Auto-Expand Tree Nodes" accelerator="Ctrl+A" m.selected="auto-expand" />
		</Menu>
		<Menu text="|Help">
			<Button text="|About" accelerator="Ctrl+?">
				<MessageDialog icon="information" buttons="ok" title="About XPathExample" role="open"
					message="An XPath explorer which allows you to evaluate XPath expressions on NAF widget trees.\nWritten by Stefan Zeiger &lt;szeiger@novocode.com&gt;" />
			</Button>
		</Menu>
	</Menu>

	<layout type="form" />

	<Separator orientation="horizontal" ld.spec="0,1,0" />

	<CoolBar resizable="false" ld.spec="0,1,:prev">
	
		<ToolBar textAlign="right">
			<Button image="expandall.gif" tooltip="Expand All Tree Nodes (Ctrl++)" m.action="expand-all" />
			<Button image="collapseall.gif" tooltip="Collapse All Tree Nodes (Ctrl+-)" m.action="collapse-all" />
			<Toggle image="hierarchicalLayout.gif" tooltip="Auto-Expand Tree Nodes (Ctrl+A)" m.selected="auto-expand" />
		</ToolBar>

		<Composite>
			<layout type="grid" ld.valign="center" columns="3" />
			<Label text="|XPath Expression" />
			<Text ld.halign="fill-grab" ld.width="0.5em" focus="true" ld.hindent="4px" m.text="expression" m.default-select="evaluate" />
			<ToolBar textAlign="right" ld.hindent="2px">
				<Button image="run_exc.gif" tooltip="Evaluate the XPath expression" m.action="evaluate" />
			</ToolBar>
		</Composite>
		
	</CoolBar>

	<Separator orientation="horizontal" ld.spec="0,1,:prev" />
	
	<Tree border="true" ld.spec="0,1,:prev+2px,1"
		m.content="treeContent" m.content-provider="treeContentProvider" m.label-provider="treeLabelProvider"
		m.expand-all="expand-all" m.collapse-all="collapse-all" />

</Shell>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -