QtiPlot  0.9.8.2
ErrDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : ErrDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 - 2011 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
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 DoubleSpinBox;
38 class QPushButton;
39 class QGroupBox;
40 class QButtonGroup;
41 class MdiSubWindow;
42 
44 class ErrDialog : public QDialog
45 {
46  Q_OBJECT
47 
48 public:
50 
54  ErrDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
55 
56 private:
57  QLabel* textLabel1;
59  QGroupBox *groupBox2;
60  QGroupBox *groupBox1, *groupBox3;
61  QButtonGroup *buttonGroup1, *buttonGroup2;
62  QRadioButton* standardBox, *columnBox;
63  QRadioButton* percentBox;
65  QRadioButton* xErrBox;
66  QRadioButton* yErrBox;
67  QPushButton* buttonAdd;
68  QPushButton* buttonCancel;
69  QList<MdiSubWindow*> srcTables;
70 
71 protected slots:
73  virtual void languageChange();
74 
75 public slots:
77  void add();
79  void setCurveNames(const QStringList& names);
81  void setSrcTables(QList<MdiSubWindow *> tables);
83  void selectSrcTable(int tabnr);
84 };
85 
86 #endif // ERRDIALOG_H
QRadioButton * xErrBox
Definition: ErrDialog.h:65
QRadioButton * standardBox
Definition: ErrDialog.h:62
void selectSrcTable(int tabnr)
Select a table.
Definition: ErrDialog.cpp:170
QComboBox * nameLabel
Definition: ErrDialog.h:58
QRadioButton * yErrBox
Definition: ErrDialog.h:66
QComboBox * colNamesBox
Definition: ErrDialog.h:58
QButtonGroup * buttonGroup1
Definition: ErrDialog.h:61
QGroupBox * groupBox2
Definition: ErrDialog.h:59
QGroupBox * groupBox1
Definition: ErrDialog.h:60
QRadioButton * columnBox
Definition: ErrDialog.h:62
QList< MdiSubWindow * > srcTables
Definition: ErrDialog.h:69
void setSrcTables(QList< MdiSubWindow *> tables)
Supply the dialog with a tables list.
Definition: ErrDialog.cpp:156
QButtonGroup * buttonGroup2
Definition: ErrDialog.h:61
QRadioButton * percentBox
Definition: ErrDialog.h:63
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
QLabel * textLabel1
Definition: ErrDialog.h:57
QComboBox * tableNamesBox
Definition: ErrDialog.h:58
Add error bars dialog.
Definition: ErrDialog.h:44
void add()
Add a plot definition.
Definition: ErrDialog.cpp:176
void setCurveNames(const QStringList &names)
Supply the dialog with a curves list.
Definition: ErrDialog.cpp:151
QPushButton * buttonCancel
Definition: ErrDialog.h:68
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
QGroupBox * groupBox3
Definition: ErrDialog.h:60
DoubleSpinBox * valueBox
Definition: ErrDialog.h:64
ErrDialog(QWidget *parent=0, Qt::WFlags fl=0)
Constructor.
Definition: ErrDialog.cpp:51
QPushButton * buttonAdd
Definition: ErrDialog.h:67
virtual void languageChange()
Set all string in the current language.
Definition: ErrDialog.cpp:268