1.1 --- a/settings.h Sun Jan 30 12:58:47 2005 +0000
1.2 +++ b/settings.h Tue Jan 24 15:09:48 2006 +0000
1.3 @@ -7,7 +7,29 @@
1.4
1.5 #include "misc.h"
1.6
1.7 +// Some helper functions and simplified settings class
1.8 +// to read and parse settings e.g. in undo/redo directories
1.9 +bool loadStringFromDisk (const QString &, QString &);
1.10 +bool saveStringToDisk (const QString &, const QString &s);
1.11
1.12 +class SimpleSettings
1.13 +{
1.14 +public:
1.15 + SimpleSettings ();
1.16 + ~SimpleSettings ();
1.17 + void clear();
1.18 + void readSettings(const QString &);
1.19 + void writeSettings(const QString &);
1.20 + QString readEntry (const QString &);
1.21 + void setEntry (const QString &,const QString &);
1.22 +private:
1.23 + QStringList keylist;
1.24 + QStringList valuelist;
1.25 +};
1.26 +
1.27 +
1.28 +// Overloaded QSettings class, used to save some settings in
1.29 +// a map instead of users home directory
1.30 class Settings:public QSettings,public xmlObj
1.31 {
1.32 public:
1.33 @@ -18,7 +40,6 @@
1.34 QString readLocalEntry ( const QString &, const QString &, const QString &);
1.35 void setLocalEntry (const QString &, const QString &, const QString &);
1.36 QString getXMLData (const QString &);
1.37 - void write ();
1.38
1.39 protected:
1.40 QStringList pathlist;