[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FR-devel] GuiSetup changes
From: |
Rich Kilmer |
Subject: |
[FR-devel] GuiSetup changes |
Date: |
Fri, 27 Sep 2002 03:02:48 -0400 |
All,
I changed the way that GuiSetup works. It now reads the properties
file GuiSetup.xml which contains (in slot form) the layout of the
UI (see below). The GuiSetup.rb plugin uses this to render the UI.
So if you want to permantently add a menu or menu item to the
FreeRIDE system, you put it in the xml file. This uses the
property object of the plugin, so if you change these properties
while the system is running, it is persistent.
I also removed the default edit window so FreeRIDE comes up quite
blank...but rest assured that everything still works (just open
a file or add a new one).
-Rich
GuiSetup.xml-
<properties name='GuiSetup' version='1.0'>
<slot name="AppFrame">
<slot name="attributes">
<slot name="text">FreeRIDE</slot>
<slot name="visible">true</slot>
</slot>
<slot name="MenuBar">
<slot name="attributes">
<slot name="visible">true</slot>
</slot>
<slot name="MenuPanes">
<!--File Menu-->
<slot name="1">
<slot name="attributes">
<slot name="text">File</slot>
<slot name="id">File_menu</slot>
<slot name="visible">true</slot>
</slot>
<slot name="commands">
<slot name="1">App/File/New</slot>
<slot name="2">App/File/Open</slot>
<slot name="3">App/File/Close</slot>
<slot name="4">App/File/Save</slot>
<slot name="5">App/File/SaveAs</slot>
<slot name="6">SEPARATOR</slot>
<slot name="7">App/Exit</slot>
</slot>
</slot>
<!--Edit Menu-->
<slot name="2">
<slot name="attributes">
<slot name="text">Edit</slot>
<slot name="id">Edit_menu</slot>
<slot name="visible">true</slot>
</slot>
<slot name="commands">
<slot name="1">App/Edit/Undo</slot>
<slot name="2">App/Edit/Redo</slot>
<slot name="3">App/Edit/Cut</slot>
<slot name="4">App/Edit/Copy</slot>
<slot name="5">App/Edit/Paste</slot>
</slot>
</slot>
<!--Run Menu-->
<slot name="3">
<slot name="attributes">
<slot name="text">Run</slot>
<slot name="id">Run_menu</slot>
<slot name="visible">true</slot>
</slot>
</slot>
<!--Tools Menu-->
<slot name="4">
<slot name="attributes">
<slot name="text">Tools</slot>
<slot name="id">Tools_menu</slot>
<slot name="visible">true</slot>
</slot>
</slot>
<!--Help Menu-->
<slot name="5">
<slot name="attributes">
<slot name="text">Help</slot>
<slot name="id">Help_menu</slot>
<slot name="visible">true</slot>
</slot>
<slot name="commands">
<slot name="1">App/About</slot>
</slot>
</slot>
</slot>
</slot>
</slot>
</properties>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [FR-devel] GuiSetup changes,
Rich Kilmer <=