author | zautrix <zautrix> | 2005-06-12 18:19:37 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-12 18:19:37 (UTC) |
commit | 8cfca2b9b7ece646229a72843cf8d6d63e7b8af9 (patch) (unidiff) | |
tree | 7c21b30011a56411a54f981f990bb2fcf344041a /korganizer/koprefs.h | |
parent | b56d3be87557510285d3381250faf9b7af300680 (diff) | |
download | kdepimpi-8cfca2b9b7ece646229a72843cf8d6d63e7b8af9.zip kdepimpi-8cfca2b9b7ece646229a72843cf8d6d63e7b8af9.tar.gz kdepimpi-8cfca2b9b7ece646229a72843cf8d6d63e7b8af9.tar.bz2 |
cal setting saving-loading
-rw-r--r-- | korganizer/koprefs.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index 864cf1b..7d71cbd 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -28,2 +28,4 @@ | |||
28 | #include <qdict.h> | 28 | #include <qdict.h> |
29 | #include <qdir.h> | ||
30 | #include <qobject.h> | ||
29 | 31 | ||
@@ -43,2 +45,25 @@ class QStringList; | |||
43 | 45 | ||
46 | class KopiCalendarFile : public QObject | ||
47 | { | ||
48 | public: | ||
49 | KopiCalendarFile( ) : QObject( ) | ||
50 | { | ||
51 | isStandard = false; | ||
52 | isEnabled = true; | ||
53 | isAlarmEnabled = true; | ||
54 | isReadOnly = false; | ||
55 | mName = "Calendar"; | ||
56 | mFileName = QDir::homeDirPath() + "/icalfile.ics"; | ||
57 | mCalNumber = 0; | ||
58 | mDefaultColor = Qt::red; | ||
59 | } | ||
60 | bool isStandard; | ||
61 | bool isEnabled; | ||
62 | bool isAlarmEnabled; | ||
63 | bool isReadOnly; | ||
64 | QString mName; | ||
65 | QString mFileName; | ||
66 | int mCalNumber; | ||
67 | QColor mDefaultColor; | ||
68 | }; | ||
44 | class KOPrefs : public KPimPrefs | 69 | class KOPrefs : public KPimPrefs |
@@ -69,3 +94,5 @@ class KOPrefs : public KPimPrefs | |||
69 | void setAllDefaults(); | 94 | void setAllDefaults(); |
70 | 95 | KopiCalendarFile * getNewCalendar(); | |
96 | void deleteCalendar( int ); | ||
97 | QColor defaultColor( int ) const; | ||
71 | protected: | 98 | protected: |
@@ -307,2 +334,4 @@ class KOPrefs : public KPimPrefs | |||
307 | int mCurrentDisplayedView; | 334 | int mCurrentDisplayedView; |
335 | QPtrList<KopiCalendarFile> mCalendars; | ||
336 | int mNextAvailableCalendar; | ||
308 | 337 | ||
@@ -310,2 +339,3 @@ class KOPrefs : public KPimPrefs | |||
310 | QDict<QColor> mCategoryColors; | 339 | QDict<QColor> mCategoryColors; |
340 | QArray<KopiCalendarFile*> mDefCalColors; | ||
311 | QColor mDefaultCategoryColor; | 341 | QColor mDefaultCategoryColor; |