Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PLOT2D_FITDATADLG_H
00024 #define PLOT2D_FITDATADLG_H
00025
00026 #include "Plot2d.h"
00027 #include <QDialog>
00028
00029 class QGroupBox;
00030 class QRadioButton;
00031 class QLineEdit;
00032 class QPushButton;
00033
00034 class PLOT2D_EXPORT Plot2d_FitDataDlg : public QDialog
00035 {
00036 Q_OBJECT
00037
00038 public:
00039
00040 Plot2d_FitDataDlg( QWidget* parent, bool secondAxisY );
00041
00042
00043 void setRange(const double xMin,
00044 const double xMax,
00045 const double yMin,
00046 const double yMax,
00047 const double y2Min = 0,
00048 const double y2Max = 0);
00049
00050 int getRange(double& xMin,
00051 double& xMax,
00052 double& yMin,
00053 double& yMax,
00054 double& y2Min,
00055 double& y2Max);
00056
00057 int getMode();
00058
00059 protected slots:
00060
00061 void onModeChanged(int);
00062
00063 private:
00064 QGroupBox* myRangeGrp;
00065 QRadioButton* myModeAllRB;
00066 QRadioButton* myModeHorRB;
00067 QRadioButton* myModeVerRB;
00068 QLineEdit* myXMinEdit;
00069 QLineEdit* myYMinEdit;
00070 QLineEdit* myY2MinEdit;
00071 QLineEdit* myXMaxEdit;
00072 QLineEdit* myYMaxEdit;
00073 QLineEdit* myY2MaxEdit;
00074 QPushButton* myOkBtn;
00075 QPushButton* myCancelBtn;
00076 bool mySecondAxisY;
00077 };
00078
00079 #endif