AssociationsDialog.h
Go to the documentation of this file.
/***************************************************************************
File : AssociationsDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2010 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Plot associations 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 ASSOCIATIONSDIALOG_H
#define ASSOCIATIONSDIALOG_H
#include <QDialog>
class QLabel;
class QListWidget;
class QPushButton;
class QTableWidget;
class QStringList;
class Table;
class Graph;
class MdiSubWindow;
class AssociationsDialog : public QDialog
{
Q_OBJECT
public:
AssociationsDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
void initTablesList(QList<MdiSubWindow *> lst, int curve);
void setGraph(Graph *g);
private slots:
void updateTable(int index);
void updateCurves();
void accept();
private:
void changePlotAssociation(int curve, const QStringList& lst);
void updateColumnTypes();
void uncheckCol(int col);
void updatePlotAssociation(int row, int col);
QStringList plotAssociation(const QString& text);
Table *findTable(int index);
bool eventFilter(QObject *object, QEvent *e);
QList <MdiSubWindow*> tables;
Table *active_table;
Graph *graph;
QStringList plotAssociationsList;
QLabel* tableCaptionLabel;
QTableWidget *table;
QPushButton *btnOK, *btnCancel, *btnApply;
QListWidget* associations;
};
#endif // ASSOCIATIONSDIALOG_H
AssociationsDialog::btnOK
QPushButton * btnOK
Definition: AssociationsDialog.h:75
AssociationsDialog::active_table
Table * active_table
Definition: AssociationsDialog.h:69
Graph
A 2D-plotting widget.
Definition: Graph.h:123
AssociationsDialog::eventFilter
bool eventFilter(QObject *object, QEvent *e)
Definition: AssociationsDialog.cpp:447
AssociationsDialog::updatePlotAssociation
void updatePlotAssociation(int row, int col)
Definition: AssociationsDialog.cpp:382
AssociationsDialog::tables
QList< MdiSubWindow * > tables
Definition: AssociationsDialog.h:68
AssociationsDialog
Plot associations dialog.
Definition: AssociationsDialog.h:44
AssociationsDialog::updateCurves
void updateCurves()
Definition: AssociationsDialog.cpp:107
AssociationsDialog::btnApply
QPushButton * btnApply
Definition: AssociationsDialog.h:75
AssociationsDialog::uncheckCol
void uncheckCol(int col)
Definition: AssociationsDialog.cpp:349
AssociationsDialog::changePlotAssociation
void changePlotAssociation(int curve, const QStringList &lst)
Definition: AssociationsDialog.cpp:121
AssociationsDialog::setGraph
void setGraph(Graph *g)
Definition: AssociationsDialog.cpp:358
AssociationsDialog::updateTable
void updateTable(int index)
Definition: AssociationsDialog.cpp:212
AssociationsDialog::initTablesList
void initTablesList(QList< MdiSubWindow *> lst, int curve)
Definition: AssociationsDialog.cpp:190
AssociationsDialog::associations
QListWidget * associations
Definition: AssociationsDialog.h:76
AssociationsDialog::findTable
Table * findTable(int index)
Definition: AssociationsDialog.cpp:201
AssociationsDialog::AssociationsDialog
AssociationsDialog(QWidget *parent=0, Qt::WFlags fl=0)
Definition: AssociationsDialog.cpp:49
AssociationsDialog::table
QTableWidget * table
Definition: AssociationsDialog.h:74
AssociationsDialog::tableCaptionLabel
QLabel * tableCaptionLabel
Definition: AssociationsDialog.h:73
AssociationsDialog::plotAssociationsList
QStringList plotAssociationsList
Definition: AssociationsDialog.h:71
AssociationsDialog::graph
Graph * graph
Definition: AssociationsDialog.h:70
MdiSubWindow
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
AssociationsDialog::updateColumnTypes
void updateColumnTypes()
Definition: AssociationsDialog.cpp:248
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
AssociationsDialog::btnCancel
QPushButton * btnCancel
Definition: AssociationsDialog.h:75
AssociationsDialog::plotAssociation
QStringList plotAssociation(const QString &text)
Definition: AssociationsDialog.cpp:176
AssociationsDialog::accept
void accept()
Definition: AssociationsDialog.cpp:101