This class controls the settings dialog user interface.
More...
#include <SettingsDialog.h>
This class controls the settings dialog user interface.
to add a settings for a given class, either add a tab widgets (e.g. for plugin tabs) or add a new ObjectController tab using editSettings(QObject*).
camitk::SettingsDialog::SettingsDialog |
( |
| ) |
|
camitk::SettingsDialog::~SettingsDialog |
( |
| ) |
|
void camitk::SettingsDialog::accept |
( |
| ) |
|
|
private |
if the user says it is ok and validate the settings dialog, this update the settings
void camitk::SettingsDialog::editSettings |
( |
QObject * |
| ) |
|
add a new property editor in a tab for the new object (it automatically connect the object "saveSettings" slot if exists to the dialog apply button)
virtual void camitk::SettingsDialog::on_actionExtensionList_cellClicked |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
privatevirtualslot |
virtual void camitk::SettingsDialog::on_addActionExtensionButton_released |
( |
| ) |
|
|
privatevirtualslot |
virtual void camitk::SettingsDialog::on_addComponentExtensionButton_released |
( |
| ) |
|
|
privatevirtualslot |
virtual void camitk::SettingsDialog::on_componentExtensionList_cellClicked |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
privatevirtualslot |
virtual void camitk::SettingsDialog::on_objectList_itemSelectionChanged |
( |
| ) |
|
|
privatevirtualslot |
naming convention is QMetaObject's auto-connection.
name of slots allows for automatic connection (and say good bye to all your connect(...)! )
e.g. : on_colorButton_released() is a slot that will automatically be connected. just using this naming convention means that the following line will automatically be called:
* connect(colorButton, SIGNAL(released()), this, SLOT(on_colorButton_released()));
*
Isn't it great?!
- Note
- it should be the only places in this application were the naming convention is "deviant"
virtual void camitk::SettingsDialog::on_removeActionExtensionButton_released |
( |
| ) |
|
|
privatevirtualslot |
virtual void camitk::SettingsDialog::on_removeComponentExtensionButton_released |
( |
| ) |
|
|
privatevirtualslot |
virtual void camitk::SettingsDialog::on_resetConfigurationButton_released |
( |
| ) |
|
|
privatevirtualslot |
void camitk::SettingsDialog::readUserExtensions |
( |
| ) |
|
|
private |
get the current value of the settings
void camitk::SettingsDialog::updateActionExtensionList |
( |
| ) |
|
|
private |
update the action plugin list
void camitk::SettingsDialog::updateComponentExtensionList |
( |
| ) |
|
|
private |
update the component extension list
void camitk::SettingsDialog::writeUserExtensions |
( |
| ) |
|
|
private |
write the current value of the settings
QMap<QString, QObject*> camitk::SettingsDialog::editedObjectMap |
|
private |
the map to get an edited object from its name
Ui::ui_Settings* camitk::SettingsDialog::myUI |
|
private |
Qt ui designed in Qt Designer.
QStringList camitk::SettingsDialog::userActions |
|
private |
the list of user action extension locations
QStringList camitk::SettingsDialog::userComponents |
|
private |
the list of user component extension locations
The documentation for this class was generated from the following file: