author | zautrix <zautrix> | 2005-06-12 22:36:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-12 22:36:41 (UTC) |
commit | 5e4f16e92a96bdf89f82be3b231d18ae9e257486 (patch) (unidiff) | |
tree | 6bf55a0ae92e95dc598a813ed7b7eef5c00dfb4f /korganizer | |
parent | 8cfca2b9b7ece646229a72843cf8d6d63e7b8af9 (diff) | |
download | kdepimpi-5e4f16e92a96bdf89f82be3b231d18ae9e257486.zip kdepimpi-5e4f16e92a96bdf89f82be3b231d18ae9e257486.tar.gz kdepimpi-5e4f16e92a96bdf89f82be3b231d18ae9e257486.tar.bz2 |
fixxxx
-rw-r--r-- | korganizer/calendarview.cpp | 7 | ||||
-rw-r--r-- | korganizer/kofilterview.cpp | 255 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 118 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 7 | ||||
-rw-r--r-- | korganizer/koprefs.h | 1 |
5 files changed, 312 insertions, 76 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 753d81f..1024b4e 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -3942,4 +3942,7 @@ void CalendarView::showFilter(bool visible) | |||
3942 | { | 3942 | { |
3943 | #if 0 | 3943 | #if 1 |
3944 | if (visible) mCalEditView->show(); | 3944 | if (visible) { |
3945 | mCalEditView->readConfig(); | ||
3946 | mCalEditView->show(); | ||
3947 | } | ||
3945 | else mCalEditView->hide(); | 3948 | else mCalEditView->hide(); |
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index dc6237b..d79b28e 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -28,2 +28,3 @@ | |||
28 | #include <qlabel.h> | 28 | #include <qlabel.h> |
29 | #include <qdialog.h> | ||
29 | 30 | ||
@@ -33,4 +34,46 @@ | |||
33 | #include "kofilterview.h" | 34 | #include "kofilterview.h" |
35 | #include "koprefs.h" | ||
34 | #include <kiconloader.h> | 36 | #include <kiconloader.h> |
35 | #include <kglobal.h> | 37 | #include <kglobal.h> |
38 | #include <kcolorbutton.h> | ||
39 | #include <kmessagebox.h> | ||
40 | |||
41 | |||
42 | #include <kurlrequester.h> | ||
43 | #include <klineedit.h> | ||
44 | |||
45 | class KONewCalPrefs : public QDialog | ||
46 | { | ||
47 | public: | ||
48 | KONewCalPrefs( QWidget *parent=0, const char *name=0 ) : | ||
49 | QDialog( parent, name, true ) | ||
50 | { | ||
51 | setCaption( i18n("Add new Calendar") ); | ||
52 | QVBoxLayout* lay = new QVBoxLayout( this ); | ||
53 | lay->setSpacing( 3 ); | ||
54 | lay->setMargin( 3 ); | ||
55 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); | ||
56 | lay->addWidget( lab ); | ||
57 | nameE = new KLineEdit( this ); | ||
58 | lay->addWidget( nameE ); | ||
59 | lab = new QLabel( i18n("Local ical (*.ics) file:"), this ); | ||
60 | lay->addWidget( lab ); | ||
61 | url = new KURLRequester ( this ); | ||
62 | lay->addWidget( url ); | ||
63 | QPushButton * ok = new QPushButton( i18n("OK"), this ); | ||
64 | lay->addWidget( ok ); | ||
65 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | ||
66 | lay->addWidget( cancel ); | ||
67 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | ||
68 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | ||
69 | resize( 200, 200 ); | ||
70 | } | ||
71 | |||
72 | QString calName() { return nameE->text(); } | ||
73 | QString calFileName() { return url->url(); } | ||
74 | private: | ||
75 | KLineEdit* nameE; | ||
76 | KURLRequester *url; | ||
77 | }; | ||
78 | |||
36 | 79 | ||
@@ -105,9 +148,97 @@ KOCalEditView::KOCalEditView(QWidget* parent, | |||
105 | { | 148 | { |
106 | /* | 149 | mw = 0; |
107 | connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged())); | 150 | ml = new QVBoxLayout ( this ); |
108 | connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged())); | 151 | } |
109 | connect(mEditButton,SIGNAL(clicked()),SIGNAL(editCalEdits())); | 152 | |
110 | */ | 153 | KOCalEditView::~KOCalEditView() |
111 | QGridLayout* mainLayout = new QGridLayout ( this , 2, 6 ); | 154 | { |
112 | QPushButton * addBut = new QPushButton ( this ); | 155 | // no need to delete child widgets, Qt does it all for us |
156 | } | ||
157 | void KOCalEditView::selectCal(int id ,bool b) | ||
158 | { | ||
159 | KOPrefs::instance()->getCalendar( id )->isEnabled = b; | ||
160 | emit calendarEnabled ( id, b ); | ||
161 | |||
162 | } | ||
163 | void KOCalEditView::selectStdCal( int id, bool b ) | ||
164 | { | ||
165 | |||
166 | if ( !b ) { | ||
167 | KOCalCheckButton* it = (KOCalCheckButton*) sender(); | ||
168 | if ( it ) { | ||
169 | it->blockSignals( true ); | ||
170 | it->setChecked( true ); | ||
171 | it->blockSignals( false ); | ||
172 | return; | ||
173 | } | ||
174 | return; | ||
175 | } | ||
176 | KOCalCheckButton* sen = (KOCalCheckButton*) sender(); | ||
177 | KOCalCheckButton* it = mStdandardB.first(); | ||
178 | while ( it ) { | ||
179 | if ( it->isChecked() ) { | ||
180 | if ( it != sen ) { | ||
181 | it->blockSignals( true ); | ||
182 | it->setChecked( false ); | ||
183 | it->blockSignals( false ); | ||
184 | break; | ||
185 | } | ||
186 | } | ||
187 | it = mStdandardB.next(); | ||
188 | } | ||
189 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | ||
190 | while ( kkf ) { | ||
191 | kkf->isStandard = false; | ||
192 | kkf = KOPrefs::instance()->mCalendars.next(); | ||
193 | } | ||
194 | KOPrefs::instance()->getCalendar( id )->isStandard = true; | ||
195 | emit setCalendarDefault ( id ); | ||
196 | } | ||
197 | |||
198 | void KOCalEditView::selectCalAlarm(int id ,bool b ) | ||
199 | { | ||
200 | KOPrefs::instance()->getCalendar( id )->isAlarmEnabled = b; | ||
201 | emit alarmEnabled ( id , b ); | ||
202 | } | ||
203 | void KOCalEditView::selectReadOnly(int id ,bool b ) | ||
204 | { | ||
205 | KOPrefs::instance()->getCalendar( id )->isReadOnly = b; | ||
206 | emit calendarReadonly ( id , b ); | ||
207 | |||
208 | } | ||
209 | void KOCalEditView::setColor( const QColor& c, int id ) | ||
210 | { | ||
211 | KOPrefs::instance()->getCalendar( id )->mDefaultColor = c; | ||
212 | } | ||
213 | void KOCalEditView::deleteCal( int id ) | ||
214 | { | ||
215 | KopiCalendarFile * kkf = KOPrefs::instance()->getCalendar( id ); | ||
216 | QString name = kkf->mName; | ||
217 | QString file = kkf->mFileName; | ||
218 | if ( KMessageBox::warningContinueCancel( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b><tr> Do you want to remove this calendar from KO/Pi? (The file is not removed, of course!)").arg(name).arg(file) ) != KMessageBox::Continue ) return; | ||
219 | emit removeCalendar ( id ); | ||
220 | KOPrefs::instance()->mCalendars.remove ( kkf ); | ||
221 | readConfig(); | ||
222 | } | ||
223 | void KOCalEditView::infoCal( int id ) | ||
224 | { | ||
225 | QString name = KOPrefs::instance()->getCalendar( id )->mName; | ||
226 | QString file = KOPrefs::instance()->getCalendar( id )->mFileName; | ||
227 | KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) ); | ||
228 | } | ||
229 | void KOCalEditView::readConfig() | ||
230 | { | ||
231 | |||
232 | mStdandardB.clear(); | ||
233 | mEnabledB.clear(); | ||
234 | mAlarmB.clear(); | ||
235 | mROB.clear(); | ||
236 | |||
237 | if ( mw ) delete mw; | ||
238 | mw = new QWidget ( this ); | ||
239 | ml->addWidget ( mw ); | ||
240 | |||
241 | mainLayout = new QGridLayout ( mw , 2, 8 ); | ||
242 | mainLayout->setSpacing( 3 ); | ||
243 | QPushButton * addBut = new QPushButton ( mw ); | ||
113 | mainLayout->addWidget( addBut,0,0 ); | 244 | mainLayout->addWidget( addBut,0,0 ); |
@@ -117,3 +248,3 @@ KOCalEditView::KOCalEditView(QWidget* parent, | |||
117 | 248 | ||
118 | addBut = new QPushButton ( this ); | 249 | addBut = new QPushButton ( mw ); |
119 | mainLayout->addWidget( addBut,0,1 ); | 250 | mainLayout->addWidget( addBut,0,1 ); |
@@ -123,6 +254,6 @@ KOCalEditView::KOCalEditView(QWidget* parent, | |||
123 | 254 | ||
124 | QLabel* lab = new QLabel ( " "+i18n("Calendar")+" ", this ); | 255 | QLabel* lab = new QLabel ( " "+i18n("Calendar")+" ", mw ); |
125 | mainLayout->addWidget( lab,0,2 ); | 256 | mainLayout->addWidget( lab,0,2 ); |
126 | 257 | ||
127 | addBut = new QPushButton ( this ); | 258 | addBut = new QPushButton ( mw ); |
128 | mainLayout->addWidget( addBut,0,3 ); | 259 | mainLayout->addWidget( addBut,0,3 ); |
@@ -132,3 +263,3 @@ KOCalEditView::KOCalEditView(QWidget* parent, | |||
132 | 263 | ||
133 | addBut = new QPushButton ( this ); | 264 | addBut = new QPushButton ( mw ); |
134 | mainLayout->addWidget( addBut,0,4 ); | 265 | mainLayout->addWidget( addBut,0,4 ); |
@@ -138,4 +269,7 @@ KOCalEditView::KOCalEditView(QWidget* parent, | |||
138 | 269 | ||
139 | addBut = new QPushButton ( this ); | 270 | lab = new QLabel ( i18n(" Color "), mw ); |
140 | mainLayout->addWidget( addBut,0,5 ); | 271 | mainLayout->addWidget( lab,0,5 ); |
272 | #if 0 | ||
273 | addBut = new QPushButton ( mw ); | ||
274 | mainLayout->addWidget( addBut,0,6 ); | ||
141 | addBut->setPixmap ( SmallIcon("minus")); | 275 | addBut->setPixmap ( SmallIcon("minus")); |
@@ -143,13 +277,54 @@ KOCalEditView::KOCalEditView(QWidget* parent, | |||
143 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 277 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
278 | #endif | ||
144 | 279 | ||
145 | 280 | ||
281 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | ||
282 | int row = 1; | ||
283 | while ( kkf ) { | ||
146 | 284 | ||
147 | } | 285 | KOCalCheckButton* cb = new KOCalCheckButton( mw ); |
148 | 286 | mainLayout->addWidget( cb,row,0 );mStdandardB.append( cb ); | |
149 | KOCalEditView::~KOCalEditView() | 287 | cb->setChecked( kkf->isStandard ); |
150 | { | 288 | cb->setNum( kkf->mCalNumber ); |
151 | // no need to delete child widgets, Qt does it all for us | 289 | connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectStdCal(int,bool) ) ); |
152 | } | 290 | cb = new KOCalCheckButton( mw ); |
153 | void KOCalEditView::readConfig( KConfig *) | 291 | mainLayout->addWidget( cb,row,1 );mEnabledB.append( cb ); |
154 | { | 292 | cb->setChecked( kkf->isEnabled ); |
293 | cb->setNum( kkf->mCalNumber ); | ||
294 | connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectCal(int,bool) ) ); | ||
295 | KOCalButton* name = new KOCalButton( mw ); | ||
296 | name->setNum( kkf->mCalNumber ); | ||
297 | name->setText( kkf->mName ); | ||
298 | mainLayout->addWidget( name,row,2 ); | ||
299 | connect (name, SIGNAL (selectNum(int)), SLOT ( infoCal(int) ) ); | ||
300 | cb = new KOCalCheckButton( mw ); | ||
301 | mainLayout->addWidget( cb,row,3 );mAlarmB.append( cb ); | ||
302 | cb->setChecked( kkf->isAlarmEnabled ); | ||
303 | cb->setNum( kkf->mCalNumber ); | ||
304 | connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectCalAlarm(int,bool) ) ); | ||
305 | cb = new KOCalCheckButton( mw ); | ||
306 | mainLayout->addWidget( cb,row,4 );mROB.append( cb ); | ||
307 | cb->setChecked( kkf->isReadOnly ); | ||
308 | cb->setNum( kkf->mCalNumber ); | ||
309 | connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectReadOnly(int,bool) ) ); | ||
310 | KColorButton *colb = new KColorButton( mw ); | ||
311 | mainLayout->addWidget( colb,row,5 ); | ||
312 | colb->setID( kkf->mCalNumber ); | ||
313 | colb->setColor( kkf->mDefaultColor ); | ||
314 | connect (colb, SIGNAL (changedID(const QColor&, int )), SLOT ( setColor(const QColor&,int) ) ); | ||
315 | if ( row > 1) { | ||
316 | KOCalButton* calb = new KOCalButton( mw ); | ||
317 | mainLayout->addWidget( calb,row,6 ); | ||
318 | calb->setNum( kkf->mCalNumber ); | ||
319 | calb->setPixmap ( SmallIcon("minus")); | ||
320 | connect (calb, SIGNAL (selectNum(int)), SLOT ( deleteCal(int) ) ); | ||
321 | int hei = calb->sizeHint().height(); | ||
322 | calb->setMaximumSize( hei*9/10, hei*9/10 ); | ||
323 | } | ||
324 | ++row; | ||
325 | kkf = KOPrefs::instance()->mCalendars.next(); | ||
326 | } | ||
327 | lab = new QLabel ( "", mw ); | ||
328 | mainLayout->addWidget( lab,row,0 ); | ||
329 | mw->show(); | ||
155 | 330 | ||
@@ -159,2 +334,17 @@ void KOCalEditView::addCal() | |||
159 | qDebug("addcal "); | 334 | qDebug("addcal "); |
335 | KONewCalPrefs prefs ( this ); | ||
336 | if ( ! prefs.exec() ) | ||
337 | return; | ||
338 | QString name = prefs.calName(); | ||
339 | QString file = prefs.calFileName(); | ||
340 | QFileInfo fi ( file ); | ||
341 | if (!fi.exists() ) { | ||
342 | KMessageBox::information( this, i18n("File does not exist!\nNo calendar added!")); | ||
343 | return; | ||
344 | } | ||
345 | KopiCalendarFile * kkf = KOPrefs::instance()->getNewCalendar(); | ||
346 | kkf->mName = name; | ||
347 | kkf->mFileName = file; | ||
348 | emit calendarAdded( kkf->mCalNumber ); | ||
349 | readConfig(); | ||
160 | } | 350 | } |
@@ -162,3 +352,3 @@ void KOCalEditView::enableAll() | |||
162 | { | 352 | { |
163 | qDebug("enableAll"); | 353 | toggleList( mEnabledB ); |
164 | } | 354 | } |
@@ -166,3 +356,3 @@ void KOCalEditView::enableAlarm() | |||
166 | { | 356 | { |
167 | qDebug("enableAlarm"); | 357 | toggleList( mAlarmB ); |
168 | } | 358 | } |
@@ -170,3 +360,20 @@ void KOCalEditView::disableRO() | |||
170 | { | 360 | { |
171 | qDebug("OCalEditView::disableRO() "); | 361 | toggleList( mROB ); |
362 | } | ||
363 | void KOCalEditView::toggleList ( QPtrList<KOCalCheckButton> list ) | ||
364 | { | ||
365 | bool dis = false; | ||
366 | KOCalCheckButton* it = list.first(); | ||
367 | while ( it ) { | ||
368 | if ( !it->isChecked() ) { | ||
369 | dis = true; | ||
370 | break; | ||
371 | } | ||
372 | it = list.next(); | ||
373 | } | ||
374 | it = list.first(); | ||
375 | while ( it ) { | ||
376 | it->setChecked(dis); | ||
377 | it = list.next(); | ||
378 | } | ||
172 | } | 379 | } |
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 060108f..aaf0eb6 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -33,51 +33,5 @@ | |||
33 | 33 | ||
34 | using namespace KCal; | 34 | class QGridLayout; |
35 | |||
36 | class KOFilterView : public KOFilterView_base | ||
37 | { | ||
38 | Q_OBJECT | ||
39 | public: | ||
40 | KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0); | ||
41 | ~KOFilterView(); | ||
42 | |||
43 | void updateFilters(); | ||
44 | |||
45 | bool filtersEnabled(); | ||
46 | void setFiltersEnabled(bool); | ||
47 | CalFilter *selectedFilter(); | ||
48 | void setSelectedFilter(QString); | ||
49 | void setSelectedFilter( int ); | ||
50 | |||
51 | signals: | ||
52 | void filterChanged(); | ||
53 | void editFilters(); | ||
54 | |||
55 | private: | ||
56 | QPtrList<CalFilter> *mFilters; | ||
57 | }; | ||
58 | |||
59 | class KOCalEditView : public QWidget | ||
60 | { | ||
61 | Q_OBJECT | ||
62 | public: | ||
63 | KOCalEditView( QWidget* parent=0,const char* name=0); | ||
64 | ~KOCalEditView(); | ||
65 | |||
66 | void readConfig( KConfig *); | ||
67 | public slots: | ||
68 | void addCal(); | ||
69 | void enableAll(); | ||
70 | void enableAlarm(); | ||
71 | void disableRO(); | ||
72 | void deleteAll(); | ||
73 | signals: | ||
74 | void alarmEnabled ( int cal, bool enable ); | ||
75 | void calendarEnabled ( int cal, bool enable ); | ||
76 | void calendarReadonly ( int cal, bool readonly ); | ||
77 | void setCalendarDefault ( int cal ); | ||
78 | void removeCalendar ( int cal ); | ||
79 | |||
80 | private: | ||
81 | }; | ||
82 | 35 | ||
36 | using namespace KCal; | ||
83 | class KOCalButton : public QPushButton | 37 | class KOCalButton : public QPushButton |
@@ -116,2 +70,4 @@ class KOCalCheckButton : public QCheckBox | |||
116 | mNumber = -1; | 70 | mNumber = -1; |
71 | //setMaximumWidth( 10 ); | ||
72 | |||
117 | } | 73 | } |
@@ -132,2 +88,68 @@ private slots : | |||
132 | 88 | ||
89 | |||
90 | class KOFilterView : public KOFilterView_base | ||
91 | { | ||
92 | Q_OBJECT | ||
93 | public: | ||
94 | KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0); | ||
95 | ~KOFilterView(); | ||
96 | |||
97 | void updateFilters(); | ||
98 | |||
99 | bool filtersEnabled(); | ||
100 | void setFiltersEnabled(bool); | ||
101 | CalFilter *selectedFilter(); | ||
102 | void setSelectedFilter(QString); | ||
103 | void setSelectedFilter( int ); | ||
104 | |||
105 | signals: | ||
106 | void filterChanged(); | ||
107 | void editFilters(); | ||
108 | |||
109 | private: | ||
110 | QPtrList<CalFilter> *mFilters; | ||
111 | }; | ||
112 | |||
113 | class KOCalEditView : public QWidget | ||
114 | { | ||
115 | Q_OBJECT | ||
116 | public: | ||
117 | KOCalEditView( QWidget* parent=0,const char* name=0); | ||
118 | ~KOCalEditView(); | ||
119 | |||
120 | void readConfig(); | ||
121 | public slots: | ||
122 | void addCal(); | ||
123 | void enableAll(); | ||
124 | void enableAlarm(); | ||
125 | void disableRO(); | ||
126 | void deleteAll(); | ||
127 | void selectStdCal(int,bool ); | ||
128 | void selectCal(int,bool ); | ||
129 | void selectCalAlarm(int,bool ); | ||
130 | void selectReadOnly(int,bool ); | ||
131 | void setColor(const QColor &,int) ; | ||
132 | void deleteCal(int) ; | ||
133 | void infoCal(int) ; | ||
134 | signals: | ||
135 | void alarmEnabled ( int cal, bool enable ); | ||
136 | void calendarEnabled ( int cal, bool enable ); | ||
137 | void calendarReadonly ( int cal, bool readonly ); | ||
138 | void setCalendarDefault ( int cal ); | ||
139 | void removeCalendar ( int cal ); | ||
140 | void calendarAdded( int ); | ||
141 | |||
142 | private: | ||
143 | QVBoxLayout* ml; | ||
144 | QWidget *mw; | ||
145 | void toggleList ( QPtrList<KOCalCheckButton> ); | ||
146 | QPtrList<KOCalCheckButton> mStdandardB; | ||
147 | QPtrList<KOCalCheckButton> mEnabledB; | ||
148 | QPtrList<KOCalCheckButton> mAlarmB; | ||
149 | QPtrList<KOCalCheckButton> mROB; | ||
150 | QGridLayout* mainLayout; | ||
151 | }; | ||
152 | |||
153 | |||
154 | |||
133 | #endif // KOFILTERVIEW_H | 155 | #endif // KOFILTERVIEW_H |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 179f586..bc6aae4 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -444,3 +444,3 @@ void KOPrefs::usrReadConfig() | |||
444 | kkf->isStandard = true; | 444 | kkf->isStandard = true; |
445 | kkf->mName = i18n("Standard Calendar"); | 445 | kkf->mName = i18n("Standard"); |
446 | kkf->mFileName = locateLocal( "data", "korganizer/mycalendar.ics" ); | 446 | kkf->mFileName = locateLocal( "data", "korganizer/mycalendar.ics" ); |
@@ -460,3 +460,2 @@ void KOPrefs::usrReadConfig() | |||
460 | kkf->mFileName = locateLocal( "data", "korganizer/mycalendar.ics" ); | 460 | kkf->mFileName = locateLocal( "data", "korganizer/mycalendar.ics" ); |
461 | //kkf->mName = i18n("Standard Calendar"); | ||
462 | } | 461 | } |
@@ -467,2 +466,6 @@ void KOPrefs::usrReadConfig() | |||
467 | 466 | ||
467 | KopiCalendarFile * KOPrefs::getCalendar( int num ) | ||
468 | { | ||
469 | return mDefCalColors[num-1]; | ||
470 | } | ||
468 | 471 | ||
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index 7d71cbd..f114d88 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -95,2 +95,3 @@ class KOPrefs : public KPimPrefs | |||
95 | KopiCalendarFile * getNewCalendar(); | 95 | KopiCalendarFile * getNewCalendar(); |
96 | KopiCalendarFile * getCalendar( int ); | ||
96 | void deleteCalendar( int ); | 97 | void deleteCalendar( int ); |