SciDAVis  1.D4
ErrDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : ErrDialog.h
3  Project : SciDAVis
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 by Ion Vasilief, Tilman Benkert
6  Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net
7  Description : Add error bars dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 #ifndef ERRDIALOG_H
30 #define ERRDIALOG_H
31 
32 #include <QDialog>
33 #include <QList>
34 class QLabel;
35 class QComboBox;
36 class QRadioButton;
37 class QLineEdit;
38 class QPushButton;
39 class QGroupBox;
40 class QButtonGroup;
41 class QWidget;
42 
44 class ErrDialog : public QDialog
45 {
46  Q_OBJECT
47 
48 public:
50 
54  ErrDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
56  ~ErrDialog();
57 
58 private:
59  QLabel* textLabel1;
61  QGroupBox *groupBox2;
62  QGroupBox *groupBox1, *groupBox3;
63  QButtonGroup *buttonGroup1, *buttonGroup2;
64  QRadioButton* standardBox, *columnBox;
65  QRadioButton* percentBox;
66  QLineEdit* valueBox;
67  QRadioButton* xErrBox;
68  QRadioButton* yErrBox;
69  QPushButton* buttonAdd;
70  QPushButton* buttonCancel;
71  QList<QWidget*> *srcTables;
72 
73 protected slots:
75  virtual void languageChange();
76 
77 public slots:
79  void add();
81  void setCurveNames(const QStringList& names);
83  void setSrcTables(QWidgetList* tables);
85  void selectSrcTable(int tabnr);
86 
87 signals:
89  void options(const QString& curveName, int type, const QString& percent,int direction);
91  void options(const QString& curveName, const QString& errColumnName, int direction);
92 };
93 
94 #endif // ERRDIALOG_H