BALL
1.5.0
include
BALL
VIEW
DIALOGS
labelDialog.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_DIALOGS_LABELDIALOG_H
6
#define BALL_VIEW_DIALOGS_LABELDIALOG_H
7
8
#ifndef BALL_COMMON_GLOBAL_H
9
# include <
BALL/COMMON/global.h
>
10
#endif
11
12
#ifndef BALL_FORMAT_INIFILE_H
13
# include <
BALL/FORMAT/INIFile.h
>
14
#endif
15
16
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
17
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
18
#endif
19
20
#ifndef BALL_VIEW_KERNEL_MESSAGE_H
21
# include <
BALL/VIEW/KERNEL/message.h
>
22
#endif
23
24
#include <BALL/VIEW/UIC/ui_labelDialog.h>
25
26
#include <QtGui/QFont>
27
28
namespace
BALL
29
{
30
namespace
VIEW
31
{
38
class
BALL_VIEW_EXPORT
LabelDialog
39
:
public
QDialog
,
40
public
Ui_LabelDialogData,
41
public
ModularWidget
42
{
43
Q_OBJECT
44
BALL_EMBEDDABLE
(
LabelDialog
,
ModularWidget
)
45
46
public
:
47
51
59
LabelDialog
(
QWidget
*parent = NULL,
const
char
*name =
"LabelDialog"
);
60
62
65
68
virtual
~
LabelDialog
();
69
71
74
81
virtual
void
onNotify(
Message
*message);
82
84
87
92
virtual
void
fetchPreferences(
INIFile
&inifile);
93
98
virtual
void
writePreferences(
INIFile
&inifile);
99
107
virtual
void
initializeWidget(
MainControl
& main_control);
108
110
111
public
Q_SLOTS:
112
116
119
void
show();
120
122
125
126
protected
Q_SLOTS:
127
133
virtual
void
accept();
134
138
virtual
void
editColor();
139
141
virtual
void
addTag();
142
144
virtual
void
fontSelected();
145
147
virtual
void
modeChanged();
148
150
void
textChanged();
151
153
155
virtual
void
checkMenu(
MainControl
& main_control);
156
157
protected
:
158
159
Representation
* createOneLabel_();
160
161
Representation
* createMultipleLabels_();
162
163
164
QAction*
id_
;
165
166
ColorRGBA
custom_color_
;
167
QFont
font_
;
168
};
169
170
} }
// namespaces
171
172
#endif // BALL_VIEW_DIALOGS_LABELDIALOG_H
BALL::VIEW::Message
Definition:
message.h:52
BALL::VIEW::LabelDialog::font_
QFont font_
Definition:
labelDialog.h:167
BALL::VIEW::Representation
Definition:
representation.h:57
BALL::VIEW::LabelDialog
Definition:
labelDialog.h:38
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL::VIEW::MainControl
Definition:
mainControl.h:114
BALL::VIEW::LabelDialog::id_
QAction * id_
Definition:
labelDialog.h:164
BALL
Definition:
constants.h:12
message.h
BALL::VIEW::ColorRGBA
Definition:
colorRGBA.h:31
modularWidget.h
global.h
BALL::INIFile
Definition:
INIFile.h:28
QWidget
INIFile.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::LabelDialog::custom_color_
ColorRGBA custom_color_
Definition:
labelDialog.h:166
QDialog
BALL::VIEW::ModularWidget
Definition:
modularWidget.h:60
Generated by
1.8.17