Skip to content

Commit

Permalink
neural plugs: move file labels into gridbox
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Mar 9, 2024
1 parent ecea56a commit 4f51a41
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 98 deletions.
96 changes: 49 additions & 47 deletions trunk/src/gx_head/builder/nam_ui.glade
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,10 @@
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="width-request">340</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="margin-bottom">10</property>
<property name="ellipsize">end</property>
<property name="max-width-chars">56</property>
<signal name="notify::label" handler="nam.file" swapped="no"/>
<style>
<class name="rack_label"/>
<class name="gx_rack_box_label"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
<placeholder/>
</child>
<child>
<!-- n-columns=3 n-rows=3 -->
<!-- n-columns=3 n-rows=4 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
Expand All @@ -92,17 +74,31 @@
<property name="column-spacing">30</property>
<property name="column-homogeneous">True</property>
<child>
<object class="GtkLabel" id="input_label">
<object class="GxSwitch" id="fload">
<property name="label" translatable="yes">Load</property>
<property name="name">fload</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Input</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes">Load *.nam file</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="margin-left">10</property>
<property name="margin-right">12</property>
<property name="margin-start">3</property>
<property name="margin-end">3</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="draw-indicator">True</property>
<property name="base-name">fbutton</property>
<signal name="toggled" handler="nam:load_nam_file nam.loadfile" swapped="no"/>
<style>
<class name="rack_label"/>
<class name="gx_effect_on_off"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
<property name="left-attach">1</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
Expand All @@ -111,11 +107,10 @@
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="var-id">nam.input</property>
<property name="label-ref">input_label</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">2</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
Expand All @@ -127,6 +122,20 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="input_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Input</property>
<style>
<class name="rack_label"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">2</property>
</packing>
</child>
Expand All @@ -141,35 +150,28 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">1</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GxSwitch" id="fload">
<property name="label" translatable="yes">Load</property>
<property name="name">fload</property>
<object class="GtkLabel">
<property name="width-request">340</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes">Load *.nam file</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="margin-left">10</property>
<property name="margin-right">12</property>
<property name="margin-start">3</property>
<property name="margin-end">3</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="draw-indicator">True</property>
<property name="base-name">fbutton</property>
<signal name="toggled" handler="nam:load_nam_file nam.loadfile" swapped="no"/>
<property name="ellipsize">end</property>
<property name="max-width-chars">56</property>
<signal name="notify::label" handler="nam.file" swapped="no"/>
<style>
<class name="gx_effect_on_off"/>
<class name="rack_label"/>
<class name="gx_rack_box_label"/>
</style>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">2</property>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
<property name="width">3</property>
</packing>
</child>
<child>
Expand Down
104 changes: 53 additions & 51 deletions trunk/src/gx_head/builder/rtneural_ui.glade
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,10 @@
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="width-request">340</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="margin-bottom">10</property>
<property name="ellipsize">end</property>
<property name="max-width-chars">56</property>
<signal name="notify::label" handler="rtneural.file" swapped="no"/>
<style>
<class name="rack_label"/>
<class name="gx_rack_box_label"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
<placeholder/>
</child>
<child>
<!-- n-columns=3 n-rows=3 -->
<!-- n-columns=3 n-rows=4 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
Expand All @@ -91,31 +73,16 @@
<property name="hexpand">True</property>
<property name="column-spacing">30</property>
<property name="column-homogeneous">True</property>
<child>
<object class="GtkLabel" id="input_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Input</property>
<style>
<class name="rack_label"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GxMidKnob">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="var-id">rtneural.input</property>
<property name="label-ref">input_label</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">2</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
Expand All @@ -127,21 +94,7 @@
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="output_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Output</property>
<style>
<class name="rack_label"/>
</style>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">1</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
Expand Down Expand Up @@ -169,6 +122,55 @@
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="width-request">340</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="margin-bottom">10</property>
<property name="ellipsize">end</property>
<property name="max-width-chars">56</property>
<signal name="notify::label" handler="rtneural.file" swapped="no"/>
<style>
<class name="rack_label"/>
<class name="gx_rack_box_label"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
<property name="width">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="input_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Input</property>
<style>
<class name="rack_label"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="output_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Output</property>
<style>
<class name="rack_label"/>
</style>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">2</property>
</packing>
</child>
Expand Down

0 comments on commit 4f51a41

Please sign in to comment.