QtiPlot
0.9.8.2
Main Page
Related Pages
Classes
Files
File List
File Members
qtiplot
src
plot2D
dialogs
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
54
enum
Unit
{
ScaleCoordinates
,
Pixels
};
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
:
68
ArrowMarker
*
lm
;
69
70
ColorButton
*
colorBox
;
71
PenStyleBox
*
styleBox
;
72
DoubleSpinBox
*
widthBox
;
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
;
81
DoubleSpinBox
*
xStartBox
, *
yStartBox
, *
xEndBox
, *
yEndBox
;
82
QSpinBox *
xStartPixelBox
, *
yStartPixelBox
, *
xEndPixelBox
, *
yEndPixelBox
;
83
QSpinBox *
boxHeadAngle
, *
boxHeadLength
;
84
QComboBox*
attachToBox
;
85
};
86
87
#endif // LINEDIALOG_H
Generated on Sat Jun 8 2013 23:27:27 for QtiPlot by
1.8.3.1