add a ';' between end dans next command to help parser
[scilab.git] / scilab / modules / gui / etc / main_menubar.xml
1 <?xml version="1.0"?>
2 <menubar>
3     <!-- All "main" menus are disabled when created and then enabled in scilab.start file after all macros are loaded -->
4     <!-- The accelerator can be "control shift A" or "control A" or "meta A" or "OSSCKEY A" where oskey means "OS ShortCut key"
5         and is replaced by the good key (control for Unix/Windows OS and meta for Mac) -->
6     <!-- File menu -->
7     <menu label="&amp;File" enabled="true">
8         <submenu label="&amp;Execute..." accelerator="OSSCKEY E">
9             <callback instruction="               %fileToExec = uigetfile(&quot;*.sc*&quot;, &quot;&quot;, gettext(&quot;Select a file to execute&quot;));               if ~(%fileToExec == &quot;&quot;) then                 exec(%fileToExec);                 disp(msprintf(gettext(&quot;Execution done.\n&quot;)));               end;               clear(&quot;%fileToExec&quot;);" type="0"/>
10         </submenu>
11         <separator/>
12         <submenu label="&amp;Open a file..." accelerator="OSSCKEY O" icon="document-open-sci">
13             <callback instruction="               %fileToOpen = uigetfile(&quot;*.sc*&quot;, &quot;&quot;, gettext(&quot;Select a file to open with SciNotes&quot;));               if ~(%fileToOpen == &quot;&quot;) then                 editor(%fileToOpen);               end;               clear(&quot;%fileToOpen&quot;);" type="0"/>
14         </submenu>
15         <submenu label="&amp;Load environment..." accelerator="OSSCKEY L" icon="document-open">
16             <callback instruction="               %fileToLoad = uigetfile([&quot;*.sav&quot;;&quot;*.sod&quot;], &quot;&quot;, gettext(&quot;Select a file to load&quot;));               if ~(%fileToLoad == &quot;&quot;) then                 load(%fileToLoad);                 updatebrowsevar();                 disp(msprintf(gettext(&quot;Environment loaded.\n&quot;)));               end;               clear(&quot;%fileToLoad&quot;);" type="0"/>
17         </submenu>
18         <submenu label="&amp;Save environment..." accelerator="OSSCKEY S" icon="document-save">
19             <callback instruction="               %fileToSave = uiputfile([&quot;*.sav&quot;;&quot;*.sod&quot;], &quot;&quot;, gettext(&quot;Select a file to write&quot;));               if ~(%fileToSave == &quot;&quot;) then                 if (fileparts(%fileToSave, &quot;extension&quot;) == &quot;&quot;) then                   %fileToSave = %fileToSave + &quot;.sav&quot;;                 end;                 save(%fileToSave);                 disp(msprintf(gettext(&quot;Environment saved.\n&quot;)));               end;               clear(&quot;%fileToSave&quot;);" type="0"/>
20         </submenu>
21         <separator/>
22         <submenu label="&amp;Change current directory..." icon="scilab-folder-open">
23             <callback instruction="               %newDir = uigetdir(pwd(), gettext(&quot;Select a directory&quot;));               if ~(%newDir == &quot;&quot;) then                 cd(%newDir);               end;               clear(&quot;%newDir&quot;);" type="0"/>
24         </submenu>
25         <submenu label="&amp;Display current directory">
26             <callback instruction="if iswaitingforinput() then printf(&quot;\n%s\n\n%s\n&quot;,prompt(),pwd()); else printf(&quot;\n\n%s\n\n&quot;,pwd());end" type="0"/>
27         </submenu>
28         <separator/>
29         <submenu label="P&amp;age setup...">
30             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.pageSetup" type="3"/>
31         </submenu>
32         <submenu label="&amp;Print..." accelerator="OSSCKEY P" icon="document-print">
33             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.printConsoleContents" type="3"/>
34         </submenu>
35         <separator/>
36         <submenu label="&amp;Quit" accelerator="OSSCKEY Q" macosx="false">
37             <callback instruction="exit();" type="0"/>
38         </submenu>
39     </menu>
40     <!-- Edit menu -->
41     <menu label="&amp;Edit" enabled="true">
42         <submenu label="C&amp;ut" accelerator="OSSCKEY X" icon="edit-cut">
43             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.cutConsoleSelection" type="3"/>
44         </submenu>
45         <submenu label="&amp;Copy" accelerator="OSSCKEY C" icon="edit-copy">
46             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.copyConsoleSelection" type="3"/>
47         </submenu>
48         <submenu label="&amp;Paste" accelerator="OSSCKEY V" icon="edit-paste">
49             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.pasteClipboardIntoConsole" type="3"/>
50         </submenu>
51         <separator/>
52         <submenu label="&amp;Empty clipboard">
53             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.emptyClipboard" type="3"/>
54         </submenu>
55         <separator/>
56         <submenu label="&amp;Select all" accelerator="OSSCKEY A" icon="edit-select-all">
57             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.selectAllConsoleContents" type="3"/>
58         </submenu>
59         <separator/>
60         <submenu label="Show/Hide &amp;Toolbar">
61             <callback instruction="                 if toolbar(-1)==&quot;on&quot; then                   toolbar(-1, &quot;off&quot;);                 else                   toolbar(-1, &quot;on&quot;);                 end" type="0"/>
62         </submenu>
63         <separator/>
64         <submenu label="Clear &amp;History">
65             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.clearHistory" type="3"/>
66         </submenu>
67         <submenu label="Clear C&amp;onsole" icon="edit-clear">
68             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.clear" type="3"/>
69         </submenu>
70         <separator/>
71         <submenu label="P&amp;references" icon="preferences-system" macosx="false">
72             <callback instruction='org.scilab.modules.preferences.XConfigManager.openPreferences' type="3"/>
73         </submenu>
74     </menu>
75     <!-- Control menu -->
76     <menu label="&amp;Control" enabled="true">
77         <submenu label="&amp;Resume" icon="media-playback-start">
78             <callback instruction="resume;" type="-2"/>
79         </submenu>
80         <submenu label="&amp;Abort" icon="process-stop">
81             <callback instruction="abort;" type="-2"/>
82         </submenu>
83         <submenu label="&amp;Interrupt">
84             <callback instruction="pause;" type="-2"/>
85         </submenu>
86     </menu>
87     <!-- Applications menu -->
88     <menu label="&amp;Applications" enabled="true">
89         <submenu label="&amp;SciNotes" icon="accessories-text-editor">
90             <callback instruction="editor();" type="0"/>
91         </submenu>
92         <separator/>
93         <submenu label="&amp;Xcos" icon="utilities-system-monitor">
94             <callback instruction="if with_module(&quot;xcos&quot;) then xcos(); else disp(gettext(&quot;Please install xcos module.&quot;)); end" type="0"/>
95         </submenu>
96         <separator/>
97         <submenu label="&amp;Matlab to Scilab translator">
98             <callback instruction="if with_module(&quot;m2sci&quot;) then mfile2sci(); else disp(gettext(&quot;Please install m2sci module.&quot;)); end" type="0"/>
99         </submenu>
100         <separator/>
101         <submenu label="M&amp;odule manager - ATOMS" icon="package-x-generic">
102             <callback instruction="if with_module(&quot;atoms&quot;) then atomsGui(); else disp(gettext(&quot;Please install atoms module.&quot;)); end" type="0"/>
103         </submenu>
104         <separator/>
105         <submenu label="&amp;Variable Browser">
106             <callback instruction="browsevar()" type="0"/>
107         </submenu>
108         <separator/>
109         <submenu label="&amp;Command History">
110             <callback instruction="org.scilab.modules.history_browser.CommandHistory.setVisible" type="3"/>
111         </submenu>
112         <separator/>
113         <submenu label="&amp;File Browser">
114             <callback instruction="filebrowser()" type="0"/>
115         </submenu>
116     </menu>
117     <!-- Help menu -->
118     <menu label="&amp;?" enabled="true">
119         <submenu label="Scilab &amp;Help" accelerator="F1" icon="help-browser">
120             <callback instruction="help();" type="0"/>
121         </submenu>
122         <separator/>
123         <submenu label="Scilab &amp;Demonstrations" icon="applications-system">
124             <callback instruction="demo_gui();" type="0"/>
125         </submenu>
126         <separator/>
127         <submenu label="&amp;Links">
128             <submenu label="Scilab &amp;Web Site">
129                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openScilabWebSite" type="3"/>
130             </submenu>
131             <separator/>
132             <submenu label="Scilab &amp;Online Help">
133                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openOnlineHelp" type="3"/>
134             </submenu>
135             <submenu label="Scilab &amp;Wiki">
136                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openWiki" type="3"/>
137             </submenu>
138             <separator/>
139             <submenu label="Scilab &amp;ATOMS Web Site">
140                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openAtomsScilab" type="3"/>
141             </submenu>
142             <submenu label="&amp;File Exchange">
143                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openFileExchange" type="3"/>
144             </submenu>
145             <submenu label="&amp;Mailing Lists">
146                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openMailingList" type="3"/>
147             </submenu>
148             <submenu label="Mailing Lists &amp;Archives">
149                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openMailingListArchives" type="3"/>
150             </submenu>
151             <separator/>
152             <submenu label="&amp;Forge">
153                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openForge" type="3"/>
154             </submenu>
155             <submenu label="&amp;Bugs And Requests">
156                 <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openBugzilla" type="3"/>
157             </submenu>
158         </submenu>
159         <separator/>
160         <submenu label="&amp;Scilab Enterprises">
161             <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.openSE" type="3"/>
162         </submenu>
163         <separator/>
164         <submenu label="&amp;About Scilab..." accelerator="shift F1">
165             <callback instruction="about()" type="0"/>
166         </submenu>
167     </menu>
168 </menubar>
169