BALL  1.5.0
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
18 #endif
19 
20 #ifndef 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  {
39  : public QDialog,
40  public Ui_LabelDialogData,
41  public ModularWidget
42  {
43  Q_OBJECT
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 
160 
162 
163 
164  QAction* id_;
165 
167  QFont font_;
168  };
169 
170 } } // namespaces
171 
172 #endif // BALL_VIEW_DIALOGS_LABELDIALOG_H
global.h
BALL::VIEW::LabelDialog::show
void show()
BALL::VIEW::LabelDialog::checkMenu
virtual void checkMenu(MainControl &main_control)
Overloaded from ModularWidget.
BALL::VIEW::LabelDialog::fontSelected
virtual void fontSelected()
QDialog
BALL::VIEW::Message
Definition: message.h:53
BALL::VIEW::LabelDialog::font_
QFont font_
Definition: labelDialog.h:167
BALL::VIEW::LabelDialog::~LabelDialog
virtual ~LabelDialog()
BALL::VIEW::Representation
Definition: representation.h:59
BALL::VIEW::LabelDialog
Definition: labelDialog.h:42
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition: embeddable.h:31
BALL::VIEW::MainControl
Definition: mainControl.h:118
BALL::VIEW::LabelDialog::id_
QAction * id_
Definition: labelDialog.h:164
BALL
Definition: constants.h:13
BALL::VIEW::LabelDialog::LabelDialog
LabelDialog(QWidget *parent=NULL, const char *name="LabelDialog")
message.h
BALL::VIEW::LabelDialog::editColor
virtual void editColor()
QWidget
BALL::VIEW::LabelDialog::accept
virtual void accept()
BALL::VIEW::ColorRGBA
Definition: colorRGBA.h:32
BALL::VIEW::LabelDialog::createOneLabel_
Representation * createOneLabel_()
BALL::VIEW::LabelDialog::textChanged
void textChanged()
BALL::VIEW::LabelDialog::addTag
virtual void addTag()
modularWidget.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::LabelDialog::modeChanged
virtual void modeChanged()
BALL::VIEW::LabelDialog::writePreferences
virtual void writePreferences(INIFile &inifile)
BALL::VIEW::LabelDialog::fetchPreferences
virtual void fetchPreferences(INIFile &inifile)
BALL::INIFile
Definition: INIFile.h:29
INIFile.h
BALL::VIEW::LabelDialog::custom_color_
ColorRGBA custom_color_
Definition: labelDialog.h:166
BALL::VIEW::ModularWidget
Definition: modularWidget.h:63
BALL::VIEW::LabelDialog::createMultipleLabels_
Representation * createMultipleLabels_()
BALL::VIEW::LabelDialog::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::LabelDialog::onNotify
virtual void onNotify(Message *message)