summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-10 22:09:05 (UTC)
committer zautrix <zautrix>2005-06-10 22:09:05 (UTC)
commite7ff7858eb79a452b65b77f8bf5ee108503f432a (patch) (side-by-side diff)
tree0d6146133a572b6236f9e9f4e3e5e2dc9629a88a
parentcdc55afb3d2c3ebd970843b7dce02acb1e6a189b (diff)
downloadkdepimpi-e7ff7858eb79a452b65b77f8bf5ee108503f432a.zip
kdepimpi-e7ff7858eb79a452b65b77f8bf5ee108503f432a.tar.gz
kdepimpi-e7ff7858eb79a452b65b77f8bf5ee108503f432a.tar.bz2
fff
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
@@ -16,24 +16,25 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
As a special exception, permission is given to link this program
with any edition of Qt, and distribute the resulting executable,
without including the source code for Qt in the source distribution.
*/
#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 )
: KOFilterView_base(parent,name,fl)
{
mFilters = filterList;
connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged()));
connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged()));
@@ -84,12 +85,32 @@ void KOFilterView::setSelectedFilter(QString filterName)
}
emit filterChanged();
}
void KOFilterView::setSelectedFilter( int fil )
{
if ( fil >= mSelectionCombo->count() )
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
@@ -15,25 +15,25 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
As a special exception, permission is given to link this program
with any edition of Qt, and distribute the resulting executable,
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;
class KOFilterView : public KOFilterView_base
{
Q_OBJECT
public:
KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0);
~KOFilterView();
@@ -45,13 +45,34 @@ class KOFilterView : public KOFilterView_base
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, 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