-rw-r--r-- | korganizer/kofilterview.cpp | 21 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 23 |
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 @@ -22,12 +22,13 @@ */ #include <qcheckbox.h> #include <qcombobox.h> #include <qpushbutton.h> + #include <libkcal/calfilter.h> #include "kofilterview.h" KOFilterView::KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent, const char* name,WFlags fl ) @@ -90,6 +91,26 @@ void KOFilterView::setSelectedFilter( int fil ) return; mSelectionCombo->setCurrentItem( fil ); emit filterChanged(); } + +KOCalEditView::KOCalEditView(QWidget* parent, + const char* name,WFlags fl ) + : QWidget(parent,name,fl) +{ + /* + connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged())); + connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged())); + connect(mEditButton,SIGNAL(clicked()),SIGNAL(editCalEdits())); + */ +} + +KOCalEditView::~KOCalEditView() +{ + // no need to delete child widgets, Qt does it all for us +} +void KOCalEditView::readConfig( KConfig *) +{ + +} diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 9ba2673..2ac4da1 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h @@ -21,13 +21,13 @@ without including the source code for Qt in the source distribution. */ #ifndef KOFILTERVIEW_H #define KOFILTERVIEW_H #include <qstring.h> - +#include <kconfig.h> #include "kofilterview_base.h" #include <libkcal/calfilter.h> using namespace KCal; @@ -51,7 +51,28 @@ class KOFilterView : public KOFilterView_base void editFilters(); private: QPtrList<CalFilter> *mFilters; }; +class KOCalEditView : public QWidget +{ + Q_OBJECT + public: + KOCalEditView( QWidget* parent=0,const char* name=0, WFlags fl=0); + ~KOCalEditView(); + + void readConfig( KConfig *); + + signals: + void alarmEnabled ( int cal, bool enable ); + void calendarEnabled ( int cal, bool enable ); + void calendarReadonly ( int cal, bool readonly ); + void setCalendarDefault ( int cal ); + void removeCalendar ( int cal ); + + private: +}; + + + #endif // KOFILTERVIEW_H |