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