Native gui usable for data editing. Lots of fixes and improvenemts

This commit is contained in:
thooge committed 2026-11-11 18:58:02 +01:00
1 parent a6abdaa614
commit 09387280fc
52 files changed
+1579 -294

No files matched your search

+123 -15
View File
@@ -23,12 +23,14 @@
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adj_dd_sort">
<property name="upper">1000</property>
<property name="lower">-128</property>
<property name="upper">127</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adj_dd_val">
<property name="upper">1000</property>
<property name="lower">-128</property>
<property name="upper">127</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
@@ -59,8 +61,8 @@
</object>
<object class="GtkAdjustment" id="adj_sys_max_height">
<property name="upper">4096</property>
<property name="step-increment">10</property>
<property name="page-increment">100</property>
<property name="step-increment">8</property>
<property name="page-increment">64</property>
</object>
<object class="GtkAdjustment" id="adj_sys_max_width">
<property name="upper">4096</property>
@@ -1605,6 +1607,10 @@
<object class="GtkTreeView" id="tvw_ddlists">
<property name="visible">True</property>
<property name="can-focus">True</property>
<signal name="row-activated" handler="on_tvw_ddlists_row_activated" swapped="no"/>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
</object>
</child>
</object>
@@ -1618,15 +1624,17 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkTreeView" id="tvw_list">
<object class="GtkTreeView" id="tvw_ddlist">
<property name="visible">True</property>
<property name="can-focus">True</property>
<signal name="row-activated" handler="on_tvw_ddlist_row_activated" swapped="no"/>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
@@ -1634,7 +1642,7 @@
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
@@ -1644,11 +1652,15 @@
<object class="GtkGrid" id="grd_dd_editor">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">4</property>
<property name="margin-end">4</property>
<property name="row-spacing">4</property>
<property name="column-spacing">6</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">ddval</property>
<property name="label" translatable="yes">Value</property>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1659,7 +1671,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">ddtext</property>
<property name="label" translatable="yes">Text</property>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1670,7 +1682,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">ddshort</property>
<property name="label" translatable="yes">Short</property>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1681,6 +1693,8 @@
<object class="GtkEntry" id="ent_dd_text">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="max-length">50</property>
<property name="width-chars">30</property>
</object>
<packing>
<property name="left-attach">1</property>
@@ -1691,6 +1705,8 @@
<object class="GtkEntry" id="ent_dd_short">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="max-length">4</property>
<property name="width-chars">4</property>
</object>
<packing>
<property name="left-attach">1</property>
@@ -1701,7 +1717,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">sort</property>
<property name="label" translatable="yes">Sort</property>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1712,7 +1728,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">color</property>
<property name="label" translatable="yes">Color</property>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1727,6 +1743,8 @@
<object class="GtkEntry" id="ent_dd_color">
<property name="visible">True</property>
<property name="can-focus">True</property>
<signal name="activate" handler="on_ent_dd_color_activate" swapped="no"/>
<signal name="focus-out-event" handler="on_ent_dd_color_focus_out_event" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
@@ -1739,6 +1757,7 @@
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="color-set" handler="on_but_dd_color_set" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
@@ -1756,7 +1775,7 @@
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">flags</property>
<property name="label" translatable="yes">Flags</property>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1805,6 +1824,7 @@
<object class="GtkSpinButton" id="spi_dd_val">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="editable">False</property>
<property name="adjustment">adj_dd_val</property>
</object>
<packing>
@@ -1834,13 +1854,29 @@
<object class="GtkButtonBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">4</property>
<property name="layout-style">end</property>
<child>
<object class="GtkButton">
<object class="GtkButton" id="but_list_new">
<property name="label" translatable="yes">New</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="clicked" handler="on_but_list_new_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="but_list_delete">
<property name="label" translatable="yes">Delete</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="clicked" handler="on_but_list_delete_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
@@ -1850,11 +1886,12 @@
</packing>
</child>
<child>
<object class="GtkButton">
<object class="GtkButton" id="but_list_save">
<property name="label" translatable="yes">Save</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="clicked" handler="on_but_list_save_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
@@ -1912,15 +1949,20 @@
</packing>
</child>
<child>
<!-- n-columns=2 n-rows=3 -->
<!-- n-columns=2 n-rows=4 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="row-spacing">4</property>
<property name="column-spacing">4</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Currency symbol</property>
<style>
<class name="field-name"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1932,6 +1974,9 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Max image width</property>
<style>
<class name="field-name"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1943,6 +1988,9 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Max image height</property>
<style>
<class name="field-name"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
@@ -1982,6 +2030,61 @@
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Debug mode</property>
<style>
<class name="field-name"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkRadioButton" id="opt_debug_on">
<property name="label" translatable="yes">on</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="active">True</property>
<property name="draw-indicator">True</property>
<property name="group">opt_debug_off</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="opt_debug_off">
<property name="label" translatable="yes">off</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="active">True</property>
<property name="draw-indicator">True</property>
</object>
<packing>
<property name="expand">False</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">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
@@ -2009,11 +2112,16 @@
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="row-spacing">4</property>
<property name="column-spacing">4</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Date format</property>
<style>
<class name="field-name"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
+66 -3
View File
@@ -844,7 +844,7 @@
</packing>
</child>
<child>
<!-- n-columns=2 n-rows=12 -->
<!-- n-columns=2 n-rows=13 -->
<object class="GtkGrid" id="grd_editor">
<property name="visible">True</property>
<property name="can-focus">False</property>
@@ -1020,7 +1020,7 @@
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">11</property>
<property name="top-attach">12</property>
</packing>
</child>
<child>
@@ -1083,7 +1083,7 @@
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">11</property>
<property name="top-attach">12</property>
</packing>
</child>
<child>
@@ -1142,6 +1142,69 @@
<property name="top-attach">7</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Flags</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">11</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkCheckButton" id="chk_ordered">
<property name="label" translatable="yes">ordered</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">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="chk_removed">
<property name="label" translatable="yes">removed</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">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="chk_deleted">
<property name="label" translatable="yes">deleted</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">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">11</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
+10 -2
View File
@@ -531,6 +531,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<style>
<class name="field-value"/>
@@ -742,10 +743,13 @@
</packing>
</child>
<child>
<object class="GtkLabel">
<object class="GtkLabel" id="lbl_edit_storage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Storage</property>
<attributes>
<attribute name="weight" value="semibold"/>
</attributes>
</object>
<packing>
<property name="left-attach">0</property>
@@ -753,10 +757,13 @@
</packing>
</child>
<child>
<object class="GtkLabel">
<object class="GtkLabel" id="lbl_edit_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Box</property>
<attributes>
<attribute name="weight" value="semibold"/>
</attributes>
</object>
<packing>
<property name="left-attach">0</property>
@@ -859,6 +866,7 @@
<object class="GtkComboBox" id="cmb_conttype">
<property name="visible">True</property>
<property name="can-focus">False</property>
<signal name="changed" handler="on_cmb_conttype_changed" swapped="no"/>
</object>
<packing>
<property name="left-attach">1</property>
+9
View File
@@ -273,6 +273,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -302,6 +303,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -416,6 +418,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -431,6 +434,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -446,6 +450,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -461,6 +466,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -476,6 +482,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -491,6 +498,7 @@
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<style>
<class name="field-value"/>
</style>
@@ -507,6 +515,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<style>
<class name="field-value"/>
+6
View File
@@ -609,6 +609,9 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Name</property>
<attributes>
<attribute name="weight" value="semibold"/>
</attributes>
</object>
<packing>
<property name="left-attach">0</property>
@@ -620,6 +623,9 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Responsible</property>
<attributes>
<attribute name="weight" value="semibold"/>
</attributes>
</object>
<packing>
<property name="left-attach">0</property>
+6 -6
View File
@@ -3,22 +3,22 @@
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkAdjustment" id="adj_calories">
<property name="upper">100</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
<property name="upper">99999</property>
<property name="step-increment">10</property>
<property name="page-increment">100</property>
</object>
<object class="GtkAdjustment" id="adj_number">
<property name="upper">100</property>
<property name="upper">1000</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adj_price">
<property name="upper">100</property>
<property name="upper">1000</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adj_target">
<property name="upper">100</property>
<property name="upper">1000</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
+46 -7
View File
@@ -26,6 +26,7 @@
<object class="GtkNotebook" id="ntb_status">
<property name="visible">True</property>
<property name="can-focus">True</property>
<signal name="switch-page" handler="on_ntb_status_switch_page" swapped="no"/>
<child>
<object class="GtkBox" id="box_info">
<property name="visible">True</property>
@@ -48,9 +49,12 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">This is an early release of YMS native GUI.
Please use the web frontend wich is already
You can use also the web frontend wich is already
in an usable state.
Feel free to report issues and test results as well as
improvement suggestions.
For further assistance please consult the related
thread in "Segeln Forum"</property>
</object>
@@ -87,18 +91,53 @@ thread in "Segeln Forum"</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<object class="GtkBox" id="box_tables">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="shadow-type">in</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkTreeView" id="tvw_tables">
<object class="GtkScrolledWindow" id="scw_tables">
<property name="visible">True</property>
<property name="can-focus">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
<property name="shadow-type">in</property>
<child>
<object class="GtkTreeView" id="tvw_tables">
<property name="visible">True</property>
<property name="can-focus">True</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButtonBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="but_tables_reload">
<property name="label" translatable="yes">Reload</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="clicked" handler="on_but_tables_reload_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
+1 -1
View File
@@ -910,7 +910,7 @@
</packing>
</child>
<child>
<object class="GtkComboBox" id="cmb_unit">
<object class="GtkComboBox" id="cmb_capaunit">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>