SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
PlotWizard.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : PlotWizard.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 : A wizard type dialog to create new plots
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
30
31
#ifndef PLOTWIZARD_H
32
#define PLOTWIZARD_H
33
34
#include <QDialog>
35
class
QGroupBox;
36
class
QPushButton;
37
class
QListWidget;
38
class
QComboBox;
39
41
class
PlotWizard
:
public
QDialog
42
{
43
Q_OBJECT
44
45
public
:
47
51
PlotWizard
( QWidget* parent = 0, Qt::WFlags fl = 0 );
53
~PlotWizard
();
54
55
private
:
57
QPushButton*
buttonOk
,
59
*
buttonXErr
,
61
*
buttonYErr
,
63
*
buttonDelete
;
65
QPushButton*
buttonCancel
,
67
*
buttonX
,
69
*
buttonY
,
71
*
buttonNew
,
73
*
buttonZ
;
75
QGroupBox*
groupBox1
,
77
*
groupBox2
,
79
*
groupBox3
;
81
QComboBox*
boxTables
;
83
QListWidget *
columnsList
,
85
*
plotAssociations
;
86
88
QStringList
columns
;
89
90
public
slots:
92
void
changeColumnsList
(
const
QString &table);
94
void
insertTablesList
(
const
QStringList& tables);
96
void
setColumnsListBoxContents
(
const
QStringList& cols);
98
void
setColumnsList
(
const
QStringList& cols);
100
void
addCurve
();
102
void
removeCurve
();
104
void
addXCol
();
106
void
addYCol
();
108
void
addXErrCol
();
110
void
addYErrCol
();
112
void
accept
();
114
void
addZCol
();
115
116
private
:
117
void
plot3D
(
const
QStringList& lst);
118
void
plot3DRibbon
(
const
QStringList& lst);
120
bool
noCurves
();
121
QSize
sizeHint
()
const
;
122
123
signals:
125
void
plot
(
const
QStringList&);
126
};
127
128
#endif // PLOTWIZARD_H
Generated by
1.8.1