7 #ifndef BALL_VIEW_KERNEL_PREFERENCES_ENTRY
8 #define BALL_VIEW_KERNEL_PREFERENCES_ENTRY
10 #ifndef BALL_FORMAT_INIFILE_H
14 #ifndef BALL_DATATYPE_HASHSET_H
96 typedef std::list<std::pair<QWidget*, String> >
StackPages;
157 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
bool getValue_(const QObject *widget, String &value)
bool isSupported_(QObject &widget)
virtual Position currentStackPage() const
Get the currently shown page in the QStackedWidget.
virtual void restoreDefaultValues(bool all=false)
Set all registered objects to their default values.
std::list< std::pair< QWidget *, String > > StackPages
virtual ~PreferencesEntry()
const String & getINIFileSectionName() const
Get the name for the section in the INIFile.
HashMap< const QObject *, String > ValueMap
void setWidgetStack(QStackedWidget *stack)
void setWidgetStackName(const String &name)
virtual void restoreValues(bool all=false)
virtual void showStackPage(Position nr)
Show the specified page in the QStackedWidget.
virtual void writePreferenceEntries(INIFile &inifile)
Store the settings of all registered objects.
void insertStackEntry_(QWidget *, const String &name)
virtual bool setValueAllowed(QObject *)
Allows to prevent restoring of widgets.
String inifile_section_name_
bool setValue_(QObject *widget, const String &value)
HashSet< QObject * > registered_objects_
virtual void showStackPage(QWidget *widget)
Show the specified page in the QStackedWidget.
void setINIFileSectionName(const String &name)
Set the name for the section in the INIFile.
void unregisterObject_(QObject *widget)
StackPages & getStackPages()
Return all pages, that are to be shown in a parent QStackedWidget.
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
virtual void readPreferenceEntries(const INIFile &inifile)
Restore the settings of all registered objects.
virtual void storeValues()
void restoreValues_(bool all, const ValueMap &map)
void registerObject_(QObject *widget)
BALL_DEPRECATED void registerWidgetForHelpSystem_(const QWidget *, const String &)
QStackedWidget * widget_stack_
virtual bool getValue(String &) const =0
Overload this in derived classes!
virtual bool setValue(const String &)=0
Overload this in derived classes!
virtual ~ExtendedPreferencesObject()
ExtendedPreferencesObject()