00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef ERRDIALOG_H
00030 #define ERRDIALOG_H
00031
00032 #include <QDialog>
00033 #include <QList>
00034 class QLabel;
00035 class QComboBox;
00036 class QRadioButton;
00037 class QLineEdit;
00038 class QPushButton;
00039 class QGroupBox;
00040 class QButtonGroup;
00041 class QWidget;
00042
00044 class ErrDialog : public QDialog
00045 {
00046 Q_OBJECT
00047
00048 public:
00050
00054 ErrDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
00056 ~ErrDialog();
00057
00058 private:
00059 QLabel* textLabel1;
00060 QComboBox* nameLabel, *tableNamesBox, *colNamesBox;
00061 QGroupBox *groupBox2;
00062 QGroupBox *groupBox1, *groupBox3;
00063 QButtonGroup *buttonGroup1, *buttonGroup2;
00064 QRadioButton* standardBox, *columnBox;
00065 QRadioButton* percentBox;
00066 QLineEdit* valueBox;
00067 QRadioButton* xErrBox;
00068 QRadioButton* yErrBox;
00069 QPushButton* buttonAdd;
00070 QPushButton* buttonCancel;
00071 QList<QWidget*> *srcTables;
00072
00073 protected slots:
00075 virtual void languageChange();
00076
00077 public slots:
00079 void add();
00081 void setCurveNames(const QStringList& names);
00083 void setSrcTables(QWidgetList* tables);
00085 void selectSrcTable(int tabnr);
00086
00087 signals:
00089 void options(const QString& curveName, int type, const QString& percent,int direction);
00091 void options(const QString& curveName, const QString& errColumnName, int direction);
00092 };
00093
00094 #endif // ERRDIALOG_H