A wizard type dialog class to create new plots. More...
#include <PlotWizard.h>
Public Slots | |
void | accept () |
Accept settings, close the dialog. | |
void | addCurve () |
Add new curve. | |
void | addXCol () |
Add column as X. | |
void | addXErrCol () |
Add column as X error. | |
void | addYCol () |
Add column as Y. | |
void | addYErrCol () |
Add column as Y error. | |
void | addZCol () |
Add column as Z. | |
void | changeColumnsList (const QString &table) |
Update the columns list box to contain the columns of 'table'. | |
void | insertTablesList (const QStringList &tables) |
Insert a list of tables into the tables combo box. | |
void | removeCurve () |
Delete selected curve. | |
void | setColumnsList (const QStringList &cols) |
Set the internal columns list to 'cols'. | |
void | setColumnsListBoxContents (const QStringList &cols) |
Set the contents of the columns list box to the strings in 'cols'. | |
Signals | |
void | plot (const QStringList &) |
Emitted when new plots need to be created. | |
Public Member Functions | |
PlotWizard (QWidget *parent=0, Qt::WFlags fl=0) | |
Constructor. | |
Private Member Functions | |
bool | noCurves () |
Display a warning that a new curve must be added first before the selection of the columns. | |
void | plot3D (const QStringList &lst) |
void | plot3DRibbon (const QStringList &lst) |
QSize | sizeHint () const |
Private Attributes | |
QComboBox * | boxTables |
Combo box to select the table. | |
QPushButton * | buttonCancel |
Button "cancel". | |
QPushButton * | buttonDelete |
Button "Delete curve". | |
QPushButton * | buttonNew |
Button "New curve". | |
QPushButton * | buttonOk |
Button "Plot". | |
QPushButton * | buttonX |
Button "<->X". | |
QPushButton * | buttonXErr |
Button "<->xErr". | |
QPushButton * | buttonY |
Button "<->Y". | |
QPushButton * | buttonYErr |
Button "<->yErr". | |
QPushButton * | buttonZ |
Button "<->Z". | |
QStringList | columns |
Internal list of columns (contains all columns in all tables). | |
QListWidget * | columnsList |
List of the columns in the selected table. | |
QGroupBox * | groupBox1 |
Button group defining the layout. | |
QGroupBox * | groupBox2 |
Button group defining the layout. | |
QGroupBox * | groupBox3 |
Button group defining the layout. | |
QListWidget * | plotAssociations |
List of the plots to generate. |
A wizard type dialog class to create new plots.
PlotWizard::PlotWizard | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
Constructor.
parent | parent widget | |
fl | Qt window flags |
References accept(), addCurve(), addXCol(), addXErrCol(), addYCol(), addYErrCol(), addZCol(), boxTables, buttonCancel, buttonDelete, buttonNew, buttonOk, buttonX, buttonXErr, buttonY, buttonYErr, buttonZ, changeColumnsList(), columnsList, groupBox1, plotAssociations, and removeCurve().
void PlotWizard::accept | ( | ) | [slot] |
Accept settings, close the dialog.
References noCurves(), plot(), plot3D(), plot3DRibbon(), and plotAssociations.
Referenced by PlotWizard().
void PlotWizard::addCurve | ( | ) | [slot] |
void PlotWizard::addXCol | ( | ) | [slot] |
Add column as X.
References columnsList, noCurves(), and plotAssociations.
Referenced by PlotWizard().
void PlotWizard::addXErrCol | ( | ) | [slot] |
Add column as X error.
References columnsList, noCurves(), and plotAssociations.
Referenced by PlotWizard().
void PlotWizard::addYCol | ( | ) | [slot] |
Add column as Y.
References columnsList, noCurves(), and plotAssociations.
Referenced by PlotWizard().
void PlotWizard::addYErrCol | ( | ) | [slot] |
Add column as Y error.
References columnsList, noCurves(), and plotAssociations.
Referenced by PlotWizard().
void PlotWizard::addZCol | ( | ) | [slot] |
Add column as Z.
References columnsList, noCurves(), and plotAssociations.
Referenced by PlotWizard().
void PlotWizard::changeColumnsList | ( | const QString & | table | ) | [slot] |
Update the columns list box to contain the columns of 'table'.
References columns, and setColumnsListBoxContents().
Referenced by PlotWizard(), and ApplicationWindow::showPlotWizard().
void PlotWizard::insertTablesList | ( | const QStringList & | tables | ) | [slot] |
Insert a list of tables into the tables combo box.
References boxTables.
Referenced by ApplicationWindow::showPlotWizard().
bool PlotWizard::noCurves | ( | ) | [private] |
Display a warning that a new curve must be added first before the selection of the columns.
References plotAssociations.
Referenced by accept(), addXCol(), addXErrCol(), addYCol(), addYErrCol(), and addZCol().
void PlotWizard::plot | ( | const QStringList & | ) | [signal] |
Emitted when new plots need to be created.
Referenced by accept().
void PlotWizard::plot3D | ( | const QStringList & | lst | ) | [private] |
References Graph3D::addData(), Table::colIndex(), ApplicationWindow::newPlot3D(), and ApplicationWindow::table().
Referenced by accept().
void PlotWizard::plot3DRibbon | ( | const QStringList & | lst | ) | [private] |
References Graph3D::addData(), ApplicationWindow::newPlot3D(), ApplicationWindow::table(), and Graph3D::update().
Referenced by accept().
void PlotWizard::removeCurve | ( | ) | [slot] |
void PlotWizard::setColumnsList | ( | const QStringList & | cols | ) | [slot] |
Set the internal columns list to 'cols'.
References columns.
Referenced by ApplicationWindow::showPlotWizard().
void PlotWizard::setColumnsListBoxContents | ( | const QStringList & | cols | ) | [slot] |
Set the contents of the columns list box to the strings in 'cols'.
References columnsList.
Referenced by changeColumnsList().
QSize PlotWizard::sizeHint | ( | ) | const [private] |
QComboBox* PlotWizard::boxTables [private] |
Combo box to select the table.
Referenced by addCurve(), insertTablesList(), and PlotWizard().
QPushButton* PlotWizard::buttonCancel [private] |
Button "cancel".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonDelete [private] |
Button "Delete curve".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonNew [private] |
Button "New curve".
Referenced by PlotWizard().
QPushButton* PlotWizard::buttonOk [private] |
Button "Plot".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonX [private] |
Button "<->X".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonXErr [private] |
Button "<->xErr".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonY [private] |
Button "<->Y".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonYErr [private] |
Button "<->yErr".
Referenced by PlotWizard().
QPushButton * PlotWizard::buttonZ [private] |
Button "<->Z".
Referenced by PlotWizard().
QStringList PlotWizard::columns [private] |
Internal list of columns (contains all columns in all tables).
Referenced by changeColumnsList(), and setColumnsList().
QListWidget* PlotWizard::columnsList [private] |
List of the columns in the selected table.
Referenced by addXCol(), addXErrCol(), addYCol(), addYErrCol(), addZCol(), PlotWizard(), and setColumnsListBoxContents().
QGroupBox* PlotWizard::groupBox1 [private] |
Button group defining the layout.
Referenced by PlotWizard().
QGroupBox * PlotWizard::groupBox2 [private] |
Button group defining the layout.
QGroupBox * PlotWizard::groupBox3 [private] |
Button group defining the layout.
QListWidget * PlotWizard::plotAssociations [private] |
List of the plots to generate.
Referenced by accept(), addCurve(), addXCol(), addXErrCol(), addYCol(), addYErrCol(), addZCol(), noCurves(), PlotWizard(), and removeCurve().