PlotWizard.h
Go to the documentation of this file.
/***************************************************************************
File : PlotWizard.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004 - 2010 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : A wizard type dialog to create new plots
***************************************************************************/
/***************************************************************************
* *
* 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 PLOTWIZARD_H
#define PLOTWIZARD_H
#include <QDialog>
class QGroupBox;
class QPushButton;
class QListWidget;
class QComboBox;
class PlotWizard : public QDialog
{
Q_OBJECT
public:
PlotWizard( QWidget* parent = 0, Qt::WFlags fl = 0 );
private:
QPushButton* buttonOk,
*buttonXErr,
*buttonYErr,
*buttonDelete;
QPushButton* buttonCancel,
*buttonX,
*buttonY,
*buttonNew,
*buttonZ;
QGroupBox* groupBox1,
*groupBox2,
*groupBox3;
QComboBox* boxTables;
QListWidget *columnsList,
*plotAssociations;
QStringList columns;
public slots:
void changeColumnsList(const QString &table);
void insertTablesList(const QStringList& tables);
void setColumnsListBoxContents(const QStringList& cols);
void setColumnsList(const QStringList& cols);
void addCurve();
void removeCurve();
void addXCol();
void addYCol();
void addXErrCol();
void addYErrCol();
void accept();
void addZCol();
private:
void plot2D(const QStringList&);
void plot3D(const QStringList&);
void plot3DRibbon(const QStringList&);
bool noCurves();
QSize sizeHint() const;
};
#endif // PLOTWIZARD_H
PlotWizard::buttonY
QPushButton * buttonY
Button &quot;&lt;-&gt;Y&quot;.
Definition: PlotWizard.h:63
PlotWizard::plot3DRibbon
void plot3DRibbon(const QStringList &)
Definition: PlotWizard.cpp:324
PlotWizard::plotAssociations
QListWidget * plotAssociations
List of the plots to generate.
Definition: PlotWizard.h:81
PlotWizard::noCurves
bool noCurves()
Display a warning that a new curve must be added first before the selection of the columns...
Definition: PlotWizard.cpp:313
PlotWizard::addCurve
void addCurve()
Add new curve.
Definition: PlotWizard.cpp:285
PlotWizard::groupBox1
QGroupBox * groupBox1
Button group defining the layout.
Definition: PlotWizard.h:73
PlotWizard::columnsList
QListWidget * columnsList
List of the columns in the selected table.
Definition: PlotWizard.h:81
PlotWizard::addYCol
void addYCol()
Add column as Y.
Definition: PlotWizard.cpp:211
PlotWizard::plot2D
void plot2D(const QStringList &)
Definition: PlotWizard.cpp:398
PlotWizard::plot3D
void plot3D(const QStringList &)
Definition: PlotWizard.cpp:358
PlotWizard::buttonZ
QPushButton * buttonZ
Button &quot;&lt;-&gt;Z&quot;.
Definition: PlotWizard.h:63
PlotWizard::buttonYErr
QPushButton * buttonYErr
Button &quot;&lt;-&gt;yErr&quot;.
Definition: PlotWizard.h:55
PlotWizard::addZCol
void addZCol()
Add column as Z.
Definition: PlotWizard.cpp:227
PlotWizard::setColumnsList
void setColumnsList(const QStringList &cols)
Set the internal columns list to &#39;cols&#39;.
Definition: PlotWizard.cpp:308
PlotWizard::columns
QStringList columns
Internal list of columns (contains all columns in all tables)
Definition: PlotWizard.h:86
PlotWizard
A wizard type dialog class to create new plots.
Definition: PlotWizard.h:41
PlotWizard::accept
void accept()
Accept settings, close the dialog.
Definition: PlotWizard.cpp:143
PlotWizard::addXErrCol
void addXErrCol()
Add column as X error.
Definition: PlotWizard.cpp:245
PlotWizard::buttonDelete
QPushButton * buttonDelete
Button &quot;Delete curve&quot;.
Definition: PlotWizard.h:55
PlotWizard::addYErrCol
void addYErrCol()
Add column as Y error.
Definition: PlotWizard.cpp:265
PlotWizard::buttonOk
QPushButton * buttonOk
Button &quot;Plot&quot;.
Definition: PlotWizard.h:55
PlotWizard::groupBox3
QGroupBox * groupBox3
Button group defining the layout.
Definition: PlotWizard.h:73
PlotWizard::groupBox2
QGroupBox * groupBox2
Button group defining the layout.
Definition: PlotWizard.h:73
PlotWizard::buttonX
QPushButton * buttonX
Button &quot;&lt;-&gt;X&quot;.
Definition: PlotWizard.h:63
PlotWizard::sizeHint
QSize sizeHint() const
Definition: PlotWizard.cpp:138
PlotWizard::insertTablesList
void insertTablesList(const QStringList &tables)
Insert a list of tables into the tables combo box.
Definition: PlotWizard.cpp:296
PlotWizard::addXCol
void addXCol()
Add column as X.
Definition: PlotWizard.cpp:197
PlotWizard::PlotWizard
PlotWizard(QWidget *parent=0, Qt::WFlags fl=0)
Constructor.
Definition: PlotWizard.cpp:50
PlotWizard::boxTables
QComboBox * boxTables
Combo box to select the table.
Definition: PlotWizard.h:79
PlotWizard::changeColumnsList
void changeColumnsList(const QString &table)
Update the columns list box to contain the columns of &#39;table&#39;.
Definition: PlotWizard.cpp:184
PlotWizard::buttonCancel
QPushButton * buttonCancel
Button &quot;cancel&quot;.
Definition: PlotWizard.h:63
PlotWizard::setColumnsListBoxContents
void setColumnsListBoxContents(const QStringList &cols)
Set the contents of the columns list box to the strings in &#39;cols&#39;.
Definition: PlotWizard.cpp:301
PlotWizard::buttonXErr
QPushButton * buttonXErr
Button &quot;&lt;-&gt;xErr&quot;.
Definition: PlotWizard.h:55
PlotWizard::removeCurve
void removeCurve()
Delete selected curve.
Definition: PlotWizard.cpp:291
PlotWizard::buttonNew
QPushButton * buttonNew
Button &quot;New curve&quot;.
Definition: PlotWizard.h:63