Support for NewModel command in MultiView support for "target=" in LoadUrl hookup Day/Week/Month on toolbar and menubar git-svn-id: svn://10.0.0.236/trunk@11563 18797224-902f-48f8-a5cc-f745e15eee43
120 lines
4.0 KiB
XML
120 lines
4.0 KiB
XML
<?xml version="1.0" standalone="no" encoding="UTF-8"?>
|
|
<!DOCTYPE menubar SYSTEM "http://kirkwood.mcom.com/ui.dtd">
|
|
<UI>
|
|
|
|
<!-- This is the User Heading Rule
|
|
|
|
This contains the definition of the MenuBar associated with the Julian
|
|
product and also as an example XML file for the MenuBar
|
|
|
|
Note that we need to be able to separate strings out for easy localization.
|
|
Not sure if this is dealt with in general XML or not. Could just use references
|
|
to external entities.
|
|
|
|
Note that commandkey will be auto-generated to be unique based on first character
|
|
if not specified.
|
|
|
|
Objects
|
|
menubar (type of container, generally a widget subclass)
|
|
popupmenu (type of container, generally a widget subclass)
|
|
menuitem (type of widget)
|
|
|
|
Tags
|
|
|
|
menubar (all container properties apply)
|
|
popupmenu
|
|
|
|
name - specifies the id it is known by
|
|
layout - specifies the type of layout to use for children in the container
|
|
|
|
menuitem (all widget properties apply)
|
|
|
|
name - specifies the id it is known by
|
|
container - An associated container when clicked on
|
|
control - An associated control that
|
|
align - How is this item aligned (left, right,etc...)
|
|
type - The type of widget to use (buttons, separators, text, etc...)
|
|
commandkey - The command key equivalent
|
|
shortcut - shortcut that applies
|
|
image - Image to use
|
|
|
|
(widget properties that typically are used)
|
|
enable - TRUE is is enabled by default
|
|
check - TRUE if checked. Must be a button type for this to apply
|
|
|
|
(problematic areas)
|
|
onaction - What to do on an action event. currently the name of the control is sent.
|
|
We need to map this to something simpler.
|
|
|
|
-->
|
|
|
|
<!-- This is the MenuBar Definition -->
|
|
<menubar name="MenuBar" layout="align">
|
|
<menuitem label="File" container="FilePulldown" commandkey="\af" />
|
|
<menuitem label="Edit" container="EditPulldown" commandkey="\ae"/>
|
|
<menuitem label="View" container="ViewPulldown" commandkey="\av"/>
|
|
<menuitem label="Compose" container="ComposePulldown" commandkey="\ac"/>
|
|
<menuitem label="Debug" container="DebugPulldown" commandkey="\ad"/>
|
|
<menuitem label="Help" align="right"/>
|
|
</menubar>
|
|
|
|
<!-- This is the File Pulldown -->
|
|
<menucontainer label="FakeFile" name="FilePulldown" layout="align">
|
|
<menuitem label="Open..." command="FileOpen" commandkey="\ao" />
|
|
<menuitem type="separator"/>
|
|
<menuitem label="Exit" command="ApplicationExit" commandkey="\ax" />
|
|
</menucontainer>
|
|
|
|
<!-- This is the Edit Pulldown -->
|
|
<menucontainer name="EditPulldown">
|
|
<menuitem label="Cut" enable="False" command="SelectionCut" commandkey="\at" />
|
|
<menuitem label="Copy" enable="False" command="SelectionCopy" commandkey="\ac" />
|
|
<menuitem label="Paste" enable="False" command="SelectionPaste" commandkey="\ap" />
|
|
<menuitem type="separator"/>
|
|
<menuitem label="Find" enable="False" command="ItemFind" commandkey="\af" />
|
|
</menucontainer>
|
|
|
|
<!-- This is the View Pulldown -->
|
|
<menucontainer name="ViewPulldown">
|
|
<menuitem label="Day" enable="True" command="LoadUrl?resource://res/ui/julian_day.cal?target=content" commandkey="\ad" />
|
|
<menuitem label="Week" enable="True" command="LoadUrl?resource://res/ui/julian_week.cal?target=content" commandkey="\aw" />
|
|
<menuitem label="Month" enable="True" command="LoadUrl?resource://res/ui/julian_month_sum.cal?target=content" commandkey="\am" />
|
|
</menucontainer>
|
|
|
|
<!-- This is the Compose Pulldown -->
|
|
<menucontainer name="ComposePulldown">
|
|
<menuitem label="Event" command="ComposeEvent" commandkey="\av" />
|
|
</menucontainer>
|
|
|
|
<!-- This is the Debug Pulldown -->
|
|
<menucontainer name="DebugPulldown">
|
|
<menuitem label="Start Command Server" command="StartCommandServer" commandkey="\as" />
|
|
<menuitem label="Launch Command Client" command="LaunchCommandClient" commandkey="\al" />
|
|
</menucontainer>
|
|
|
|
<!-- This is aPopup Menu -->
|
|
<menucontainer name="PopupMenu" layout="align">
|
|
<menuitem label="Item 1"/>
|
|
<menuitem label="Item 2 type="CheckButton" check="True"/>
|
|
<menuitem type="separator"/>
|
|
<menuitem label="Item 3"/>
|
|
</menucontainer>
|
|
|
|
|
|
|
|
</UI>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|