about summary refs log tree commit diff
path: root/src/gtk/window.ui
blob: aab2cbceaaf88be7653a4619cfca4de61b172ded (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="FurtheranceWindow" parent="AdwApplicationWindow">
    <property name="title">Furtherance</property>
    <property name="content">
      <object class="AdwToastOverlay" id="toast_overlay">
        <property name="child">
          <object class="GtkBox" id="main_box">
            <property name="orientation">vertical</property>
            <child>
              <object class="AdwHeaderBar" id="header_bar">
                <property name="title-widget">
                  <object class="AdwWindowTitle" id="window_title">
                    <property name="title">Furtherance</property>
                  </object>
                </property>
                <child>
                  <object class="GtkButton" id="add_task">
                    <property name="tooltip_text" translatable="yes">Add Task</property>
                    <property name="icon_name">list-add-symbolic</property>
                  </object>
                </child>
                <child type="end">
                  <object class="GtkMenuButton" id="app_menu_button">
                    <property name="tooltip_text" translatable="yes">Main Menu</property>
                    <property name="icon_name">open-menu-symbolic</property>
                    <property name="menu_model">primary_menu</property>
                  </object>
                </child>
                <style>
                  <class name="titlebar"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkBox" id="win_box">
                <property name="orientation">vertical</property>
                <property name="spacing">10</property>
                <property name="halign">fill</property>
                <property name="valign">center</property>
                <property name="width_request">360</property>
                <property name="hexpand">True</property>
                <property name="vexpand">True</property>
                <child>
                  <object class="GtkLabel" id="watch">
                    <property name="label">00:00:00</property>
                    <property name="margin_start">12</property>
                    <property name="margin_end">12</property>
                    <attributes>
                      <attribute name="weight" value="bold"/>
                      <attribute name="scale" value="5"/>
                    </attributes>
                    <style>
                      <class name="numeric"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkBox">
                    <property name="spacing">5</property>
                    <property name="margin_start">12</property>
                    <property name="margin_end">8</property>
                    <child>
                      <object class="GtkEntry" id="task_input">
                        <property name="placeholder-text" translatable="yes">Task Name #tags</property>
                        <property name="hexpand">True</property>
                        <property name="hexpand-set">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="start_button">
                        <property name="icon-name">media-playback-start-symbolic</property>
                        <style>
                          <class name="circular"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="FurHistoryBox" id="history_box" />
                </child>
              </object>
            </child>
          </object>
        </property>
      </object>
    </property>
  </template>
  <menu id="primary_menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">_Generate Report</attribute>
        <attribute name="action">app.report</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">Back up</attribute>
        <attribute name="action">app.backup-database</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Export as CSV</attribute>
        <attribute name="action">app.export-csv</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Import</attribute>
        <attribute name="action">app.import-database</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Delete history</attribute>
        <attribute name="action">app.delete-history</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Preferences</attribute>
        <attribute name="action">app.preferences</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_About Furtherance</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
  </menu>
</interface>