summaryrefslogtreecommitdiffabout
path: root/korganizer/kofilterview.h
Unidiff
Diffstat (limited to 'korganizer/kofilterview.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kofilterview.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 1849e36..e2ebdd4 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -16,24 +16,25 @@
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
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#include <qcheckbox.h> 27#include <qcheckbox.h>
28#include <qscrollview.h>
28#include <qpushbutton.h> 29#include <qpushbutton.h>
29#include <kconfig.h> 30#include <kconfig.h>
30#include "kofilterview_base.h" 31#include "kofilterview_base.h"
31 32
32#include <libkcal/calfilter.h> 33#include <libkcal/calfilter.h>
33 34
34class QGridLayout; 35class QGridLayout;
35 36
36using namespace KCal; 37using namespace KCal;
37class KOCalButton : public QPushButton 38class KOCalButton : public QPushButton
38{ 39{
39 Q_OBJECT 40 Q_OBJECT
@@ -101,25 +102,25 @@ class KOFilterView : public KOFilterView_base
101 CalFilter *selectedFilter(); 102 CalFilter *selectedFilter();
102 void setSelectedFilter(QString); 103 void setSelectedFilter(QString);
103 void setSelectedFilter( int ); 104 void setSelectedFilter( int );
104 105
105 signals: 106 signals:
106 void filterChanged(); 107 void filterChanged();
107 void editFilters(); 108 void editFilters();
108 109
109 private: 110 private:
110 QPtrList<CalFilter> *mFilters; 111 QPtrList<CalFilter> *mFilters;
111}; 112};
112 113
113class KOCalEditView : public QWidget 114class KOCalEditView : public QScrollView
114{ 115{
115 Q_OBJECT 116 Q_OBJECT
116 public: 117 public:
117 KOCalEditView( QWidget* parent=0,const char* name=0); 118 KOCalEditView( QWidget* parent=0,const char* name=0);
118 ~KOCalEditView(); 119 ~KOCalEditView();
119 120
120 public slots: 121 public slots:
121 void addCal(); 122 void addCal();
122 void enableAll(); 123 void enableAll();
123 void enableAlarm(); 124 void enableAlarm();
124 void disableRO(); 125 void disableRO();
125 void deleteAll(); 126 void deleteAll();
@@ -132,25 +133,24 @@ class KOCalEditView : public QWidget
132 void infoCal(int) ; 133 void infoCal(int) ;
133 void readConfig(); 134 void readConfig();
134 signals: 135 signals:
135 void alarmEnabled ( int cal, bool enable ); 136 void alarmEnabled ( int cal, bool enable );
136 void calendarEnabled ( int cal, bool enable ); 137 void calendarEnabled ( int cal, bool enable );
137 void calendarReadonly ( int cal, bool readonly ); 138 void calendarReadonly ( int cal, bool readonly );
138 void setCalendarDefault ( int cal ); 139 void setCalendarDefault ( int cal );
139 void removeCalendar ( int cal ); 140 void removeCalendar ( int cal );
140 void calendarAdded( int ); 141 void calendarAdded( int );
141 void needsUpdate(); 142 void needsUpdate();
142 143
143 private: 144 private:
144 QVBoxLayout* ml;
145 QWidget *mw; 145 QWidget *mw;
146 void toggleList ( QPtrList<KOCalCheckButton> ); 146 void toggleList ( QPtrList<KOCalCheckButton> );
147 QPtrList<KOCalCheckButton> mStdandardB; 147 QPtrList<KOCalCheckButton> mStdandardB;
148 QPtrList<KOCalCheckButton> mEnabledB; 148 QPtrList<KOCalCheckButton> mEnabledB;
149 QPtrList<KOCalCheckButton> mAlarmB; 149 QPtrList<KOCalCheckButton> mAlarmB;
150 QPtrList<KOCalCheckButton> mROB; 150 QPtrList<KOCalCheckButton> mROB;
151 QGridLayout* mainLayout; 151 QGridLayout* mainLayout;
152}; 152};
153 153
154 154
155 155
156#endif // KOFILTERVIEW_H 156#endif // KOFILTERVIEW_H