summaryrefslogtreecommitdiffabout
path: root/korganizer/kofilterview.h
authorzautrix <zautrix>2005-06-12 22:36:41 (UTC)
committer zautrix <zautrix>2005-06-12 22:36:41 (UTC)
commit5e4f16e92a96bdf89f82be3b231d18ae9e257486 (patch) (side-by-side diff)
tree6bf55a0ae92e95dc598a813ed7b7eef5c00dfb4f /korganizer/kofilterview.h
parent8cfca2b9b7ece646229a72843cf8d6d63e7b8af9 (diff)
downloadkdepimpi-5e4f16e92a96bdf89f82be3b231d18ae9e257486.zip
kdepimpi-5e4f16e92a96bdf89f82be3b231d18ae9e257486.tar.gz
kdepimpi-5e4f16e92a96bdf89f82be3b231d18ae9e257486.tar.bz2
fixxxx
Diffstat (limited to 'korganizer/kofilterview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.h118
1 files changed, 70 insertions, 48 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 060108f..aaf0eb6 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -31,55 +31,9 @@
#include <libkcal/calfilter.h>
-using namespace KCal;
-
-class KOFilterView : public KOFilterView_base
-{
- Q_OBJECT
- public:
- KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0);
- ~KOFilterView();
-
- void updateFilters();
-
- bool filtersEnabled();
- void setFiltersEnabled(bool);
- CalFilter *selectedFilter();
- void setSelectedFilter(QString);
- void setSelectedFilter( int );
-
- signals:
- void filterChanged();
- void editFilters();
-
- private:
- QPtrList<CalFilter> *mFilters;
-};
-
-class KOCalEditView : public QWidget
-{
- Q_OBJECT
- public:
- KOCalEditView( QWidget* parent=0,const char* name=0);
- ~KOCalEditView();
-
- void readConfig( KConfig *);
- public slots:
- void addCal();
- void enableAll();
- void enableAlarm();
- void disableRO();
- void deleteAll();
- 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:
-};
+class QGridLayout;
+using namespace KCal;
class KOCalButton : public QPushButton
{
Q_OBJECT
@@ -114,6 +68,8 @@ class KOCalCheckButton : public QCheckBox
connect( this, SIGNAL( toggled ( bool ) ),
SLOT( bottonClicked( bool ) ));
mNumber = -1;
+ //setMaximumWidth( 10 );
+
}
void setNum ( int num ) {mNumber = num; }
signals:
@@ -130,4 +86,70 @@ private slots :
};
+
+class KOFilterView : public KOFilterView_base
+{
+ Q_OBJECT
+ public:
+ KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0);
+ ~KOFilterView();
+
+ void updateFilters();
+
+ bool filtersEnabled();
+ void setFiltersEnabled(bool);
+ CalFilter *selectedFilter();
+ void setSelectedFilter(QString);
+ void setSelectedFilter( int );
+
+ signals:
+ void filterChanged();
+ void editFilters();
+
+ private:
+ QPtrList<CalFilter> *mFilters;
+};
+
+class KOCalEditView : public QWidget
+{
+ Q_OBJECT
+ public:
+ KOCalEditView( QWidget* parent=0,const char* name=0);
+ ~KOCalEditView();
+
+ void readConfig();
+ public slots:
+ void addCal();
+ void enableAll();
+ void enableAlarm();
+ void disableRO();
+ void deleteAll();
+ void selectStdCal(int,bool );
+ void selectCal(int,bool );
+ void selectCalAlarm(int,bool );
+ void selectReadOnly(int,bool );
+ void setColor(const QColor &,int) ;
+ void deleteCal(int) ;
+ void infoCal(int) ;
+ 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 );
+ void calendarAdded( int );
+
+ private:
+ QVBoxLayout* ml;
+ QWidget *mw;
+ void toggleList ( QPtrList<KOCalCheckButton> );
+ QPtrList<KOCalCheckButton> mStdandardB;
+ QPtrList<KOCalCheckButton> mEnabledB;
+ QPtrList<KOCalCheckButton> mAlarmB;
+ QPtrList<KOCalCheckButton> mROB;
+ QGridLayout* mainLayout;
+};
+
+
+
#endif // KOFILTERVIEW_H