summaryrefslogtreecommitdiffstats
path: root/krusader/Konfigurator/konfiguratorpage.h
blob: 9464f93f220bc5b8d6096467a69a4833e1d1d650 (plain)
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
/* **************************************************************************
                       konfiguratorpage.h  -  description
                             -------------------
    copyright            : (C) 2003 by Csaba Karai
    e-mail               : krusader@users.sourceforge.net
    web site             : http://krusader.sourceforge.net
 ---------------------------------------------------------------------------
  Description
 ***************************************************************************

  A

     db   dD d8888b. db    db .d8888.  .d8b.  d8888b. d88888b d8888b.
     88 ,8P' 88  `8D 88    88 88'  YP d8' `8b 88  `8D 88'     88  `8D
     88,8P   88oobY' 88    88 `8bo.   88ooo88 88   88 88ooooo 88oobY'
     88`8b   88`8b   88    88   `Y8b. 88~~~88 88   88 88~~~~~ 88`8b
     88 `88. 88 `88. 88b  d88 db   8D 88   88 88  .8D 88.     88 `88.
     YP   YD 88   YD ~Y8888P' `8888Y' YP   YP Y8888D' Y88888P 88   YD

                                                     H e a d e r    F i l e

 ***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef __KONFIGURATOR_PAGE_H__
#define __KONFIGURATOR_PAGE_H__
 
#include "konfiguratoritems.h"
#include <tqframe.h>
#include <tqptrlist.h>
#include <tqgroupbox.h>
#include <tqlabel.h>
#include <tqlayout.h>

struct KONFIGURATOR_CHECKBOX_PARAM;
struct KONFIGURATOR_NAME_VALUE_TIP;
struct KONFIGURATOR_NAME_VALUE_PAIR;

/**
  * KonfiguratorPage is responsible for handling pages in Konfigurator.
  * It provides simple methods for create and manage Konfigurator pages.
  *
  * @short The base class of a page in Konfigurator
  */  
class KonfiguratorPage : public TQFrame
{
  Q_OBJECT
  TQ_OBJECT
   
public:
/**
  * The constructor of the KonfiguratorPage class.
  *
  * @param firstTime    this parameter is true if it is the first call of Konfigurator
  * @param tqparent       reference to the tqparent widget
  * @param name         name of the newly generated Konfigurator page widget
  */
  KonfiguratorPage( bool firstTime, TQWidget* tqparent,  const char* name );

  /**
    * Applies the changes in the Konfigurator page.
    *
    * Writes out all relevent information to the konfiguration object and synchronizes
    * it with the file storage (hard disk, krusaderrc file). This function calls the apply()
    * method of each konfigurator item and finally performs the synchronization.
    *
    * @return             a boolean value indicates that Krusader restart is needed for the correct change
    */
  virtual bool apply();

  /**
    * Sets every konfigurator item to its default value on the page.
    *
    * This method calls the setDefaults() method of each konfigurator item. This function
    * doesn't modify the current configuration, only the values of the GUI items. The
    * apply() method must be called for finalizing the changes.
    */
  virtual void setDefaults();

  /**
    * Reloads the original value of each konfigurator item from the configuration object.
    *
    * This function calls the loadInitialValue() method of each konfigurator item.
    * Used to rollback the changes on the konfigurator page. Called if the user
    * responds 'No' to the "Apply changes" question.
    */
  virtual void loadInitialValues();

  /**
    * Checks whether the page was changed.
    *
    * This function calls the isChanged() method of each konfigurator item and
    * performs logical OR operation on them. Actually, this function returns true
    * if any of the konfigurator items was changed.
    *
    * @return             true if at least one of the konfigurator items was changed
    */
  virtual bool isChanged();

  /**
    * Flag, indicates the first call of Konfigurator
    * @return             true if konfigurator was started at the first time
    */
  inline  bool isFirst()   {return firstCall;}

  /**
    * This method is used to query the active subpage from the Konfigurator
    * @return             the active page (by default the first page)
    */
  virtual int activeSubPage() {return FIRST_PAGE;}

  /**
    * Adds a new checkbox item to the page.
    * <br>The checkbox widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KonfiguratorCheckBox *myCheckBox = createCheckBox( "class", "name", false, tqparentWidget );<br>
    * myLayout->addWidget( myCheckBox, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The item name used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the checkbox
    * @param  text        The text field of the checkbox
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  toolTip     Tooltip used for this checkbox
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created checkbox
    */
  KonfiguratorCheckBox    *createCheckBox( TQString cls, TQString name, bool dflt,
                                           TQString text, TQWidget *tqparent=0, bool rst=false,
                                           TQString toolTip = TQString(), int pg=FIRST_PAGE );

  /**
    * Adds a new spinbox item to the page.
    * <br>The spinbox widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KonfiguratorSpinBox *mySpinBox = createSpinBox( "class", "name", 10, 1, 100, tqparentWidget );<br>
    * myLayout->addWidget( mySpinBox, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The item name used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the spinbox
    * @param  min         The minimum value of the spinbox
    * @param  max         The maximum value of the spinbox
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created spinbox
    */
  KonfiguratorSpinBox     *createSpinBox(  TQString cls, TQString name, int dflt, int min,
                                           int max, TQWidget *tqparent = 0, bool rst = false, int pg=FIRST_PAGE );

  /**
    * Adds a new editbox item to the page.
    * <br>The editbox widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KonfiguratorEditBox *myEditBox = createEditBox( "class", "name", "default", tqparentWidget );<br>
    * myLayout->addWidget( myEditBox, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The itemname used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the editbox
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created editbox
    */
  KonfiguratorEditBox     *createEditBox(  TQString cls, TQString name, TQString dflt,
                                           TQWidget *tqparent=0, bool rst=false, int pg=FIRST_PAGE );

  /**
    * Adds a new listbox item to the page.
    * <br>The listbox widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * TQStringList valueList;<br>
    * valueList += "item";<br>
    * KonfiguratorListBox *myListBox = createListBox( "class", "name", valueList, tqparentWidget );<br>
    * myLayout->addWidget( myListBox, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The itemname used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the listbox
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created editbox
    */
  KonfiguratorListBox     *createListBox(  TQString cls, TQString name, TQStringList dflt,
                                           TQWidget *tqparent=0, bool rst=false, int pg=FIRST_PAGE );

  /**
    * Adds a new URL requester item to the page.
    * <br>The URL requester widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KonfiguratorURLRequester *myURLRequester = createURLRequester( "class", "name", "default", tqparentWidget );<br>
    * myLayout->addWidget( myURLRequester, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The itemname used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the URL requester
    * @param  text        The text field of the URL requester
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created URL requester
    */
  KonfiguratorURLRequester *createURLRequester(  TQString cls, TQString name,
                                           TQString dflt, TQWidget *tqparent, bool rst, int pg=FIRST_PAGE );

  /**
    * Adds a new font chooser item to the page.
    * <br>The font chooser widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KonfiguratorFontChooser *myFontChooser = createFontChooser( "class", "name", new TQFont(), tqparentWidget );<br>
    * myLayout->addWidget( myFontChooser, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The item name used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the font chooser
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created font chooser
    */
  KonfiguratorFontChooser *createFontChooser(  TQString cls, TQString name, TQFont *dflt,
                                           TQWidget *tqparent=0, bool rst=false, int pg=FIRST_PAGE );

  /**
    * Adds a new combobox item to the page.
    * <br>The combobox widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KONFIGURATOR_NAME_VALUE_PAIR comboInfo[] =<br>
    * &nbsp;{{ i18n( "combo text1" ), "value1" },<br>
    * &nbsp;&nbsp;{ i18n( "combo text2" ), "value2" },<br>
    * &nbsp;&nbsp;{ i18n( "combo text3" ), "value3" }};<br><br>
    * KonfiguratorComboBox *myComboBox = createComboBox( "class", "name", "value2", comboInfo, 3, tqparentWidget );<br>
    * myLayout->addWidget( myComboBox, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The item name used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the combobox
    * @param  params      Pointer to the name-value pair array (combo elements)
    * @param  paramNum    Number of the combobox elements
    * @param  text        The text field of the combobox
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  editable    Flag indicates that the combo can be edited
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created combobox
    */
  KonfiguratorComboBox    *createComboBox(  TQString cls, TQString name, TQString dflt,
                                           KONFIGURATOR_NAME_VALUE_PAIR *params, int paramNum,
                                           TQWidget *tqparent=0, bool rst=false, bool editable=false, int pg=FIRST_PAGE );

  /**
    * Creates a frame on the page.
    *
    * Sample:<br><br>
    * TQGroupBox *myGroup = createFrame( i18n( "MyFrameName" ), tqparentWidget, "frameName" );<br>
    * myLayout->addWidget( myGroup, 0, 0 );
    *
    * @param  text        The text written out onto the frame
    * @param  tqparent      Reference to the tqparent widget
    * @param  widgetName  The name of the widget
    *
    * @return             reference to the newly created frame
    */
  TQGroupBox               *createFrame( TQString text = TQString(), TQWidget *tqparent=0,
                                           const char *widgetName=0 );

  /**
    * Creates a new TQGridLayout element and sets its margins.
    *
    * Sample:<br><br>
    * TQGroupBox *myGroup = createFrame( i18n( "MyFrameName" ), tqparentWidget, "frameName" );<br>
    * TQGridLayout *myLayout = createGridLayout( myGroup->tqlayout() );<br>
    * myLayout->addWidget( myGroup, 0, 0 );
    *
    * @param  tqparent      Reference to the tqparent tqlayout
    *
    * @return             reference to the newly created TQGridLayout
    */
  TQGridLayout             *createGridLayout( TQLayout *tqparent );

  /**
    * Adds a new label to a grid tqlayout.
    *
    * Sample:<br><br>
    * TQGroupBox *myGroup = createFrame( i18n( "MyFrameName" ), tqparentWidget, "frameName" );<br>
    * TQGridLayout *myLayout = createGridLayout( myGroup->tqlayout() );<br>
    * addLabel( myLayout, 0, 0, i18n( "Hello world!" ), myGroup, "myLabel" );<br>
    * mainLayout->addWidget( myGroup, 0, 0 );
    *
    * @param  tqlayout      The grid tqlayout on which the item will be placed
    * @param  x           the column to which the label will be placed
    * @param  y           the row to which the label will be placed
    * @param  label       the text of the label
    * @param  tqparent      Reference to the tqparent widget
    * @param  widgetName  The name of the newly generated label widget
    *
    * @return             reference to the newly created label
    */
  TQLabel                  *addLabel( TQGridLayout *tqlayout, int x, int y, TQString label,
                                           TQWidget *tqparent=0, const char *widgetName=0 );

  /**
    * Creates a spacer object (for justifying in TQHBox).
    *
    * Sample:<br><br>
    * TQHBox *hbox = new TQHBox( myParent, "hbox" );<br>
    * createSpinBox( "class", "spin", 5, 1, 10, hbox );<br>
    * createSpacer( hbox, "mySpacer" );<br>
    * myLayout->addWidget( hbox, 0, 0 );
    *
    * @param  tqparent      Reference to the tqparent widget
    * @param  widgetName  The name of the newly generated label widget
    *
    * @return             reference to the newly created spacer widget
    */
  TQWidget                 *createSpacer( TQWidget *tqparent=0, const char *widgetName=0 );

  /**
    * Creates a separator line.
    *
    * Sample:<br><br>
    * TQFrame *myLine = createLine( myParent, "myLine" );<br>
    * myLayout->addWidget( myLine, 1, 0 );<br>
    *
    * @param  tqparent      Reference to the tqparent widget
    * @param  widgetName  The name of the newly generated label widget
    * @param  vertical    Means vertical line
    *
    * @return             reference to the newly created spacer widget
    */
  TQFrame                  *createLine( TQWidget *tqparent=0, const char *widgetName=0, bool vertical = false );

  /**
    * Creates a checkbox group. A checkbox group contains a lot of checkboxes.
    * The grouped checkboxes are embedded into one widget, which can be placed anywhere
    * on the GUI. The placing of the elements can be horizontal or vertical in the group.
    * At horizontal placing the sizex integer defines the maximum element number in
    * one row, sizey is 0. At vertical placing sizex is 0, and sizey defines the
    * maximum row number in one column. <br>
    *
    * One specific element can be reached by its name or index with the find methods.
    * The first element is checkBoxGroup->tqfind( 0 ), "myCb" element is checkBoxGroup->tqfind( "myCb" ) ...
    *
    * Sample:<br><br>
    * KONFIGURATOR_CHECKBOX_PARAM myCBArray[] =<br>
    * &nbsp;{{"CbClass","CbName1", false, i18n( "name1" ), false, "tooltip1"},<br>
    * &nbsp;&nbsp;{"CbClass","CbName2", true, i18n( "name2" ), false, "tooltip2"},<br>
    * &nbsp;&nbsp;{"CbClass","CbName3", true, i18n( "name3" ), false, "tooltip3"}};<br><br>
    * KonfiguratorCheckBoxGroup *myCheckBoxGroup = createCheckBoxGroup( 1, 0, myCBArray, 3, myParent, "myCheckboxGroup" );<br>
    * myCheckBoxGroup->tqfind( 0 )->setEnabled( false );<br><br>
    * myLayout->addWidget( myCheckBoxGroup, 0, 0 );<br>
    *
    * @param  sizex       the maximum column number at horizontal placing
    * @param  sizey       the maximum row number at vertical placing
    * @param  params      pointer to the checkbox array
    * @param  paramNum    number of the checkbox elements
    * @param  tqparent      Reference to the tqparent widget
    * @param  widgetName  The name of the newly created checkbox group widget
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created checkbox group widget
    */
  KonfiguratorCheckBoxGroup *createCheckBoxGroup( int sizex, int sizey,
                                           KONFIGURATOR_CHECKBOX_PARAM *params, int paramNum,
                                           TQWidget *tqparent=0, const char *widgetName=0, int pg=FIRST_PAGE );
  /**
    * Creates a radio button group. A radio button group contains a lot of radio buttons.
    * The grouped buttons are embedded into one widget, which can be placed anywhere
    * on the GUI. The placing of the elements can be horizontal or vertical in the group.
    * At horizontal placing the sizex integer defines the maximum element number in
    * one row, sizey is 0. At vertical placing sizex is 0, and sizey defines the
    * maximum row number in one column.<br>
    *
    * The references of the buttons can be accessed by the find methods of KonfiguratorRadioButtons.
    * The first element is myRadioGrp->tqfind( 0 ), "myRadio" element is myRadioGrp->tqfind( "myRadio" ) ...
    *
    * Sample:<br><br>
    * KONFIGURATOR_NAME_VALUE_TIP radioInfo[] =<br>
    * &nbsp;{{ i18n( "radio text1" ), "value1", i18n( "tooltip1" ) },<br>
    * &nbsp;&nbsp;{ i18n( "radio text2" ), "value2", i18n( "tooltip2" ) },<br>
    * &nbsp;&nbsp;{ i18n( "radio text3" ), "value3", i18n( "tooltip3" ) }};<br><br>
    * KonfiguratorRadioButtons *myRadioGroup = createRadioButtonGroup( "class", "name", "value1", 1, 0, radioInfo, 3, myParent, "myRadioGroup" );<br>
    * myRadioGroup->tqfind( i18n( "radio text1" ) )->setEnabled( false );<br>
    * myLayout->addWidget( myRadioGroup, 0, 0 );<br>
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The item name used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the radio buttons
    * @param  sizex       the maximum column number at horizontal placing
    * @param  sizey       the maximum row number at vertical placing
    * @param  params      pointer to the checkbox array
    * @param  paramNum    number of the checkbox elements
    * @param  tqparent      Reference to the tqparent widget
    * @param  widgetName  The name of the newly created button group widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created radio button group widget
    */
  KonfiguratorRadioButtons *createRadioButtonGroup( TQString cls, TQString name, 
                                           TQString dflt, int sizex, int sizey,
                                           KONFIGURATOR_NAME_VALUE_TIP *params, int paramNum,
                                           TQWidget *tqparent=0, const char *widgetName=0, bool rst=false, int pg=FIRST_PAGE );

  /**
    * This function is used to insert new, unknown items into KonfiguratorPage. The
    * item must be derived from KonfiguratorExtension class, which have
    * isChanged(), apply(), setDefaults, loadInitialValue() methods. After that, the
    * object is properly handled by Konfigurator page.
    *
    *
    * @param  item        The item to be added to KonfiguratorPage
    */
  void                    registerObject( KonfiguratorExtension *item );

  /**
    * This function is used to remove elements from KonfiguratorPage.
    *
    * Sample:<br><br>
    * KonfiguratorEditBox *myEditBox = createEditBox( "class", "name", "default", tqparentWidget );<br>
    * myLayout->addWidget( myEditBox, 0, 0 );<br>
    * removeObject( myEditBox->extension() );
    *
    * After the removeObject myEditBox will be untouched at apply(), setDefaults(), isChanged(),
    * loadInitialValues() methods of the KonfiguratorPage.
    *
    * @param  item        The item to be removed from KonfiguratorPage
    */
  void                    removeObject( KonfiguratorExtension *item );

  /**
    * Adds a new color chooser combobox item to the page.
    * <br>The chooser's widget's name is TQString(cls + "/" + name).ascii()<br>
    *
    * Sample:<br><br>
    * KonfiguratorColorChooser *myColorChooser = createColorChooser( "class", "name", TQColor( 255, 0, 255 ), tqparentWidget );<br>
    * myLayout->addWidget( myColorChooser, 0, 0 );
    *
    * @param  cls         The class name used in KConfig (ex. "Archives")
    * @param  name        The item name used in KConfig (ex. "Do Tar")
    * @param  dflt        The default value of the color chooser
    * @param  tqparent      Reference to the tqparent widget
    * @param  rst         The change of this parameter requires Krusader restart
    * @param  addColPtr   The additional color values
    * @param  rst         Number of additional colors
    * @param  pg          The subpage of a Konfigurator page (because of setDefaults)
    *
    * @return             reference to the newly created combobox
    */
  KonfiguratorColorChooser *createColorChooser(  TQString cls, TQString name, TQColor dflt,
                                                 TQWidget *tqparent=0, bool rst=false,
                                                 ADDITIONAL_COLOR *addColPtr = 0, int addColNum = 0, int pg=FIRST_PAGE );
signals:
  /**
    * The signal is emitted if the changed flag was modified in any konfigurator item.
    * Used for enabling/disabling the apply button.
    */
  void  sigChanged();
  
protected:
  TQPtrList<KonfiguratorExtension> itemList;

private:
  bool  firstCall;
};

/**
  * KONFIGURATOR_CHECKBOX_PARAM is the basic item of checkbox arrays. It tqcontains
  * every information related to a checkbox.
  */
struct KONFIGURATOR_CHECKBOX_PARAM
{
  /**
    * The class used in KConfig (ex. "Archives")
    */
  TQString configClass;
  /**
    * The item name used in KConfig (ex. "Do Tar")
    */
  TQString configName;
  /**
    * The default value of the checkbox
    */
  bool    defaultValue;
  /**
    * The text field of the checkbox
    */
  TQString text;
  /**
    * The change of this parameter requires Krusader restart
    */
  bool    restart;
  /**
    * The checkbox's tooltip
    */
  TQString toolTip;
};

#endif /* __KONFIGURATOR_PAGE_H__ */