summaryrefslogtreecommitdiff
path: root/modules/gui/etc/main_toolbar.xml
blob: 2de468af8f06c8d35086658b8c59d3d8f28c09d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0"?>
<toolbar>
    <!-- scinotes -->
    <button icon="accessories-text-editor" tooltiptext="Launch SciNotes">
        <callback instruction="editor()" type="0"/>
    </button>
    <!-- Open File -->
    <button icon="document-open" tooltiptext="Open a file">
        <callback instruction="           %fileToOpen = uigetfile(&quot;*.sc*&quot;, pwd(), gettext(&quot;Select a file to open with SciNotes&quot;),%t);           if %fileToOpen ~= &quot;&quot; then             editor(%fileToOpen);           end           clear(&quot;%fileToOpen&quot;);" type="0"/>
    </button>
    <separator/>
    <!-- Copy -->
    <button icon="edit-cut" tooltiptext="Cut">
        <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.cutConsoleSelection" type="3"/>
    </button>
    <button icon="edit-copy" tooltiptext="Copy">
        <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.copyConsoleSelection" type="3"/>
    </button>
    <!-- Paste -->
    <button icon="edit-paste" tooltiptext="Paste">
        <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.pasteClipboardIntoConsole" type="3"/>
    </button>
    <separator/>
    <!-- Clear -->
    <button icon="edit-clear" tooltiptext="Clear Console">
        <callback instruction="clc();" type="0"/>
    </button>
    <separator/>
    <!-- Print -->
    <button icon="printer" tooltiptext="Print...">
        <callback instruction="org.scilab.modules.gui.bridge.CallScilabBridge.printConsoleContents" type="3"/>
    </button>
    <separator/>
    <!-- Atoms -->
    <button icon="package-x-generic" tooltiptext="Module manager - ATOMS">
        <callback instruction="if with_module(&quot;atoms&quot;) then atomsGui(); else disp(gettext(&quot;Please install atoms module.&quot;)); end" type="0"/>
    </button>
    <separator/>
    <!-- Xcos -->
    <button icon="utilities-system-monitor" tooltiptext="Xcos">
        <callback instruction="if with_module(&quot;xcos&quot;) then xcos(); else disp(gettext(&quot;Please install xcos module.&quot;)); end" type="0"/>
    </button>
    <separator/>
    <!-- Preferences -->
    <button icon="preferences-system" tooltiptext="Scilab Preferences">
        <callback instruction='org.scilab.modules.preferences.XConfigManager.openPreferences' type="3"/>
    </button>
    <separator/>
    <!-- Démos -->
    <button icon="applications-system" tooltiptext="Scilab Demonstrations">
        <callback instruction="demo_gui();" type="0"/>
    </button>
    <!-- Help -->
    <button icon="help-browser" tooltiptext="Help Browser">
        <callback instruction="help();" type="0"/>
    </button>
</toolbar>