Nav apraksta

mainwindow.ui 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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>1054</width>
  10. <height>640</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>MainWindow</string>
  15. </property>
  16. <widget class="QWidget" name="centralWidget">
  17. <layout class="QHBoxLayout" name="horizontalLayout">
  18. <item>
  19. <layout class="QVBoxLayout" name="verticalLayout_3">
  20. <item>
  21. <layout class="QVBoxLayout" name="verticalLayout_2">
  22. <item>
  23. <widget class="QPushButton" name="btnLoadImage">
  24. <property name="minimumSize">
  25. <size>
  26. <width>214</width>
  27. <height>32</height>
  28. </size>
  29. </property>
  30. <property name="font">
  31. <font>
  32. <weight>75</weight>
  33. <bold>true</bold>
  34. </font>
  35. </property>
  36. <property name="styleSheet">
  37. <string notr="true"> background-color: #ed1c24;
  38. border-style: outset;
  39. border-width: 2px;
  40. border-color:#b51218;
  41. color:#f8f8f8;</string>
  42. </property>
  43. <property name="text">
  44. <string>Load New Image</string>
  45. </property>
  46. </widget>
  47. </item>
  48. <item>
  49. <widget class="QPushButton" name="btnSaveImage">
  50. <property name="minimumSize">
  51. <size>
  52. <width>214</width>
  53. <height>32</height>
  54. </size>
  55. </property>
  56. <property name="font">
  57. <font>
  58. <weight>75</weight>
  59. <bold>true</bold>
  60. </font>
  61. </property>
  62. <property name="styleSheet">
  63. <string notr="true"> background-color: #ed1c24;
  64. border-style: outset;
  65. border-width: 2px;
  66. border-color:#b51218;
  67. color:#f8f8f8;</string>
  68. </property>
  69. <property name="text">
  70. <string>Save Edited Image</string>
  71. </property>
  72. </widget>
  73. </item>
  74. </layout>
  75. </item>
  76. <item>
  77. <layout class="QVBoxLayout" name="verticalLayout">
  78. <item>
  79. <widget class="QLabel" name="lblImageEditingToolss">
  80. <property name="text">
  81. <string>Image Editing Tools:</string>
  82. </property>
  83. </widget>
  84. </item>
  85. <item>
  86. <widget class="QCheckBox" name="chboxThreshold">
  87. <property name="text">
  88. <string>Threshold</string>
  89. </property>
  90. </widget>
  91. </item>
  92. <item>
  93. <widget class="QSlider" name="thresholdSlider">
  94. <property name="whatsThis">
  95. <string/>
  96. </property>
  97. <property name="maximum">
  98. <number>255</number>
  99. </property>
  100. <property name="value">
  101. <number>0</number>
  102. </property>
  103. <property name="orientation">
  104. <enum>Qt::Horizontal</enum>
  105. </property>
  106. </widget>
  107. </item>
  108. <item>
  109. <widget class="QPushButton" name="btnInvertThreshold">
  110. <property name="font">
  111. <font>
  112. <weight>75</weight>
  113. <bold>true</bold>
  114. </font>
  115. </property>
  116. <property name="styleSheet">
  117. <string notr="true"> background-color: #ed1c24;
  118. border-style: outset;
  119. border-width: 2px;
  120. border-color:#b51218;
  121. color:#f8f8f8;</string>
  122. </property>
  123. <property name="text">
  124. <string>Invert Threshold Colors</string>
  125. </property>
  126. </widget>
  127. </item>
  128. <item>
  129. <widget class="QPushButton" name="btnFlipImageHorizontally">
  130. <property name="minimumSize">
  131. <size>
  132. <width>211</width>
  133. <height>0</height>
  134. </size>
  135. </property>
  136. <property name="font">
  137. <font>
  138. <weight>75</weight>
  139. <bold>true</bold>
  140. </font>
  141. </property>
  142. <property name="styleSheet">
  143. <string notr="true"> background-color: #ed1c24;
  144. border-style: outset;
  145. border-width: 2px;
  146. border-color:#b51218;
  147. color:#f8f8f8;</string>
  148. </property>
  149. <property name="text">
  150. <string>Flip Image Horizontally</string>
  151. </property>
  152. </widget>
  153. </item>
  154. <item>
  155. <widget class="QPushButton" name="btnFlipImageVertically">
  156. <property name="minimumSize">
  157. <size>
  158. <width>211</width>
  159. <height>0</height>
  160. </size>
  161. </property>
  162. <property name="font">
  163. <font>
  164. <weight>75</weight>
  165. <bold>true</bold>
  166. </font>
  167. </property>
  168. <property name="styleSheet">
  169. <string notr="true"> background-color: #ed1c24;
  170. border-style: outset;
  171. border-width: 2px;
  172. border-color:#b51218;
  173. color:#f8f8f8;</string>
  174. </property>
  175. <property name="text">
  176. <string>Flip Image Vertically</string>
  177. </property>
  178. </widget>
  179. </item>
  180. <item>
  181. <widget class="QPushButton" name="btnGreyScaleFilter">
  182. <property name="minimumSize">
  183. <size>
  184. <width>211</width>
  185. <height>0</height>
  186. </size>
  187. </property>
  188. <property name="font">
  189. <font>
  190. <weight>75</weight>
  191. <bold>true</bold>
  192. </font>
  193. </property>
  194. <property name="styleSheet">
  195. <string notr="true"> background-color: #ed1c24;
  196. border-style: outset;
  197. border-width: 2px;
  198. border-color:#b51218;
  199. color:#f8f8f8;</string>
  200. </property>
  201. <property name="text">
  202. <string>Grey Scale Filter</string>
  203. </property>
  204. </widget>
  205. </item>
  206. <item>
  207. <widget class="QPushButton" name="btnRevertImage">
  208. <property name="minimumSize">
  209. <size>
  210. <width>211</width>
  211. <height>0</height>
  212. </size>
  213. </property>
  214. <property name="font">
  215. <font>
  216. <weight>75</weight>
  217. <bold>true</bold>
  218. </font>
  219. </property>
  220. <property name="styleSheet">
  221. <string notr="true"> background-color: #ed1c24;
  222. border-style: outset;
  223. border-width: 2px;
  224. border-color:#b51218;
  225. color:#f8f8f8;</string>
  226. </property>
  227. <property name="text">
  228. <string>Revert Image to Original</string>
  229. </property>
  230. </widget>
  231. </item>
  232. </layout>
  233. </item>
  234. <item>
  235. <widget class="QLabel" name="lblShortcuts">
  236. <property name="text">
  237. <string>Program Shortcuts:</string>
  238. </property>
  239. </widget>
  240. </item>
  241. <item>
  242. <widget class="QTextEdit" name="txeShortcuts">
  243. <property name="autoFillBackground">
  244. <bool>false</bool>
  245. </property>
  246. <property name="styleSheet">
  247. <string notr="true"/>
  248. </property>
  249. <property name="frameShadow">
  250. <enum>QFrame::Plain</enum>
  251. </property>
  252. <property name="readOnly">
  253. <bool>true</bool>
  254. </property>
  255. <property name="html">
  256. <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
  257. &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
  258. p, li { white-space: pre-wrap; }
  259. &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot;&gt;
  260. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Instructions (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;I)&lt;/span&gt;&lt;/p&gt;
  261. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Load Image (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;O)&lt;/span&gt;&lt;/p&gt;
  262. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Save Edited Image (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;S&lt;/span&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;
  263. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Invert Threshold Colors (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;T)&lt;/span&gt;&lt;/p&gt;
  264. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Flip Image Horizontally (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;F&lt;/span&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;
  265. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Flip Image Veritcally (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;V&lt;/span&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;
  266. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Grey Scale Filter (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;G&lt;/span&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;
  267. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;Revert Edited Image (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; color:#000000; background-color:#ffffff;&quot;&gt;R)&lt;/span&gt;&lt;/p&gt;
  268. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;Close Window (&lt;/span&gt;&lt;span style=&quot; font-family:'sans-serif'; font-size:13pt; font-weight:600; color:#000000; background-color:#ffffff;&quot;&gt;⌘&lt;/span&gt;&lt;span style=&quot; font-family:'.Lucida Grande UI'; font-size:13pt;&quot;&gt;W)&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  269. </property>
  270. </widget>
  271. </item>
  272. </layout>
  273. </item>
  274. <item>
  275. <layout class="QVBoxLayout" name="verticalLayout_4">
  276. <item>
  277. <widget class="QLabel" name="lblOriginalImageTitle">
  278. <property name="layoutDirection">
  279. <enum>Qt::LeftToRight</enum>
  280. </property>
  281. <property name="text">
  282. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Original Image:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  283. </property>
  284. <property name="alignment">
  285. <set>Qt::AlignCenter</set>
  286. </property>
  287. </widget>
  288. </item>
  289. <item>
  290. <widget class="QLabel" name="lblOriginalImage">
  291. <property name="minimumSize">
  292. <size>
  293. <width>401</width>
  294. <height>531</height>
  295. </size>
  296. </property>
  297. <property name="styleSheet">
  298. <string notr="true">background-color: #3f3f49</string>
  299. </property>
  300. <property name="frameShape">
  301. <enum>QFrame::Box</enum>
  302. </property>
  303. <property name="frameShadow">
  304. <enum>QFrame::Sunken</enum>
  305. </property>
  306. <property name="text">
  307. <string/>
  308. </property>
  309. <property name="scaledContents">
  310. <bool>true</bool>
  311. </property>
  312. </widget>
  313. </item>
  314. </layout>
  315. </item>
  316. <item>
  317. <layout class="QVBoxLayout" name="verticalLayout_5">
  318. <property name="spacing">
  319. <number>6</number>
  320. </property>
  321. <item>
  322. <widget class="QLabel" name="lblEditedImageTitle">
  323. <property name="text">
  324. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Edited Image:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  325. </property>
  326. <property name="alignment">
  327. <set>Qt::AlignCenter</set>
  328. </property>
  329. </widget>
  330. </item>
  331. <item>
  332. <widget class="QLabel" name="lblEditedImage">
  333. <property name="minimumSize">
  334. <size>
  335. <width>401</width>
  336. <height>531</height>
  337. </size>
  338. </property>
  339. <property name="styleSheet">
  340. <string notr="true">background-color: #3f3f49</string>
  341. </property>
  342. <property name="frameShape">
  343. <enum>QFrame::Box</enum>
  344. </property>
  345. <property name="frameShadow">
  346. <enum>QFrame::Sunken</enum>
  347. </property>
  348. <property name="text">
  349. <string/>
  350. </property>
  351. <property name="scaledContents">
  352. <bool>true</bool>
  353. </property>
  354. </widget>
  355. </item>
  356. </layout>
  357. </item>
  358. </layout>
  359. <zorder></zorder>
  360. </widget>
  361. <widget class="QToolBar" name="mainToolBar">
  362. <attribute name="toolBarArea">
  363. <enum>TopToolBarArea</enum>
  364. </attribute>
  365. <attribute name="toolBarBreak">
  366. <bool>false</bool>
  367. </attribute>
  368. </widget>
  369. <widget class="QStatusBar" name="statusBar"/>
  370. <widget class="QMenuBar" name="menuBar">
  371. <property name="geometry">
  372. <rect>
  373. <x>0</x>
  374. <y>0</y>
  375. <width>1054</width>
  376. <height>21</height>
  377. </rect>
  378. </property>
  379. <widget class="QMenu" name="menuFile">
  380. <property name="title">
  381. <string>File</string>
  382. </property>
  383. <addaction name="actionLoad_Image"/>
  384. <addaction name="actionSave_Image"/>
  385. <addaction name="actionClose_Window"/>
  386. </widget>
  387. <widget class="QMenu" name="menuEdit">
  388. <property name="title">
  389. <string>Edit</string>
  390. </property>
  391. <addaction name="actionInvert_Threshold_Colors"/>
  392. <addaction name="actionFlip_Image_Horizontally"/>
  393. <addaction name="actionFlip_Image_Vertically"/>
  394. <addaction name="actionApply_Grey_Scale_Filter"/>
  395. <addaction name="actionRevert_Edited_Image_to_Original"/>
  396. </widget>
  397. <widget class="QMenu" name="menuHelp">
  398. <property name="title">
  399. <string>Help</string>
  400. </property>
  401. <addaction name="actionInstructions"/>
  402. </widget>
  403. <addaction name="menuFile"/>
  404. <addaction name="menuEdit"/>
  405. <addaction name="menuHelp"/>
  406. </widget>
  407. <action name="actionLoad_Image">
  408. <property name="text">
  409. <string>Load Image (⌘O)</string>
  410. </property>
  411. <property name="iconText">
  412. <string>Load Image (⌘ + O)</string>
  413. </property>
  414. <property name="shortcutContext">
  415. <enum>Qt::WidgetShortcut</enum>
  416. </property>
  417. </action>
  418. <action name="actionSave_Image">
  419. <property name="text">
  420. <string>Save Image (⌘S)</string>
  421. </property>
  422. <property name="iconText">
  423. <string>Save Image (⌘ + s)</string>
  424. </property>
  425. </action>
  426. <action name="actionFlip_Image_Horizontally">
  427. <property name="text">
  428. <string>Flip Image Horizontally (⌘F)</string>
  429. </property>
  430. </action>
  431. <action name="actionFlip_Image_Vertically">
  432. <property name="text">
  433. <string>Flip Image Vertically (⌘V)</string>
  434. </property>
  435. </action>
  436. <action name="actionApply_Grey_Scale_Filter">
  437. <property name="text">
  438. <string>Apply Grey Scale Filter (⌘G)</string>
  439. </property>
  440. </action>
  441. <action name="actionClose_Window">
  442. <property name="text">
  443. <string>Close Window (⌘W)</string>
  444. </property>
  445. <property name="iconText">
  446. <string>Close Window (⌘W)</string>
  447. </property>
  448. </action>
  449. <action name="actionRevert_Edited_Image_to_Original">
  450. <property name="text">
  451. <string>Revert Edited Image to Original (⌘R)</string>
  452. </property>
  453. </action>
  454. <action name="actionInstructions">
  455. <property name="text">
  456. <string>Instructions (⌘I)</string>
  457. </property>
  458. </action>
  459. <action name="actionInvert_Threshold_Colors">
  460. <property name="text">
  461. <string>Invert Threshold Colors (⌘T)</string>
  462. </property>
  463. </action>
  464. </widget>
  465. <layoutdefault spacing="6" margin="11"/>
  466. <resources/>
  467. <connections/>
  468. </ui>