File: main_toolbar.xml

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (83 lines) | stat: -rw-r--r-- 2,788 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0"?>
<toolbar>
    <!-- xpad -->
    <button icon="accessories-text-editor.png" tooltiptext="Launch Scilab text editor">
        <callback 
        instruction='editor()' type="0"/>
    </button>
    <!-- Open File -->
    <button icon="document-open.png" tooltiptext="Open a file">
        <callback 
        instruction='
          %fileToOpen = uigetfile("*.sc*", pwd(), gettext("Select a file to open with Scilab text editor"));
          if ~(%fileToOpen == "") then
            editor(%fileToOpen);
          end
          clear("%fileToOpen");' type="0"/>
    </button> 

    <separator/>

    <!-- Copy -->
    <button icon="edit-cut.png" tooltiptext="Cut">
        <callback instruction='org.scilab.modules.gui.bridge.CallScilabBridge.cutConsoleSelection' type="3"/>
    </button>
    <button icon="edit-copy.png" tooltiptext="Copy">
        <callback instruction='org.scilab.modules.gui.bridge.CallScilabBridge.copyConsoleSelection' type="3"/>
    </button>
    <!-- Paste -->
    <button icon="edit-paste.png" tooltiptext="Paste">
            <callback instruction='org.scilab.modules.gui.bridge.CallScilabBridge.pasteClipboardIntoConsole' type="3"/>
    </button>

    <separator/>

    <!-- Change current directory -->
    <button icon="folder.png" tooltiptext="Change Current Directory">
        <callback 
        instruction='
          %newDir = uigetdir(pwd(), gettext("Select a directory"));
          if ~(%newDir == "") then 
            cd(%newDir);
          end
          clear("%newDir");'
        type="0"/>
    </button> 

    <separator/>

    <!-- Change font -->
    <button icon="format-text-bold.png" tooltiptext="Choose Font...">
        <callback instruction='org.scilab.modules.gui.bridge.CallScilabBridge.changeConsoleFont' type="3"/>
    </button>
    <!-- Print -->
    <button icon="printer.png" tooltiptext="Print...">
        <callback instruction='org.scilab.modules.gui.bridge.CallScilabBridge.printConsoleContents' type="3"/>
    </button>

    <separator/>

    <!-- Atoms -->
    <button icon="package-x-generic.png" tooltiptext="Module manager - ATOMS">
        <callback instruction='atomsGui();' type="0"/>
    </button>

    <separator/>

    <!-- Xcos -->
    <button icon="utilities-system-monitor.png" tooltiptext="Xcos">
        <callback instruction='if with_module("xcos") then xcos(); else disp(gettext("Please install xcos module.")); end' type="0"/>
    </button>

    <separator/>

    <!-- Démos -->
    <button icon="applications-system.png" tooltiptext="Scilab Demonstrations">
        <callback instruction='demo_gui();' type="0"/>
    </button>

    <!-- Help -->
    <button icon="help-browser.png" tooltiptext="Help Browser">
        <callback instruction='help();' type="0"/>
    </button>
</toolbar>