BALL
1.4.79
|
#include <BALL/VIEW/DIALOGS/preferences.h>
Public Member Functions | |
Constructors | |
Preferences (QWidget *parent=NULL, const char *name="Preferences") | |
Preferences (const Preferences &preferences) | |
Copy constructur. More... | |
virtual | ~Preferences () |
Destructor. More... | |
Accessors | |
bool | hasPages () |
void | insertEntry (PreferencesEntry *child) |
void | removeEntry (PreferencesEntry *child) |
void | insertChildEntry (PreferencesEntry *parent, PreferencesEntry *child) |
void | insertChildEntry (const std::string &category, PreferencesEntry *child) |
void | fetchPreferences (INIFile &inifile) |
void | writePreferences (INIFile &inifile) |
const QWidget * | currentEntry () const |
const QWidget * | currentPage () const |
void | setApplyEnabled (bool enabled) |
Activate or deactivate the apply and ok buttons. More... | |
void | applied () |
Public slots | |
HashSet< PreferencesEntry * > | entries_ |
HashMap< QTreeWidgetItem *, QWidget * > | item_to_widget_ |
HashMap< QTreeWidgetItem *, PreferencesEntry * > | item_to_entry_ |
HashMap< QWidget *, QTreeWidgetItem * > | widget_to_item_ |
void | show () |
void | showEntry (QWidget *page) |
Show the given page. More... | |
void | entrySelected () |
void | setDefaultValues () |
void | reject () |
void | applyPreferences () |
Store the last applied values for undo. More... | |
void | showHelp () |
void | dialogButtonsClicked_ (QAbstractButton *button) |
void | removeItem_ (QTreeWidgetItem *item, bool update) |
Preferences is a dialog for other preference pages to be inserted. An interface for adding and removing the pages is available. The Preferences dialog will be created by the MainControl. All ModularWidget classes can add their own preferences pages.
Definition at line 40 of file preferences.h.
BALL::VIEW::Preferences::Preferences | ( | QWidget * | parent = NULL , |
const char * | name = "Preferences" |
||
) |
Default Constructor. There are five buttons:
BALL::VIEW::Preferences::Preferences | ( | const Preferences & | preferences | ) |
Copy constructur.
|
virtual |
Destructor.
|
signal |
|
slot |
Store the last applied values for undo.
const QWidget* BALL::VIEW::Preferences::currentEntry | ( | ) | const |
const QWidget* BALL::VIEW::Preferences::currentPage | ( | ) | const |
|
protectedslot |
|
slot |
void BALL::VIEW::Preferences::fetchPreferences | ( | INIFile & | inifile | ) |
Fetch the preferences (the position) from the INIFile inifile
. This method will be called inside MainControl::show().
inifile | the INIFile that contains the needed information |
bool BALL::VIEW::Preferences::hasPages | ( | ) |
Check if pages are available.
true
if pages are available void BALL::VIEW::Preferences::insertChildEntry | ( | PreferencesEntry * | parent, |
PreferencesEntry * | child | ||
) |
void BALL::VIEW::Preferences::insertChildEntry | ( | const std::string & | category, |
PreferencesEntry * | child | ||
) |
void BALL::VIEW::Preferences::insertEntry | ( | PreferencesEntry * | child | ) |
Insert a new page. This method can be called inside ModularWidget::initializePreferencesTab
child | a pointer to the new dialog |
name | the name of the new dialog |
|
slot |
void BALL::VIEW::Preferences::removeEntry | ( | PreferencesEntry * | child | ) |
Remove a previously inserted page. This method can be called inside ModularWidget::finalizePreferencesTab
child | a pointer to the dialog to be removed |
|
protected |
void BALL::VIEW::Preferences::setApplyEnabled | ( | bool | enabled | ) |
Activate or deactivate the apply and ok buttons.
|
slot |
|
slot |
Open the preferences dialog.
|
slot |
Show the given page.
|
slot |
void BALL::VIEW::Preferences::writePreferences | ( | INIFile & | inifile | ) |
Write the preferences (the position) to the INIFile inifile
. This method will be called in MainControl::aboutToExit.
inifile | the INIFile to be written into |
|
protected |
Definition at line 161 of file preferences.h.
|
protected |
Definition at line 163 of file preferences.h.
|
protected |
Definition at line 162 of file preferences.h.
|
protected |
Definition at line 164 of file preferences.h.