00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EASYSOK_CONFIGURATION_DIALOG_INC_GUARD_H
00022 #define EASYSOK_CONFIGURATION_DIALOG_INC_GUARD_H
00023
00024
00025 #include <kdialogbase.h>
00026
00027
00028 class KIntNumInput;
00029 class QCheckBox;
00030 class QRadioButton;
00031
00032
00033
00034
00042 class ConfigurationDialog : public KDialogBase
00043 {
00044
00045 Q_OBJECT
00046
00047 public:
00048
00056 ConfigurationDialog(QWidget * parent = 0, char const * name = 0);
00057
00058
00063 virtual ~ConfigurationDialog();
00064
00065
00066 signals:
00067
00072 void configurationChanged();
00073
00074
00075 protected slots:
00076
00081 virtual void slotOk();
00082
00083
00088 virtual void slotApply();
00089
00090
00095 virtual void slotDefault();
00096
00097
00098 private:
00099
00104 void setupCorePage();
00105
00106
00111 void setupCoreDefaults();
00112
00113
00118 void applyCoreSettings();
00119
00120
00125 void setupMousePage();
00126
00127
00132 void setupMouseDefaults();
00133
00134
00139 void applyMouseSettings();
00140
00141
00146 void setupSolverPage();
00147
00148
00153 void setupSolverDefaults();
00154
00155
00160 void applySolverSettings();
00161
00162
00167 void setupBookmarksPage();
00168
00169
00174 void setupBookmarksDefaults();
00175
00176
00181 void applyBookmarksSettings();
00182
00183
00188 void setupAnimationSpeedPage();
00189
00190
00195 void setupAnimationSpeedDefaults();
00196
00197
00202 void applyAnimationSpeedSettings();
00203
00204
00209 void setupScalingPage();
00210
00211
00216 void setupScalingDefaults();
00217
00218
00223 void applyScalingSettings();
00224
00225
00230 void setupConfirmationPage();
00231
00232
00237 void setupConfirmationDefaults();
00238
00239
00244 void applyConfirmationSettings();
00245
00246
00251 enum Page
00252 {
00253 CORE,
00254 MOUSE,
00255 SOLVER,
00256 BOOKMARKS,
00257 ANIMATION_SPEEDS,
00258 SCALING,
00259 CONFIRMATIONS
00260 };
00261
00262
00267 QCheckBox * m_next_after_solved;
00268
00269
00274 QCheckBox * m_wrap_virtual_keeper;
00275
00276
00281 QCheckBox * m_goto_any_level;
00282
00283
00288 QCheckBox * m_hide_cursor;
00289
00290
00295 KIntNumInput * m_hide_cursor_delay;
00296
00297
00302 KIntNumInput * m_mouse_repeat_delay;
00303
00304
00309 KIntNumInput * m_mouse_repeat_rate;
00310
00311
00316 QCheckBox * m_auto_save_enabled;
00317
00322 KIntNumInput * m_auto_save_time;
00323
00324
00329 QCheckBox * m_show_difficulty;
00330
00331
00336 QCheckBox * m_show_gems_left;
00337
00338
00343 QCheckBox * m_show_author;
00344
00345
00350 QCheckBox * m_show_user;
00351
00352
00357 KIntNumInput * m_solver_steps_per_call;
00358
00359
00364 KIntNumInput * m_solver_cache_size;
00365
00366
00371 KIntNumInput * m_bookmarks;
00372
00373
00378 QRadioButton * m_no_bookmark_date;
00379
00380
00385 QRadioButton * m_bookmark_date;
00386
00387
00392 QRadioButton * m_bookmark_time;
00393
00394
00399 QRadioButton * m_no_bookmark_collection;
00400
00401
00406 QRadioButton * m_bookmark_collection;
00407
00408
00413 QRadioButton * m_bookmark_level;
00414
00415
00420 QRadioButton * m_no_bookmark_annotation;
00421
00422
00427 QRadioButton * m_bookmark_annotation;
00428
00429
00434 KIntNumInput * m_fast_animation_speed;
00435
00436
00441 KIntNumInput * m_normal_animation_speed;
00442
00443
00448 KIntNumInput * m_slow_animation_speed;
00449
00450
00455 KIntNumInput * m_min_square_size;
00456
00457
00462 QRadioButton * m_bad_scaling;
00463
00464
00469 QRadioButton * m_good_scaling;
00470
00471
00476 QRadioButton * m_timed_scaling;
00477
00478
00483 KIntNumInput * m_scaling_switch_time;
00484
00485
00490 QCheckBox * m_overwrite_bookmarks;
00491
00492
00497 QCheckBox * m_overwrite_game;
00498
00499
00504 QCheckBox * m_overwrite_collection;
00505
00506
00511 QCheckBox * m_overwrite_solutions;
00512
00513
00518 QCheckBox * m_overwrite_image;
00519
00520
00525 QCheckBox * m_overwrite_animation;
00526 };
00527
00528
00529 #endif