Changeset View
Changeset View
Standalone View
Standalone View
languages/plugins/custom-definesandincludes/kcm_widget/parserwidget.ui
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <ui version="4.0"> | 2 | <ui version="4.0"> | ||
3 | <class>ParserWidget</class> | 3 | <class>ParserWidget</class> | ||
4 | <widget class="QWidget" name="ParserWidget"> | 4 | <widget class="QWidget" name="ParserWidget"> | ||
5 | <property name="geometry"> | 5 | <property name="geometry"> | ||
6 | <rect> | 6 | <rect> | ||
7 | <x>0</x> | 7 | <x>0</x> | ||
8 | <y>0</y> | 8 | <y>0</y> | ||
9 | <width>579</width> | 9 | <width>579</width> | ||
10 | <height>407</height> | 10 | <height>407</height> | ||
11 | </rect> | 11 | </rect> | ||
12 | </property> | 12 | </property> | ||
13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> | ||
14 | <string>Form</string> | 14 | <string>Form</string> | ||
15 | </property> | 15 | </property> | ||
16 | <layout class="QGridLayout" name="gridLayout_3"> | 16 | <layout class="QGridLayout" name="gridLayout"> | ||
17 | <item row="1" column="0"> | ||||
18 | <widget class="QCheckBox" name="parseHeadersInPlainC"> | ||||
19 | <property name="toolTip"> | ||||
20 | <string><html><head/><body><p>Check this if you want <code>*.h<code/> headers to be parsed in plain C mode. By default they are parsed as C++ headers.</p></body></html></string> | ||||
mwolff: wrap the *.h in `<code>` or `<tt>` tags | |||||
21 | </property> | ||||
22 | <property name="text"> | ||||
23 | <string>Parse *.h headers in plain C</string> | ||||
24 | </property> | ||||
25 | </widget> | ||||
26 | </item> | ||||
17 | <item row="0" column="0"> | 27 | <item row="0" column="0"> | ||
18 | <widget class="QGroupBox" name="groupBox"> | 28 | <widget class="QGroupBox" name="groupBox"> | ||
19 | <property name="title"> | 29 | <property name="title"> | ||
20 | <string/> | 30 | <string/> | ||
21 | </property> | 31 | </property> | ||
22 | <layout class="QFormLayout" name="formLayout"> | 32 | <layout class="QFormLayout" name="formLayout"> | ||
23 | <item row="0" column="0"> | 33 | <item row="0" column="0"> | ||
24 | <widget class="QLabel" name="label_2"> | 34 | <widget class="QLabel" name="label_2"> | ||
25 | <property name="text"> | 35 | <property name="text"> | ||
26 | <string>Profi&le:</string> | 36 | <string>C++ Profi&le:</string> | ||
27 | </property> | 37 | </property> | ||
28 | <property name="buddy"> | 38 | <property name="buddy"> | ||
29 | <cstring>languageStandards</cstring> | 39 | <cstring>languageStandardsCpp</cstring> | ||
30 | </property> | 40 | </property> | ||
31 | </widget> | 41 | </widget> | ||
32 | </item> | 42 | </item> | ||
33 | <item row="0" column="1"> | 43 | <item row="0" column="1"> | ||
34 | <widget class="QComboBox" name="languageStandards"> | 44 | <widget class="QComboBox" name="languageStandardsCpp"> | ||
kfunk: Cpp -> Cpp | |||||
35 | <property name="sizePolicy"> | 45 | <property name="sizePolicy"> | ||
36 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | 46 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | ||
37 | <horstretch>0</horstretch> | 47 | <horstretch>0</horstretch> | ||
38 | <verstretch>0</verstretch> | 48 | <verstretch>0</verstretch> | ||
39 | </sizepolicy> | 49 | </sizepolicy> | ||
40 | </property> | 50 | </property> | ||
41 | <property name="minimumSize"> | 51 | <property name="minimumSize"> | ||
42 | <size> | 52 | <size> | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 96 | <property name="text"> | |||
87 | <string>c++14</string> | 97 | <string>c++14</string> | ||
88 | </property> | 98 | </property> | ||
89 | </item> | 99 | </item> | ||
90 | </widget> | 100 | </widget> | ||
91 | </item> | 101 | </item> | ||
92 | <item row="1" column="0"> | 102 | <item row="1" column="0"> | ||
93 | <widget class="QLabel" name="argumentsLabel"> | 103 | <widget class="QLabel" name="argumentsLabel"> | ||
94 | <property name="text"> | 104 | <property name="text"> | ||
95 | <string>Command-line ar&guments:</string> | 105 | <string>C++ co&mmand-line arguments:</string> | ||
96 | </property> | 106 | </property> | ||
97 | <property name="buddy"> | 107 | <property name="buddy"> | ||
98 | <cstring>parserOptions</cstring> | 108 | <cstring>parserOptionsCpp</cstring> | ||
99 | </property> | 109 | </property> | ||
100 | </widget> | 110 | </widget> | ||
101 | </item> | 111 | </item> | ||
102 | <item row="1" column="1"> | 112 | <item row="1" column="1"> | ||
103 | <widget class="QLineEdit" name="parserOptions"> | 113 | <widget class="QLineEdit" name="parserOptionsCpp"> | ||
kfunk: Cpp -> Cpp | |||||
104 | <property name="minimumSize"> | 114 | <property name="minimumSize"> | ||
105 | <size> | 115 | <size> | ||
106 | <width>100</width> | 116 | <width>100</width> | ||
107 | <height>0</height> | 117 | <height>0</height> | ||
108 | </size> | 118 | </size> | ||
109 | </property> | 119 | </property> | ||
110 | </widget> | 120 | </widget> | ||
111 | </item> | 121 | </item> | ||
122 | <item row="3" column="0"> | ||||
123 | <widget class="QLabel" name="label_3"> | ||||
124 | <property name="text"> | ||||
125 | <string>C Profi&le:</string> | ||||
126 | </property> | ||||
127 | <property name="buddy"> | ||||
128 | <cstring>languageStandardsCpp</cstring> | ||||
129 | </property> | ||||
130 | </widget> | ||||
131 | </item> | ||||
132 | <item row="3" column="1"> | ||||
133 | <widget class="QComboBox" name="languageStandardsC"> | ||||
134 | <property name="sizePolicy"> | ||||
135 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | ||||
136 | <horstretch>0</horstretch> | ||||
137 | <verstretch>0</verstretch> | ||||
138 | </sizepolicy> | ||||
139 | </property> | ||||
140 | <property name="minimumSize"> | ||||
141 | <size> | ||||
142 | <width>100</width> | ||||
143 | <height>0</height> | ||||
144 | </size> | ||||
145 | </property> | ||||
146 | <property name="toolTip"> | ||||
147 | <string><html><head/><body><p>Choose language profile. </p><p>Use &quot;Custom&quot; profile to modify parser command-line arguments</p></body></html></string> | ||||
148 | </property> | ||||
149 | <item> | ||||
150 | <property name="text"> | ||||
151 | <string>Custom</string> | ||||
152 | </property> | ||||
153 | </item> | ||||
154 | <item> | ||||
155 | <property name="text"> | ||||
156 | <string>c99</string> | ||||
157 | </property> | ||||
158 | </item> | ||||
159 | <item> | ||||
160 | <property name="text"> | ||||
161 | <string>gnu99</string> | ||||
162 | </property> | ||||
163 | </item> | ||||
164 | <item> | ||||
165 | <property name="text"> | ||||
166 | <string>c11</string> | ||||
167 | </property> | ||||
168 | </item> | ||||
169 | <item> | ||||
170 | <property name="text"> | ||||
171 | <string>gnu11</string> | ||||
172 | </property> | ||||
173 | </item> | ||||
174 | <item> | ||||
175 | <property name="text"> | ||||
176 | <string>c++03</string> | ||||
Just noticed: That does not belong here, does it? We're in the C profile selection. kfunk: Just noticed: That does not belong here, does it? We're in the C profile selection. | |||||
Well, I actually think that it's quite useful. E.g. I've seen a couple of project that started as plain C, but with time were ported to C++, without changing file extensions. So IMO it's ok to keep it here. Though I agree that it's not a common use case, and those items at least should be moved at the bottom of the list or masked otherwise... skalinichev: Well, I actually think that it's quite useful. E.g. I've seen a couple of project that started… | |||||
177 | </property> | ||||
178 | </item> | ||||
179 | <item> | ||||
180 | <property name="text"> | ||||
181 | <string>c++11</string> | ||||
kfunk: Dito | |||||
182 | </property> | ||||
183 | </item> | ||||
184 | <item> | ||||
185 | <property name="text"> | ||||
186 | <string>c++14</string> | ||||
kfunk: Dito | |||||
187 | </property> | ||||
188 | </item> | ||||
189 | </widget> | ||||
190 | </item> | ||||
191 | <item row="4" column="0"> | ||||
192 | <widget class="QLabel" name="argumentsLabel_2"> | ||||
193 | <property name="text"> | ||||
194 | <string>C co&mmand-line arguments:</string> | ||||
195 | </property> | ||||
196 | <property name="buddy"> | ||||
197 | <cstring>parserOptionsC</cstring> | ||||
198 | </property> | ||||
199 | </widget> | ||||
200 | </item> | ||||
201 | <item row="4" column="1"> | ||||
202 | <widget class="QLineEdit" name="parserOptionsC"> | ||||
203 | <property name="minimumSize"> | ||||
204 | <size> | ||||
205 | <width>100</width> | ||||
206 | <height>0</height> | ||||
207 | </size> | ||||
208 | </property> | ||||
209 | </widget> | ||||
210 | </item> | ||||
211 | <item row="2" column="0"> | ||||
212 | <spacer name="verticalSpacer_2"> | ||||
213 | <property name="orientation"> | ||||
214 | <enum>Qt::Vertical</enum> | ||||
215 | </property> | ||||
216 | <property name="sizeHint" stdset="0"> | ||||
217 | <size> | ||||
218 | <width>20</width> | ||||
219 | <height>40</height> | ||||
220 | </size> | ||||
221 | </property> | ||||
222 | </spacer> | ||||
223 | </item> | ||||
112 | </layout> | 224 | </layout> | ||
113 | </widget> | 225 | </widget> | ||
114 | </item> | 226 | </item> | ||
115 | <item row="1" column="0"> | 227 | <item row="2" column="0"> | ||
116 | <spacer name="verticalSpacer"> | 228 | <spacer name="verticalSpacer"> | ||
117 | <property name="orientation"> | 229 | <property name="orientation"> | ||
118 | <enum>Qt::Vertical</enum> | 230 | <enum>Qt::Vertical</enum> | ||
119 | </property> | 231 | </property> | ||
120 | <property name="sizeHint" stdset="0"> | 232 | <property name="sizeHint" stdset="0"> | ||
121 | <size> | 233 | <size> | ||
122 | <width>20</width> | 234 | <width>20</width> | ||
123 | <height>406</height> | 235 | <height>406</height> | ||
Show All 9 Lines |
wrap the *.h in <code> or <tt> tags