blob: 8effb99c733ac1b15fffce3d9aa829e936de7be8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2002-2006 *
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
***************************************************************************/
#ifndef UMLVIEWDIALOG_H
#define UMLVIEWDIALOG_H
//kde includes
#include <kdialogbase.h>
//app includes
#include "classoptionspage.h"
#include "umlwidgetcolorpage.h"
#include "../optionstate.h"
/**
* @author Paul Hensgen
* Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
*/
class UMLView;
class ClassWidget;
class TQCheckBox;
class TQLabel;
class TQLineEdit;
class TQGroupBox;
class TQTextEdit;
class TQSpinBox;
class KFontChooser;
class DiagramPropertiesPage;
class UMLViewDialog : public KDialogBase {
Q_OBJECT
public:
/**
* Constructor
*/
UMLViewDialog( TQWidget * pParent, UMLView * pView );
/**
* Deconstructor
*/
~UMLViewDialog();
protected:
enum Page
{
General = 0,
Color,
Font,
Class
};
/**
* Sets up the dialog pages.
*/
void setupPages();
/**
* Sets up the general Diagram Properties Page
*/
void setupDiagramPropertiesPage();
/**
* Sets up the Class page
*/
void setupClassPage();
/**
* Sets up the color page.
*/
void setupColorPage();
/**
* Sets up font page.
*/
void setupFontPage();
/**
* Applys the properties of the given page.
*/
void applyPage( Page page );
/**
* Checks whether the name is unique and sets it if it is.
*/
void checkName();
/**
* The view to represent.
*/
UMLView * m_pView;
Settings::OptionState m_options;
KFontChooser * m_pChooser;
DiagramPropertiesPage *m_diagramProperties;
ClassOptionsPage * m_pOptionsPage;
UMLWidgetColorPage * m_pColorPage;
//GUI widgets
TQLabel * m_pNameL, * m_pSpinXL, * m_pSpinYL;
TQLineEdit * m_pNameLE;
TQGroupBox * m_pDocGB, * m_pValuesGB;
TQCheckBox * m_pSnapToGridCB, * m_pShowSnapCB;
TQTextEdit * m_pDocTE;
TQSpinBox * m_pSnapXSB, * m_pSnapYSB;
TQSpinBox * m_pLineWidthSB;
public slots:
void slotOk();
void slotApply();
};
#endif
|