Rev 714 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | paul | 1 | #ifndef PREFS_H |
2 | #define PREFS_H |
||
3 | |||
4 | #include <qdialog.h> |
||
5 | #include <qbuttongroup.h> |
||
6 | #include <qcombobox.h> |
||
7 | #include <qgroupbox.h> |
||
8 | #include <qlabel.h> |
||
9 | #include <qpushbutton.h> |
||
10 | #include <qradiobutton.h> |
||
11 | #include <qspinbox.h> |
||
12 | #include <qwidget.h> |
||
13 | #include <qlayout.h> |
||
14 | #include <qtoolbutton.h> |
||
15 | #include <qframe.h> |
||
16 | #include <qcheckbox.h> |
||
17 | #include <qwidgetstack.h> |
||
18 | #include <qpixmap.h> |
||
19 | #include <qslider.h> |
||
20 | #include <qlineedit.h> |
||
21 | #include <qfiledialog.h> |
||
22 | #include "linecombo.h" |
||
23 | #include "linkbutton.h" |
||
24 | #include "scribusdoc.h" |
||
25 | #include "scfonts.h" |
||
26 | #include "mspinbox.h" |
||
27 | #include "scribus.h" |
||
714 | cbradney | 28 | class FontCombo; |
731 | fschmid | 29 | class PolygonWidget; |
3 | paul | 30 | |
665 | cbradney | 31 | #include "langmgr.h" |
663 | cbradney | 32 | |
3 | paul | 33 | class Preferences : public QDialog |
34 | { |
||
188 | Franz | 35 | Q_OBJECT |
3 | paul | 36 | |
37 | public: |
||
188 | Franz | 38 | Preferences( QWidget* parent, preV *Vor); |
39 | ~Preferences(); |
||
663 | cbradney | 40 | |
41 | //const QString getSelectedGUILang( void ); |
||
42 | QString selectedGUILang; |
||
188 | Franz | 43 | void DrawRuler(); |
3 | paul | 44 | |
188 | Franz | 45 | QPushButton* buttonOK; |
46 | QPushButton* buttonCancel; |
||
47 | QWidgetStack* TabWidget3; |
||
48 | QListBox* TabListe; |
||
49 | QWidget* tab; |
||
50 | QGroupBox* Mouse; |
||
51 | QLabel* TextLabel1_2; |
||
52 | QLabel* TextLabel1_2_2; |
||
53 | QSpinBox* SpinBox3; |
||
54 | QSpinBox* SpinBox3_2; |
||
55 | QSpinBox* Recen; |
||
56 | QButtonGroup* ButtonGroup1; |
||
663 | cbradney | 57 | QLabel* guiLangLabel; |
188 | Franz | 58 | QLabel* TextGstil; |
59 | QLabel* TextGstil2; |
||
60 | QSpinBox* GFsize; |
||
663 | cbradney | 61 | QComboBox* guiLangCombo; |
188 | Franz | 62 | QComboBox* GUICombo; |
63 | QComboBox* UnitCombo; |
||
64 | QGroupBox* GroupBox20; |
||
65 | QGroupBox* GroupBox20a; |
||
66 | QGroupBox* GroupBox20b; |
||
67 | QGroupBox* GroupBox200; |
||
68 | QLabel* PfadText; |
||
69 | QLineEdit* Docs; |
||
70 | QToolButton* FileC; |
||
71 | QLabel* PfadText2; |
||
72 | QLineEdit* ProPfad; |
||
73 | QToolButton* FileC2; |
||
74 | QLabel* PfadText3; |
||
75 | QLineEdit* ScriptPfad; |
||
76 | QToolButton* FileC3; |
||
410 | Franz | 77 | QLabel* PfadText4; |
78 | QLineEdit* TemplateDir; |
||
79 | QToolButton* FileC4; |
||
188 | Franz | 80 | QButtonGroup* ButtonGroup2; |
81 | QButtonGroup* ButtonGroup5; |
||
263 | Franz | 82 | QButtonGroup* ButtonGroup6; |
188 | Franz | 83 | QRadioButton* RadioButton6; |
84 | QRadioButton* RadioButton7; |
||
263 | Franz | 85 | QRadioButton* RadioButton8; |
86 | QRadioButton* RadioButton9; |
||
188 | Franz | 87 | QWidget* tab_2; |
88 | QGroupBox* GroupBox1; |
||
89 | QLabel* TextLabel1; |
||
90 | QLabel* TextLabel2; |
||
91 | QLabel* TextLabel2g; |
||
92 | MSpinBox* SpinBox1; |
||
93 | MSpinBox* SpinBox2; |
||
94 | MSpinBox* SpinBox2g; |
||
95 | QGroupBox* GroupBox2; |
||
96 | QLabel* TextLabel3; |
||
97 | QLabel* TextLabel4; |
||
98 | QLabel* TextLabel4a; |
||
99 | QLabel* TextLabel4b; |
||
100 | QLabel* TextLabel4c; |
||
101 | QLabel* TextLabel4g; |
||
338 | Franz | 102 | QLabel* TextLabel4ba; |
188 | Franz | 103 | QPushButton* minColor; |
104 | QPushButton* MaxColor; |
||
105 | QPushButton* GuideColor; |
||
106 | QPushButton* PapColor; |
||
107 | QPushButton* RandColor; |
||
338 | Franz | 108 | QPushButton* BaseColor; |
188 | Franz | 109 | QWidget* tab_3; |
110 | QWidgetStack* Fram; |
||
111 | QLabel* TextLabel2_2; |
||
112 | QLabel* TextLabel1_3; |
||
113 | FontCombo* FontComb; |
||
114 | QComboBox* SizeCombo; |
||
115 | QComboBox* ForegroundT; |
||
116 | QLabel* TextLabelT1; |
||
117 | QLabel* TextLabel1_4; |
||
118 | QWidget* tab_4; |
||
119 | QGroupBox* GroupBox4_2; |
||
120 | QLabel* TextLabel2_3_2; |
||
121 | QLabel* TextLabel1_5_2; |
||
122 | QSpinBox* VTiefW; |
||
123 | QSpinBox* VTiefWSc; |
||
124 | QGroupBox* GroupBox4; |
||
125 | QLabel* TextLabel2_3; |
||
126 | QLabel* TextLabel1_5; |
||
127 | QSpinBox* VHochW; |
||
128 | QSpinBox* VHochWSc; |
||
129 | QGroupBox* GroupBox4_3; |
||
130 | QLabel* TextLabel2_3_3; |
||
131 | QSpinBox* SmallCaps; |
||
132 | QGroupBox* GroupBox4_3a; |
||
133 | QLabel* TextLabel2_3_3a; |
||
134 | QSpinBox* AutoLineV; |
||
135 | QToolButton* TextButton; |
||
136 | QToolButton* BildButton; |
||
137 | QToolButton* RectButton; |
||
138 | QToolButton* OvalButton; |
||
139 | QToolButton* LineButton; |
||
140 | QToolButton* ZoomButton; |
||
141 | QToolButton* PolyButton; |
||
142 | QFrame* ToolFrame; |
||
143 | QFrame* ToolFrame2; |
||
144 | QLabel* TextLabelT21; |
||
145 | QLabel* TextLabelT22; |
||
146 | QLabel* TextLabelT23; |
||
147 | QLabel* TextLabelT24; |
||
148 | QLabel* TextLabelT25; |
||
149 | QLabel* TextLabelT26; |
||
150 | QComboBox* Foreground; |
||
151 | QLabel* TextCol; |
||
152 | QLabel* TextGap; |
||
153 | QSpinBox* TextColVal; |
||
154 | MSpinBox* TextGapVal; |
||
155 | QSpinBox* Shade2; |
||
156 | QComboBox* Background; |
||
157 | QSpinBox* Shade; |
||
158 | LineCombo* Linestyle; |
||
159 | MSpinBox* LineW; |
||
160 | QFrame* ToolFrame3; |
||
161 | QLabel* TextLabelT31; |
||
162 | QLabel* TextLabelT32; |
||
163 | QLabel* TextLabelT35; |
||
164 | QLabel* TextLabelT36; |
||
165 | QComboBox* Foreground2; |
||
166 | QSpinBox* Shade22; |
||
167 | LineCombo* Linestyle2; |
||
168 | MSpinBox* LineW2; |
||
169 | QFrame* ToolFrame4; |
||
170 | QLabel* TextLabelT42; |
||
171 | QLabel* TextLabelT43; |
||
172 | QLabel* TextLabelT44; |
||
173 | QSpinBox* MinMag; |
||
174 | QSpinBox* MaxMag; |
||
175 | QSpinBox* StepMag; |
||
176 | QButtonGroup* ToolFrame5; |
||
177 | QLabel* TextLabelT51; |
||
178 | QLabel* TextLabelT52; |
||
179 | QLabel* TextLabelT53; |
||
180 | QLabel* TextLabelT54; |
||
181 | QRadioButton* FreeScale; |
||
182 | QRadioButton* FrameScale; |
||
183 | QCheckBox* Aspect; |
||
184 | QSpinBox* XScale; |
||
185 | QSpinBox* YScale; |
||
186 | LinkButton* Kette; |
||
187 | QComboBox* BackgroundP; |
||
188 | QSpinBox* ShadeP; |
||
189 | QLabel* TextLabelP; |
||
190 | QWidget* tab_5; |
||
191 | QGroupBox* Saving; |
||
192 | QCheckBox* SaveAtQuit; |
||
193 | QGroupBox* Preview; |
||
194 | QComboBox* PreviewSize; |
||
195 | QFrame* Frame6; |
||
196 | QWidget* tab_6; |
||
197 | QGroupBox* GroupBox10; |
||
198 | QCheckBox* SidebySide; |
||
199 | QCheckBox* RandFarb; |
||
200 | QFrame* ToolFrame6; |
||
731 | fschmid | 201 | PolygonWidget* polyWidget; |
188 | Franz | 202 | QWidget* tab_7; |
203 | QButtonGroup* GroupSize; |
||
204 | QLabel* GZText2; |
||
205 | QComboBox* GZComboF; |
||
206 | QComboBox* GZComboO; |
||
207 | QLabel* GZText1; |
||
208 | QLabel* GZText3; |
||
209 | QLabel* GZText4; |
||
210 | MSpinBox* Breite; |
||
211 | MSpinBox* Hoehe; |
||
212 | QCheckBox* Doppelseiten; |
||
213 | QCheckBox* Linkszuerst; |
||
214 | QGroupBox* GroupRand; |
||
215 | QLabel* GRText3; |
||
216 | MSpinBox* TopR; |
||
217 | MSpinBox* BottomR; |
||
218 | MSpinBox* RightR; |
||
219 | MSpinBox* LeftR; |
||
220 | QLabel* GRText2; |
||
221 | QLabel* GRText1; |
||
222 | QLabel* GRText4; |
||
223 | QCheckBox *UsePDFTrans; |
||
224 | QGroupBox* GroupAS; |
||
225 | QCheckBox* ASon; |
||
226 | QLabel* ASText; |
||
227 | QSpinBox* ASTime; |
||
228 | QGroupBox* CaliGroup; |
||
229 | QLabel* CaliText; |
||
230 | QLabel* CaliRuler; |
||
231 | QSlider* CaliSlider; |
||
232 | QLabel* CaliAnz; |
||
220 | Franz | 233 | QWidget* ExtTool; |
234 | QGroupBox* groupGS; |
||
235 | QLabel* GSText; |
||
236 | QLineEdit* GSName; |
||
237 | QCheckBox* GSantiText; |
||
238 | QCheckBox* GSantiGraph; |
||
239 | QGroupBox* groupGimp; |
||
240 | QLabel* GimpText; |
||
241 | QLineEdit* GimpName; |
||
222 | Franz | 242 | QWidget* Misc; |
243 | QGroupBox* groupPrint; |
||
244 | QCheckBox* ClipMarg; |
||
344 | Franz | 245 | QCheckBox* DoGCR; |
241 | Franz | 246 | MSpinBox* BaseGrid; |
247 | QLabel* TextLabel2_3_3b; |
||
248 | MSpinBox* BaseOffs; |
||
249 | QLabel* TextLabel2_3_3c; |
||
188 | Franz | 250 | |
251 | SCFonts *fon; // can't use a reference, and can't copy whole structure... |
||
252 | double Umrech; |
||
253 | double PFactor; |
||
254 | QColor Cmin; |
||
255 | QColor Cmax; |
||
256 | QColor Crand; |
||
257 | QColor Cpaper; |
||
258 | QColor Cgui; |
||
338 | Franz | 259 | QColor Cbase; |
188 | Franz | 260 | double Pagebr; |
261 | double Pageho; |
||
262 | double RandT; |
||
263 | double RandB; |
||
264 | double RandL; |
||
265 | double RandR; |
||
266 | int Einheit; |
||
267 | double DisScale; |
||
268 | ScribusApp *ap; |
||
3 | paul | 269 | |
663 | cbradney | 270 | |
3 | paul | 271 | public slots: |
663 | cbradney | 272 | |
188 | Franz | 273 | virtual void changeMaColor(); |
274 | virtual void changeMicolor(); |
||
275 | void ChangeDocs(); |
||
276 | void ChangeProfs(); |
||
277 | void ChangeScripts(); |
||
410 | Franz | 278 | void ChangeTemplates(); |
188 | Franz | 279 | void ChangeScaling(); |
263 | Franz | 280 | void ChangeGrid(); |
188 | Franz | 281 | void setDS(); |
282 | void setBreite(int v); |
||
283 | void setHoehe(int v); |
||
284 | void setTop(int v); |
||
285 | void setBottom(int v); |
||
286 | void setLeft(int v); |
||
287 | void setRight(int v); |
||
288 | void setSize(int gr); |
||
289 | void setOrien(int ori); |
||
290 | void changePapColor(); |
||
291 | void changeRandColor(); |
||
292 | void changeGuideColor(); |
||
338 | Franz | 293 | void changeBaseColor(); |
188 | Franz | 294 | void SetSample(); |
295 | void SetTool(); |
||
296 | void ToggleKette(); |
||
297 | void HChange(); |
||
298 | void VChange(); |
||
299 | void UnitChange(); |
||
300 | void SetDisScale(); |
||
3 | paul | 301 | |
302 | protected: |
||
188 | Franz | 303 | QVBoxLayout* PrefsLayout; |
304 | QHBoxLayout* PrefsLayout2; |
||
305 | QGridLayout* tabLayout; |
||
306 | QGridLayout* ButtonGroup1Layout; |
||
307 | QHBoxLayout* GroupBox20Layout; |
||
308 | QHBoxLayout* GroupBox20aLayout; |
||
309 | QGridLayout* GroupBox20bLayout; |
||
310 | QGridLayout* GroupBox200Layout; |
||
311 | QHBoxLayout* MouseLayout; |
||
312 | QGridLayout* Layout5; |
||
313 | QGridLayout* tabLayout_2; |
||
314 | QHBoxLayout* ButtonGroup5Layout; |
||
263 | Franz | 315 | QHBoxLayout* ButtonGroup6Layout; |
188 | Franz | 316 | QVBoxLayout* Layout7; |
263 | Franz | 317 | QVBoxLayout* Layout18; |
188 | Franz | 318 | QHBoxLayout* GroupBox1Layout; |
319 | QGridLayout* Layout10; |
||
320 | QHBoxLayout* GroupBox2Layout; |
||
321 | QGridLayout* Layout11; |
||
322 | QGridLayout* tabLayout_3; |
||
323 | QHBoxLayout* GroupBox4_2Layout; |
||
324 | QGridLayout* Layout12; |
||
325 | QHBoxLayout* GroupBox4Layout; |
||
326 | QGridLayout* Layout13; |
||
327 | QHBoxLayout* GroupBox4_3Layout; |
||
328 | QHBoxLayout* Layout14; |
||
241 | Franz | 329 | QGridLayout* GroupBox4_3aLayout; |
188 | Franz | 330 | QHBoxLayout* tabLayout_4; |
331 | QHBoxLayout* ButtonGroup2Layout; |
||
332 | QGridLayout* Layout16; |
||
333 | QHBoxLayout* ToolFrameLayout; |
||
334 | QHBoxLayout* ToolFrame2Layout; |
||
335 | QHBoxLayout* ToolFrame3Layout; |
||
336 | QHBoxLayout* ToolFrame4Layout; |
||
337 | QHBoxLayout* ToolFrame5Layout; |
||
338 | QGridLayout* Layout15; |
||
339 | QGridLayout* Layout15a; |
||
340 | QGridLayout* Layout15b; |
||
341 | QGridLayout* Layout15c; |
||
342 | QGridLayout* Layout15d; |
||
343 | QGridLayout* tabLayout_5; |
||
344 | QHBoxLayout* SavingLayout; |
||
345 | QHBoxLayout* PreviewLayout; |
||
346 | QHBoxLayout* tabLayout_6; |
||
347 | QHBoxLayout* Layout_6b; |
||
348 | QVBoxLayout* GroupBox10Layout; |
||
349 | QHBoxLayout* Layout3; |
||
350 | QHBoxLayout* PolygonPropsLayout; |
||
351 | QHBoxLayout* tabLayout_7; |
||
352 | QVBoxLayout* Layout21; |
||
353 | QVBoxLayout* Layout21b; |
||
354 | QVBoxLayout* GroupSizeLayout; |
||
355 | QGridLayout* Layout6; |
||
356 | QHBoxLayout* Layout5_2; |
||
357 | QHBoxLayout* Layout8; |
||
358 | QGridLayout* GroupRandLayout; |
||
359 | QGridLayout* GroupASLayout; |
||
360 | QVBoxLayout* CaliGroupLayout; |
||
361 | QHBoxLayout* layout15ca; |
||
220 | Franz | 362 | QVBoxLayout* ExtToolLayout; |
363 | QVBoxLayout* groupGSLayout; |
||
364 | QHBoxLayout* GSlayout; |
||
365 | QHBoxLayout* groupGimpLayout; |
||
222 | Franz | 366 | QVBoxLayout* MiscLayout; |
367 | QVBoxLayout* groupPrintLayout; |
||
663 | cbradney | 368 | |
369 | private slots: |
||
370 | void setSelectedGUILang( const QString &newLang ); |
||
371 | |||
372 | private: |
||
373 | LanguageManager langMgr; |
||
3 | paul | 374 | }; |
375 | |||
376 | #endif // PREFS_H |