/*************************************************************************** Description : KPuzzle - A KDE Jigsaw Puzzle Game Version : 0.2 Copyright : (C) 2000-2001 by Michael Wand EMail : mwand@gmx.de ***************************************************************************/ /*************************************************************************** * * * 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 PREFS_H #define PREFS_H #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include /* This is the preferences dialog. */ class CPrefsDialog : public QDialog { Q_OBJECT public: /* Constructor */ CPrefsDialog(QWidget* parent); /* Destructor */ virtual ~CPrefsDialog(); /* Initializes the sub-widgets with the values * of the status variables below. */ void setValues(); /* Retrieve the status of the sub-widgets * and store them in the status variables. */ void retrieveValues(); public: /* Status variables. */ bool _usePieceMask; bool _turnPiecesAround; bool _rightKeyPansAround; bool _showMainPixmap; int _imageLoading; bool _showBackgroundImage; protected: /* Sub-widgets. */ QCheckBox* _mask; QCheckBox* _turn; QCheckBox* _right; QCheckBox* _main; QButtonGroup* _loading; QRadioButton* _ilOnUse; QRadioButton* _ilKeep; QRadioButton* _ilPreload; QCheckBox* _bgImage; QVBoxLayout* _elements; QVBoxLayout* _group; QHBoxLayout* _buttons; QPushButton* _ok; QPushButton* _cancel; QPushButton* _help; protected slots: /* Slot for the help button, invokes the KDE Help. */ void slotHelp(); }; #endif /* PREFS_H */