SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
AssociationsDialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : AssociationsDialog.h
3
Project : SciDAVis
4
--------------------------------------------------------------------
5
Copyright : (C) 2006 by Ion Vasilief, Tilman Benkert
6
Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net
7
Description : Plot associations dialog
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
#ifndef ASSOCIATIONSDIALOG_H
30
#define ASSOCIATIONSDIALOG_H
31
32
#include <QDialog>
33
34
class
QLabel;
35
class
QListWidget;
36
class
QPushButton;
37
class
QTableWidget;
38
class
QStringList;
39
class
Table
;
40
class
Graph
;
41
43
class
AssociationsDialog
:
public
QDialog
44
{
45
Q_OBJECT
46
47
public
:
48
AssociationsDialog
( QWidget* parent = 0, Qt::WFlags fl = 0 );
49
~AssociationsDialog
();
50
51
void
initTablesList
(QWidgetList* lst,
int
curve);
52
void
setGraph
(
Graph
*g);
53
54
private
slots:
55
void
updateTable
(
int
index);
56
void
updateCurves
();
57
void
accept
();
58
59
private
:
60
void
changePlotAssociation
(
int
curve,
const
QString& text);
61
void
updateColumnTypes
();
62
void
uncheckCol
(
int
col);
63
void
updatePlotAssociation
(
int
row,
int
col);
64
QString
plotAssociation
(
const
QString& text);
65
Table
*
findTable
(
int
index);
66
bool
eventFilter
(QObject *
object
, QEvent *e);
67
68
QWidgetList*
tables
;
69
Table
*
active_table
;
70
Graph
*
graph
;
71
QStringList
plotAssociationsList
;
72
73
QLabel*
tableCaptionLabel
;
74
QTableWidget *
table
;
75
QPushButton *
btnOK
, *
btnCancel
, *
btnApply
;
76
QListWidget*
associations
;
77
};
78
79
#endif // ASSOCIATIONSDIALOG_H
Generated by
1.8.1