Loading...
Searching...
No Matches
labelDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_LABELDIALOG_H
#define BALL_VIEW_DIALOGS_LABELDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_FORMAT_INIFILE_H
# include <BALL/FORMAT/INIFile.h>
#endif
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_VIEW_KERNEL_MESSAGE_H
# include <BALL/VIEW/KERNEL/message.h>
#endif
#include <BALL/VIEW/UIC/ui_labelDialog.h>
#include <QtGui/QFont>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT LabelDialog
: public QDialog,
public Ui_LabelDialogData,
public ModularWidget
{
Q_OBJECT
BALL_EMBEDDABLE(LabelDialog,ModularWidget)
public:
LabelDialog(QWidget *parent = NULL, const char *name = "LabelDialog");
virtual ~LabelDialog();
virtual void onNotify(Message *message);
virtual void fetchPreferences(INIFile &inifile);
virtual void writePreferences(INIFile &inifile);
virtual void initializeWidget(MainControl& main_control);
public Q_SLOTS:
void show();
protected Q_SLOTS:
virtual void accept();
virtual void editColor();
virtual void addTag();
virtual void fontSelected();
virtual void modeChanged();
void textChanged();
virtual void checkMenu(MainControl& main_control);
protected:
Representation* createOneLabel_();
Representation* createMultipleLabels_();
QAction* id_;
ColorRGBA custom_color_;
QFont font_;
};
} } // namespaces
#endif // BALL_VIEW_DIALOGS_LABELDIALOG_H
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
INIFile.h
BALL::INIFile
Definition INIFile.h:29
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::LabelDialog::modeChanged
virtual void modeChanged()
BALL::VIEW::LabelDialog::addTag
virtual void addTag()
BALL::VIEW::LabelDialog::font_
QFont font_
Definition labelDialog.h:167
BALL::VIEW::LabelDialog::onNotify
virtual void onNotify(Message *message)
BALL::VIEW::LabelDialog::accept
virtual void accept()
BALL::VIEW::LabelDialog::createOneLabel_
Representation * createOneLabel_()
BALL::VIEW::LabelDialog::editColor
virtual void editColor()
BALL::VIEW::LabelDialog::fetchPreferences
virtual void fetchPreferences(INIFile &inifile)
BALL::VIEW::LabelDialog::fontSelected
virtual void fontSelected()
BALL::VIEW::LabelDialog::createMultipleLabels_
Representation * createMultipleLabels_()
BALL::VIEW::LabelDialog::show
void show()
BALL::VIEW::LabelDialog::custom_color_
ColorRGBA custom_color_
Definition labelDialog.h:166
BALL::VIEW::LabelDialog::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::LabelDialog::textChanged
void textChanged()
BALL::VIEW::LabelDialog::LabelDialog
LabelDialog(QWidget *parent=NULL, const char *name="LabelDialog")
BALL::VIEW::LabelDialog::id_
QAction * id_
Definition labelDialog.h:164
BALL::VIEW::LabelDialog::writePreferences
virtual void writePreferences(INIFile &inifile)
BALL::VIEW::LabelDialog::checkMenu
virtual void checkMenu(MainControl &main_control)
Overloaded from ModularWidget.
BALL::VIEW::LabelDialog::~LabelDialog
virtual ~LabelDialog()
BALL::VIEW::MainControl
Definition mainControl.h:118
BALL::VIEW::Message
Definition message.h:53
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
BALL::VIEW::Representation
Definition representation.h:59
QDialog
QWidget
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
message.h
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13