00001 #ifndef __PROMPTDIALOG_HPP__
00002 #define __PROMPTDIALOG_HPP__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <QDialog>
00027
00028 #include "../global.hpp"
00029
00030 class QWidget;
00031 class QGridLayout;
00032 class QHBoxLayout;
00033 class QGroupBox;
00034 class QComboBox;
00035 class QSpinBox;
00036 class QDoubleSpinBox;
00037 class QPushButton;
00038 class QLabel;
00039
00043 class PromptGenerationDialog : public QDialog
00044 {
00045 Q_OBJECT
00046
00047 private:
00048
00049
00050
00051 QGridLayout* pMainGrid;
00053 QGroupBox* pFunctionsBox;
00054 QGroupBox* pZoneBox;
00056 QGridLayout* pFunctionsGrid;
00057 QHBoxLayout* pZoneGrid;
00058 QHBoxLayout* pButtonsGrid;
00060
00061
00062 QLabel* pLabelInitializorList; QComboBox* pInitializorList;
00063 QLabel* pLabelGeneratorsList; QComboBox* pGeneratorsList;
00064 QLabel* pLabelAccumulatorList; QComboBox* pAccumulatorList;
00066
00067 QGroupBox* pZoneSizeBox;
00068 QGroupBox* pZoneGeneratorBox;
00070 QGridLayout* pZoneSizeGrid;
00071 QGridLayout* pZoneGeneratorGrid;
00073
00074 QLabel* pLabelWidth; QSpinBox* pWidth;
00075 QLabel* pLabelHeight; QSpinBox* pHeight;
00077
00078
00079 QLabel* pLabelX; QDoubleSpinBox* pX;
00080 QLabel* pLabelY; QDoubleSpinBox* pY;
00081 QLabel* pLabelW; QDoubleSpinBox* pW;
00082 QLabel* pLabelH; QDoubleSpinBox* pH;
00084
00085 QPushButton* pCancelButton;
00086 QPushButton* pDefaultButton;
00087 QPushButton* pStartButton;
00089
00093 void createButtons(void);
00094
00098 void createListsFunctions(void);
00099
00103 void createSpinBoxes(void);
00104
00105 public slots:
00106
00110 void startGeneration(void);
00111
00115 void cancelSettings(void);
00116
00120 void reject(void);
00121
00125 void functionSelectedChanged(int index);
00126
00130 void applyDefaultValues(void);
00131
00132 public:
00133
00138 PromptGenerationDialog(QWidget* parent = 0);
00139
00143 ~PromptGenerationDialog(void);
00144
00149 ListInitFCT getInitializor(void)const;
00150
00155 ListGeneratorFCT getGenerator(void)const;
00156
00161 ListAccumulateurFCT getAccumulator(void)const;
00162
00167 unsigned int getImageW(void)const;
00168
00173 unsigned int getImageH(void)const;
00174
00179 double getZoneX(void)const;
00180
00185 double getZoneY(void)const;
00186
00191 double getZoneW(void)const;
00192
00197 double getZoneH(void)const;
00198 };
00199
00200 #endif