summaryrefslogtreecommitdiffabout
path: root/korganizer/kofilterview.h
authorzautrix <zautrix>2005-06-25 09:40:16 (UTC)
committer zautrix <zautrix>2005-06-25 09:40:16 (UTC)
commitb81bdd12cadbae5a3ab5a7f1f689bb4ae45cf315 (patch) (side-by-side diff)
treef56786fad0627a81fb175c363447da2c99f63429 /korganizer/kofilterview.h
parent5ee9f9bbbdfaa8c1bf9c07ce295fe3a6b0b49c98 (diff)
downloadkdepimpi-b81bdd12cadbae5a3ab5a7f1f689bb4ae45cf315.zip
kdepimpi-b81bdd12cadbae5a3ab5a7f1f689bb4ae45cf315.tar.gz
kdepimpi-b81bdd12cadbae5a3ab5a7f1f689bb4ae45cf315.tar.bz2
fixxx
Diffstat (limited to 'korganizer/kofilterview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kofilterview.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 5495d60..b57a6e9 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -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.
*/
#ifndef KOFILTERVIEW_H
#define KOFILTERVIEW_H
#include <qstring.h>
#include <qcheckbox.h>
+#include <qradiobutton.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qdialog.h>
#include <qscrollview.h>
#include <qpushbutton.h>
#include <kconfig.h>
#include "kofilterview_base.h"
#include <libkcal/calfilter.h>
#include <kurlrequester.h>
#include <klineedit.h>
@@ -139,24 +140,52 @@ class KOCalCheckButton : public QCheckBox
void selectNum ( int, bool );
private:
int mNumber;
void keyPressEvent ( QKeyEvent * e )
{
e->ignore();
}
private slots :
void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber , b); }
};
+class KOCalRadioButton : public QRadioButton
+{
+ Q_OBJECT
+ public:
+ KOCalRadioButton( QWidget *parent=0, const char *name=0 ) :
+ QRadioButton( parent, name)
+ {
+ connect( this, SIGNAL( toggled ( bool ) ),
+ SLOT( bottonClicked( bool ) ));
+ mNumber = -1;
+ setFocusPolicy(NoFocus);
+ //setMaximumWidth( 10 );
+
+ }
+ void setNum ( int num ) {mNumber = num; }
+ signals:
+ void selectNum ( int, bool );
+private:
+ int mNumber;
+ void keyPressEvent ( QKeyEvent * e )
+ {
+ e->ignore();
+ }
+
+private slots :
+ void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber , b); }
+};
+
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();
@@ -185,34 +214,35 @@ class KOCalEditView : public QScrollView
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) ;
void readConfig();
+ void defaultInfo();
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 );
void needsUpdate();
private:
QWidget *mw;
void toggleList ( QPtrList<KOCalCheckButton> );
- QPtrList<KOCalCheckButton> mStdandardB;
+ QPtrList<KOCalRadioButton> mStdandardB;
QPtrList<KOCalCheckButton> mEnabledB;
QPtrList<KOCalCheckButton> mAlarmB;
QPtrList<KOCalCheckButton> mROB;
QGridLayout* mainLayout;
};
#endif // KOFILTERVIEW_H