summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp21
-rw-r--r--korganizer/kofilterview.h23
2 files changed, 43 insertions, 1 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index 1479208..f0d17b5 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -20,16 +20,17 @@
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#include <qcheckbox.h> 24#include <qcheckbox.h>
25#include <qcombobox.h> 25#include <qcombobox.h>
26#include <qpushbutton.h> 26#include <qpushbutton.h>
27 27
28
28#include <libkcal/calfilter.h> 29#include <libkcal/calfilter.h>
29 30
30#include "kofilterview.h" 31#include "kofilterview.h"
31 32
32KOFilterView::KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent, 33KOFilterView::KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent,
33 const char* name,WFlags fl ) 34 const char* name,WFlags fl )
34 : KOFilterView_base(parent,name,fl) 35 : KOFilterView_base(parent,name,fl)
35{ 36{
@@ -88,8 +89,28 @@ void KOFilterView::setSelectedFilter( int fil )
88{ 89{
89 if ( fil >= mSelectionCombo->count() ) 90 if ( fil >= mSelectionCombo->count() )
90 return; 91 return;
91 mSelectionCombo->setCurrentItem( fil ); 92 mSelectionCombo->setCurrentItem( fil );
92 emit filterChanged(); 93 emit filterChanged();
93} 94}
94 95
95 96
97
98KOCalEditView::KOCalEditView(QWidget* parent,
99 const char* name,WFlags fl )
100 : QWidget(parent,name,fl)
101{
102 /*
103 connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged()));
104 connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged()));
105 connect(mEditButton,SIGNAL(clicked()),SIGNAL(editCalEdits()));
106 */
107}
108
109KOCalEditView::~KOCalEditView()
110{
111 // no need to delete child widgets, Qt does it all for us
112}
113void KOCalEditView::readConfig( KConfig *)
114{
115
116}
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 9ba2673..2ac4da1 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -19,17 +19,17 @@
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23#ifndef KOFILTERVIEW_H 23#ifndef KOFILTERVIEW_H
24#define KOFILTERVIEW_H 24#define KOFILTERVIEW_H
25 25
26#include <qstring.h> 26#include <qstring.h>
27 27#include <kconfig.h>
28#include "kofilterview_base.h" 28#include "kofilterview_base.h"
29 29
30#include <libkcal/calfilter.h> 30#include <libkcal/calfilter.h>
31 31
32using namespace KCal; 32using namespace KCal;
33 33
34class KOFilterView : public KOFilterView_base 34class KOFilterView : public KOFilterView_base
35{ 35{
@@ -49,9 +49,30 @@ class KOFilterView : public KOFilterView_base
49 signals: 49 signals:
50 void filterChanged(); 50 void filterChanged();
51 void editFilters(); 51 void editFilters();
52 52
53 private: 53 private:
54 QPtrList<CalFilter> *mFilters; 54 QPtrList<CalFilter> *mFilters;
55}; 55};
56 56
57class KOCalEditView : public QWidget
58{
59 Q_OBJECT
60 public:
61 KOCalEditView( QWidget* parent=0,const char* name=0, WFlags fl=0);
62 ~KOCalEditView();
63
64 void readConfig( KConfig *);
65
66 signals:
67 void alarmEnabled ( int cal, bool enable );
68 void calendarEnabled ( int cal, bool enable );
69 void calendarReadonly ( int cal, bool readonly );
70 void setCalendarDefault ( int cal );
71 void removeCalendar ( int cal );
72
73 private:
74};
75
76
77
57#endif // KOFILTERVIEW_H 78#endif // KOFILTERVIEW_H