summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-11 08:12:33 (UTC)
committer zautrix <zautrix>2005-06-11 08:12:33 (UTC)
commitad60ed0d2434b2e67f469962e0aab3b3171f7d56 (patch) (side-by-side diff)
tree5f795cf81afab90e91599a84e11378dd9b4aa864
parent53c616e1fe8855211377aab41b3359df5fea456c (diff)
downloadkdepimpi-ad60ed0d2434b2e67f469962e0aab3b3171f7d56.zip
kdepimpi-ad60ed0d2434b2e67f469962e0aab3b3171f7d56.tar.gz
kdepimpi-ad60ed0d2434b2e67f469962e0aab3b3171f7d56.tar.bz2
icons
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/bell.pngbin639 -> 1449 bytes
-rw-r--r--bin/kdepim/korganizer/eye.pngbin0 -> 1339 bytes
-rw-r--r--bin/kdepim/korganizer/icons16/bell.pngbin639 -> 873 bytes
-rw-r--r--bin/kdepim/korganizer/icons16/eye.pngbin0 -> 945 bytes
-rw-r--r--bin/kdepim/korganizer/icons16/plus.pngbin0 -> 888 bytes
-rw-r--r--bin/kdepim/korganizer/plus.pngbin0 -> 1268 bytes
-rw-r--r--korganizer/kofilterview.cpp6
7 files changed, 3 insertions, 3 deletions
diff --git a/bin/kdepim/korganizer/bell.png b/bin/kdepim/korganizer/bell.png
index 46ab9e3..0b15133 100644
--- a/bin/kdepim/korganizer/bell.png
+++ b/bin/kdepim/korganizer/bell.png
Binary files differ
diff --git a/bin/kdepim/korganizer/eye.png b/bin/kdepim/korganizer/eye.png
new file mode 100644
index 0000000..fd70996
--- a/dev/null
+++ b/bin/kdepim/korganizer/eye.png
Binary files differ
diff --git a/bin/kdepim/korganizer/icons16/bell.png b/bin/kdepim/korganizer/icons16/bell.png
index 46ab9e3..bd92cb1 100644
--- a/bin/kdepim/korganizer/icons16/bell.png
+++ b/bin/kdepim/korganizer/icons16/bell.png
Binary files differ
diff --git a/bin/kdepim/korganizer/icons16/eye.png b/bin/kdepim/korganizer/icons16/eye.png
new file mode 100644
index 0000000..4c5b163
--- a/dev/null
+++ b/bin/kdepim/korganizer/icons16/eye.png
Binary files differ
diff --git a/bin/kdepim/korganizer/icons16/plus.png b/bin/kdepim/korganizer/icons16/plus.png
new file mode 100644
index 0000000..7cee987
--- a/dev/null
+++ b/bin/kdepim/korganizer/icons16/plus.png
Binary files differ
diff --git a/bin/kdepim/korganizer/plus.png b/bin/kdepim/korganizer/plus.png
new file mode 100644
index 0000000..5780059
--- a/dev/null
+++ b/bin/kdepim/korganizer/plus.png
Binary files differ
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index 64675ad..e379abc 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -1,176 +1,176 @@
/*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
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.
*/
#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 )
: KOFilterView_base(parent,name,fl)
{
mFilters = filterList;
connect(mSelectionCombo,SIGNAL(activated(int)),SIGNAL(filterChanged()));
connect(mEnabledCheck,SIGNAL(clicked()),SIGNAL(filterChanged()));
connect(mEditButton,SIGNAL(clicked()),SIGNAL(editFilters()));
}
KOFilterView::~KOFilterView()
{
// no need to delete child widgets, Qt does it all for us
}
bool KOFilterView::filtersEnabled()
{
return mEnabledCheck->isChecked();
}
void KOFilterView::setFiltersEnabled(bool set)
{
mEnabledCheck->setChecked(set);
emit filterChanged();
}
void KOFilterView::updateFilters()
{
mSelectionCombo->clear();
CalFilter *filter = mFilters->first();
while(filter) {
mSelectionCombo->insertItem(filter->name());
filter = mFilters->next();
}
}
CalFilter *KOFilterView::selectedFilter()
{
CalFilter *f = mFilters->at(mSelectionCombo->currentItem());
return f;
}
void KOFilterView::setSelectedFilter(QString filterName)
{
int filter_num = mSelectionCombo->count();
int i;
for (i=0;i<filter_num;i++) {
if (mSelectionCombo->text(i)==filterName)
mSelectionCombo->setCurrentItem(i);
}
emit filterChanged();
}
void KOFilterView::setSelectedFilter( int fil )
{
if ( fil >= mSelectionCombo->count() )
return;
mSelectionCombo->setCurrentItem( fil );
emit filterChanged();
}
KOCalEditView::KOCalEditView(QWidget* parent,
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"));
+ addBut->setPixmap ( SmallIcon("plus"));
connect(addBut,SIGNAL(clicked()),SLOT(addCal()));
addBut->setMaximumWidth( addBut->sizeHint().height() );
addBut = new QPushButton ( this );
mainLayout->addWidget( addBut,0,1 );
- addBut->setPixmap ( SmallIcon("redcross16"));
+ addBut->setPixmap ( SmallIcon("eye"));
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"));
+ addBut->setPixmap ( SmallIcon("bell"));
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()
{
// no need to delete child widgets, Qt does it all for us
}
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");
}