src/mainwindow.ui

Tue, 28 Sep 2021 23:07:23 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 28 Sep 2021 23:07:23 +0300
changeset 145
4dea24d3eda0
parent 141
185eb297dc1e
child 158
5bd755eaa5a8
permissions
-rw-r--r--

Use QSaveFile to save the file more safely

0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2 <ui version="4.0">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3 <class>MainWindow</class>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
4 <widget class="QMainWindow" name="MainWindow">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
5 <property name="geometry">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 <rect>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
7 <x>0</x>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
8 <y>0</y>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 <width>800</width>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 <height>600</height>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 </rect>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 </property>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
13 <property name="windowTitle">
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
14 <string>LDForge</string>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 </property>
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
16 <widget class="QWidget" name="centralwidget">
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
17 <layout class="QVBoxLayout" name="verticalLayout">
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
18 <item>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
19 <widget class="QTabWidget" name="tabs"/>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
20 </item>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
21 </layout>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
22 </widget>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
23 <widget class="QMenuBar" name="menubar">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
24 <property name="geometry">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
25 <rect>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
26 <x>0</x>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
27 <y>0</y>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
28 <width>800</width>
128
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
29 <height>32</height>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
30 </rect>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
31 </property>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
32 <widget class="QMenu" name="menuFile">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
33 <property name="title">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
34 <string>File</string>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
35 </property>
9
8b9780700b5e added saving of splitter state and recent files
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
36 <widget class="QMenu" name="menuRecentFiles">
8b9780700b5e added saving of splitter state and recent files
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
37 <property name="title">
8b9780700b5e added saving of splitter state and recent files
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
38 <string>Recent files</string>
8b9780700b5e added saving of splitter state and recent files
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
39 </property>
8b9780700b5e added saving of splitter state and recent files
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
40 </widget>
5
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
41 <addaction name="actionNew"/>
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
42 <addaction name="actionOpen"/>
141
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
43 <addaction name="actionSave"/>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
44 <addaction name="actionSaveAs"/>
9
8b9780700b5e added saving of splitter state and recent files
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
45 <addaction name="menuRecentFiles"/>
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
46 <addaction name="separator"/>
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
47 <addaction name="actionSettingsEditor"/>
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
48 <addaction name="separator"/>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
49 <addaction name="actionQuit"/>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
50 </widget>
36
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
51 <widget class="QMenu" name="menuView">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
52 <property name="title">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
53 <string>View</string>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
54 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
55 <addaction name="actionRenderStyleNormal"/>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
56 <addaction name="actionRenderStyleBfc"/>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
57 <addaction name="actionRenderStyleRandom"/>
79
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
58 <addaction name="actionRenderStylePickScene"/>
128
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
59 <addaction name="separator"/>
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
60 <addaction name="actionAdjustGridToView"/>
36
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
61 </widget>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
62 <addaction name="menuFile"/>
36
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
63 <addaction name="menuView"/>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
64 </widget>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
65 <widget class="QStatusBar" name="statusbar"/>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
66 <action name="actionQuit">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
67 <property name="text">
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
68 <string>Quit</string>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
69 </property>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
70 </action>
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
71 <action name="actionOpen">
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
72 <property name="text">
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
73 <string>Open…</string>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
74 </property>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
75 <property name="shortcut">
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
76 <string>Ctrl+O</string>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
77 </property>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
78 </action>
5
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
79 <action name="actionNew">
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
80 <property name="text">
5
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
81 <string>New</string>
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
82 </property>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
83 <property name="shortcut">
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
84 <string>Ctrl+N</string>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
85 </property>
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
86 </action>
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
87 <action name="actionSettingsEditor">
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
88 <property name="text">
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
89 <string>Preferences…</string>
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
90 </property>
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
91 </action>
36
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
92 <action name="actionRenderStyleNormal">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
93 <property name="checkable">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
94 <bool>true</bool>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
95 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
96 <property name="text">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
97 <string>Normal colours</string>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
98 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
99 </action>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
100 <action name="actionRenderStyleBfc">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
101 <property name="checkable">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
102 <bool>true</bool>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
103 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
104 <property name="text">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
105 <string>BFC color coding</string>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
106 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
107 </action>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
108 <action name="actionRenderStyleRandom">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
109 <property name="checkable">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
110 <bool>true</bool>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
111 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
112 <property name="text">
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
113 <string>Random colours</string>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
114 </property>
bbb901b97404 added render style storage
Teemu Piippo <teemu@hecknology.net>
parents: 9
diff changeset
115 </action>
79
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
116 <action name="actionRenderStylePickScene">
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
117 <property name="checkable">
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
118 <bool>true</bool>
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
119 </property>
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
120 <property name="text">
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
121 <string>Pick scene colours</string>
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
122 </property>
5fe2dd4e161a added a render style for pick scene
Teemu Piippo <teemu@hecknology.net>
parents: 36
diff changeset
123 </action>
128
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
124 <action name="actionAdjustGridToView">
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
125 <property name="text">
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
126 <string>Adjust grid to view</string>
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
127 </property>
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
128 <property name="shortcut">
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
129 <string>Ctrl+G</string>
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
130 </property>
7c834fe36b25 Moved automatic grid adjusting into a new action
Teemu Piippo <teemu@hecknology.net>
parents: 125
diff changeset
131 </action>
141
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
132 <action name="actionSave">
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
133 <property name="text">
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
134 <string>Save</string>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
135 </property>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
136 <property name="shortcut">
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
137 <string>Ctrl+S</string>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
138 </property>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
139 </action>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
140 <action name="actionSaveAs">
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
141 <property name="text">
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
142 <string>Save as…</string>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
143 </property>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
144 <property name="shortcut">
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
145 <string>Ctrl+Shift+S</string>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
146 </property>
185eb297dc1e Saving works now
Teemu Piippo <teemu@hecknology.net>
parents: 128
diff changeset
147 </action>
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
148 </widget>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
149 <resources/>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
150 <connections/>
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
151 </ui>

mercurial