summaryrefslogtreecommitdiffabout
path: root/korganizer/kofilterview.cpp
authorzautrix <zautrix>2005-06-11 06:57:58 (UTC)
committer zautrix <zautrix>2005-06-11 06:57:58 (UTC)
commit53c616e1fe8855211377aab41b3359df5fea456c (patch) (side-by-side diff)
tree1125bd437738f0bb414486857e14dad6b7bcfa48 /korganizer/kofilterview.cpp
parente7ff7858eb79a452b65b77f8bf5ee108503f432a (diff)
downloadkdepimpi-53c616e1fe8855211377aab41b3359df5fea456c.zip
kdepimpi-53c616e1fe8855211377aab41b3359df5fea456c.tar.gz
kdepimpi-53c616e1fe8855211377aab41b3359df5fea456c.tar.bz2
fixx
Diffstat (limited to 'korganizer/kofilterview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.cpp64
1 files changed, 62 insertions, 2 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index f0d17b5..64675ad 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -24,11 +24,15 @@
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qpushbutton.h>
+#include <qlayout.h>
+#include <qlabel.h>
#include <libkcal/calfilter.h>
#include "kofilterview.h"
+#include <kiconloader.h>
+#include <kglobal.h>
KOFilterView::KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent,
const char* name,WFlags fl )
@@ -96,14 +100,50 @@ void KOFilterView::setSelectedFilter( int fil )
KOCalEditView::KOCalEditView(QWidget* parent,
- const char* name,WFlags fl )
- : QWidget(parent,name,fl)
+ const char* name )
+ : QWidget(parent,name)
{
/*
connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged()));
connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged()));
connect(mEditButton,SIGNAL(clicked()),SIGNAL(editCalEdits()));
*/
+ QGridLayout* mainLayout = new QGridLayout ( this , 2, 6 );
+ QPushButton * addBut = new QPushButton ( this );
+ mainLayout->addWidget( addBut,0,0 );
+ addBut->setPixmap ( SmallIcon("redcross16"));
+ connect(addBut,SIGNAL(clicked()),SLOT(addCal()));
+ addBut->setMaximumWidth( addBut->sizeHint().height() );
+
+ addBut = new QPushButton ( this );
+ mainLayout->addWidget( addBut,0,1 );
+ addBut->setPixmap ( SmallIcon("redcross16"));
+ connect(addBut,SIGNAL(clicked()),SLOT(enableAll()));
+ addBut->setMaximumWidth( addBut->sizeHint().height() );
+
+ QLabel* lab = new QLabel ( " "+i18n("Calendar")+" ", this );
+ mainLayout->addWidget( lab,0,2 );
+
+ addBut = new QPushButton ( this );
+ mainLayout->addWidget( addBut,0,3 );
+ addBut->setPixmap ( SmallIcon("redcross16"));
+ connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm()));
+ addBut->setMaximumWidth( addBut->sizeHint().height() );
+
+ addBut = new QPushButton ( this );
+ mainLayout->addWidget( addBut,0,4 );
+ addBut->setPixmap ( SmallIcon("redcross16"));
+ connect(addBut,SIGNAL(clicked()),SLOT(disableRO()));
+ addBut->setMaximumWidth( addBut->sizeHint().height() );
+
+ addBut = new QPushButton ( this );
+ mainLayout->addWidget( addBut,0,5 );
+ addBut->setPixmap ( SmallIcon("trash"));
+ connect(addBut,SIGNAL(clicked()),SLOT(deleteAll()));
+ addBut->setMaximumWidth( addBut->sizeHint().height() );
+
+
+
}
KOCalEditView::~KOCalEditView()
@@ -114,3 +154,23 @@ void KOCalEditView::readConfig( KConfig *)
{
}
+void KOCalEditView::addCal()
+{
+ qDebug("addcal ");
+}
+void KOCalEditView::enableAll()
+{
+ qDebug("enableAll");
+}
+void KOCalEditView::enableAlarm()
+{
+ qDebug("enableAlarm");
+}
+void KOCalEditView::disableRO()
+{
+ qDebug("OCalEditView::disableRO() ");
+}
+void KOCalEditView::deleteAll()
+{
+ qDebug("delteAll");
+}