-rw-r--r-- | korganizer/kofilterview.cpp | 8 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 8 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 15 |
3 files changed, 26 insertions, 5 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 @@ | |||
28 | #include <qlabel.h> | 28 | #include <qlabel.h> |
29 | #include <qdialog.h> | 29 | #include <qdialog.h> |
30 | #include <qtextstream.h> | 30 | #include <qtextstream.h> |
31 | #include <qtextcodec.h> | 31 | #include <qtextcodec.h> |
32 | #include <qwhatsthis.h> | ||
32 | 33 | ||
33 | 34 | ||
34 | #include <libkcal/calfilter.h> | 35 | #include <libkcal/calfilter.h> |
35 | 36 | ||
@@ -250,33 +251,38 @@ void KOCalEditView::readConfig() | |||
250 | addButT->setFocusPolicy(NoFocus); | 251 | addButT->setFocusPolicy(NoFocus); |
251 | mainLayout->addWidget( addButT,0,0 ); | 252 | mainLayout->addWidget( addButT,0,0 ); |
252 | addButT->setText( "D"); | 253 | addButT->setText( "D"); |
253 | connect(addButT,SIGNAL(clicked()),SLOT(defaultInfo())); | 254 | connect(addButT,SIGNAL(clicked()),SLOT(defaultInfo())); |
255 | 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.") ); | ||
254 | //addBut->setPixmap ( SmallIcon("greenhook16")); | 256 | //addBut->setPixmap ( SmallIcon("greenhook16")); |
255 | QPushButton *addBut = new QPushButton ( mw ); | 257 | QPushButton *addBut = new QPushButton ( mw ); |
256 | addBut->setFocusPolicy(NoFocus); | 258 | addBut->setFocusPolicy(NoFocus); |
257 | mainLayout->addWidget( addBut,0,++ii ); | 259 | mainLayout->addWidget( addBut,0,++ii ); |
258 | addBut->setPixmap ( SmallIcon("eye")); | 260 | addBut->setPixmap ( SmallIcon("eye")); |
261 | 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.") ); | ||
259 | connect(addBut,SIGNAL(clicked()),SLOT(enableAll())); | 262 | connect(addBut,SIGNAL(clicked()),SLOT(enableAll())); |
260 | int max = addBut->sizeHint().height(); | 263 | int max = addBut->sizeHint().height(); |
261 | addBut->setMaximumWidth( max ); | 264 | addBut->setMaximumWidth( max ); |
262 | addButT->setFixedSize( QSize( max, max ) ); | 265 | addButT->setFixedSize( QSize( max, max ) ); |
263 | QLabel* lab = new QLabel (i18n(" Calendar \n Resource "), mw ); | 266 | QLabel* lab = new QLabel (i18n(" Calendar \n Resource "), mw ); |
264 | mainLayout->addWidget( lab,0,++ii ); | 267 | mainLayout->addWidget( lab,0,++ii ); |
268 | 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.") ); | ||
265 | //lab = new QLabel ( i18n(" "), mw ); | 269 | //lab = new QLabel ( i18n(" "), mw ); |
266 | //mainLayout->addWidget( lab,0,++ii ); | 270 | //mainLayout->addWidget( lab,0,++ii ); |
267 | //lab->setFixedWidth( 1 ); | 271 | //lab->setFixedWidth( 1 ); |
268 | addBut = new QPushButton ( mw ); | 272 | addBut = new QPushButton ( mw ); |
269 | addBut->setFocusPolicy(NoFocus); | 273 | addBut->setFocusPolicy(NoFocus); |
270 | mainLayout->addWidget( addBut,0,++ii ); | 274 | mainLayout->addWidget( addBut,0,++ii ); |
271 | addBut->setPixmap ( SmallIcon("bell")); | 275 | addBut->setPixmap ( SmallIcon("bell")); |
276 | 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.") ); | ||
272 | connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm())); | 277 | connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm())); |
273 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 278 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
274 | 279 | ||
275 | addBut = new QPushButton ( mw ); | 280 | addBut = new QPushButton ( mw ); |
276 | addBut->setFocusPolicy(NoFocus); | 281 | addBut->setFocusPolicy(NoFocus); |
277 | mainLayout->addWidget( addBut,0,++ii ); | 282 | mainLayout->addWidget( addBut,0,++ii ); |
278 | addBut->setPixmap ( SmallIcon("pencil")); | 283 | addBut->setPixmap ( SmallIcon("pencil")); |
284 | 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.") ); | ||
279 | connect(addBut,SIGNAL(clicked()),SLOT(disableRO())); | 285 | connect(addBut,SIGNAL(clicked()),SLOT(disableRO())); |
280 | addBut->setMaximumWidth( addBut->sizeHint().height() ); | 286 | addBut->setMaximumWidth( addBut->sizeHint().height() ); |
281 | lab = new QLabel ( "", mw ); | 287 | lab = new QLabel ( "", mw ); |
282 | mainLayout->addWidget( lab,0,++ii ); | 288 | mainLayout->addWidget( lab,0,++ii ); |
@@ -285,9 +291,9 @@ void KOCalEditView::readConfig() | |||
285 | addBut->setFocusPolicy(NoFocus); | 291 | addBut->setFocusPolicy(NoFocus); |
286 | mainLayout->addWidget( addBut,0,++ii ); | 292 | mainLayout->addWidget( addBut,0,++ii ); |
287 | addBut->setPixmap ( SmallIcon("plus")); | 293 | addBut->setPixmap ( SmallIcon("plus")); |
288 | connect(addBut,SIGNAL(clicked()),SLOT(addCal())); | 294 | connect(addBut,SIGNAL(clicked()),SLOT(addCal())); |
289 | 295 | 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.") ); | |
290 | lab = new QLabel ( " ", mw ); | 296 | lab = new QLabel ( " ", mw ); |
291 | mainLayout->addWidget( lab,0,++ii ); | 297 | mainLayout->addWidget( lab,0,++ii ); |
292 | 298 | ||
293 | 299 | ||
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index be7b5b6..d534dbf 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -60,20 +60,20 @@ class KONewCalPrefs : public QDialog | |||
60 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); | 60 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); |
61 | lay->addWidget( lab ); | 61 | lay->addWidget( lab ); |
62 | nameE = new KLineEdit( this ); | 62 | nameE = new KLineEdit( this ); |
63 | lay->addWidget( nameE ); | 63 | lay->addWidget( nameE ); |
64 | lab = new QLabel( i18n("<b>Local ical (*.ics) file:</b>"), this ); | 64 | lab = new QLabel( i18n("<b>iCal (*.ics) file on disk:</b><br>(will be created, if not existing)"), this ); |
65 | lay->addWidget( lab ); | 65 | lay->addWidget( lab ); |
66 | url = new KURLRequester ( this ); | 66 | url = new KURLRequester ( this ); |
67 | lay->addWidget( url ); | 67 | lay->addWidget( url ); |
68 | QPushButton * ok = new QPushButton( i18n("OK"), this ); | 68 | QPushButton * ok = new QPushButton( i18n("OK"), this ); |
69 | lay->addWidget( ok ); | 69 | lay->addWidget( ok ); |
70 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 70 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
71 | lay->addWidget( cancel ); | 71 | lay->addWidget( cancel ); |
72 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); | 72 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); |
73 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 73 | connect (cancel, SIGNAL( clicked() ), this, SLOT ( reject()) ); |
74 | int minwid = 220; | 74 | int minwid = 440; |
75 | if ( QApplication::desktop()->width() >= 320 ) minwid = 300; | 75 | if ( QApplication::desktop()->width() < 480 ) minwid = 220; |
76 | setMinimumWidth( minwid ); | 76 | setMinimumWidth( minwid ); |
77 | resize(sizeHint() ); | 77 | resize(sizeHint() ); |
78 | } | 78 | } |
79 | 79 | ||
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) | |||
482 | KOQuickTodo::KOQuickTodo(QWidget *parent) : | 482 | KOQuickTodo::KOQuickTodo(QWidget *parent) : |
483 | QLineEdit(parent) | 483 | QLineEdit(parent) |
484 | { | 484 | { |
485 | setText(i18n("Click to add new Todo")); | 485 | setText(i18n("Click to add new Todo")); |
486 | setFocusPolicy ( QWidget::ClickFocus ); | ||
486 | } | 487 | } |
487 | 488 | ||
488 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) | 489 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) |
489 | { | 490 | { |
@@ -551,9 +552,23 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | |||
551 | allopen->setFixedHeight(fixhei ); | 552 | allopen->setFixedHeight(fixhei ); |
552 | allclose->setFixedHeight(fixhei ); | 553 | allclose->setFixedHeight(fixhei ); |
553 | s_run->setFixedHeight(fixhei ); | 554 | s_run->setFixedHeight(fixhei ); |
554 | mNewSubBut->setFixedHeight(fixhei ); | 555 | mNewSubBut->setFixedHeight(fixhei ); |
556 | |||
557 | flat->setFocusPolicy( NoFocus ); | ||
558 | s_done->setFocusPolicy( NoFocus ); | ||
559 | allopen->setFocusPolicy( NoFocus ); | ||
560 | allclose->setFocusPolicy( NoFocus ); | ||
561 | s_run->setFocusPolicy( NoFocus ); | ||
562 | mNewSubBut->setFocusPolicy( NoFocus ); | ||
555 | 563 | ||
564 | QWhatsThis::add( flat, i18n("Click this button to display all todos in a <b>flat</b> hierarchy" ) ); | ||
565 | QWhatsThis::add( allopen, i18n("Click this button to display all todos <b>openend</b>" ) ); | ||
566 | QWhatsThis::add( allclose, i18n("Click this button to display all todos <b>closed</b>" ) ); | ||
567 | QWhatsThis::add( s_run, i18n("Click this button to toggle show/hide <b>running</b> todos" ) ); | ||
568 | QWhatsThis::add( mNewSubBut, i18n("Click this button to add a new subtodo to the currently selected todo" ) ); | ||
569 | QWhatsThis::add( s_done, i18n("Click this button to toggle show/hide <b>completed</b> todos" ) ); | ||
570 | |||
556 | quickLayout->addWidget( mNewSubBut ); | 571 | quickLayout->addWidget( mNewSubBut ); |
557 | quickLayout->addWidget( s_done ); | 572 | quickLayout->addWidget( s_done ); |
558 | quickLayout->addWidget( s_run ); | 573 | quickLayout->addWidget( s_run ); |
559 | quickLayout->addWidget( allopen ); | 574 | quickLayout->addWidget( allopen ); |