23 #ifndef QTXPREFERENCEMGR_H
24 #define QTXPREFERENCEMGR_H
27 #pragma warning( disable:4251 )
51 virtual int rtti()
const;
59 virtual bool isEmpty()
const;
66 QString title()
const;
67 void resource( QString&, QString& )
const;
69 virtual void setIcon(
const QIcon& );
70 virtual void setTitle(
const QString& );
71 virtual void setResource(
const QString&,
const QString& );
73 virtual void updateContents();
75 QVariant option(
const QString& )
const;
76 void setOption(
const QString&,
const QVariant& );
78 bool isEvaluateValues()
const;
79 void setEvaluateValues(
const bool );
81 bool isRestartRequired()
const;
82 void setRestartRequired(
const bool );
84 virtual void store() = 0;
85 virtual void retrieve() = 0;
87 QString resourceValue()
const;
88 void setResourceValue(
const QString& );
92 QtxPreferenceItem* findItem(
const QString&,
const int,
const bool =
false )
const;
97 virtual void activate();
103 int getInteger(
const int = 0 )
const;
104 double getDouble(
const double = 0.0 )
const;
105 bool getBoolean(
const bool =
false )
const;
106 QColor getColor(
const QColor& = QColor() )
const;
107 QFont getFont(
const QFont& = QFont() )
const;
108 QString getString(
const QString& = QString() )
const;
110 void setInteger(
const int );
111 void setDouble(
const double );
112 void setBoolean(
const bool );
113 void setColor(
const QColor& );
114 void setFont(
const QFont& );
115 void setString(
const QString& );
123 void sendItemChanges();
125 virtual void triggerUpdate();
127 virtual QVariant optionValue(
const QString& )
const;
128 virtual void setOptionValue(
const QString&,
const QVariant& );
134 static int generateId();
158 QVariant
option(
const int,
const QString& )
const;
159 void setOption(
const int,
const QString&,
const QVariant& );
161 virtual void store();
164 virtual void update();
166 virtual void toBackup();
167 virtual void fromBackup();
172 void resourceValues( QMap<int, QString>& )
const;
175 void setResourceValues( QMap<int, QString>& )
const;
178 void differentValues(
const QMap<int, QString>&,
const QMap<int, QString>&,
179 QMap<int, QString>&,
const bool fromFirst =
false )
const;
181 ResourceMap&,
const bool fromFirst =
false )
const;
183 virtual void changedResources(
const ResourceMap& );
191 #pragma warning( default:4251 )