main_window.ui 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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>613</width>
  10. <height>495</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>{status}{file} - RainyNite {version} &quot;{codename}&quot;</string>
  15. </property>
  16. <property name="windowIcon">
  17. <iconset resource="../resources.qrc">
  18. <normaloff>:/images/icon.png</normaloff>:/images/icon.png</iconset>
  19. </property>
  20. <property name="styleSheet">
  21. <string notr="true"/>
  22. </property>
  23. <property name="dockNestingEnabled">
  24. <bool>true</bool>
  25. </property>
  26. <widget class="QWidget" name="central_widget">
  27. <property name="styleSheet">
  28. <string notr="true">#central_widget { background-image: url(:/images/transparency.png); }
  29. #canvas { background: transparent; }</string>
  30. </property>
  31. <layout class="QVBoxLayout" name="verticalLayout">
  32. <property name="leftMargin">
  33. <number>0</number>
  34. </property>
  35. <property name="topMargin">
  36. <number>0</number>
  37. </property>
  38. <property name="rightMargin">
  39. <number>0</number>
  40. </property>
  41. <property name="bottomMargin">
  42. <number>0</number>
  43. </property>
  44. <item>
  45. <widget class="rainynite::studio::Canvas" name="canvas">
  46. <property name="styleSheet">
  47. <string notr="true"/>
  48. </property>
  49. <property name="lineWidth">
  50. <number>0</number>
  51. </property>
  52. </widget>
  53. </item>
  54. </layout>
  55. </widget>
  56. <widget class="QMenuBar" name="menubar">
  57. <property name="geometry">
  58. <rect>
  59. <x>0</x>
  60. <y>0</y>
  61. <width>613</width>
  62. <height>27</height>
  63. </rect>
  64. </property>
  65. <widget class="QMenu" name="menu_file">
  66. <property name="title">
  67. <string>&amp;File</string>
  68. </property>
  69. <addaction name="action_new"/>
  70. <addaction name="action_open"/>
  71. <addaction name="action_reload"/>
  72. <addaction name="separator"/>
  73. <addaction name="action_save"/>
  74. <addaction name="action_save_as"/>
  75. <addaction name="separator"/>
  76. <addaction name="action_quit"/>
  77. </widget>
  78. <widget class="QMenu" name="menu_render">
  79. <property name="title">
  80. <string>&amp;Render</string>
  81. </property>
  82. <addaction name="action_render"/>
  83. <addaction name="action_render_frame"/>
  84. <addaction name="action_stop_render"/>
  85. <addaction name="separator"/>
  86. <addaction name="action_extra_style"/>
  87. <addaction name="action_auto_redraw"/>
  88. </widget>
  89. <widget class="QMenu" name="menu_view">
  90. <property name="title">
  91. <string>&amp;View</string>
  92. </property>
  93. <addaction name="action_redraw"/>
  94. <addaction name="action_mirror"/>
  95. </widget>
  96. <widget class="QMenu" name="menu_dock">
  97. <property name="title">
  98. <string>Add &amp;dock</string>
  99. </property>
  100. </widget>
  101. <widget class="QMenu" name="menu_help">
  102. <property name="title">
  103. <string>&amp;Help</string>
  104. </property>
  105. <addaction name="action_about"/>
  106. </widget>
  107. <widget class="QMenu" name="menu_edit">
  108. <property name="title">
  109. <string>&amp;Edit</string>
  110. </property>
  111. <addaction name="action_undo"/>
  112. <addaction name="action_redo"/>
  113. </widget>
  114. <widget class="QMenu" name="menu_actions">
  115. <property name="title">
  116. <string>&amp;Actions</string>
  117. </property>
  118. </widget>
  119. <addaction name="menu_file"/>
  120. <addaction name="menu_edit"/>
  121. <addaction name="menu_view"/>
  122. <addaction name="menu_render"/>
  123. <addaction name="menu_actions"/>
  124. <addaction name="menu_dock"/>
  125. <addaction name="menu_help"/>
  126. </widget>
  127. <widget class="QToolBar" name="file_toolbar">
  128. <property name="windowTitle">
  129. <string>File</string>
  130. </property>
  131. <attribute name="toolBarArea">
  132. <enum>TopToolBarArea</enum>
  133. </attribute>
  134. <attribute name="toolBarBreak">
  135. <bool>false</bool>
  136. </attribute>
  137. <addaction name="action_new"/>
  138. <addaction name="action_open"/>
  139. <addaction name="action_save"/>
  140. <addaction name="action_save_as"/>
  141. </widget>
  142. <widget class="QToolBar" name="edit_toolbar">
  143. <property name="windowTitle">
  144. <string>Edit</string>
  145. </property>
  146. <attribute name="toolBarArea">
  147. <enum>TopToolBarArea</enum>
  148. </attribute>
  149. <attribute name="toolBarBreak">
  150. <bool>false</bool>
  151. </attribute>
  152. <addaction name="action_undo"/>
  153. <addaction name="action_redo"/>
  154. </widget>
  155. <widget class="QToolBar" name="tools_bar">
  156. <property name="windowTitle">
  157. <string>Tools</string>
  158. </property>
  159. <attribute name="toolBarArea">
  160. <enum>LeftToolBarArea</enum>
  161. </attribute>
  162. <attribute name="toolBarBreak">
  163. <bool>false</bool>
  164. </attribute>
  165. </widget>
  166. <action name="action_quit">
  167. <property name="icon">
  168. <iconset theme="application-exit">
  169. <normaloff>.</normaloff>.</iconset>
  170. </property>
  171. <property name="text">
  172. <string>&amp;Quit</string>
  173. </property>
  174. <property name="shortcut">
  175. <string>Ctrl+Q</string>
  176. </property>
  177. </action>
  178. <action name="action_open">
  179. <property name="icon">
  180. <iconset theme="document-open">
  181. <normaloff>.</normaloff>.</iconset>
  182. </property>
  183. <property name="text">
  184. <string>&amp;Open</string>
  185. </property>
  186. <property name="shortcut">
  187. <string>Ctrl+O</string>
  188. </property>
  189. </action>
  190. <action name="action_render">
  191. <property name="text">
  192. <string>&amp;Render</string>
  193. </property>
  194. <property name="shortcut">
  195. <string>Ctrl+Shift+R</string>
  196. </property>
  197. </action>
  198. <action name="action_redraw">
  199. <property name="icon">
  200. <iconset theme="view-refresh">
  201. <normaloff>.</normaloff>.</iconset>
  202. </property>
  203. <property name="text">
  204. <string>&amp;Redraw</string>
  205. </property>
  206. <property name="shortcut">
  207. <string>Alt+R</string>
  208. </property>
  209. </action>
  210. <action name="action_save">
  211. <property name="icon">
  212. <iconset theme="document-save">
  213. <normaloff>.</normaloff>.</iconset>
  214. </property>
  215. <property name="text">
  216. <string>&amp;Save</string>
  217. </property>
  218. <property name="shortcut">
  219. <string>Ctrl+S</string>
  220. </property>
  221. </action>
  222. <action name="action_about">
  223. <property name="text">
  224. <string>&amp;About</string>
  225. </property>
  226. </action>
  227. <action name="action_save_as">
  228. <property name="icon">
  229. <iconset theme="document-save-as">
  230. <normaloff>.</normaloff>.</iconset>
  231. </property>
  232. <property name="text">
  233. <string>S&amp;ave as..</string>
  234. </property>
  235. <property name="shortcut">
  236. <string>Ctrl+Shift+S</string>
  237. </property>
  238. </action>
  239. <action name="action_reload">
  240. <property name="text">
  241. <string>&amp;Reload</string>
  242. </property>
  243. <property name="shortcut">
  244. <string>F5</string>
  245. </property>
  246. </action>
  247. <action name="action_extra_style">
  248. <property name="checkable">
  249. <bool>true</bool>
  250. </property>
  251. <property name="checked">
  252. <bool>true</bool>
  253. </property>
  254. <property name="text">
  255. <string>&amp;Enable svg styling</string>
  256. </property>
  257. <property name="shortcut">
  258. <string>Ctrl+Shift+E</string>
  259. </property>
  260. </action>
  261. <action name="action_new">
  262. <property name="icon">
  263. <iconset theme="document-new">
  264. <normaloff>.</normaloff>.</iconset>
  265. </property>
  266. <property name="text">
  267. <string>&amp;New</string>
  268. </property>
  269. <property name="shortcut">
  270. <string>Ctrl+N</string>
  271. </property>
  272. </action>
  273. <action name="action_undo">
  274. <property name="icon">
  275. <iconset theme="edit-undo">
  276. <normaloff>.</normaloff>.</iconset>
  277. </property>
  278. <property name="text">
  279. <string>&amp;Undo</string>
  280. </property>
  281. <property name="shortcut">
  282. <string>Ctrl+Z</string>
  283. </property>
  284. </action>
  285. <action name="action_redo">
  286. <property name="icon">
  287. <iconset theme="edit-redo">
  288. <normaloff>.</normaloff>.</iconset>
  289. </property>
  290. <property name="text">
  291. <string>&amp;Redo</string>
  292. </property>
  293. <property name="shortcut">
  294. <string>Ctrl+Shift+Z</string>
  295. </property>
  296. </action>
  297. <action name="action_render_frame">
  298. <property name="text">
  299. <string>Render this &amp;frame</string>
  300. </property>
  301. <property name="shortcut">
  302. <string>Ctrl+R</string>
  303. </property>
  304. </action>
  305. <action name="action_stop_render">
  306. <property name="icon">
  307. <iconset theme="process-stop">
  308. <normaloff>.</normaloff>.</iconset>
  309. </property>
  310. <property name="text">
  311. <string>&amp;Stop</string>
  312. </property>
  313. </action>
  314. <action name="action_auto_redraw">
  315. <property name="checkable">
  316. <bool>true</bool>
  317. </property>
  318. <property name="checked">
  319. <bool>true</bool>
  320. </property>
  321. <property name="text">
  322. <string>Enable &amp;auto-redraw</string>
  323. </property>
  324. <property name="toolTip">
  325. <string>Disable this if rendering starts to happen at unfortunate times.</string>
  326. </property>
  327. </action>
  328. <action name="action_mirror">
  329. <property name="checkable">
  330. <bool>true</bool>
  331. </property>
  332. <property name="text">
  333. <string>&amp;Mirror</string>
  334. </property>
  335. </action>
  336. </widget>
  337. <customwidgets>
  338. <customwidget>
  339. <class>rainynite::studio::Canvas</class>
  340. <extends>QGraphicsView</extends>
  341. <header location="global">widgets/canvas.h</header>
  342. </customwidget>
  343. </customwidgets>
  344. <resources>
  345. <include location="../resources.qrc"/>
  346. </resources>
  347. <connections/>
  348. </ui>