Add elements to GtkListBox in Overview area

master
Zwarf 2022-01-22 12:42:41 +01:00
rodzic 0b85c46ad2
commit 07beddc7d9
1 zmienionych plików z 93 dodań i 72 usunięć

Wyświetl plik

@ -43,50 +43,63 @@
<property name="vexpand">true</property>
<property name="valign">fill</property>
<!--Will be changed to adaptable layout in the furure-->
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<object class="GtkListBox">
<property name="hexpand">true</property>
<property name="halign">fill</property>
<property name="valign">start</property>
<property name="vexpand">false</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="show-separators">true</property>
<property name="selection-mode">none</property>
<!--Will be changed to AdwExpanderRow in the future-->
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="hexpand">true</property>
<property name="margin-bottom">10</property>
<property name="halign">center</property>
<object class="GtkListBoxRow">
<child>
<object class="GtkLabel">
<property name="label">North</property>
<property name="halign">start</property>
<property name="margin-end">5</property>
</object>
</child>
<child>
<object class="GtkEntry">
<property name="halign">start</property>
<property name="margin-end">15</property>
<signal name="changed" handler="coordinate_entry_changed"/>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">East</property>
<property name="halign">end</property>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="hexpand">true</property>
<property name="margin-end">5</property>
</object>
</child>
<child>
<object class="GtkEntry">
<property name="halign">end</property>
<property name="hexpand">false</property>
<signal name="changed" handler="coordinate_entry_changed"/>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="halign">center</property>
<child>
<object class="GtkLabel">
<property name="label">North</property>
<property name="halign">start</property>
<property name="margin-end">5</property>
</object>
</child>
<child>
<object class="GtkEntry">
<property name="halign">start</property>
<property name="margin-end">15</property>
<signal name="changed" handler="coordinate_entry_changed"/>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">East</property>
<property name="halign">end</property>
<property name="hexpand">true</property>
<property name="margin-end">5</property>
</object>
</child>
<child>
<object class="GtkEntry">
<property name="halign">end</property>
<property name="hexpand">false</property>
<signal name="changed" handler="coordinate_entry_changed"/>
</object>
</child>
</object>
</child>
@ -94,52 +107,60 @@
</child>
<!--Will be changed to AdwExpanderRow in the future-->
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="hexpand">true</property>
<property name="halign">center</property>
<object class ="GtkListBoxRow">
<child>
<object class="GtkMenuButton" id="calendar_button">
<property name="label">Date</property>
<property name="popover">calendar_popover</property>
<property name="margin-end">15</property>
<property name="vexpand">false</property>
<property name="valign">center</property>
</object>
</child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="hexpand">true</property>
<property name="halign">center</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<child>
<object class="GtkMenuButton" id="calendar_button">
<property name="label">Date</property>
<property name="popover">calendar_popover</property>
<property name="margin-end">15</property>
<property name="vexpand">false</property>
<property name="valign">center</property>
</object>
</child>
<child>
<object class="GtkSpinButton" id="spin_button_hour">
<property name="orientation">vertical</property>
<property name="adjustment">h_adjustment</property>
<property name="numeric">false</property>
<property name="wrap">true</property>
<property name="value">8</property>
<signal name="output" handler="time_changed"/>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="margin_start">5</property>
<property name="margin_end">5</property>
<property name="label"></property>
</object>
</child>
<child>
<object class="GtkSpinButton" id="entry_min">
<property name="orientation">vertical</property>
<property name="adjustment">m_adjustment</property>
<property name="numeric">True</property>
<property name="wrap">True</property>
<signal name="output" handler="time_changed"/>
</object>
</child>
<child>
<object class="GtkSpinButton" id="spin_button_hour">
<property name="orientation">vertical</property>
<property name="adjustment">h_adjustment</property>
<property name="numeric">false</property>
<property name="wrap">true</property>
<property name="value">8</property>
<signal name="output" handler="time_changed"/>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="margin_start">5</property>
<property name="margin_end">5</property>
<property name="label"></property>
</object>
</child>
<child>
<object class="GtkSpinButton" id="entry_min">
<property name="orientation">vertical</property>
<property name="adjustment">m_adjustment</property>
<property name="numeric">True</property>
<property name="wrap">True</property>
<signal name="output" handler="time_changed"/>
</object>
</child>
</object>
</child>