00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EASYSOK_ANIMATION_STORER_DIALOG_INC_GUARD_H
00022 #define EASYSOK_ANIMATION_STORER_DIALOG_INC_GUARD_H
00023
00024
00025 #include <kdialogbase.h>
00026
00027
00028 class KConfig;
00029 class KIntNumInput;
00030 class Map;
00031 class QCheckBox;
00032 class QLabel;
00033 class Theme;
00034
00035
00036
00037
00045 class AnimationStorerDialog : public KDialogBase
00046 {
00047 Q_OBJECT
00048
00049 public:
00050
00060 AnimationStorerDialog(Map const & map, Theme const * theme, QWidget * parent = 0, char const * name = 0);
00061
00062
00067 virtual ~AnimationStorerDialog();
00068
00069
00074 bool transparentBackground() const;
00075
00076
00081 int pieceSize() const;
00082
00083
00088 int startDelay() const;
00089
00090
00095 int delay() const;
00096
00097
00102 bool cylcle() const;
00103
00104
00109 int endDelay() const;
00110
00111
00116 bool lowQuality() const;
00117
00118
00119 private slots:
00120
00127 void pieceSizeChanged(int size);
00128
00129
00136 void cycleChanged(bool cycle);
00137
00138
00139 private:
00140
00148 void createSizeGroup(QWidget * parent, KConfig * config);
00149
00150
00158 void createBackgroundGroup(QWidget * parent, KConfig * config);
00159
00160
00168 void createDelayGroup(QWidget * parent, KConfig * config);
00169
00170
00178 void createCycleGroup(QWidget * parent, KConfig * config);
00179
00180
00189 void createQualityGroup(QWidget * parent, KConfig * config);
00190
00191
00196 Theme const * m_theme;
00197
00198
00203 QCheckBox * m_transparent_background;
00204
00205
00210 KIntNumInput * m_piece_size;
00211
00212
00217 QLabel * m_whole_size;
00218
00219
00224 KIntNumInput * m_start_delay;
00225
00226
00231 KIntNumInput * m_delay;
00232
00233
00238 KIntNumInput * m_end_delay;
00239
00240
00245 QCheckBox * m_cycle;
00246
00247
00252 QCheckBox * m_low_quality;
00253
00254
00259 int m_map_width;
00260
00261
00266 int m_map_height;
00267 };
00268
00269
00270 #endif