Commit cb9e7b30c3641bd69543b110b82e7f3e522041c7

Authored by Perry Werneck
1 parent ab47ff7d

Working on classical menu.

Showing 1 changed file with 219 additions and 28 deletions   Show diff stats
ui/application.xml
@@ -47,60 +47,251 @@ @@ -47,60 +47,251 @@
47 </menu> 47 </menu>
48 48
49 <menu id='menubar'> 49 <menu id='menubar'>
  50 +
50 <submenu> 51 <submenu>
51 - <attribute name='label' translatable='yes'>_Session</attribute>  
52 52
53 - <item>  
54 - <attribute name="label" translatable="yes">Open</attribute>  
55 - <attribute name="action">win.open</attribute>  
56 - </item> 53 + <attribute name='label' translatable='yes'>_File</attribute>
57 54
58 - <item>  
59 - <attribute name="label" translatable="yes">Close</attribute>  
60 - <attribute name="action">win.close</attribute>  
61 - </item> 55 + <section>
62 56
63 - <item>  
64 - <attribute name="label" translatable="yes">Open in new window</attribute>  
65 - <attribute name="action">app.open.window</attribute>  
66 - </item> 57 + <item>
  58 + <attribute name="label" translatable="yes">Save screen</attribute>
  59 + <attribute name="action">win.save_screen</attribute>
  60 + </item>
67 61
68 - <item>  
69 - <attribute name="label" translatable="yes">Open in new tab</attribute>  
70 - <attribute name="action">app.open.tab</attribute>  
71 - </item> 62 + <item>
  63 + <attribute name="label" translatable="yes">Save selected</attribute>
  64 + <attribute name="action">win.save_selected</attribute>
  65 + </item>
  66 +
  67 + <item>
  68 + <attribute name="label" translatable="yes">Save copy</attribute>
  69 + <attribute name="action">win.save_copy</attribute>
  70 + </item>
  71 +
  72 + </section>
  73 +
  74 + <section>
  75 +
  76 + <item>
  77 + <attribute name="label" translatable="yes">Print</attribute>
  78 + <attribute name="action">win.print</attribute>
  79 + </item>
  80 +
  81 + <item>
  82 + <attribute name="label" translatable="yes">Print selected</attribute>
  83 + <attribute name="action">win.print_selected</attribute>
  84 + </item>
  85 +
  86 + <item>
  87 + <attribute name="label" translatable="yes">Print copy</attribute>
  88 + <attribute name="action">win.print_copy</attribute>
  89 + </item>
  90 +
  91 + </section>
  92 +
  93 + <section>
  94 +
  95 + <item>
  96 + <attribute name="label" translatable="yes">Send/Receive files</attribute>
  97 + <attribute name="action">win.file_transfer</attribute>
  98 + </item>
  99 +
  100 + <item>
  101 + <attribute name="label" translatable="yes">Quit application</attribute>
  102 + <attribute name="action">app.quit</attribute>
  103 + </item>
  104 +
  105 + </section>
72 106
73 </submenu> 107 </submenu>
74 108
75 <submenu> 109 <submenu>
  110 +
76 <attribute name='label' translatable='yes'>_Edit</attribute> 111 <attribute name='label' translatable='yes'>_Edit</attribute>
  112 +
  113 + <section>
  114 +
  115 + <item>
  116 + <attribute name="label" translatable="yes">Copy</attribute>
  117 + <attribute name="action">win.copy</attribute>
  118 + </item>
  119 +
  120 + <item>
  121 + <attribute name="label" translatable="yes">Copy as table</attribute>
  122 + <attribute name="action">win.copy_as_table</attribute>
  123 + </item>
  124 +
  125 + <item>
  126 + <attribute name="label" translatable="yes">Append to copy</attribute>
  127 + <attribute name="action">win.append_to_copy</attribute>
  128 + </item>
  129 +
  130 + <item>
  131 + <attribute name="label" translatable="yes">Cut</attribute>
  132 + <attribute name="action">win.cut</attribute>
  133 + </item>
  134 +
  135 + <item>
  136 + <attribute name="label" translatable="yes">Paste from clipboard</attribute>
  137 + <attribute name="action">win.paste</attribute>
  138 + </item>
  139 +
  140 + <item>
  141 + <attribute name="label" translatable="yes">Paste next</attribute>
  142 + <attribute name="action">win.paste_next</attribute>
  143 + </item>
  144 +
  145 + <item>
  146 + <attribute name="label" translatable="yes">Paste text file</attribute>
  147 + <attribute name="action">win.pastefile</attribute>
  148 + </item>
  149 +
  150 + </section>
  151 +
77 <section> 152 <section>
  153 +
78 <item> 154 <item>
79 - <attribute name='label' translatable='yes'>_Copy</attribute>  
80 - <attribute name='action'>app.default</attribute> 155 + <attribute name="label" translatable="yes">Select all</attribute>
  156 + <attribute name="action">win.select_all</attribute>
81 </item> 157 </item>
  158 +
  159 + <item>
  160 + <attribute name="label" translatable="yes">Select Field</attribute>
  161 + <attribute name="action">win.select_field</attribute>
  162 + </item>
  163 +
82 <item> 164 <item>
83 - <attribute name='label' translatable='yes'>_Paste</attribute>  
84 - <attribute name='action'>app.default</attribute> 165 + <attribute name="label" translatable="yes">Remove selection</attribute>
  166 + <attribute name="action">win.unselect</attribute>
85 </item> 167 </item>
  168 +
  169 + <item>
  170 + <attribute name="label" translatable="yes">Reselect</attribute>
  171 + <attribute name="action">win.reselect</attribute>
  172 + </item>
  173 +
86 </section> 174 </section>
  175 +
87 <section> 176 <section>
  177 +
  178 + <item>
  179 + <attribute name="label" translatable="yes">Clear</attribute>
  180 + <attribute name="action">win.clear</attribute>
  181 + </item>
  182 +
  183 + <item>
  184 + <attribute name="label" translatable="yes">Erase input</attribute>
  185 + <attribute name="action">win.erase_input</attribute>
  186 + </item>
  187 +
88 <item> 188 <item>
89 - <attribute name='label' translatable='yes'>Plugins</attribute>  
90 - <attribute name='action'>app.default</attribute> 189 + <attribute name="label" translatable="yes">Delete Field</attribute>
  190 + <attribute name="action">win.delete_field</attribute>
91 </item> 191 </item>
  192 +
  193 + <item>
  194 + <attribute name="label" translatable="yes">Erase to end of field</attribute>
  195 + <attribute name="action">win.erase_eof</attribute>
  196 + </item>
  197 +
  198 + <item>
  199 + <attribute name="label" translatable="yes">Erase to end of line</attribute>
  200 + <attribute name="action">win.erase_eol</attribute>
  201 + </item>
  202 +
92 </section> 203 </section>
  204 +
93 </submenu> 205 </submenu>
94 206
95 <submenu> 207 <submenu>
96 - <attribute name='label' translatable='yes'>_View</attribute>  
97 - <section> 208 +
  209 + <attribute name='label' translatable='yes'>_Network</attribute>
  210 +
98 <item> 211 <item>
99 - <attribute name='label' translatable='yes'>_Fullscreen</attribute>  
100 - <attribute name='action'>app.quit</attribute> 212 + <attribute name="label" translatable="yes">Configure host</attribute>
  213 + <attribute name="action">win.setup_host</attribute>
101 </item> 214 </item>
102 - </section> 215 +
  216 + <item>
  217 + <attribute name="label" translatable="yes">_Connect</attribute>
  218 + <attribute name="action">win.connect</attribute>
  219 + </item>
  220 +
  221 + <item>
  222 + <attribute name="label" translatable="yes">_Disconnect</attribute>
  223 + <attribute name="action">win.disconnect</attribute>
  224 + </item>
  225 +
  226 + </submenu>
  227 +
  228 + <submenu>
  229 +
  230 + <attribute name='label' translatable='yes'>Settings</attribute>
  231 +
  232 + <item>
  233 + <attribute name="label" translatable="yes">Colors</attribute>
  234 + <attribute name="action">win.coloers</attribute>
  235 + </item>
  236 +
  237 + <item>
  238 + <attribute name="label" translatable="yes">Select font</attribute>
  239 + <attribute name="action">win.select_font</attribute>
  240 + </item>
  241 +
  242 + <item>
  243 + <attribute name="label" translatable="yes">Screen sizes</attribute>
  244 + <attribute name="action">win.screen_sizes</attribute>
  245 + </item>
  246 +
  247 + </submenu>
  248 +
  249 + <!--
  250 +
  251 + <menu name='SettingsMenu' label='Settings'>
  252 +
  253 + <menu name='OptionsMenu' label='_Options' >
  254 + <menuitem action='toggle' id='AutoConnect' label='Connect on startup' />
  255 + <menuitem action='toggle' id='CursorBlink' label='Blinking Cursor' />
  256 + <menuitem action='toggle' id='Monocase' label='Monocase' />
  257 + <menuitem action='toggle' id='CursorPos' label='Track Cursor' />
  258 + <menuitem action='toggle' id='FullScreen' key='<alt>Home' label='Full Screen' />
  259 + <menuitem action='toggle' id='AltScreen' label='Resize on alternate screen' />
  260 + <menuitem action='toggle' id='MarginedPaste' label='Paste with left margin' />
  261 + <menuitem action='toggle' id='CrossHair' key='<alt>x' label='Cross hair cursor' />
  262 + <menuitem action='toggle' id='BlankFill' label='Blank Fill' />
  263 + <menuitem action='toggle' id='RectSelect' label='Select by rectangles' />
  264 + <menuitem action='toggle' id='AutoReconnect' label='Auto-Reconnect' />
  265 + <menuitem action='toggle' id='Bold' label='Bold' />
  266 + <menuitem action='toggle' id='Underline' label='Show Underline' />
  267 + <menuitem action='toggle' id='KeepSelected' label='Keep selected' />
  268 + <menuitem action='toggle' id='SmartPaste' label='Smart paste' />
  269 + <menuitem action='toggle' id='Beep' label='Alert sound' />
  270 + <menuitem action='toggle' id='KPAlternative' label='Use +/- for field navigation' />
  271 + <menuitem action='toggle' id='keepalive' label='Network keep alive' />
  272 + </menu>
  273 +
  274 + <menuitem name='InputMethod' label='Input method' />
  275 +
  276 + </menu>
  277 +
  278 + <menu name='HelpMenu' label='Help' >
  279 + <menuitem action='about' icon='about' sysmenu='about' />
  280 + </menu>
  281 +
  282 + -->
  283 +
  284 + <submenu>
  285 +
  286 + <attribute name='label' translatable='yes'>Help</attribute>
  287 +
  288 + <item>
  289 + <attribute name="label" translatable="yes">About PW3270</attribute>
  290 + <attribute name="action">app.about</attribute>
  291 + </item>
  292 +
103 </submenu> 293 </submenu>
104 294
  295 +
105 </menu> 296 </menu>
106 </interface> 297 </interface>