PlotWizard.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : PlotWizard.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          : A wizard type dialog to create new plots
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 
00030 
00031 #ifndef PLOTWIZARD_H
00032 #define PLOTWIZARD_H
00033 
00034 #include <QDialog>
00035 class QGroupBox;
00036 class QPushButton;
00037 class QListWidget;
00038 class QComboBox;
00039 
00041 class PlotWizard : public QDialog
00042 {
00043     Q_OBJECT
00044 
00045 public:
00047 
00051     PlotWizard( QWidget* parent = 0, Qt::WFlags fl = 0 );
00053     ~PlotWizard();
00054 
00055 private:
00057     QPushButton* buttonOk,
00059                 *buttonXErr,
00061                 *buttonYErr,
00063                 *buttonDelete;
00065     QPushButton* buttonCancel,
00067                 *buttonX,
00069                 *buttonY,
00071                 *buttonNew,
00073                 *buttonZ;
00075     QGroupBox*  groupBox1,
00077                 *groupBox2,
00079                 *groupBox3;
00081     QComboBox* boxTables;
00083     QListWidget *columnsList,
00085              *plotAssociations;
00086 
00088     QStringList columns;
00089 
00090 public slots:
00092     void changeColumnsList(const QString &table);
00094     void insertTablesList(const QStringList& tables);
00096     void setColumnsListBoxContents(const QStringList& cols);
00098     void setColumnsList(const QStringList& cols);
00100     void addCurve();
00102     void removeCurve();
00104     void addXCol();
00106     void addYCol();
00108     void addXErrCol();
00110     void addYErrCol();
00112     void accept();
00114     void addZCol();
00115 
00116 private:
00117     void plot3D(const QStringList& lst);
00118     void plot3DRibbon(const QStringList& lst);
00120     bool noCurves();
00121     QSize sizeHint() const;
00122 
00123 signals:
00125     void plot (const QStringList&);
00126 };
00127 
00128 #endif //  PLOTWIZARD_H

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