summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/korganizer/bell.pngbin1449 -> 1128 bytes
-rw-r--r--bin/kdepim/korganizer/eye.pngbin1339 -> 1475 bytes
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt3
-rw-r--r--korganizer/kofilterview.cpp28
-rw-r--r--korganizer/kofilterview.h32
5 files changed, 52 insertions, 11 deletions
diff --git a/bin/kdepim/korganizer/bell.png b/bin/kdepim/korganizer/bell.png
index 0b15133..2239c60 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
index fd70996..c2a0251 100644
--- a/bin/kdepim/korganizer/eye.png
+++ b/bin/kdepim/korganizer/eye.png
Binary files differ
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index b60ae7b..578f78d 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -1435,6 +1435,9 @@
{ "Yes, stop todo","Ja, stoppe Todo" },
{ "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" },
{ "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" },
+{ "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." },
+{ "","" },
+{ "","" },
{ "","" },
{ "","" },
{ "","" },
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index ce2880a..9709324 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -145,8 +145,8 @@ void KOCalEditView::selectStdCal( int id, bool b )
}
return;
}
- KOCalCheckButton* sen = (KOCalCheckButton*) sender();
- KOCalCheckButton* it = mStdandardB.first();
+ KOCalRadioButton* sen = (KOCalRadioButton*) sender();
+ KOCalRadioButton* it = mStdandardB.first();
while ( it ) {
if ( it->isChecked() ) {
if ( it != sen ) {
@@ -236,7 +236,9 @@ void KOCalEditView::readConfig()
QPushButton * addBut = new QPushButton ( mw );
addBut->setFocusPolicy(NoFocus);
mainLayout->addWidget( addBut,0,0 );
- addBut->setPixmap ( SmallIcon("greenhook16"));
+ addBut->setText( "D");
+ connect(addBut,SIGNAL(clicked()),SLOT(defaultInfo()));
+ //addBut->setPixmap ( SmallIcon("greenhook16"));
addBut->setMaximumWidth( addBut->sizeHint().height() );
int max = addBut->sizeHint().height();
addBut = new QPushButton ( mw );
@@ -290,14 +292,14 @@ void KOCalEditView::readConfig()
int row = 1;
while ( kkf ) {
int iii = 0;
- KOCalCheckButton* cb = new KOCalCheckButton( mw );
- mainLayout->addWidget( cb,row,0 );mStdandardB.append( cb );
- cb->setChecked( kkf->isStandard );
- cb->setNum( kkf->mCalNumber );
- connect (cb, SIGNAL (selectNum(int,bool)), SLOT ( selectStdCal(int,bool) ) );
+ KOCalRadioButton* rb = new KOCalRadioButton( mw );
+ mainLayout->addWidget( rb,row,0 );mStdandardB.append( rb );
+ rb->setChecked( kkf->isStandard );
+ rb->setNum( kkf->mCalNumber );
+ connect (rb, SIGNAL (selectNum(int,bool)), SLOT ( selectStdCal(int,bool) ) );
if ( kkf->mErrorOnLoad || kkf->isReadOnly )
- cb->setEnabled( false );
- cb = new KOCalCheckButton( mw );
+ rb->setEnabled( false );
+ KOCalCheckButton* cb = new KOCalCheckButton( mw );
mainLayout->addWidget( cb,row,++iii );mEnabledB.append( cb );
cb->setChecked( kkf->isEnabled );
cb->setNum( kkf->mCalNumber );
@@ -347,6 +349,12 @@ void KOCalEditView::readConfig()
mw->show();
}
+
+
+void KOCalEditView::defaultInfo()
+{
+ KMessageBox::information( this, i18n("Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.") );
+}
void KOCalEditView::addCal()
{
bool tryagain = true;
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 5495d60..b57a6e9 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -25,6 +25,7 @@
#include <qstring.h>
#include <qcheckbox.h>
+#include <qradiobutton.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qdialog.h>
@@ -148,6 +149,34 @@ 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
@@ -194,6 +223,7 @@ class KOCalEditView : public QScrollView
void deleteCal(int) ;
void infoCal(int) ;
void readConfig();
+ void defaultInfo();
signals:
void alarmEnabled ( int cal, bool enable );
void calendarEnabled ( int cal, bool enable );
@@ -206,7 +236,7 @@ class KOCalEditView : public QScrollView
private:
QWidget *mw;
void toggleList ( QPtrList<KOCalCheckButton> );
- QPtrList<KOCalCheckButton> mStdandardB;
+ QPtrList<KOCalRadioButton> mStdandardB;
QPtrList<KOCalCheckButton> mEnabledB;
QPtrList<KOCalCheckButton> mAlarmB;
QPtrList<KOCalCheckButton> mROB;