QtiPlot  0.9.8.2
LineDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : LineDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Line options 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 LINEDIALOG_H
30 #define LINEDIALOG_H
31 
32 #include <qdialog.h>
33 
34 class QCheckBox;
35 class QComboBox;
36 class QPushButton;
37 class QTabWidget;
38 class QWidget;
39 class QSpinBox;
40 class DoubleSpinBox;
41 class ColorButton;
42 class ArrowMarker;
43 class DoubleSpinBox;
44 class PenStyleBox;
45 
47 class LineDialog : public QDialog
48 {
49  Q_OBJECT
50 
51 public:
52  LineDialog(ArrowMarker *line, QWidget* parent = 0, Qt::WFlags fl = 0);
53 
55 
56  void initGeometryTab();
57  void enableHeadTab();
58  void setCoordinates(int unit);
59 
60 public slots:
61  void enableButtonDefault(QWidget *w);
62  void setDefaultValues();
63  void displayCoordinates(int unit);
64  void accept();
65  void apply();
66 
67 private:
69 
73  QComboBox* unitBox;
74  QPushButton* btnOk;
75  QPushButton* btnApply;
76  QPushButton* buttonDefault;
77  QCheckBox* endBox;
78  QCheckBox* startBox, *filledBox;
79  QTabWidget* tw;
80  QWidget *options, *geometry, *head;
84  QComboBox* attachToBox;
85 };
86 
87 #endif // LINEDIALOG_H
QWidget * head
Definition: LineDialog.h:80
Line options dialog.
Definition: LineDialog.h:47
QSpinBox * boxHeadAngle
Definition: LineDialog.h:83
ColorButton * colorBox
Definition: LineDialog.h:70
QSpinBox * yStartPixelBox
Definition: LineDialog.h:82
void setDefaultValues()
Definition: LineDialog.cpp:352
QComboBox * unitBox
Definition: LineDialog.h:73
QComboBox * attachToBox
Definition: LineDialog.h:84
QCheckBox * filledBox
Definition: LineDialog.h:78
void initGeometryTab()
Definition: LineDialog.cpp:168
A customized QtColorPicker used for color selection.
Definition: ColorButton.h:39
QSpinBox * xStartPixelBox
Definition: LineDialog.h:82
Draws lines and arrows on a QwtPlot.
Definition: ArrowMarker.h:43
Definition: LineDialog.h:54
DoubleSpinBox * yEndBox
Definition: LineDialog.h:81
DoubleSpinBox * widthBox
Definition: LineDialog.h:72
LineDialog(ArrowMarker *line, QWidget *parent=0, Qt::WFlags fl=0)
Definition: LineDialog.cpp:50
QSpinBox * xEndPixelBox
Definition: LineDialog.h:82
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
QTabWidget * tw
Definition: LineDialog.h:79
QPushButton * buttonDefault
Definition: LineDialog.h:76
void apply()
Definition: LineDialog.cpp:309
QCheckBox * endBox
Definition: LineDialog.h:77
DoubleSpinBox * xEndBox
Definition: LineDialog.h:81
PenStyleBox * styleBox
Definition: LineDialog.h:71
Unit
Definition: LineDialog.h:54
QWidget * geometry
Definition: LineDialog.h:80
ArrowMarker * lm
Definition: LineDialog.h:68
QPushButton * btnApply
Definition: LineDialog.h:75
void accept()
Definition: LineDialog.cpp:338
QSpinBox * yEndPixelBox
Definition: LineDialog.h:82
void displayCoordinates(int unit)
Definition: LineDialog.cpp:258
void enableButtonDefault(QWidget *w)
Definition: LineDialog.cpp:362
QWidget * options
Definition: LineDialog.h:80
QCheckBox * startBox
Definition: LineDialog.h:78
QPushButton * btnOk
Definition: LineDialog.h:74
void setCoordinates(int unit)
Definition: LineDialog.cpp:298
Definition: LineDialog.h:54
void enableHeadTab()
Definition: LineDialog.cpp:344
A modified QComboBox allowing to choose a Qt::PenStyle.
Definition: PenStyleBox.h:38
DoubleSpinBox * xStartBox
Definition: LineDialog.h:81
DoubleSpinBox * yStartBox
Definition: LineDialog.h:81
QSpinBox * boxHeadLength
Definition: LineDialog.h:83