Commit 519143aa542d32b8fac962a6da610dd154d9fd08

Authored by Perry Werneck
1 parent 617d4db3

Working on popup dialogs.

Showing 1 changed file with 161 additions and 8 deletions   Show diff stats
ui/window.xml
... ... @@ -72,15 +72,92 @@
72 72  
73 73 <menu id="popup-over-selected-area">
74 74  
75   - <item>
76   - <attribute name="label" translatable="yes">Save selected</attribute>
77   - <attribute name="action">win.save_selected</attribute>
78   - </item>
  75 + <submenu>
79 76  
80   - <item>
81   - <attribute name="label" translatable="yes">Print selected</attribute>
82   - <attribute name="action">win.print_selected</attribute>
83   - </item>
  77 + <attribute name='label' translatable='yes'>_Edit</attribute>
  78 +
  79 + <section>
  80 +
  81 + <item>
  82 + <attribute name="label" translatable="yes">Copy</attribute>
  83 + <attribute name="action">win.copy</attribute>
  84 + <attribute name="target">auto</attribute>
  85 + </item>
  86 +
  87 + <item>
  88 + <attribute name="label" translatable="yes">Copy as text</attribute>
  89 + <attribute name="action">win.copy</attribute>
  90 + <attribute name="target">text</attribute>
  91 + </item>
  92 +
  93 + <item>
  94 + <attribute name="label" translatable="yes">Copy as table</attribute>
  95 + <attribute name="action">win.copy</attribute>
  96 + <attribute name="target">table</attribute>
  97 + </item>
  98 +
  99 + <item>
  100 + <attribute name="label" translatable="yes">Append to copy</attribute>
  101 + <attribute name="action">win.copy</attribute>
  102 + <attribute name="target">append</attribute>
  103 + </item>
  104 +
  105 + <item>
  106 + <attribute name="label" translatable="yes">Cut</attribute>
  107 + <attribute name="action">win.cut</attribute>
  108 + <attribute name="target">auto</attribute>
  109 + </item>
  110 +
  111 + </section>
  112 + <section>
  113 +
  114 + <item>
  115 + <attribute name="label" translatable="yes">Save selected</attribute>
  116 + <attribute name="action">win.save_selected</attribute>
  117 + </item>
  118 +
  119 + <item>
  120 + <attribute name="label" translatable="yes">Print selected</attribute>
  121 + <attribute name="action">win.print_selected</attribute>
  122 + </item>
  123 +
  124 + <item>
  125 + <attribute name="label" translatable="yes">Unselect</attribute>
  126 + <attribute name="action">win.unselect</attribute>
  127 + </item>
  128 +
  129 + </section>
  130 +
  131 + <section>
  132 +
  133 + <item>
  134 + <attribute name="label" translatable="yes">Clear</attribute>
  135 + <attribute name="action">win.clear</attribute>
  136 + </item>
  137 +
  138 + <item>
  139 + <attribute name="label" translatable="yes">Erase input</attribute>
  140 + <attribute name="action">win.erase_input</attribute>
  141 + </item>
  142 +
  143 + <item>
  144 + <attribute name="label" translatable="yes">Delete Field</attribute>
  145 + <attribute name="action">win.delete_field</attribute>
  146 + </item>
  147 +
  148 + <item>
  149 + <attribute name="label" translatable="yes">Erase to end of field</attribute>
  150 + <attribute name="action">win.erase_eof</attribute>
  151 + </item>
  152 +
  153 + <item>
  154 + <attribute name="label" translatable="yes">Erase to end of line</attribute>
  155 + <attribute name="action">win.erase_eol</attribute>
  156 + </item>
  157 +
  158 + </section>
  159 +
  160 + </submenu>
84 161  
85 162 <submenu>
86 163  
... ... @@ -112,6 +189,82 @@
112 189  
113 190 <menu id="popup-over-unselected-area">
114 191  
  192 + <submenu>
  193 +
  194 + <attribute name='label' translatable='yes'>_Edit</attribute>
  195 +
  196 + <section>
  197 +
  198 + <item>
  199 + <attribute name="label" translatable="yes">Paste from clipboard</attribute>
  200 + <attribute name="action">win.paste</attribute>
  201 + <attribute name="target">clipboard://</attribute>
  202 + </item>
  203 +
  204 + <item>
  205 + <attribute name="label" translatable="yes">Paste next</attribute>
  206 + <attribute name="action">win.paste</attribute>
  207 + <attribute name="target">next://</attribute>
  208 + </item>
  209 +
  210 + <item>
  211 + <attribute name="label" translatable="yes">Paste from text file</attribute>
  212 + <attribute name="action">win.paste</attribute>
  213 + <attribute name="target">file://</attribute>
  214 + </item>
  215 +
  216 + </section>
  217 +
  218 + <section>
  219 +
  220 + <item>
  221 + <attribute name="label" translatable="yes">Select all</attribute>
  222 + <attribute name="action">win.select-all</attribute>
  223 + </item>
  224 +
  225 + <item>
  226 + <attribute name="label" translatable="yes">Select Field</attribute>
  227 + <attribute name="action">win.select-field</attribute>
  228 + </item>
  229 +
  230 + <item>
  231 + <attribute name="label" translatable="yes">Reselect</attribute>
  232 + <attribute name="action">win.reselect</attribute>
  233 + </item>
  234 +
  235 + </section>
  236 +
  237 + <section>
  238 +
  239 + <item>
  240 + <attribute name="label" translatable="yes">Clear</attribute>
  241 + <attribute name="action">win.clear</attribute>
  242 + </item>
  243 +
  244 + <item>
  245 + <attribute name="label" translatable="yes">Erase input</attribute>
  246 + <attribute name="action">win.erase_input</attribute>
  247 + </item>
  248 +
  249 + <item>
  250 + <attribute name="label" translatable="yes">Delete Field</attribute>
  251 + <attribute name="action">win.delete_field</attribute>
  252 + </item>
  253 +
  254 + <item>
  255 + <attribute name="label" translatable="yes">Erase to end of field</attribute>
  256 + <attribute name="action">win.erase_eof</attribute>
  257 + </item>
  258 +
  259 + <item>
  260 + <attribute name="label" translatable="yes">Erase to end of line</attribute>
  261 + <attribute name="action">win.erase_eol</attribute>
  262 + </item>
  263 +
  264 + </section>
  265 +
  266 + </submenu>
  267 +
115 268 <item>
116 269 <attribute name="label" translatable="yes">Send/Receive files</attribute>
117 270 <attribute name="action">win.file.transfer</attribute>
... ...