1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
|
/*
Copyright (C) 2018-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/
/*
WARNING: This file was generated by the dkct program (see
http://dktools.sourceforge.net/ for details).
Changes you make here will be lost if dkct is run again!
You should modify the original source and run dkct on it.
Original source: Bmpp4Frame.wxc
*/
/** @file Bmpp4Frame.h Header file for the Bmpp4Frame module.
*/
#ifndef BMPP4FRAME_H_INCLUDED
/** Avoid multiple inclusions. */
#define BMPP4FRAME_H_INCLUDED 1
#line 273 "Bmpp4Frame.wxc"
#line 277 "Bmpp4Frame.wxc"
class Bmpp4Frame : public Dk4WxFrame
{
private:
/** Event table for frame.
*/
#if wxCHECK_VERSION(3,0,0)
wxDECLARE_EVENT_TABLE();
#else
DECLARE_EVENT_TABLE()
#endif
private:
/** Start time.
*/
dk4_time_t firsttime;
/** We are already correcting GUI, no recursive attempt.
*/
bool bIsCorrecting;
protected:
/** Auto start controller.
*/
Dk4WxAutostartController oAsc;
/** Text color for status text on error.
*/
wxColour cRed;
/** Text color for status text on success.
*/
wxColour cGreen;
/** Normal text color.
*/
wxColour cBlack;
/** Localized texts.
*/
wxChar const * const *sTexts;
/** Non-localized texts.
*/
wxChar const * const *sNlWx;
/** Non-localized texts.
*/
dkChar const * const *sNlDk;
/* __CHANGE__ 011: Add further member variables.
*/
/** Graphics output configuration.
*/
dk4_gra_conf_t graconf;
/** Known paper sizes.
*/
dk4_paper_size_t *pPaperSizes;
/** Paper sizes.
*/
wxArrayString asPaperSizes;
/** Directory name.
*/
wxString sDirname;
/** Number of paper sizes in asPaperSizes.
*/
size_t szPaperSizes;
/** Restore and save graphics conversion settings.
*/
bool bRestoreGx;
/** Restore and save Make mode setting.
*/
bool bRestoreMake;
/** Restore and save location to process.
*/
bool bRestoreLocation;
/** Make mode setting from options, if not restored.
*/
bool bMakeMode;
/** Automatically start.
*/
bool bAutorun;
/** Flag: Processing idle events.
*/
bool bActive;
/** Flag: GUI ok.
*/
bool dkctGUILayoutOK;
/** Contents panel.
*/
wxPanel *dkctGUIContentsPanel;
/** GUI element mainSizer.
*/
#line 90 "Bmpp4Frame.wxc"
wxBoxSizer *mainSizer;
/** GUI element mbMain.
*/
#line 20 "Bmpp4Frame.wxc"
wxMenuBar *mbMain;
/** GUI element tbMain.
*/
#line 74 "Bmpp4Frame.wxc"
wxToolBar *tbMain;
/** GUI element menuFile.
*/
#line 26 "Bmpp4Frame.wxc"
wxMenu *menuFile;
/** GUI element menuConversion.
*/
#line 31 "Bmpp4Frame.wxc"
wxMenu *menuConversion;
/** GUI element menuExtras.
*/
#line 50 "Bmpp4Frame.wxc"
wxMenu *menuExtras;
/** GUI element menuHelp.
*/
#line 59 "Bmpp4Frame.wxc"
wxMenu *menuHelp;
/** GUI element miFileDirectory.
*/
#line 35 "Bmpp4Frame.wxc"
wxMenuItem *miFileDirectory;
/** GUI element miFileExit.
*/
#line 40 "Bmpp4Frame.wxc"
wxMenuItem *miFileExit;
/** GUI element miConversionRun.
*/
#line 45 "Bmpp4Frame.wxc"
wxMenuItem *miConversionRun;
/** GUI element miExtrasOptionReset.
*/
#line 54 "Bmpp4Frame.wxc"
wxMenuItem *miExtrasOptionReset;
/** GUI element miHelpAbout.
*/
#line 64 "Bmpp4Frame.wxc"
wxMenuItem *miHelpAbout;
/** GUI element miHelpContents.
*/
#line 69 "Bmpp4Frame.wxc"
wxMenuItem *miHelpContents;
/** GUI element bChooseDir.
*/
#line 78 "Bmpp4Frame.wxc"
wxToolBarToolBase *bChooseDir;
/** GUI element bRunConversion.
*/
#line 84 "Bmpp4Frame.wxc"
wxToolBarToolBase *bRunConversion;
/** GUI element verticalSizer.
*/
#line 96 "Bmpp4Frame.wxc"
wxBoxSizer *verticalSizer;
/** GUI element contentsSizer.
*/
#line 104 "Bmpp4Frame.wxc"
wxGridBagSizer *contentsSizer;
/** GUI element staticline0.
*/
#line 148 "Bmpp4Frame.wxc"
wxStaticLine *staticline0;
/** GUI element lDirectoryName.
*/
#line 151 "Bmpp4Frame.wxc"
wxStaticText *lDirectoryName;
/** GUI element staticline1.
*/
#line 156 "Bmpp4Frame.wxc"
wxStaticLine *staticline1;
/** GUI element cbMakeMode.
*/
#line 159 "Bmpp4Frame.wxc"
wxCheckBox *cbMakeMode;
/** GUI element cbColorOutput.
*/
#line 163 "Bmpp4Frame.wxc"
wxCheckBox *cbColorOutput;
/** GUI element lRgbToGray.
*/
#line 168 "Bmpp4Frame.wxc"
wxStaticText *lRgbToGray;
/** GUI element chRgbToGray.
*/
#line 171 "Bmpp4Frame.wxc"
wxChoice *chRgbToGray;
/** GUI element lOutputMode.
*/
#line 175 "Bmpp4Frame.wxc"
wxStaticText *lOutputMode;
/** GUI element chOutputMode.
*/
#line 178 "Bmpp4Frame.wxc"
wxChoice *chOutputMode;
/** GUI element cbImgInterpolation.
*/
#line 184 "Bmpp4Frame.wxc"
wxCheckBox *cbImgInterpolation;
/** GUI element lPsLevel.
*/
#line 189 "Bmpp4Frame.wxc"
wxStaticText *lPsLevel;
/** GUI element chPsLevel.
*/
#line 192 "Bmpp4Frame.wxc"
wxChoice *chPsLevel;
/** GUI element cbDsc.
*/
#line 197 "Bmpp4Frame.wxc"
wxCheckBox *cbDsc;
/** GUI element cbLzw.
*/
#line 201 "Bmpp4Frame.wxc"
wxCheckBox *cbLzw;
/** GUI element cbDct.
*/
#line 205 "Bmpp4Frame.wxc"
wxCheckBox *cbDct;
/** GUI element lPaperSize.
*/
#line 209 "Bmpp4Frame.wxc"
wxStaticText *lPaperSize;
/** GUI element chPaperSizes.
*/
#line 212 "Bmpp4Frame.wxc"
wxChoice *chPaperSizes;
/** GUI element cbRotation.
*/
#line 217 "Bmpp4Frame.wxc"
wxCheckBox *cbRotation;
/** GUI element cbDctInterpolation.
*/
#line 221 "Bmpp4Frame.wxc"
wxCheckBox *cbDctInterpolation;
/** GUI element lFinishing.
*/
#line 225 "Bmpp4Frame.wxc"
wxStaticText *lFinishing;
/** GUI element chFinishing.
*/
#line 228 "Bmpp4Frame.wxc"
wxChoice *chFinishing;
/** GUI element cbAnBpc.
*/
#line 233 "Bmpp4Frame.wxc"
wxCheckBox *cbAnBpc;
/** GUI element lResolution.
*/
#line 237 "Bmpp4Frame.wxc"
wxStaticText *lResolution;
/** GUI element chResolution.
*/
#line 240 "Bmpp4Frame.wxc"
wxChoice *chResolution;
/** GUI element tfResolution.
*/
#line 246 "Bmpp4Frame.wxc"
wxTextCtrl *tfResolution;
/** GUI element cbAnColor.
*/
#line 250 "Bmpp4Frame.wxc"
wxCheckBox *cbAnColor;
/** GUI element lBackground.
*/
#line 254 "Bmpp4Frame.wxc"
wxStaticText *lBackground;
/** GUI element ccBackground.
*/
#line 257 "Bmpp4Frame.wxc"
Dk4WxColourView *ccBackground;
/** GUI element cbBackground.
*/
#line 261 "Bmpp4Frame.wxc"
wxCheckBox *cbBackground;
/** GUI element cbAnAlpha.
*/
#line 265 "Bmpp4Frame.wxc"
wxCheckBox *cbAnAlpha;
#line 378 "Bmpp4Frame.wxc"
public:
/** Constructor.
@param wxid Window ID.
@param applicationHelper Application helper object.
@param hc Help controller for online help.
@param localizedTexts Localized wxChar texts.
@param nlWx Non-localized wxChar texts.
@param nlDk Non-localized dkChar texts.
*/
Bmpp4Frame(
int wxid,
Dk4WxApplicationHelper *applicationHelper,
Dk4WxHelpController *hc,
wxChar const * const *localizedTexts,
wxChar const * const *nlWx,
dkChar const * const *nlDk,
dk4_gra_conf_t *pgc,
wxArrayString *pPapSiz,
wxChar *pDir,
size_t szPap,
bool bRGx,
bool bRMa,
bool bRLo,
bool bMak,
bool bRun,
dk4_paper_size_t *pSizes
);
/** Destructor.
*/
~Bmpp4Frame();
/** Check whether we can close the window.
@param isLast Flag: Last main window to close.
*/
bool
CanClose(bool isFinal);
/** Save current settings.
*/
void
SaveSettings(void);
/** Restore settings from previous session.
*/
void
RestoreSettings(void);
/** Modify enabled or disabled state of GUI components.
*/
void
CorrectGUI(void);
/** Check for documents whether paper size is usable.
@return True on success, false on error.
*/
bool
CheckPaperSizeForDocuments(void);
/** Run Conversion.
@return True on success, false on error.
*/
bool
RunConversion(void);
/** Handler for File/Exit.
@param event Event to process.
*/
void
OnQuit(wxCommandEvent & event);
/** Handler for Help/About.
@param event Event to process.
*/
void
OnAbout(wxCommandEvent & event);
/** Handler for Help/Contents.
@param event Event to process.
*/
void
OnHelpContents(wxCommandEvent & event);
/* __CHANGE__ 008: Remove OnIdle if no idle processing required.
*/
/** Handler for idle events.
*/
void
OnIdle(wxIdleEvent & event);
/* __CHANGE__ 017: Event handlers for further events.
*/
/** Handler for choose directory command.
*/
void
OnChooseDirectory(wxCommandEvent & event);
/** Handler for reset options command.
*/
void
OnResetOptions(wxCommandEvent & event);
/** Handler for run conversion command.
*/
void
OnRunConversion(wxCommandEvent & event);
/** Handler for output type change.
*/
void
OnOutputType(wxCommandEvent & event);
/** Handler for PS level change.
*/
void
OnPSLevel(wxCommandEvent & event);
/** Handler for resolution setting change.
*/
void
OnResolution(wxCommandEvent & event);
/** Handler for interpolation checkbox change.
*/
void
OnInterpolationChange(wxCommandEvent & event);
/** Handler for color output checkbox change.
*/
void
OnColorOutput(wxCommandEvent & event);
/* __CHANGE__ 014: Add further methods.
*/
/** Place configuration settings from graconf to GUI.
*/
void
ConfigurationToGUI(void);
/** Fill graconf from GUI.
*/
void
ConfigurationFromGUI(void);
};
#line 531 "Bmpp4Frame.wxc"
/* vim: set ai sw=4 ts=4 : */
#endif
|