-rw-r--r-- | korganizer/kofilterview.cpp | 8 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 6 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 15 |
3 files changed, 25 insertions, 4 deletions
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 6a6fff9..e86ec95 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp @@ -28,8 +28,9 @@ #include <qlabel.h> #include <qdialog.h> #include <qtextstream.h> #include <qtextcodec.h> +#include <qwhatsthis.h> #include <libkcal/calfilter.h> @@ -250,33 +251,38 @@ void KOCalEditView::readConfig() addButT->setFocusPolicy(NoFocus); mainLayout->addWidget( addButT,0,0 ); addButT->setText( "D"); connect(addButT,SIGNAL(clicked()),SLOT(defaultInfo())); + QWhatsThis::add( addButT, i18n("Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.") ); //addBut->setPixmap ( SmallIcon("greenhook16")); QPushButton *addBut = new QPushButton ( mw ); addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,++ii ); addBut->setPixmap ( SmallIcon("eye")); + QWhatsThis::add( addBut, i18n("In this column you can <b>set a calendar to be visible</b>. If a calendar is not visible its entries are not displayed in the views. You can add items to it and it is loaded/saved as usual.") ); connect(addBut,SIGNAL(clicked()),SLOT(enableAll())); int max = addBut->sizeHint().height(); addBut->setMaximumWidth( max ); addButT->setFixedSize( QSize( max, max ) ); QLabel* lab = new QLabel (i18n(" Calendar \n Resource "), mw ); mainLayout->addWidget( lab,0,++ii ); + QWhatsThis::add( lab, i18n("In this column you can see the <b>name of the calendar</b>. If you click on the name button you will get an information box about the loaded calendar file. If the file was not loaded at startup you can try to load it here again.") ); //lab = new QLabel ( i18n(" "), mw ); //mainLayout->addWidget( lab,0,++ii ); //lab->setFixedWidth( 1 ); addBut = new QPushButton ( mw ); addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,++ii ); addBut->setPixmap ( SmallIcon("bell")); + QWhatsThis::add( addBut, i18n("In this column you can <b>disable the alarms of a calendar all together</b>. The alarm data in the calendar itself is not changed, the alarms are marked internally as \"do not use\". Useful if you load a calendar of another person but do not want to get notified about alarms of that person.") ); connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm())); addBut->setMaximumWidth( addBut->sizeHint().height() ); addBut = new QPushButton ( mw ); addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,++ii ); addBut->setPixmap ( SmallIcon("pencil")); + QWhatsThis::add( addBut, i18n("In this column you can <b>set a calendar and all entries of the calendar to read only</b>. If a calendar is readonly the entries cannot be edited and no items can be added to the calendar. If you change a setting of a calendar to readonly in this column all data will be saved because the data of a readonly calendar is not saved later.") ); connect(addBut,SIGNAL(clicked()),SLOT(disableRO())); addBut->setMaximumWidth( addBut->sizeHint().height() ); lab = new QLabel ( "", mw ); mainLayout->addWidget( lab,0,++ii ); @@ -285,9 +291,9 @@ void KOCalEditView::readConfig() addBut->setFocusPolicy(NoFocus); mainLayout->addWidget( addBut,0,++ii ); addBut->setPixmap ( SmallIcon("plus")); connect(addBut,SIGNAL(clicked()),SLOT(addCal())); - + QWhatsThis::add( addBut, i18n("Click this button to <b>add a calendar</b>. You can add an existing calendar file or you can add a new calendar and KO/Pi creates a new empty calendar file for you.") ); lab = new QLabel ( " ", mw ); mainLayout->addWidget( lab,0,++ii ); diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index be7b5b6..d534dbf 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h @@ -60,9 +60,9 @@ class KONewCalPrefs : public QDialog QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); lay->addWidget( lab ); nameE = new KLineEdit( this ); lay->addWidget( nameE ); - lab = new QLabel( i18n("<b>Local ical (*.ics) file:</b>"), this ); + lab = new QLabel( i18n("<b>iCal (*.ics) file on disk:</b><br>(will be created, if not existing)"), this ); lay->addWidget( lab ); url = new KURLRequester ( this ); lay->addWidget( url ); QPushButton * ok = new QPushButton( i18n("OK"), this ); @@ -70,10 +70,10 @@ class KONewCalPrefs : public QDialog QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); lay->addWidget( cancel ); connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); - int minwid = 220; - if ( QApplication::desktop()->width() >= 320 ) minwid = 300; + int minwid = 440; + if ( QApplication::desktop()->width() < 480 ) minwid = 220; setMinimumWidth( minwid ); resize(sizeHint() ); } diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 27d755e..17248dc 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -482,8 +482,9 @@ void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) KOQuickTodo::KOQuickTodo(QWidget *parent) : QLineEdit(parent) { setText(i18n("Click to add new Todo")); + setFocusPolicy ( QWidget::ClickFocus ); } void KOQuickTodo::focusInEvent(QFocusEvent *ev) { @@ -552,8 +553,22 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : allclose->setFixedHeight(fixhei ); s_run->setFixedHeight(fixhei ); mNewSubBut->setFixedHeight(fixhei ); + flat->setFocusPolicy( NoFocus ); + s_done->setFocusPolicy( NoFocus ); + allopen->setFocusPolicy( NoFocus ); + allclose->setFocusPolicy( NoFocus ); + s_run->setFocusPolicy( NoFocus ); + mNewSubBut->setFocusPolicy( NoFocus ); + + QWhatsThis::add( flat, i18n("Click this button to display all todos in a <b>flat</b> hierarchy" ) ); + QWhatsThis::add( allopen, i18n("Click this button to display all todos <b>openend</b>" ) ); + QWhatsThis::add( allclose, i18n("Click this button to display all todos <b>closed</b>" ) ); + QWhatsThis::add( s_run, i18n("Click this button to toggle show/hide <b>running</b> todos" ) ); + QWhatsThis::add( mNewSubBut, i18n("Click this button to add a new subtodo to the currently selected todo" ) ); + QWhatsThis::add( s_done, i18n("Click this button to toggle show/hide <b>completed</b> todos" ) ); + quickLayout->addWidget( mNewSubBut ); quickLayout->addWidget( s_done ); quickLayout->addWidget( s_run ); quickLayout->addWidget( allopen ); |