blob: 718944cc4014510161490bcb4aa1f5a5e109bd3a (
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
|
/***************************************************************************
* *
* 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 CLASSOPTIONSPAGE_H
#define CLASSOPTIONSPAGE_H
#include <tqwidget.h>
#include <tqgroupbox.h>
#include <tqcheckbox.h>
#include "../optionstate.h"
class ClassifierWidget;
/**
* A dialog page to display options for a @ref UMLWidget and its
* children. This is not normally called by you. It is used by
* the @ref ClassPropDlg.
*
* @short A dialog page to display the options for a UMLWidget.
* @author Paul Hensgen <phensgen@techie.com>
* @see ClassPropDlg
* Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
*/
class ClassOptionsPage : public TQWidget {
public:
/**
* Constructor - observe and modify a Widget
*/
ClassOptionsPage(TQWidget* pParent, ClassifierWidget* pWidget);
/**
* Constructor - observe and modify an OptionState structure
*/
ClassOptionsPage(TQWidget* pParent, Settings::OptionState *options );
/**
* destructor
*/
virtual ~ClassOptionsPage();
/**
* Updates the widget with the dialog page properties.
*/
void updateUMLWidget();
/**
* Sets the widget to be used. Only used by @ref UMLView to set
* settings of a widget.
*/
void setWidget( ClassifierWidget * pWidget ) {
m_pWidget = pWidget;
}
protected:
/**
* Initialize optional items
*/
void init();
/**
* Creates the page with the correct options for the class/interface
*/
void setupPage();
/**
* Creates the page based on the OptionState
*/
void setupClassPageOption();
/**
* Sets the ClassifierWidget's properties to those selected in this dialog page.
*/
void updateWidget();
/**
* Sets the OptionState to the values selected in this dialog page.
*/
void updateOptionState();
//GUI widgets
TQGroupBox * m_pVisibilityGB;
TQCheckBox * m_pShowVisibilityCB, * m_pShowAttSigCB;
TQCheckBox * m_pShowOpSigCB, * m_pShowAttsCB, * m_pShowOpsCB;
TQCheckBox * m_pShowStereotypeCB, * m_pShowPackageCB;
TQCheckBox* m_pDrawAsCircleCB;
/**
* The classifier widget to represent in the dialog page.
*/
ClassifierWidget* m_pWidget;
/**
* The OptionState structure to represent in the dialog page.
*/
Settings::OptionState *m_options;
};
#endif
|