main_window.ui 9.0 KB

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