rra
4 years ago
3 changed files with 420 additions and 146 deletions
@ -1,143 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- Generated with glade 3.36.0 --> |
|||
<interface> |
|||
<requires lib="gtk+" version="3.22"/> |
|||
<object class="GtkImage" id="image1"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="icon_name">preferences-other</property> |
|||
</object> |
|||
<object class="GtkApplicationWindow" id="Main"> |
|||
<property name="can_focus">False</property> |
|||
<property name="resizable">False</property> |
|||
<property name="icon_name">dialog-ok</property> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="orientation">vertical</property> |
|||
<child> |
|||
<object class="GtkLabel" id="time_display"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="xpad">12</property> |
|||
<property name="label" translatable="yes">0:00:00</property> |
|||
<attributes> |
|||
<attribute name="font-desc" value="Recursive Heavy 14"/> |
|||
<attribute name="weight" value="book"/> |
|||
<attribute name="scale" value="6"/> |
|||
</attributes> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="margin_start">18</property> |
|||
<property name="margin_end">18</property> |
|||
<property name="margin_bottom">8</property> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Start</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<signal name="clicked" handler="startCountdown" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">True</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">0</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Pause</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<property name="tooltip_text" translatable="yes">Pause the timer</property> |
|||
<signal name="clicked" handler="pauseCountdown" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">True</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Restart</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<property name="tooltip_text" translatable="yes">Stop the timer</property> |
|||
<signal name="clicked" handler="restartCountdown" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">True</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">False</property> |
|||
<property name="padding">8</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
</child> |
|||
<child type="titlebar"> |
|||
<object class="GtkHeaderBar"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="spacing">0</property> |
|||
<property name="show_close_button">True</property> |
|||
<child> |
|||
<object class="GtkSwitch" id="modeSwitch"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="tooltip_text" translatable="yes">Switch to work or break mode</property> |
|||
<property name="halign">center</property> |
|||
<property name="active">True</property> |
|||
</object> |
|||
</child> |
|||
<child> |
|||
<object class="GtkStackSwitcher"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
</object> |
|||
<packing> |
|||
<property name="position">3</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<property name="margin_start">6</property> |
|||
<property name="image">image1</property> |
|||
<property name="always_show_image">True</property> |
|||
</object> |
|||
<packing> |
|||
<property name="pack_type">end</property> |
|||
<property name="position">5</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
</child> |
|||
</object> |
|||
</interface> |
@ -0,0 +1,401 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- Generated with glade 3.22.1 --> |
|||
<interface> |
|||
<requires lib="gtk+" version="3.22"/> |
|||
<object class="GtkImage" id="image1"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="icon_name">preferences-other</property> |
|||
</object> |
|||
<object class="GtkAdjustment" id="longBreak"> |
|||
<property name="upper">100</property> |
|||
<property name="step_increment">1</property> |
|||
<property name="page_increment">10</property> |
|||
</object> |
|||
<object class="GtkAdjustment" id="longBreakInterval"> |
|||
<property name="upper">100</property> |
|||
<property name="step_increment">1</property> |
|||
<property name="page_increment">10</property> |
|||
</object> |
|||
<object class="GtkAdjustment" id="shortBreak"> |
|||
<property name="upper">100</property> |
|||
<property name="step_increment">1</property> |
|||
<property name="page_increment">10</property> |
|||
</object> |
|||
<object class="GtkAdjustment" id="workTime"> |
|||
<property name="upper">100</property> |
|||
<property name="step_increment">1</property> |
|||
<property name="page_increment">10</property> |
|||
</object> |
|||
<object class="GtkApplicationWindow" id="Main"> |
|||
<property name="can_focus">False</property> |
|||
<property name="resizable">False</property> |
|||
<property name="icon_name">dialog-ok</property> |
|||
<child type="titlebar"> |
|||
<object class="GtkHeaderBar"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="spacing">0</property> |
|||
<property name="show_close_button">True</property> |
|||
<child> |
|||
<object class="GtkSwitch" id="modeSwitch"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="tooltip_text" translatable="yes">Switch to work or break mode</property> |
|||
<property name="halign">center</property> |
|||
<property name="active">True</property> |
|||
</object> |
|||
</child> |
|||
<child> |
|||
<object class="GtkStackSwitcher"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="halign">center</property> |
|||
<property name="valign">center</property> |
|||
<property name="stack">mainStack</property> |
|||
</object> |
|||
<packing> |
|||
<property name="position">3</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<property name="margin_start">6</property> |
|||
<property name="image">image1</property> |
|||
<property name="always_show_image">True</property> |
|||
<signal name="clicked" handler="openSettings" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="pack_type">end</property> |
|||
<property name="position">5</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
</child> |
|||
<child> |
|||
<object class="GtkStack" id="mainStack"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="transition_type">slide-left-right</property> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="orientation">vertical</property> |
|||
<child> |
|||
<object class="GtkLabel" id="time_display"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="xpad">12</property> |
|||
<property name="label" translatable="yes">0:00:00</property> |
|||
<attributes> |
|||
<attribute name="font-desc" value="Recursive Heavy 14"/> |
|||
<attribute name="weight" value="book"/> |
|||
<attribute name="scale" value="6"/> |
|||
</attributes> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="margin_start">18</property> |
|||
<property name="margin_end">18</property> |
|||
<property name="margin_bottom">8</property> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Start</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<signal name="clicked" handler="startCountdown" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">True</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">0</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Pause</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<property name="tooltip_text" translatable="yes">Pause the timer</property> |
|||
<signal name="clicked" handler="pauseCountdown" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">True</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Restart</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
<property name="tooltip_text" translatable="yes">Stop the timer</property> |
|||
<signal name="clicked" handler="restartCountdown" swapped="no"/> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">True</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">4</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">False</property> |
|||
<property name="padding">8</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="name">timerView</property> |
|||
<property name="title" translatable="yes">Timer</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="margin_left">4</property> |
|||
<property name="margin_top">4</property> |
|||
<property name="margin_bottom">8</property> |
|||
<property name="orientation">vertical</property> |
|||
<property name="homogeneous">True</property> |
|||
<child> |
|||
<object class="GtkLabel"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="halign">start</property> |
|||
<property name="label" translatable="yes">Timer durations</property> |
|||
<attributes> |
|||
<attribute name="weight" value="bold"/> |
|||
<attribute name="scale" value="1.3999999999999999"/> |
|||
</attributes> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">0</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkLabel"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="halign">start</property> |
|||
<property name="margin_left">4</property> |
|||
<property name="label" translatable="yes">Work (mins)</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkSpinButton"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="adjustment">workTime</property> |
|||
<property name="value">25</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkLabel"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="halign">start</property> |
|||
<property name="margin_left">4</property> |
|||
<property name="label" translatable="yes">Short Break</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">3</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkSpinButton"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="adjustment">shortBreak</property> |
|||
<property name="value">5</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">4</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkLabel"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="halign">start</property> |
|||
<property name="margin_left">4</property> |
|||
<property name="label" translatable="yes">Long Break</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">5</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkSpinButton"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="adjustment">longBreak</property> |
|||
<property name="value">15</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">6</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">8</property> |
|||
<property name="position">0</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="margin_left">4</property> |
|||
<property name="margin_right">4</property> |
|||
<property name="margin_top">4</property> |
|||
<property name="margin_bottom">8</property> |
|||
<property name="orientation">vertical</property> |
|||
<child> |
|||
<object class="GtkLabel"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="halign">start</property> |
|||
<property name="margin_left">4</property> |
|||
<property name="margin_top">34</property> |
|||
<property name="label" translatable="yes">Long Break interval</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="position">0</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkSpinButton"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="adjustment">longBreakInterval</property> |
|||
<property name="value">3</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">8</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkCheckButton"> |
|||
<property name="label" translatable="yes">Auto start next round</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="padding">8</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">7</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
<child> |
|||
<object class="GtkBox"> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">False</property> |
|||
<property name="margin_right">4</property> |
|||
<property name="margin_top">4</property> |
|||
<property name="margin_bottom">8</property> |
|||
<property name="orientation">vertical</property> |
|||
<child> |
|||
<placeholder/> |
|||
</child> |
|||
<child> |
|||
<placeholder/> |
|||
</child> |
|||
<child> |
|||
<object class="GtkButton"> |
|||
<property name="label" translatable="yes">Apply</property> |
|||
<property name="visible">True</property> |
|||
<property name="can_focus">True</property> |
|||
<property name="receives_default">True</property> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="pack_type">end</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="expand">False</property> |
|||
<property name="fill">True</property> |
|||
<property name="padding">8</property> |
|||
<property name="position">2</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
<packing> |
|||
<property name="name">settingsView</property> |
|||
<property name="title" translatable="yes">Settings</property> |
|||
<property name="position">1</property> |
|||
</packing> |
|||
</child> |
|||
</object> |
|||
</child> |
|||
</object> |
|||
</interface> |
Loading…
Reference in new issue