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