Import LinuxCNC source tree
This commit is contained in:
7
configs/apps/gladevcp/mdi-command-example/owordsub.demo
Executable file
7
configs/apps/gladevcp/mdi-command-example/owordsub.demo
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
thisfile=$(readlink -f "$0")
|
||||
thisdir=$(dirname "$thisfile")
|
||||
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
|
||||
|
||||
gladevcp_demo ./owordsub.ui
|
||||
93
configs/apps/gladevcp/mdi-command-example/owordsub.ui
Normal file
93
configs/apps/gladevcp/mdi-command-example/owordsub.ui
Normal file
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.40.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<requires lib="gladevcp" version="0.0"/>
|
||||
<object class="GtkAdjustment" id="adjustment1">
|
||||
<property name="upper">100</property>
|
||||
<property name="step-increment">1</property>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="adjustment2">
|
||||
<property name="upper">100</property>
|
||||
<property name="step-increment">1</property>
|
||||
</object>
|
||||
<object class="EMC_Action_MDI" id="hal_action_mdi1">
|
||||
<property name="command">O<oword> call [${spin-f}] [${check}] [${toggle}] [${scale}]</property>
|
||||
</object>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkVBox" id="vbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="HAL_SpinButton" id="spin">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="invisible-char">●</property>
|
||||
<property name="adjustment">adjustment2</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="HAL_CheckButton" id="check">
|
||||
<property name="label" translatable="yes">checkbutton</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">False</property>
|
||||
<property name="draw-indicator">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="HAL_ToggleButton" id="toggle">
|
||||
<property name="label" translatable="yes">togglebutton</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="HAL_HScale" id="scale">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="adjustment">adjustment1</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="HAL_Button" id="hal_button1">
|
||||
<property name="label" translatable="yes">run O-word
|
||||
sub</property>
|
||||
<property name="related-action">hal_action_mdi1</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
7
configs/apps/gladevcp/mdi-command-example/speed.demo
Executable file
7
configs/apps/gladevcp/mdi-command-example/speed.demo
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
thisfile=$(readlink -f "$0")
|
||||
thisdir=$(dirname "$thisfile")
|
||||
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
|
||||
|
||||
gladevcp_demo ./speed.ui
|
||||
56
configs/apps/gladevcp/mdi-command-example/speed.ui
Normal file
56
configs/apps/gladevcp/mdi-command-example/speed.ui
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.40.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<requires lib="gladevcp" version="0.0"/>
|
||||
<object class="GtkAdjustment" id="adjustment1">
|
||||
<property name="upper">100</property>
|
||||
<property name="value">42</property>
|
||||
<property name="step-increment">0.10</property>
|
||||
</object>
|
||||
<object class="EMC_Action_MDI" id="hal_action_mdi1">
|
||||
<property name="command">(MSG, "The speed is: ${speed-f}")</property>
|
||||
</object>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkVBox" id="vbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="HAL_SpinButton" id="speed">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="invisible-char">●</property>
|
||||
<property name="adjustment">adjustment1</property>
|
||||
<property name="digits">1</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="HAL_Button" id="hal_button1">
|
||||
<property name="label" translatable="yes"> Pass speed as
|
||||
parameter in MDI
|
||||
command</property>
|
||||
<property name="related-action">hal_action_mdi1</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
7
configs/apps/gladevcp/mdi-command-example/whoareyou.demo
Executable file
7
configs/apps/gladevcp/mdi-command-example/whoareyou.demo
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
thisfile=$(readlink -f "$0")
|
||||
thisdir=$(dirname "$thisfile")
|
||||
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
|
||||
|
||||
gladevcp_demo ./whoareyou.ui
|
||||
21
configs/apps/gladevcp/mdi-command-example/whoareyou.ui
Normal file
21
configs/apps/gladevcp/mdi-command-example/whoareyou.ui
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.40.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<requires lib="gladevcp" version="0.0"/>
|
||||
<object class="EMC_Action_MDI" id="hal_action_mdi1">
|
||||
<property name="command">(MSG, "Hi, I'm an EMC_Action_MDI")</property>
|
||||
</object>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can-focus">False</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="label" translatable="yes">Who are you?</property>
|
||||
<property name="related-action">hal_action_mdi1</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user