#include <preferences.h>
Public slots | |
void | show () |
Open the preferences dialog. | |
void | showEntry (QWidget *page) |
Show the given page. | |
void | entrySelected () |
void | setDefaultValues () |
void | cancelPreferences () |
void | applyPreferences () |
Store the last applied values for undo. | |
void | showHelp () |
void | removeItem_ (QTreeWidgetItem *item, bool update) throw () |
HashSet< PreferencesEntry * > | entries_ |
HashMap< QTreeWidgetItem *, QWidget * > | item_to_widget_ |
HashMap< QTreeWidgetItem *, PreferencesEntry * > | item_to_entry_ |
HashMap< QWidget *, QTreeWidgetItem * > | widget_to_item_ |
Public Member Functions | |
Constructors | |
Preferences (QWidget *parent=NULL, const char *name="Preferences") throw () | |
Default Constructor. | |
Preferences (const Preferences &preferences) throw () | |
Copy constructur. | |
virtual | ~Preferences () throw () |
Destructor. | |
Accessors | |
bool | hasPages () throw () |
Check if pages are available. | |
void | insertEntry (PreferencesEntry *child) throw () |
Insert a new page. | |
void | removeEntry (PreferencesEntry *child) throw () |
Remove a previously inserted page. | |
void | fetchPreferences (INIFile &inifile) throw () |
Fetch the preferences (the position) from the INIFile inifile . | |
void | writePreferences (INIFile &inifile) throw () |
Write the preferences (the position) to the INIFile inifile . | |
const QWidget * | currentEntry () const throw () |
const QWidget * | currentPage () const throw () |
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.
|
Default Constructor. There are three buttons:
|
|
Fetch the preferences (the position) from the INIFile This method will be called inside MainControl::show().
|
|
Check if pages are available.
|
|
Insert a new page. This method can be called inside ModularWidget::initializePreferencesTab
|
|
Remove a previously inserted page. This method can be called inside ModularWidget::finalizePreferencesTab
|
|
Open the preferences dialog.
|
|
Write the preferences (the position) to the INIFile This method will be called in MainControl::aboutToExit.
|