ErrDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : ErrDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr, thzs*gmx.net
00007     Description          : Add error bars dialog
00008                            
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
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

Generated on Mon Oct 15 06:11:41 2007 for QtiPlot by  doxygen 1.5.3