summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-01 11:19:13 (UTC)
committer zautrix <zautrix>2005-07-01 11:19:13 (UTC)
commit5d603fd22bc8126c6a9a6f377701669d3cee18f2 (patch) (side-by-side diff)
tree9fdef25d24a3a57e3ecf5ae2e4b1cc3d3fb0e0bf
parent409f5296344084e22833b35c03923b89d7be653b (diff)
downloadkdepimpi-5d603fd22bc8126c6a9a6f377701669d3cee18f2.zip
kdepimpi-5d603fd22bc8126c6a9a6f377701669d3cee18f2.tar.gz
kdepimpi-5d603fd22bc8126c6a9a6f377701669d3cee18f2.tar.bz2
many menu fixes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt15
-rw-r--r--desktop/rpm/kdepim_rpm2
-rw-r--r--korganizer/calendarview.cpp11
-rw-r--r--korganizer/calendarview.h1
-rw-r--r--korganizer/kolistview.cpp3
-rw-r--r--korganizer/kotodoview.cpp4
-rw-r--r--korganizer/mainwindow.cpp167
-rw-r--r--korganizer/mainwindow.h1
-rw-r--r--version2
9 files changed, 126 insertions, 80 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 3daf215..2bfdb2f 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -311,3 +311,3 @@
{ "Purge","Entferne" },
-{ "Purge Completed","Entferne erledigte Todos" },
+{ "Purge Completed...","Entferne erledigte Todos..." },
{ "Purge Todos","Todos bereinigen" },
@@ -475,3 +475,3 @@
{ "File","Datei" },
-{ "Clone...","Dupliziere.." },
+{ "Clone...","Dupliziere..." },
{ "Move...","Bewege..." },
@@ -547,3 +547,2 @@
{ "Remove from Events/Todos","Entferne von Terminen/Todos" },
-{ "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " },
{ "New categories not in list:","Kategorien, die nicht in der Liste sind:" },
@@ -1468,2 +1467,12 @@
{ "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" },
+{ "Selected Item","Ausgewähltes Item" },
+{ "Select Date...","Wähle Datum..." },
+{ "After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:","Nach dem Importieren/Laden/Syncen kann es neue Kategorien in den Terminen oder Todos geben, die nicht automatisch der Kategorieliste hinzugefügt werden. Bitte wählen Sie, was <b>jetzt</b> passieren soll:" },
+{ "Change category list now!","Ändere Kategorieliste jetzt!" },
+{ "Edit category list...","Ändere Kategorieliste..." },
+{ "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" },
+{ "","" },
+{ "","" },
+{ "","" },
+{ "","" },
{ "","" },
diff --git a/desktop/rpm/kdepim_rpm b/desktop/rpm/kdepim_rpm
index 279bbd4..d29ab72 100644
--- a/desktop/rpm/kdepim_rpm
+++ b/desktop/rpm/kdepim_rpm
@@ -2,3 +2,3 @@ Summary: A collection of PIM programs
Name: KDE-Pim-Pi
-Version: 2.1.11
+Version: 2.1.12
Release: SuSE_9.2
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index d0de233..c0f3be7 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -118,2 +118,3 @@
#include "mainwindow.h"
+#include "categoryeditdialog.h"
@@ -315,3 +316,3 @@ class KOCatPrefs : public QDialog
lay->setMargin( 3 );
- QLabel * lab = new QLabel( i18n("After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n "), this );
+ QLabel * lab = new QLabel( i18n("After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:"), this );
lay->addWidget( lab );
@@ -323,3 +324,3 @@ class KOCatPrefs : public QDialog
addCatBut->setChecked( true );
- QPushButton * ok = new QPushButton( i18n("OK"), this );
+ QPushButton * ok = new QPushButton( i18n("Change category list now!"), this );
lay->addWidget( ok );
@@ -2820,2 +2821,8 @@ int CalendarView::addCategories()
+void CalendarView::editCategories()
+{
+ qDebug("CalendarView::editCategories() ");
+ KPIM::CategoryEditDialog ced (KOPrefs::instance(),this );
+ ced.exec();
+}
void CalendarView::manageCategories()
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h
index f7e5366..3323a98 100644
--- a/korganizer/calendarview.h
+++ b/korganizer/calendarview.h
@@ -487,2 +487,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
void manageCategories();
+ void editCategories();
int addCategories();
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index 43e1113..517677c 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -440,3 +440,4 @@ void KOListView::populateCalPopup()
while ( kkf ) {
- mCalPopup->insertItem( kkf->mName, kkf->mCalNumber);
+ int index = mCalPopup->insertItem( kkf->mName, kkf->mCalNumber);
+ mCalPopup->setItemEnabled( index, !kkf->isReadOnly );
kkf = KOPrefs::instance()->mCalendars.next();
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 873a776..8d354c8 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -603,3 +603,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
#if 0
- mItemPopupMenu->insertItem(i18n("Delete completed To-Dos","Purge Completed"),
+ mItemPopupMenu->insertItem(i18n("Delete completed To-Dos","Purge Completed..."),
this, SLOT( purgeCompleted() ) );
@@ -616,3 +616,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
SLOT (newTodo()),0,1);
- mPopupMenu->insertItem(i18n("delete completed To-Dos","Purge Completed"),
+ mPopupMenu->insertItem(i18n("delete completed To-Dos","Purge Completed..."),
this, SLOT(purgeCompleted()),0,2);
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 23537a6..a5d8824 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -656,2 +656,7 @@ void MainWindow::initActions()
QPopupMenu *actionMenu = new QPopupMenu( this );
+#ifdef DESKTOP_VERSION
+ mCurrentItemMenu = actionMenu;
+#else
+ mCurrentItemMenu = new QPopupMenu ( this );
+#endif
QPopupMenu *importMenu = new QPopupMenu( this );
@@ -767,15 +772,24 @@ void MainWindow::initActions()
this, SLOT( showConfigureAgenda( ) ) );
+ icon = loadPixmap( pathString + "today" );
+ QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
+ today_action->addTo( actionMenu );
+ connect( today_action, SIGNAL( activated() ),
+ mView, SLOT( goToday() ) );
+
+ icon = loadPixmap( pathString + "picker" );
+ QAction* dPickerAction = new QAction( i18n("Select Date..."), icon, i18n("Select Date..."), 0, this );
+ dPickerAction->addTo( actionMenu );
+ connect( dPickerAction, SIGNAL( activated() ),
+ mView, SLOT( showDatePicker() ) );
+
+ icon = loadPixmap( pathString + "search" );
+ QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this );
+ search_action->addTo( actionMenu );
+ connect( search_action, SIGNAL( activated() ),
+ mView->dialogManager(), SLOT( showSearchDialog() ) );
- icon = loadPixmap( pathString + "configure" );
- action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this );
- action->addTo( actionMenu );
- connect( action, SIGNAL( activated() ),
- mView, SLOT( edit_options() ) );
- icon = loadPixmap( pathString + "configure" );
- action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this );
- action->addTo( actionMenu );
- connect( action, SIGNAL( activated() ),
- mView, SLOT( edit_global_options() ) );
actionMenu->insertSeparator();
+
+
action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this );
@@ -784,3 +798,2 @@ void MainWindow::initActions()
mView, SLOT( undo_delete() ) );
- actionMenu->insertSeparator();
@@ -794,2 +807,43 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 );
+
+#ifndef DESKTOP_VERSION
+ actionMenu->insertItem ( i18n("Selected Item"), mCurrentItemMenu);
+#endif
+ mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this );
+ mShowAction->addTo( mCurrentItemMenu );
+ connect( mShowAction, SIGNAL( activated() ),
+ mView, SLOT( showIncidence() ) );
+
+ mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this );
+ mEditAction->addTo( mCurrentItemMenu );
+ connect( mEditAction, SIGNAL( activated() ),
+ mView, SLOT( editIncidence() ) );
+
+ mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this );
+ mDeleteAction->addTo( mCurrentItemMenu );
+ connect( mDeleteAction, SIGNAL( activated() ),
+ mView, SLOT( deleteIncidence() ) );
+
+
+ mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
+ mCloneAction->addTo( mCurrentItemMenu );
+ connect( mCloneAction, SIGNAL( activated() ),
+ mView, SLOT( cloneIncidence() ) );
+ mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
+ mMoveAction->addTo( mCurrentItemMenu );
+ connect( mMoveAction, SIGNAL( activated() ),
+ mView, SLOT( moveIncidence() ) );
+ mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
+ mBeamAction->addTo(mCurrentItemMenu );
+ connect( mBeamAction, SIGNAL( activated() ),
+ mView, SLOT( beamIncidence() ) );
+ mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
+ mCancelAction->addTo( mCurrentItemMenu );
+ connect( mCancelAction, SIGNAL( activated() ),
+ mView, SLOT( toggleCancelIncidence() ) );
+#ifdef DESKTOP_VERSION
+ actionMenu->insertSeparator();
+#endif
+
+
QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
@@ -805,8 +859,3 @@ void MainWindow::initActions()
- icon = loadPixmap( pathString + "today" );
- QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
- today_action->addTo( viewMenu );
- connect( today_action, SIGNAL( activated() ),
- mView, SLOT( goToday() ) );
- viewMenu->insertSeparator();
+
@@ -857,9 +906,4 @@ void MainWindow::initActions()
- viewMenu->insertSeparator();
- icon = loadPixmap( pathString + "picker" );
- action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this );
- action->addTo( viewMenu );
- connect( action, SIGNAL( activated() ),
- mView, SLOT( showDatePicker() ) );
- action->addTo( iconToolBar );
+
+ dPickerAction->addTo( iconToolBar );
viewMenu->insertSeparator();
@@ -962,55 +1006,36 @@ void MainWindow::initActions()
- actionMenu->insertSeparator();
-
- mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this );
- mShowAction->addTo( actionMenu );
- connect( mShowAction, SIGNAL( activated() ),
- mView, SLOT( showIncidence() ) );
+ action = new QAction( "purge_completed", i18n("Purge Completed..."), 0,
+ this );
+ action->addTo( actionMenu );
+ connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) );
- mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this );
- mEditAction->addTo( actionMenu );
- connect( mEditAction, SIGNAL( activated() ),
- mView, SLOT( editIncidence() ) );
- mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this );
- mDeleteAction->addTo( actionMenu );
- connect( mDeleteAction, SIGNAL( activated() ),
- mView, SLOT( deleteIncidence() ) );
+ configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5);
- mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
- mCloneAction->addTo( actionMenu );
- connect( mCloneAction, SIGNAL( activated() ),
- mView, SLOT( cloneIncidence() ) );
- mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
- mMoveAction->addTo( actionMenu );
- connect( mMoveAction, SIGNAL( activated() ),
- mView, SLOT( moveIncidence() ) );
- mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
- mBeamAction->addTo( actionMenu );
- connect( mBeamAction, SIGNAL( activated() ),
- mView, SLOT( beamIncidence() ) );
- mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
- mCancelAction->addTo( actionMenu );
- connect( mCancelAction, SIGNAL( activated() ),
- mView, SLOT( toggleCancelIncidence() ) );
actionMenu->insertSeparator();
-
- action = new QAction( "purge_completed", i18n("Purge Completed"), 0,
+ action = new QAction( "manage cat", i18n("Edit category list..."), 0,
this );
action->addTo( actionMenu );
- connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) );
-
- icon = loadPixmap( pathString + "search" );
- QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this );
- configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5);
- search_action->addTo( actionMenu );
- connect( search_action, SIGNAL( activated() ),
- mView->dialogManager(), SLOT( showSearchDialog() ) );
+ connect( action, SIGNAL( activated() ), mView, SLOT( editCategories() ) );
+ action = new QAction( "manage cat", i18n("Manage new categories..."), 0,
+ this );
+ action->addTo( actionMenu );
+ connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) );
- if ( KOPrefs::instance()->mShowFullMenu ) {
actionMenu->insertSeparator();
+ icon = loadPixmap( pathString + "configure" );
+ action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this );
+ action->addTo( actionMenu );
+ connect( action, SIGNAL( activated() ),
+ mView, SLOT( edit_options() ) );
+ icon = loadPixmap( pathString + "configure" );
+ action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this );
+ action->addTo( actionMenu );
+ connect( action, SIGNAL( activated() ),
+ mView, SLOT( edit_global_options() ) );
+ if ( KOPrefs::instance()->mShowFullMenu ) {
actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu );
@@ -1126,7 +1151,3 @@ void MainWindow::initActions()
#endif
- importMenu->insertSeparator();
- action = new QAction( "manage cat", i18n("Manage new categories..."), 0,
- this );
- action->addTo( importMenu );
- connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) );
+
importMenu->insertSeparator();
@@ -1716,2 +1737,6 @@ void MainWindow::enableIncidenceActions( bool enabled )
{
+
+#ifndef DESKTOP_VERSION
+ mCurrentItemMenu->setEnabled( enabled );
+#else
mShowAction->setEnabled( enabled );
@@ -1724,2 +1749,3 @@ void MainWindow::enableIncidenceActions( bool enabled )
mCancelAction->setEnabled( enabled );
+#endif
}
@@ -2276,2 +2302,3 @@ void MainWindow::configureToolBar( int item )
// initActions();
+ setCaption ( i18n("Toolbar changes needs a restart!") );
}
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index a4d0523..953774f 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -131,2 +131,3 @@ class MainWindow : public QMainWindow
QPopupMenu * filterPopupMenu;
+ QPopupMenu * mCurrentItemMenu;
void initActions();
diff --git a/version b/version
index 6a9a414..8ab3bd7 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-version = "2.1.11";
+version = "2.1.12";