manual-example.ui
1 <?xml version="1.0"?> 2 <interface> 3 <!-- interface-requires gladevcp 0.0 --> 4 <requires lib="gtk+" version="2.16"/> 5 <!-- interface-naming-policy project-wide --> 6 <object class="GtkWindow" id="window1"> 7 <child> 8 <object class="GtkVBox" id="vbox1"> 9 <property name="visible">True</property> 10 <property name="spacing">2</property> 11 <child> 12 <object class="GtkFrame" id="frame1"> 13 <property name="visible">True</property> 14 <property name="label_xalign">0</property> 15 <property name="shadow_type">none</property> 16 <child> 17 <object class="GtkAlignment" id="alignment1"> 18 <property name="visible">True</property> 19 <property name="left_padding">12</property> 20 <child> 21 <object class="HAL_HBar" id="spindle-rpm-hbar"> 22 <property name="visible">True</property> 23 <property name="z0_color">#0000ffff0000</property> 24 <property name="z0_border">0.69999998807907104</property> 25 <property name="z1_color">#ffffffff0000</property> 26 <property name="bg_color">#bebebebebebe</property> 27 <property name="z2_color">#ffff00000000</property> 28 <property name="z1_border">0.89999997615814209</property> 29 <property name="max">2500</property> 30 </object> 31 </child> 32 </object> 33 </child> 34 <child type="label"> 35 <object class="GtkLabel" id="label1text"> 36 <property name="visible">True</property> 37 <property name="label" translatable="yes"><b>Spindle</b></property> 38 <property name="use_markup">True</property> 39 </object> 40 </child> 41 </object> 42 <packing> 43 <property name="position">0</property> 44 </packing> 45 </child> 46 <child> 47 <object class="GtkFrame" id="frame2"> 48 <property name="visible">True</property> 49 <property name="label_xalign">0</property> 50 <property name="shadow_type">none</property> 51 <child> 52 <object class="GtkAlignment" id="alignment2"> 53 <property name="visible">True</property> 54 <property name="left_padding">12</property> 55 <child> 56 <object class="HAL_Table" id="status"> 57 <property name="visible">True</property> 58 <property name="n_rows">6</property> 59 <property name="n_columns">2</property> 60 <child> 61 <object class="HAL_LED" id="led1"> 62 <property name="visible">True</property> 63 <property name="pick_color_on">#ffffb7b90b5c</property> 64 <property name="pick_color_off">#000000000000</property> 65 </object> 66 </child> 67 <child> 68 <object class="HAL_LED" id="led2"> 69 <property name="visible">True</property> 70 <property name="pick_color_on">#1d56ab6dfd26</property> 71 <property name="pick_color_off">#000000000000</property> 72 </object> 73 <packing> 74 <property name="top_attach">1</property> 75 <property name="bottom_attach">2</property> 76 </packing> 77 </child> 78 <child> 79 <object class="HAL_LED" id="led3"> 80 <property name="visible">True</property> 81 <property name="pick_color_on">#ffff327ff2b6</property> 82 <property name="pick_color_off">#000000000000</property> 83 </object> 84 <packing> 85 <property name="top_attach">2</property> 86 <property name="bottom_attach">3</property> 87 </packing> 88 </child> 89 <child> 90 <object class="HAL_Label" id="prepared-tool"> 91 <property name="visible">True</property> 92 <property name="label" translatable="yes">label</property> 93 <property name="text_template">Prepared tool: %s</property> 94 </object> 95 <packing> 96 <property name="left_attach">1</property> 97 <property name="right_attach">2</property> 98 </packing> 99 </child> 100 <child> 101 <object class="HAL_Label" id="current-tool"> 102 <property name="visible">True</property> 103 <property name="label" translatable="yes">label</property> 104 <property name="text_template">Current tool: %s</property> 105 </object> 106 <packing> 107 <property name="left_attach">1</property> 108 <property name="right_attach">2</property> 109 <property name="top_attach">1</property> 110 <property name="bottom_attach">2</property> 111 </packing> 112 </child> 113 <child> 114 <object class="HAL_LED" id="led4"> 115 <property name="visible">True</property> 116 <property name="led_shape">2</property> 117 </object> 118 <packing> 119 <property name="top_attach">3</property> 120 <property name="bottom_attach">4</property> 121 </packing> 122 </child> 123 <child> 124 <object class="HAL_LED" id="led5"> 125 <property name="visible">True</property> 126 <property name="on_color">yellow</property> 127 <property name="led_shape">2</property> 128 </object> 129 <packing> 130 <property name="top_attach">4</property> 131 <property name="bottom_attach">5</property> 132 </packing> 133 </child> 134 <child> 135 <object class="HAL_LED" id="led6"> 136 <property name="visible">True</property> 137 <property name="on_color">green</property> 138 <property name="led_shape">2</property> 139 </object> 140 <packing> 141 <property name="top_attach">5</property> 142 <property name="bottom_attach">6</property> 143 </packing> 144 </child> 145 <child> 146 <object class="HAL_Label" id="combo-value"> 147 <property name="visible">True</property> 148 <property name="label" translatable="yes">label</property> 149 <property name="text_template">System: %s</property> 150 </object> 151 <packing> 152 <property name="left_attach">1</property> 153 <property name="right_attach">2</property> 154 <property name="top_attach">2</property> 155 <property name="bottom_attach">3</property> 156 </packing> 157 </child> 158 <child> 159 <object class="HAL_Label" id="scale-value"> 160 <property name="visible">True</property> 161 <property name="label" translatable="yes">label</property> 162 <property name="text_template">Scale value: %.4f</property> 163 <property name="label_pin_type">1</property> 164 </object> 165 <packing> 166 <property name="left_attach">1</property> 167 <property name="right_attach">2</property> 168 <property name="top_attach">3</property> 169 <property name="bottom_attach">4</property> 170 </packing> 171 </child> 172 <child> 173 <object class="HAL_Label" id="spin-value"> 174 <property name="visible">True</property> 175 <property name="label" translatable="yes">label</property> 176 <property name="text_template">Spinbutton: %.2f</property> 177 <property name="label_pin_type">1</property> 178 </object> 179 <packing> 180 <property name="left_attach">1</property> 181 <property name="right_attach">2</property> 182 <property name="top_attach">4</property> 183 <property name="bottom_attach">5</property> 184 </packing> 185 </child> 186 <child> 187 <object class="GtkLabel" id="hits"> 188 <property name="visible">True</property> 189 <property name="label" translatable="yes">Hits: 0</property> 190 </object> 191 <packing> 192 <property name="left_attach">1</property> 193 <property name="right_attach">2</property> 194 <property name="top_attach">5</property> 195 <property name="bottom_attach">6</property> 196 </packing> 197 </child> 198 </object> 199 </child> 200 </object> 201 </child> 202 <child type="label"> 203 <object class="GtkLabel" id="label2text"> 204 <property name="visible">True</property> 205 <property name="label" translatable="yes"><b>Status</b></property> 206 <property name="use_markup">True</property> 207 </object> 208 </child> 209 </object> 210 <packing> 211 <property name="position">1</property> 212 </packing> 213 </child> 214 <child> 215 <object class="GtkFrame" id="frame3"> 216 <property name="visible">True</property> 217 <property name="label_xalign">0</property> 218 <property name="shadow_type">none</property> 219 <child> 220 <object class="GtkAlignment" id="alignment3"> 221 <property name="visible">True</property> 222 <property name="left_padding">12</property> 223 <child> 224 <object class="HAL_Table" id="settings"> 225 <property name="visible">True</property> 226 <property name="n_rows">3</property> 227 <property name="n_columns">3</property> 228 <child> 229 <object class="HAL_Button" id="button"> 230 <property name="label" translatable="yes">LED 1</property> 231 <property name="visible">True</property> 232 <property name="can_focus">True</property> 233 <property name="receives_default">True</property> 234 <signal name="pressed" handler="on_button_press"/> 235 </object> 236 <packing> 237 <property name="top_attach">1</property> 238 <property name="bottom_attach">2</property> 239 </packing> 240 </child> 241 <child> 242 <object class="HAL_HScale" id="scale"> 243 <property name="visible">True</property> 244 <property name="can_focus">True</property> 245 <property name="adjustment">adjustment1</property> 246 </object> 247 <packing> 248 <property name="left_attach">1</property> 249 <property name="right_attach">2</property> 250 <property name="top_attach">1</property> 251 <property name="bottom_attach">2</property> 252 </packing> 253 </child> 254 <child> 255 <object class="HAL_SpinButton" id="spin"> 256 <property name="visible">True</property> 257 <property name="can_focus">True</property> 258 <property name="invisible_char">●</property> 259 <property name="adjustment">adjustment2</property> 260 <property name="digits">3</property> 261 </object> 262 <packing> 263 <property name="left_attach">1</property> 264 <property name="right_attach">2</property> 265 <property name="top_attach">2</property> 266 <property name="bottom_attach">3</property> 267 </packing> 268 </child> 269 <child> 270 <object class="HAL_ToggleButton" id="toggle"> 271 <property name="label" translatable="yes">LED2 272 toggle</property> 273 <property name="visible">True</property> 274 <property name="can_focus">True</property> 275 <property name="receives_default">True</property> 276 </object> 277 <packing> 278 <property name="top_attach">2</property> 279 <property name="bottom_attach">3</property> 280 </packing> 281 </child> 282 <child> 283 <object class="HAL_RadioButton" id="radio1"> 284 <property name="label" translatable="yes">radiobutton</property> 285 <property name="visible">True</property> 286 <property name="can_focus">True</property> 287 <property name="receives_default">False</property> 288 <property name="active">True</property> 289 <property name="draw_indicator">True</property> 290 </object> 291 <packing> 292 <property name="left_attach">2</property> 293 <property name="right_attach">3</property> 294 </packing> 295 </child> 296 <child> 297 <object class="HAL_RadioButton" id="radio2"> 298 <property name="label" translatable="yes">radiobutton</property> 299 <property name="visible">True</property> 300 <property name="can_focus">True</property> 301 <property name="receives_default">False</property> 302 <property name="active">True</property> 303 <property name="draw_indicator">True</property> 304 <property name="group">radio1</property> 305 </object> 306 <packing> 307 <property name="left_attach">2</property> 308 <property name="right_attach">3</property> 309 <property name="top_attach">1</property> 310 <property name="bottom_attach">2</property> 311 </packing> 312 </child> 313 <child> 314 <object class="HAL_RadioButton" id="radio3"> 315 <property name="label" translatable="yes">radiobutton</property> 316 <property name="visible">True</property> 317 <property name="can_focus">True</property> 318 <property name="receives_default">False</property> 319 <property name="active">True</property> 320 <property name="draw_indicator">True</property> 321 <property name="group">radio1</property> 322 </object> 323 <packing> 324 <property name="left_attach">2</property> 325 <property name="right_attach">3</property> 326 <property name="top_attach">2</property> 327 <property name="bottom_attach">3</property> 328 </packing> 329 </child> 330 <child> 331 <object class="HAL_ComboBox" id="combo"> 332 <property name="visible">True</property> 333 <property name="model">offset-list</property> 334 <property name="active">0</property> 335 <property name="column">1</property> 336 <child> 337 <object class="GtkCellRendererText" id="cellrenderertext1"/> 338 <attributes> 339 <attribute name="text">0</attribute> 340 </attributes> 341 </child> 342 </object> 343 <packing> 344 <property name="left_attach">1</property> 345 <property name="right_attach">2</property> 346 </packing> 347 </child> 348 <child> 349 <object class="HAL_CheckButton" id="check"> 350 <property name="label" translatable="yes">checkbutton</property> 351 <property name="visible">True</property> 352 <property name="can_focus">True</property> 353 <property name="receives_default">False</property> 354 <property name="draw_indicator">True</property> 355 </object> 356 </child> 357 </object> 358 </child> 359 </object> 360 </child> 361 <child type="label"> 362 <object class="GtkLabel" id="label3text"> 363 <property name="visible">True</property> 364 <property name="label" translatable="yes"><b>Settings</b></property> 365 <property name="use_markup">True</property> 366 </object> 367 </child> 368 </object> 369 <packing> 370 <property name="position">2</property> 371 </packing> 372 </child> 373 <child> 374 <object class="GtkFrame" id="frame4"> 375 <property name="visible">True</property> 376 <property name="label_xalign">0</property> 377 <property name="shadow_type">none</property> 378 <child> 379 <object class="GtkAlignment" id="alignment4"> 380 <property name="visible">True</property> 381 <property name="left_padding">12</property> 382 <child> 383 <object class="HAL_HBox" id="commands"> 384 <property name="visible">True</property> 385 <child> 386 <object class="GtkButton" id="button1"> 387 <property name="label" translatable="yes"> Goto 388 machine 389 zero</property> 390 <property name="visible">True</property> 391 <property name="can_focus">True</property> 392 <property name="receives_default">True</property> 393 <property name="related_action">hal_action_mdi1</property> 394 </object> 395 <packing> 396 <property name="position">0</property> 397 </packing> 398 </child> 399 <child> 400 <object class="GtkButton" id="button2"> 401 <property name="label" translatable="yes"> Goto 402 current system 403 zero</property> 404 <property name="visible">True</property> 405 <property name="can_focus">True</property> 406 <property name="receives_default">True</property> 407 <property name="related_action">hal_action_mdi2</property> 408 </object> 409 <packing> 410 <property name="position">1</property> 411 </packing> 412 </child> 413 <child> 414 <object class="GtkToggleButton" id="togglebutton1"> 415 <property name="label" translatable="yes">Excute Oword 416 subroutine</property> 417 <property name="visible">True</property> 418 <property name="can_focus">True</property> 419 <property name="receives_default">True</property> 420 <property name="related_action">hal_toggleaction_mdi1</property> 421 </object> 422 <packing> 423 <property name="position">2</property> 424 </packing> 425 </child> 426 </object> 427 </child> 428 </object> 429 </child> 430 <child type="label"> 431 <object class="GtkLabel" id="label4text"> 432 <property name="visible">True</property> 433 <property name="label" translatable="yes"><b>Commands</b></property> 434 <property name="use_markup">True</property> 435 </object> 436 </child> 437 </object> 438 <packing> 439 <property name="position">3</property> 440 </packing> 441 </child> 442 </object> 443 </child> 444 </object> 445 <object class="EMC_Action_MDI" id="hal_action_mdi1"> 446 <property name="command">G53 G0 X0 Y0 Z0</property> 447 </object> 448 <object class="EMC_Action_MDI" id="hal_action_mdi2"> 449 <property name="command">g0 X0 Y0 Z0</property> 450 </object> 451 <object class="EMC_ToggleAction_MDI" id="hal_toggleaction_mdi1"> 452 <property name="command"> O<oword> call [${spin-f}] [${check}] [${toggle}] [${scale}] [${spin-f}] [${combo-s}]</property> 453 </object> 454 <object class="GtkAdjustment" id="adjustment1"> 455 <property name="upper">100</property> 456 <property name="step_increment">1</property> 457 </object> 458 <object class="GtkAdjustment" id="adjustment2"> 459 <property name="upper">10</property> 460 <property name="step_increment">.1</property> 461 </object> 462 <object class="GtkListStore" id="offset-list"> 463 <columns> 464 <!-- column-name System --> 465 <column type="gchararray"/> 466 <!-- column-name Number --> 467 <column type="gint"/> 468 </columns> 469 <data> 470 <row> 471 <col id="0" translatable="yes">G54</col> 472 <col id="1">0</col> 473 </row> 474 <row> 475 <col id="0" translatable="yes">G55</col> 476 <col id="1">1</col> 477 </row> 478 <row> 479 <col id="0" translatable="yes">G56</col> 480 <col id="1">2</col> 481 </row> 482 <row> 483 <col id="0" translatable="yes">G57</col> 484 <col id="1">3</col> 485 </row> 486 <row> 487 <col id="0" translatable="yes">G58</col> 488 <col id="1">4</col> 489 </row> 490 <row> 491 <col id="0" translatable="yes">G59</col> 492 <col id="1">5</col> 493 </row> 494 <row> 495 <col id="0" translatable="yes">G59.1</col> 496 <col id="1">6</col> 497 </row> 498 <row> 499 <col id="0" translatable="yes">G59.2</col> 500 <col id="1">7</col> 501 </row> 502 <row> 503 <col id="0" translatable="yes">G59.3</col> 504 <col id="1">8</col> 505 </row> 506 </data> 507 </object> 508 </interface>