mainwindow.ui 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>mainwindow</class>
  4. <widget class="QMainWindow" name="mainwindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>350</width>
  10. <height>350</height>
  11. </rect>
  12. </property>
  13. <property name="minimumSize">
  14. <size>
  15. <width>350</width>
  16. <height>350</height>
  17. </size>
  18. </property>
  19. <property name="maximumSize">
  20. <size>
  21. <width>350</width>
  22. <height>350</height>
  23. </size>
  24. </property>
  25. <property name="windowTitle">
  26. <string>Simple Pomodoro Timer</string>
  27. </property>
  28. <widget class="QWidget" name="centralwidget">
  29. <property name="sizePolicy">
  30. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  31. <horstretch>0</horstretch>
  32. <verstretch>0</verstretch>
  33. </sizepolicy>
  34. </property>
  35. <property name="maximumSize">
  36. <size>
  37. <width>16777215</width>
  38. <height>16777215</height>
  39. </size>
  40. </property>
  41. <layout class="QVBoxLayout" name="verticalLayout_2">
  42. <item>
  43. <spacer name="verticalSpacer_2">
  44. <property name="orientation">
  45. <enum>Qt::Vertical</enum>
  46. </property>
  47. <property name="sizeHint" stdset="0">
  48. <size>
  49. <width>20</width>
  50. <height>40</height>
  51. </size>
  52. </property>
  53. </spacer>
  54. </item>
  55. <item>
  56. <widget class="QLabel" name="labelTimer">
  57. <property name="enabled">
  58. <bool>true</bool>
  59. </property>
  60. <property name="sizePolicy">
  61. <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
  62. <horstretch>0</horstretch>
  63. <verstretch>0</verstretch>
  64. </sizepolicy>
  65. </property>
  66. <property name="maximumSize">
  67. <size>
  68. <width>16777215</width>
  69. <height>16777215</height>
  70. </size>
  71. </property>
  72. <property name="font">
  73. <font>
  74. <pointsize>60</pointsize>
  75. </font>
  76. </property>
  77. <property name="layoutDirection">
  78. <enum>Qt::LeftToRight</enum>
  79. </property>
  80. <property name="autoFillBackground">
  81. <bool>false</bool>
  82. </property>
  83. <property name="frameShape">
  84. <enum>QFrame::NoFrame</enum>
  85. </property>
  86. <property name="text">
  87. <string>00:00</string>
  88. </property>
  89. <property name="alignment">
  90. <set>Qt::AlignCenter</set>
  91. </property>
  92. </widget>
  93. </item>
  94. <item>
  95. <spacer name="verticalSpacer">
  96. <property name="orientation">
  97. <enum>Qt::Vertical</enum>
  98. </property>
  99. <property name="sizeHint" stdset="0">
  100. <size>
  101. <width>20</width>
  102. <height>40</height>
  103. </size>
  104. </property>
  105. </spacer>
  106. </item>
  107. <item>
  108. <layout class="QVBoxLayout" name="verticalLayout">
  109. <property name="sizeConstraint">
  110. <enum>QLayout::SetDefaultConstraint</enum>
  111. </property>
  112. <property name="leftMargin">
  113. <number>60</number>
  114. </property>
  115. <property name="rightMargin">
  116. <number>60</number>
  117. </property>
  118. <item>
  119. <widget class="QPushButton" name="pushBtnStart">
  120. <property name="cursor">
  121. <cursorShape>PointingHandCursor</cursorShape>
  122. </property>
  123. <property name="text">
  124. <string>Start</string>
  125. </property>
  126. </widget>
  127. </item>
  128. </layout>
  129. </item>
  130. <item>
  131. <layout class="QGridLayout" name="gridLayout">
  132. <property name="leftMargin">
  133. <number>0</number>
  134. </property>
  135. <property name="rightMargin">
  136. <number>0</number>
  137. </property>
  138. <item row="0" column="0">
  139. <layout class="QHBoxLayout" name="horizontalLayout">
  140. <item>
  141. <widget class="QLabel" name="labelStudyTime">
  142. <property name="sizePolicy">
  143. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  144. <horstretch>0</horstretch>
  145. <verstretch>0</verstretch>
  146. </sizepolicy>
  147. </property>
  148. <property name="text">
  149. <string>Set study time:</string>
  150. </property>
  151. </widget>
  152. </item>
  153. <item>
  154. <widget class="QSpinBox" name="spinBoxStudyTime">
  155. <property name="maximum">
  156. <number>480</number>
  157. </property>
  158. <property name="value">
  159. <number>25</number>
  160. </property>
  161. </widget>
  162. </item>
  163. </layout>
  164. </item>
  165. <item row="0" column="1">
  166. <layout class="QHBoxLayout" name="horizontalLayout_3">
  167. <item>
  168. <widget class="QLabel" name="labelStudySession">
  169. <property name="text">
  170. <string>Study sessions:</string>
  171. </property>
  172. </widget>
  173. </item>
  174. <item>
  175. <widget class="QSpinBox" name="spinBoxSession">
  176. <property name="minimum">
  177. <number>1</number>
  178. </property>
  179. <property name="maximum">
  180. <number>25</number>
  181. </property>
  182. <property name="value">
  183. <number>3</number>
  184. </property>
  185. </widget>
  186. </item>
  187. </layout>
  188. </item>
  189. <item row="1" column="0">
  190. <layout class="QHBoxLayout" name="horizontalLayout_2">
  191. <item>
  192. <widget class="QLabel" name="labelRestTime">
  193. <property name="text">
  194. <string>Set rest time:</string>
  195. </property>
  196. </widget>
  197. </item>
  198. <item>
  199. <widget class="QSpinBox" name="spinBoxRestTime">
  200. <property name="maximum">
  201. <number>480</number>
  202. </property>
  203. <property name="value">
  204. <number>5</number>
  205. </property>
  206. </widget>
  207. </item>
  208. </layout>
  209. </item>
  210. <item row="1" column="1">
  211. <layout class="QHBoxLayout" name="horizontalLayout_4">
  212. <item>
  213. <widget class="QPushButton" name="pushBtnSetTime">
  214. <property name="text">
  215. <string>Set</string>
  216. </property>
  217. </widget>
  218. </item>
  219. </layout>
  220. </item>
  221. <item row="2" column="0">
  222. <widget class="QPushButton" name="pushBtnNext">
  223. <property name="text">
  224. <string>Next session</string>
  225. </property>
  226. </widget>
  227. </item>
  228. </layout>
  229. </item>
  230. </layout>
  231. </widget>
  232. <widget class="QStatusBar" name="statusBar"/>
  233. <widget class="QMenuBar" name="menuBar">
  234. <property name="geometry">
  235. <rect>
  236. <x>0</x>
  237. <y>0</y>
  238. <width>350</width>
  239. <height>20</height>
  240. </rect>
  241. </property>
  242. <widget class="QMenu" name="menuOptions">
  243. <property name="title">
  244. <string>Options</string>
  245. </property>
  246. <addaction name="actionShow_seconds"/>
  247. <addaction name="actionAutostart_next_session"/>
  248. </widget>
  249. <addaction name="menuOptions"/>
  250. </widget>
  251. <action name="actionShow_seconds">
  252. <property name="checkable">
  253. <bool>true</bool>
  254. </property>
  255. <property name="checked">
  256. <bool>true</bool>
  257. </property>
  258. <property name="text">
  259. <string>Show seconds</string>
  260. </property>
  261. </action>
  262. <action name="actionAutostart_next_session">
  263. <property name="checkable">
  264. <bool>true</bool>
  265. </property>
  266. <property name="checked">
  267. <bool>true</bool>
  268. </property>
  269. <property name="text">
  270. <string>Autostart next session</string>
  271. </property>
  272. </action>
  273. </widget>
  274. <resources/>
  275. <connections/>
  276. </ui>