ErrDialog.h
Go to the documentation of this file.
/***************************************************************************
File : ErrDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2011 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Add error bars dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef ERRDIALOG_H
#define ERRDIALOG_H
#include <QDialog>
#include <QList>
class QLabel;
class QComboBox;
class QRadioButton;
class DoubleSpinBox;
class QPushButton;
class QGroupBox;
class QButtonGroup;
class MdiSubWindow;
class ErrDialog : public QDialog
{
Q_OBJECT
public:
ErrDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
private:
QLabel* textLabel1;
QComboBox* nameLabel, *tableNamesBox, *colNamesBox;
QGroupBox *groupBox2;
QGroupBox *groupBox1, *groupBox3;
QButtonGroup *buttonGroup1, *buttonGroup2;
QRadioButton* standardBox, *columnBox;
QRadioButton* percentBox;
DoubleSpinBox* valueBox;
QRadioButton* xErrBox;
QRadioButton* yErrBox;
QPushButton* buttonAdd;
QPushButton* buttonCancel;
QList<MdiSubWindow*> srcTables;
protected slots:
virtual void languageChange();
public slots:
void add();
void setCurveNames(const QStringList& names);
void setSrcTables(QList<MdiSubWindow *> tables);
void selectSrcTable(int tabnr);
};
#endif // ERRDIALOG_H
ErrDialog::xErrBox
QRadioButton * xErrBox
Definition: ErrDialog.h:65
ErrDialog::standardBox
QRadioButton * standardBox
Definition: ErrDialog.h:62
ErrDialog::selectSrcTable
void selectSrcTable(int tabnr)
Select a table.
Definition: ErrDialog.cpp:170
ErrDialog::nameLabel
QComboBox * nameLabel
Definition: ErrDialog.h:58
ErrDialog::yErrBox
QRadioButton * yErrBox
Definition: ErrDialog.h:66
ErrDialog::setSrcTables
void setSrcTables(QList< MdiSubWindow * > tables)
Supply the dialog with a tables list.
Definition: ErrDialog.cpp:156
ErrDialog::colNamesBox
QComboBox * colNamesBox
Definition: ErrDialog.h:58
ErrDialog::buttonGroup1
QButtonGroup * buttonGroup1
Definition: ErrDialog.h:61
ErrDialog::groupBox2
QGroupBox * groupBox2
Definition: ErrDialog.h:59
ErrDialog::groupBox1
QGroupBox * groupBox1
Definition: ErrDialog.h:60
ErrDialog::columnBox
QRadioButton * columnBox
Definition: ErrDialog.h:62
ErrDialog::srcTables
QList< MdiSubWindow * > srcTables
Definition: ErrDialog.h:69
ErrDialog::buttonGroup2
QButtonGroup * buttonGroup2
Definition: ErrDialog.h:61
ErrDialog::percentBox
QRadioButton * percentBox
Definition: ErrDialog.h:63
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
ErrDialog::textLabel1
QLabel * textLabel1
Definition: ErrDialog.h:57
ErrDialog::tableNamesBox
QComboBox * tableNamesBox
Definition: ErrDialog.h:58
ErrDialog
Add error bars dialog.
Definition: ErrDialog.h:44
ErrDialog::add
void add()
Add a plot definition.
Definition: ErrDialog.cpp:176
ErrDialog::setCurveNames
void setCurveNames(const QStringList &names)
Supply the dialog with a curves list.
Definition: ErrDialog.cpp:151
ErrDialog::buttonCancel
QPushButton * buttonCancel
Definition: ErrDialog.h:68
MdiSubWindow
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
ErrDialog::groupBox3
QGroupBox * groupBox3
Definition: ErrDialog.h:60
ErrDialog::valueBox
DoubleSpinBox * valueBox
Definition: ErrDialog.h:64
ErrDialog::ErrDialog
ErrDialog(QWidget *parent=0, Qt::WFlags fl=0)
Constructor.
Definition: ErrDialog.cpp:51
ErrDialog::buttonAdd
QPushButton * buttonAdd
Definition: ErrDialog.h:67
ErrDialog::languageChange
virtual void languageChange()
Set all string in the current language.
Definition: ErrDialog.cpp:268