-rw-r--r-- | bin/kdepim/WhatsNew.txt | 10 | ||||
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | bin/kdepim/korganizer/icons16/workweek2.png | bin | 579 -> 609 bytes | |||
-rw-r--r-- | bin/kdepim/korganizer/workweek2.png | bin | 907 -> 929 bytes | |||
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/koprefs.h | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 26 | ||||
-rw-r--r-- | korganizer/searchdialog.cpp | 72 | ||||
-rw-r--r-- | korganizer/searchdialog.h | 7 |
9 files changed, 69 insertions, 50 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 7c81b3a..d3a8bc1 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt @@ -1,4 +1,14 @@ Info about the changes in new versions of KDE-Pim/Pi +********** VERSION 2.0.10 ************ + +KO/Pi: +In the desktop versions the context menu in the search dialog was broken after introducing the What'sThis info for the list view. +This is fixed. +Changed the search dialog a bit to make it more user friendly. +(E.g.: Removed message box about "no items found" and set key focus to search line edit after search). + +Added config option to hide the week number in KO/Pi toolbar. + ********** VERSION 2.0.9 ************ diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 1073fe7..b526df9 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt @@ -1293,5 +1293,5 @@ { "Summary/Loc.","Titel/Ort" }, { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, -{ "","" }, +{ "Week Number","Wochennummer" }, { "","" }, { "","" }, diff --git a/bin/kdepim/korganizer/icons16/workweek2.png b/bin/kdepim/korganizer/icons16/workweek2.png Binary files differindex e0e1fde..d3033d4 100644 --- a/bin/kdepim/korganizer/icons16/workweek2.png +++ b/bin/kdepim/korganizer/icons16/workweek2.png diff --git a/bin/kdepim/korganizer/workweek2.png b/bin/kdepim/korganizer/workweek2.png Binary files differindex 76cb86c..9538d53 100644 --- a/bin/kdepim/korganizer/workweek2.png +++ b/bin/kdepim/korganizer/workweek2.png diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index a91074f..7e3deff 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp @@ -86,4 +86,5 @@ KOPrefs::KOPrefs() : addItemBool("ShowIconForwardFast",&mShowIconForwardFast,true); addItemBool("ShowIconWhatsThis",&mShowIconWhatsThis,true); + addItemBool("ShowIconWeekNum",&mShowIconWeekNum,true); addItemBool("ShowIconNextDays",&mShowIconNextDays,true); addItemBool("ShowIconNext",&mShowIconNext,true); diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index e4e3dd7..09a0dce 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h @@ -182,4 +182,5 @@ class KOPrefs : public KPimPrefs bool mShowIconForwardFast; bool mShowIconWhatsThis; + bool mShowIconWeekNum; bool mShowIconNextDays; bool mShowIconNext; diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index a164fa4..4f2cccf 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -572,5 +572,6 @@ void MainWindow::initActions() icon = mWeekPixmap; mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); - mWeekAction->addTo( iconToolBar ); + if ( p-> mShowIconWeekNum ) + mWeekAction->addTo( iconToolBar ); mWeekFont = font(); @@ -624,4 +625,5 @@ void MainWindow::initActions() configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); configureToolBarMenu->insertSeparator(); + configureToolBarMenu->insertItem(i18n("Week Number"), 400); configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); @@ -707,4 +709,11 @@ void MainWindow::initActions() connect( day7_action, SIGNAL( activated() ), mView->viewManager(), SLOT( showWeekView() ) ); + + icon = loadPixmap( pathString + "workweek2" ); + configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); + QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); + day6_action->addTo( viewMenu ); + connect( day6_action, SIGNAL( activated() ), + mView->viewManager(), SLOT( showMonthViewWeek() ) ); icon = loadPixmap( pathString + "month" ); @@ -715,11 +724,4 @@ void MainWindow::initActions() mView->viewManager(), SLOT( showMonthView() ) ); - icon = loadPixmap( pathString + "workweek2" ); - configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); - QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); - day6_action->addTo( viewMenu ); - connect( day6_action, SIGNAL( activated() ), - mView->viewManager(), SLOT( showMonthViewWeek() ) ); - icon = loadPixmap( pathString + "todo" ); configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); @@ -1002,8 +1004,8 @@ void MainWindow::initActions() if (p-> mShowIconDay7) day7_action->addTo( iconToolBar ); - if (p-> mShowIconMonth) - month_action->addTo( iconToolBar ); if (p-> mShowIconDay6) day6_action->addTo( iconToolBar ); + if (p-> mShowIconMonth) + month_action->addTo( iconToolBar ); if (p-> mShowIconTodoview) todoview_action->addTo( iconToolBar ); @@ -1088,5 +1090,6 @@ void MainWindow::initActions() if (p-> mShowIconWhatsThis) configureToolBarMenu->setItemChecked( 300, true ); - + if (p-> mShowIconWeekNum) + configureToolBarMenu->setItemChecked( 400, true ); QLabel* dummy = new QLabel( iconToolBar ); dummy->setBackgroundColor( iconToolBar->backgroundColor() ); @@ -1829,4 +1832,5 @@ void MainWindow::configureToolBar( int item ) p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); + p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); // initActions(); } diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp index 3fd9740..aa1b244 100644 --- a/korganizer/searchdialog.cpp +++ b/korganizer/searchdialog.cpp @@ -27,4 +27,5 @@ #include <qgroupbox.h> #include <qlabel.h> +#include <qwhatsthis.h> #include <qlineedit.h> #include <qpushbutton.h> @@ -43,15 +44,14 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) - : KDialogBase(Plain,i18n("KO/Pi Find "),User1|Close,User1,parent,0,false,false, - i18n("&Find")) + : QVBox( 0 ) + { mCalendar = calendar; - QFrame *topFrame = plainPage(); - QVBoxLayout *layout = new QVBoxLayout(topFrame,0,spacingHint()); + QFrame *topFrame = new QFrame( this ) ;//plainPage(); + QVBoxLayout *layout = new QVBoxLayout(topFrame,KDialog::marginHint(),KDialog::spacingHint()); // Search expression QHBoxLayout *subLayout = new QHBoxLayout(); layout->addLayout(subLayout); - searchLabel = new QLabel(topFrame); searchLabel->setText(i18n("Search for:")); @@ -60,4 +60,8 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) searchEdit = new QLineEdit(topFrame); subLayout->addWidget(searchEdit); + QPushButton *OkButton = new QPushButton( i18n("&Find"), topFrame ); + //OkButton->setDefault( true ); + connect(OkButton,SIGNAL(clicked()),SLOT(doSearch())); + subLayout->addWidget(OkButton); searchEdit->setText("*"); // Find all events by default searchEdit->setFocus(); @@ -68,6 +72,4 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) // topFrame); - - QHBox *incidenceGroup = new QHBox( topFrame ); layout->addWidget(incidenceGroup); @@ -97,6 +99,5 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) QWidget *rangeWidget = new QWidget(topFrame); - QHBoxLayout *rangeLayout = new QHBoxLayout(rangeWidget,0,spacingHint()); - + QHBoxLayout *rangeLayout = new QHBoxLayout(rangeWidget,0,KDialog::spacingHint()); rangeLayout->addWidget(new QLabel(i18n("From:"),rangeWidget)); mStartDate = new KDateEdit(rangeWidget); @@ -106,31 +107,17 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) mEndDate->setDate(QDate::currentDate().addDays(365)); rangeLayout->addWidget(mEndDate); - - // mInclusiveCheck = new QCheckBox(i18n("Events have to be completely included"), topFrame); - //mInclusiveCheck->setChecked(false); + QToolButton *wt = QWhatsThis::whatsThisButton ( rangeWidget ); + rangeLayout->addWidget( (QWidget*)wt ); layout->addWidget(rangeWidget); - //layout->addWidget(mInclusiveCheck); - // Subjects to search - - // Results list view listView = new KOListView(mCalendar,topFrame); - //listView->showDates(); - - layout->addWidget(listView); - // if ( KOPrefs::instance()->mCompactDialogs ) { - // KOGlobals::fitDialogToScreen( this, true ); - // } - listView->readSettings(KOGlobals::config(),"SearchListView Layout"); - connect(this,SIGNAL(user1Clicked()),SLOT(doSearch())); - QPushButton *CloseButton = findButton( Close ); - //connect(CloseButton,SIGNAL(clicked()),listView, SLOT(clear())); -#ifndef DESKTOP_VERSION - setCaption(i18n("Click OK to search ->")); - hideButtons(); + setCaption( i18n("KO/Pi Find: ")); +#ifdef DESKTOP_VERSION + OkButton = new QPushButton( i18n("Close"), this ); + connect(OkButton,SIGNAL(clicked()),SLOT(hide())); #endif } @@ -159,5 +146,7 @@ void SearchDialog::updateList() void SearchDialog::searchTextChanged( const QString &_text ) { +#if 0 enableButton( KDialogBase::User1, !_text.isEmpty() ); +#endif } @@ -391,11 +380,26 @@ void SearchDialog::search(const QRegExp &re) } -/* + void SearchDialog::keyPressEvent ( QKeyEvent *e) { - - e->ignore(); - + switch ( e->key() ) { + case Qt::Key_Escape: + hide(); + break; + case Qt::Key_F: + if ( e->state() == Qt::ControlButton ) { + qDebug("full "); + + } + break; + case Qt::Key_Return: + case Qt::Key_Enter: + doSearch(); + break; + + default: + e->ignore(); + } } -*/ + //mMatchedJournals; diff --git a/korganizer/searchdialog.h b/korganizer/searchdialog.h index ebcff7a..f4aad9e 100644 --- a/korganizer/searchdialog.h +++ b/korganizer/searchdialog.h @@ -28,4 +28,5 @@ #include <kdialogbase.h> +#include <qvbox.h> #include <libkcal/calendar.h> @@ -40,6 +41,5 @@ class CalendarView; using namespace KCal; - -class SearchDialog : public KDialogBase +class SearchDialog : public QVBox { Q_OBJECT @@ -79,5 +79,4 @@ class SearchDialog : public KDialogBase KDateEdit *mStartDate; KDateEdit *mEndDate; - // QCheckBox *mInclusiveCheck; QCheckBox *mSummaryCheck; QCheckBox *mDescriptionCheck; @@ -88,5 +87,5 @@ class SearchDialog : public KDialogBase QCheckBox *mSearchAName; QCheckBox *mSearchAEmail; - //void keyPressEvent ( QKeyEvent *e) ; + void keyPressEvent ( QKeyEvent *e) ; }; |