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
89 virtual bool getValue(
String&)
const = 0;
92 virtual bool setValue(
const String&) = 0;
96 typedef std::list<std::pair<QWidget*, String> >
StackPages;
105 virtual void writePreferenceEntries(
INIFile& inifile);
108 virtual void readPreferenceEntries(
const INIFile& inifile);
119 void setWidgetStackName(
const String& name);
127 void setWidgetStack(QStackedWidget* stack);
130 virtual void showStackPage(
Position nr);
133 virtual void showStackPage(
QWidget* widget);
136 virtual Position currentStackPage()
const;
139 virtual void restoreDefaultValues(
bool all =
false);
144 virtual void storeValues();
149 virtual void restoreValues(
bool all =
false);
157 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
167 void registerWidgets_();
172 void registerObject_(
QObject* widget);
178 void unregisterObject_(
QObject* widget);
183 void registerWidgetForHelpSystem_(
const QWidget* widget,
const String& url);
186 void restoreValues_(
bool all,
const ValueMap& map);
192 bool isSupported_(
QObject& widget);
218 #endif // BALL_VIEW_KERNEL_PREFERENCES_ENTRY