#include <BALL/VIEW/DIALOGS/labelDialog.h>
Public Slots | |
Public slots | |
void | show () |
Public Member Functions | |
Constructors | |
LabelDialog (QWidget *parent=NULL, const char *name="LabelDialog") | |
Destructors | |
virtual | ~LabelDialog () |
Accessors: inspectors and mutators | |
virtual void | onNotify (Message *message) |
virtual void | fetchPreferences (INIFile &inifile) |
virtual void | writePreferences (INIFile &inifile) |
virtual void | initializeWidget (MainControl &main_control) |
Protected Slots | |
virtual void | checkMenu (MainControl &main_control) |
Overloaded from ModularWidget. | |
Protected slots | |
virtual void | accept () |
virtual void | editColor () |
virtual void | addTag () |
virtual void | fontSelected () |
virtual void | modeChanged () |
void | textChanged () |
Protected Member Functions | |
Representation * | createOneLabel_ () |
Representation * | createMultipleLabels_ () |
Protected Attributes | |
QAction * | id_ |
ColorRGBA | custom_color_ |
QFont | font_ |
Dialog for creating labels for a selection of molecular objects. The class MolecularControl is responsible for creating such a selection. The text, color and font of the labels can be changed. If this dialog is used, it should be created with MainControl as parent.
BALL::VIEW::LabelDialog::LabelDialog | ( | QWidget * | parent = NULL , |
|
const char * | name = "LabelDialog" | |||
) |
virtual BALL::VIEW::LabelDialog::~LabelDialog | ( | ) | [virtual] |
Destructor.
virtual void BALL::VIEW::LabelDialog::accept | ( | ) | [protected, virtual, slot] |
Indicates the apply button was pressed. Creates a new Representation with the Label and notifies the widgets.
virtual void BALL::VIEW::LabelDialog::addTag | ( | ) | [protected, virtual, slot] |
virtual void BALL::VIEW::LabelDialog::checkMenu | ( | MainControl & | main_control | ) | [protected, virtual, slot] |
Overloaded from ModularWidget.
Reimplemented from BALL::VIEW::ModularWidget.
Representation* BALL::VIEW::LabelDialog::createMultipleLabels_ | ( | ) | [protected] |
Representation* BALL::VIEW::LabelDialog::createOneLabel_ | ( | ) | [protected] |
virtual void BALL::VIEW::LabelDialog::editColor | ( | ) | [protected, virtual, slot] |
Opens the dialog to select the color for the label text. See documentation of QT-library for information concerning QColorDialog widgets.
virtual void BALL::VIEW::LabelDialog::fetchPreferences | ( | INIFile & | inifile | ) | [virtual] |
ModularWidget methods Fetches the preferences (the position and the selected color of {*this} labelDialog) from the INIFile.
Reimplemented from BALL::VIEW::ModularWidget.
virtual void BALL::VIEW::LabelDialog::fontSelected | ( | ) | [protected, virtual, slot] |
virtual void BALL::VIEW::LabelDialog::initializeWidget | ( | MainControl & | main_control | ) | [virtual] |
Initializes the popup menu Display with its checkable submenu Add Label ; This method is called automatically immediately before the main application is started.
main_control | the MainControl object to be initialized |
openDialog
Reimplemented from BALL::VIEW::ModularWidget.
virtual void BALL::VIEW::LabelDialog::modeChanged | ( | ) | [protected, virtual, slot] |
virtual void BALL::VIEW::LabelDialog::onNotify | ( | Message * | message | ) | [virtual] |
Message handling method. Catches only ControlSelectionMessage from MolecularControl. If such a message is catched the apply button will be enabled and labels can be appended onto the selection.
message | the pointer to the message that should be processed |
Reimplemented from BALL::VIEW::ConnectionObject.
void BALL::VIEW::LabelDialog::show | ( | ) | [slot] |
Show and raise the dialog
void BALL::VIEW::LabelDialog::textChanged | ( | ) | [protected, slot] |
virtual void BALL::VIEW::LabelDialog::writePreferences | ( | INIFile & | inifile | ) | [virtual] |
Writes the preferences (the position and the selected color) to the INIFile. This method will be called inside the method MainControl::aboutToExit
Reimplemented from BALL::VIEW::ModularWidget.
ColorRGBA BALL::VIEW::LabelDialog::custom_color_ [protected] |
QFont BALL::VIEW::LabelDialog::font_ [protected] |
QAction* BALL::VIEW::LabelDialog::id_ [protected] |