SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
LineDialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : LineDialog.h
3
Project : SciDAVis
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
QLineEdit;
41
class
ColorButton
;
42
class
ArrowMarker
;
43
45
class
LineDialog
:
public
QDialog
46
{
47
Q_OBJECT
48
49
public
:
50
LineDialog
(
ArrowMarker
*line, QWidget* parent = 0, Qt::WFlags fl = 0);
51
52
enum
Unit
{
ScaleCoordinates
,
Pixels
};
53
54
void
initGeometryTab
();
55
void
enableHeadTab
();
56
void
setCoordinates
(
int
unit);
57
58
public
slots:
59
void
enableButtonDefault
(QWidget *w);
60
void
setDefaultValues
();
61
void
displayCoordinates
(
int
unit);
62
void
setLineStyle
(Qt::PenStyle style);
63
void
pickColor
();
64
void
accept
();
65
void
apply
();
66
67
private
:
68
ArrowMarker
*
lm
;
69
70
ColorButton
*
colorBox
;
71
QComboBox*
styleBox
;
72
QComboBox*
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
QLineEdit *
xStartBox
, *
yStartBox
, *
xEndBox
, *
yEndBox
;
82
QSpinBox *
boxHeadAngle
, *
boxHeadLength
;
83
};
84
85
#endif // LINEDIALOG_H
Generated by
1.8.1