Skip to content

Commit

Permalink
gmoccapy: add setting for smaller keyboard width
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Dec 29, 2023
1 parent c164bae commit 174c1bc
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 39 deletions.
90 changes: 73 additions & 17 deletions src/emc/usr_intf/gmoccapy/gmoccapy.glade
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<property name="page-increment">10</property>
<signal name="value-changed" handler="on_adj_kbd_height_value_changed" swapped="no"/>
</object>
<object class="GtkAdjustment" id="adj_kbd_width">
<property name="upper">2000</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
<signal name="value-changed" handler="on_adj_kbd_width_value_changed" swapped="no"/>
</object>
<object class="GtkAdjustment" id="adj_max_messages">
<property name="lower">1</property>
<property name="upper">25</property>
Expand Down Expand Up @@ -3060,6 +3066,8 @@
<object class="GtkBox" id="key_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="homogeneous">True</property>
<child>
<placeholder/>
Expand Down Expand Up @@ -3490,42 +3498,90 @@
</packing>
</child>
<child>
<object class="GtkBox">
<!-- n-columns=2 n-rows=2 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">False</property>
<child>
<object class="GtkLabel" id="lbl_kbd_height">
<object class="GtkBox" id="box_kbd_height">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="xpad">5</property>
<property name="ypad">5</property>
<property name="hexpand">False</property>
<child>
<object class="GtkSpinButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="adjustment">adj_kbd_height</property>
<property name="value">250</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box_kbd_width">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">False</property>
<child>
<object class="GtkSpinButton">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="text" translatable="yes">250</property>
<property name="adjustment">adj_kbd_width</property>
<property name="value">500</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="chk_kbd_set_height">
<property name="label" translatable="yes">Height</property>
<property name="xalign">0</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="on_chk_kb_set_height_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton">
<object class="GtkCheckButton" id="chk_kbd_set_width">
<property name="label" translatable="yes">Width</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="adjustment">adj_kbd_height</property>
<property name="value">250</property>
<property name="receives-default">False</property>
<property name="draw-indicator">True</property>
<signal name="toggled" handler="on_chk_kb_set_width_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
</packing>
Expand Down
Loading

0 comments on commit 174c1bc

Please sign in to comment.