2020-05-07 20:37:24 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
2021-10-19 20:53:12 -03:00
|
|
|
<template class="CcTimeEditor" parent="AdwBin">
|
2020-05-07 20:37:24 +05:30
|
|
|
<child>
|
|
|
|
<object class="GtkGrid">
|
|
|
|
<property name="row-spacing">6</property>
|
|
|
|
<property name="column-spacing">6</property>
|
|
|
|
|
|
|
|
<!-- Increment Hour Button -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="hour_up_button">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="halign">center</property>
|
2021-10-19 20:53:12 -03:00
|
|
|
<property name="icon-name">go-up-symbolic</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2020-05-07 20:37:24 +05:30
|
|
|
<style>
|
|
|
|
<class name="titlebutton"/>
|
|
|
|
<class name="circular"/>
|
|
|
|
<class name="flat"/>
|
|
|
|
</style>
|
2021-10-19 20:53:12 -03:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Increment Hour</property>
|
|
|
|
</accessibility>
|
2020-05-07 20:37:24 +05:30
|
|
|
<child>
|
2021-10-19 20:53:12 -03:00
|
|
|
<object class="GtkGestureClick">
|
|
|
|
<property name="propagation-phase">capture</property>
|
|
|
|
<signal name="pressed" handler="editor_change_time_pressed_cb" swapped="yes"/>
|
|
|
|
<signal name="released" handler="editor_change_time_released_cb" swapped="yes"/>
|
2020-05-07 20:37:24 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Increment Minute Button -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="minute_up_button">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="halign">center</property>
|
2021-10-19 20:53:12 -03:00
|
|
|
<property name="icon-name">go-up-symbolic</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2020-05-07 20:37:24 +05:30
|
|
|
<style>
|
|
|
|
<class name="titlebutton"/>
|
|
|
|
<class name="circular"/>
|
|
|
|
<class name="flat"/>
|
|
|
|
</style>
|
2021-10-19 20:53:12 -03:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Increment Minute</property>
|
|
|
|
</accessibility>
|
2020-05-07 20:37:24 +05:30
|
|
|
<child>
|
2021-10-19 20:53:12 -03:00
|
|
|
<object class="GtkGestureClick">
|
|
|
|
<property name="propagation-phase">capture</property>
|
|
|
|
<signal name="pressed" handler="editor_change_time_pressed_cb" swapped="yes"/>
|
|
|
|
<signal name="released" handler="editor_change_time_released_cb" swapped="yes"/>
|
2020-05-07 20:37:24 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child>
|
|
|
|
<object class="CcTimeEntry" id="time_entry">
|
2021-10-19 20:53:12 -03:00
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
<property name="column-span">2</property>
|
|
|
|
</layout>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Time</property>
|
|
|
|
</accessibility>
|
2020-05-07 20:37:24 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Decrement Hour Button -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="hour_down_button">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="halign">center</property>
|
2021-10-19 20:53:12 -03:00
|
|
|
<property name="icon-name">go-down-symbolic</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2020-05-07 20:37:24 +05:30
|
|
|
<style>
|
|
|
|
<class name="titlebutton"/>
|
|
|
|
<class name="circular"/>
|
|
|
|
<class name="flat"/>
|
|
|
|
</style>
|
2021-10-19 20:53:12 -03:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Decrement Hour</property>
|
|
|
|
</accessibility>
|
2020-05-07 20:37:24 +05:30
|
|
|
<child>
|
2021-10-19 20:53:12 -03:00
|
|
|
<object class="GtkGestureClick">
|
|
|
|
<property name="propagation-phase">capture</property>
|
|
|
|
<signal name="pressed" handler="editor_change_time_pressed_cb" swapped="yes"/>
|
|
|
|
<signal name="released" handler="editor_change_time_released_cb" swapped="yes"/>
|
2020-05-07 20:37:24 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Decrement Minute Button -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="minute_down_button">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="halign">center</property>
|
2021-10-19 20:53:12 -03:00
|
|
|
<property name="icon-name">go-down-symbolic</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2020-05-07 20:37:24 +05:30
|
|
|
<style>
|
|
|
|
<class name="titlebutton"/>
|
|
|
|
<class name="circular"/>
|
|
|
|
<class name="flat"/>
|
|
|
|
</style>
|
2021-10-19 20:53:12 -03:00
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Decrement Minute</property>
|
|
|
|
</accessibility>
|
2020-05-07 20:37:24 +05:30
|
|
|
<child>
|
2021-10-19 20:53:12 -03:00
|
|
|
<object class="GtkGestureClick">
|
|
|
|
<property name="propagation-phase">capture</property>
|
|
|
|
<signal name="pressed" handler="editor_change_time_pressed_cb" swapped="yes"/>
|
|
|
|
<signal name="released" handler="editor_change_time_released_cb" swapped="yes"/>
|
2020-05-07 20:37:24 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- AM/PM Button -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="am_pm_button">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<signal name="clicked" handler="editor_am_pm_button_clicked_cb" swapped="yes"/>
|
2021-10-19 20:53:12 -03:00
|
|
|
<layout>
|
|
|
|
<property name="column">2</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2020-05-07 20:37:24 +05:30
|
|
|
<child>
|
|
|
|
<object class="GtkStack" id="am_pm_stack">
|
|
|
|
<signal name="notify::visible-child" handler="editor_am_pm_stack_changed_cb" swapped="yes"/>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="am_label">
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="1.4"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="pm_label">
|
|
|
|
<attributes>
|
|
|
|
<attribute name="scale" value="1.4"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</template>
|
|
|
|
</interface>
|