1
/***************************************************************************
4
--------------------------------------------------------------------
5
Copyright : (C) 2006 by Ion Vasilief, Tilman Benkert
6
Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net
7
Description : Add/remove curves dialog
9
***************************************************************************/
11
/***************************************************************************
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. *
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. *
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 *
28
***************************************************************************/
29
#ifndef CURVESDIALOG_H
30
#define CURVESDIALOG_H
40
//! Add/remove curves dialog
41
class CurvesDialog : public QDialog
46
CurvesDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
48
void setGraph(Graph *graph);
54
void showCurveRangeDialog();
55
void showPlotAssociations();
56
void showFunctionDialog();
57
void showCurveBtn(int);
59
void enableRemoveBtn();
60
void showCurveRange(bool);
61
void updateCurveRange();
62
void showCurrentFolder(bool);
65
void closeEvent(QCloseEvent*);
68
bool addCurve(const QString& name);
69
QSize sizeHint() const;
70
void contextMenuEvent(QContextMenuEvent *);
72
int defaultCurveLineWidth, defaultSymbolSize;
76
QPushButton* btnRemove;
78
QPushButton* btnCancel;
79
QPushButton* btnAssociations;
80
QPushButton* btnEditFunction;
81
QPushButton* btnRange;
82
QListWidget* available;
83
QListWidget* contents;
85
QComboBox* boxMatrixStyle;
86
QCheckBox* boxShowRange;
87
QCheckBox* boxShowCurrentFolder;
90
#endif // CurvesDialog_H