00001 #ifndef __PROMPTCURVEDIALOG_HPP__
00002 #define __PROMPTCURVEDIALOG_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 PromptCurveDialog : 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* pLabelCurvesList; QComboBox* pCurvesList;
00064
00065 QGroupBox* pPointBox;
00066 QGroupBox* pParamBox;
00067 QGroupBox* pZoneSizeBox;
00068 QGroupBox* pZoneGeneratorBox;
00070 QGridLayout* pPointGrid;
00071 QGridLayout* pParamGrid;
00072 QGridLayout* pZoneSizeGrid;
00073 QGridLayout* pZoneGeneratorGrid;
00075
00076 QLabel* pLabelNbPoints; QSpinBox* pNbPoints;
00077 QLabel* pLabelPointX; QDoubleSpinBox* pPointX;
00078 QLabel* pLabelPointY; QDoubleSpinBox* pPointY;
00080
00081 QLabel* pLabelPA; QDoubleSpinBox* pPA;
00082 QLabel* pLabelPB; QDoubleSpinBox* pPB;
00083 QLabel* pLabelPC; QDoubleSpinBox* pPC;
00084 QLabel* pLabelPD; QDoubleSpinBox* pPD;
00086
00087 QLabel* pLabelWidth; QSpinBox* pWidth;
00088 QLabel* pLabelHeight; QSpinBox* pHeight;
00090
00091
00092 QLabel* pLabelX; QDoubleSpinBox* pX;
00093 QLabel* pLabelY; QDoubleSpinBox* pY;
00094 QLabel* pLabelW; QDoubleSpinBox* pW;
00095 QLabel* pLabelH; QDoubleSpinBox* pH;
00097
00098 QPushButton* pCancelButton;
00099 QPushButton* pDefaultButton;
00100 QPushButton* pStartButton;
00102
00106 void createButtons(void);
00107
00111 void createListsFunctions(void);
00112
00116 void createSpinBoxes(void);
00117
00118 public slots:
00119
00123 void startGeneration(void);
00124
00128 void cancelSettings(void);
00129
00133 void reject(void);
00134
00138 void functionSelectedChanged(int index);
00139
00143 void applyDefaultValues(void);
00144
00145 public:
00146
00151 PromptCurveDialog(QWidget* parent = 0);
00152
00156 ~PromptCurveDialog(void);
00157
00162 ListCurveFCT getCurve(void)const;
00163
00168 unsigned int getNbPoints(void)const;
00169
00174 double getPointX(void)const;
00175
00180 double getPointY(void)const;
00181
00186 double getPA(void)const;
00187
00192 double getPB(void)const;
00193
00198 double getPC(void)const;
00199
00204 double getPD(void)const;
00205
00210 unsigned int getImageW(void)const;
00211
00216 unsigned int getImageH(void)const;
00217
00222 double getZoneX(void)const;
00223
00228 double getZoneY(void)const;
00229
00234 double getZoneW(void)const;
00235
00240 double getZoneH(void)const;
00241 };
00242
00243 #endif