summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt6
-rw-r--r--korganizer/kodialogmanager.cpp87
-rw-r--r--korganizer/mainwindow.cpp59
-rw-r--r--libkdepim/kdatepicker.cpp4
4 files changed, 84 insertions, 72 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index b526df9..246ab3d 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -1295,5 +1295,5 @@
{ "Week Number","Wochennummer" },
-{ "","" },
-{ "","" },
-{ "","" },
+{ "Import","Importiere" },
+{ "Export","Exportiere" },
+{ "Beam","Beame" },
{ "","" },
diff --git a/korganizer/kodialogmanager.cpp b/korganizer/kodialogmanager.cpp
index 41a4dc1..1af9dad 100644
--- a/korganizer/kodialogmanager.cpp
+++ b/korganizer/kodialogmanager.cpp
@@ -169,49 +169,52 @@ void KODialogManager::showSearchDialog()
{
- if (!mSearchDialog) {
- mSearchDialog = new SearchDialog(mMainView->calendar(),mMainView);
- KOListView * lview = mSearchDialog->listview();
-
- connect(lview, SIGNAL(showIncidenceSignal(Incidence *)),
- mMainView, SLOT(showIncidence(Incidence *)));
- connect(lview, SIGNAL(editIncidenceSignal(Incidence *)),
- mMainView, SLOT(editIncidence(Incidence *)));
- connect(lview, SIGNAL(deleteIncidenceSignal(Incidence *)),
- mMainView, SLOT(deleteIncidence(Incidence *)));
- connect(lview, SIGNAL(cloneIncidenceSignal(Incidence *)),
- mMainView, SLOT(cloneIncidence(Incidence *)));
- connect(lview, SIGNAL(beamIncidenceSignal(Incidence *)),
- mMainView, SLOT(beamIncidence(Incidence *)));
- connect(lview, SIGNAL(moveIncidenceSignal(Incidence *)),
- mMainView, SLOT(moveIncidence(Incidence *)));
- connect(lview, SIGNAL(beamIncidenceList(QPtrList<Incidence> )),
- mMainView, SLOT(beamIncidenceList(QPtrList<Incidence> )));
-
- connect(mMainView, SIGNAL(configChanged()), mSearchDialog, SLOT(updateConfig()));
- connect(mMainView, SIGNAL(updateSearchDialog()), mSearchDialog, SLOT(updateList()));
- // connect( lview, SIGNAL( incidenceSelected( Incidence * ) ),
- // mMainView, SLOT( processMainViewSelection( Incidence * ) ) );
+ if (!mSearchDialog) {
+ mSearchDialog = new SearchDialog(mMainView->calendar(),mMainView);
+ KOListView * lview = mSearchDialog->listview();
+
+ connect(lview, SIGNAL(showIncidenceSignal(Incidence *)),
+ mMainView, SLOT(showIncidence(Incidence *)));
+ connect(lview, SIGNAL(editIncidenceSignal(Incidence *)),
+ mMainView, SLOT(editIncidence(Incidence *)));
+ connect(lview, SIGNAL(deleteIncidenceSignal(Incidence *)),
+ mMainView, SLOT(deleteIncidence(Incidence *)));
+ connect(lview, SIGNAL(cloneIncidenceSignal(Incidence *)),
+ mMainView, SLOT(cloneIncidence(Incidence *)));
+ connect(lview, SIGNAL(beamIncidenceSignal(Incidence *)),
+ mMainView, SLOT(beamIncidence(Incidence *)));
+ connect(lview, SIGNAL(moveIncidenceSignal(Incidence *)),
+ mMainView, SLOT(moveIncidence(Incidence *)));
+ connect(lview, SIGNAL(beamIncidenceList(QPtrList<Incidence> )),
+ mMainView, SLOT(beamIncidenceList(QPtrList<Incidence> )));
+
+ connect(mMainView, SIGNAL(configChanged()), mSearchDialog, SLOT(updateConfig()));
+ connect(mMainView, SIGNAL(updateSearchDialog()), mSearchDialog, SLOT(updateList()));
+ // connect( lview, SIGNAL( incidenceSelected( Incidence * ) ),
+ // mMainView, SLOT( processMainViewSelection( Incidence * ) ) );
#ifndef DESKTOP_VERSION
- mSearchDialog->setMaximumSize( QApplication::desktop()->size());
- //mSearchDialog->setGeometry( 40,40, 400, 300);
- mSearchDialog->showMaximized();
+ mSearchDialog->setMaximumSize( QApplication::desktop()->size());
+ mSearchDialog->showMaximized();
#else
- KConfig *config = KOGlobals::config();
- config->setGroup("WidgetLayout");
- QStringList list;
- list = config->readListEntry("SearchLayout");
- int x,y,w,h;
- if ( ! list.isEmpty() ) {
- x = list[0].toInt();
- y = list[1].toInt();
- w = list[2].toInt();
- h = list[3].toInt();
- mSearchDialog->setGeometry(x,y,w,h);
+ KConfig *config = KOGlobals::config();
+ config->setGroup("WidgetLayout");
+ QStringList list;
+ list = config->readListEntry("SearchLayout");
+ int x,y,w,h;
+ if ( ! list.isEmpty() ) {
+ x = list[0].toInt();
+ y = list[1].toInt();
+ w = list[2].toInt();
+ h = list[3].toInt();
+ mSearchDialog->setGeometry(x,y,w,h);
- }
+ }
#endif
- }
- // make sure the widget is on top again
- mSearchDialog->show();
- mSearchDialog->raise();
+ }
+ // make sure the widget is on top again
+#ifdef DESKTOP_VERSION
+ mSearchDialog->show();
+#else
+ mSearchDialog->showMaximized();
+#endif
+ mSearchDialog->raise();
}
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 019f41f..4f71788 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -515,2 +515,5 @@ void MainWindow::initActions()
QPopupMenu *importMenu = new QPopupMenu( this );
+ QPopupMenu *importMenu_X = new QPopupMenu( this );
+ QPopupMenu *exportMenu_X = new QPopupMenu( this );
+ QPopupMenu *beamMenu_X = new QPopupMenu( this );
selectFilterMenu = new QPopupMenu( this );
@@ -521,3 +524,2 @@ void MainWindow::initActions()
QPopupMenu *helpMenu = new QPopupMenu( this );
-
QIconSet icon;
@@ -827,3 +829,3 @@ void MainWindow::initActions()
this );
- action->addTo( importMenu );
+ action->addTo( importMenu_X );
connect( action, SIGNAL( activated() ), SLOT( importIcal() ) );
@@ -831,14 +833,14 @@ void MainWindow::initActions()
this );
- action->addTo( importMenu );
+ action->addTo( importMenu_X );
connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) );
- importMenu->insertSeparator();
+ importMenu_X->insertSeparator();
action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0,
this );
- action->addTo( importMenu );
+ action->addTo( importMenu_X );
connect( action, SIGNAL( activated() ), SLOT( importBday() ) );
//#ifndef DESKTOP_VERSION
- importMenu->insertSeparator();
+ importMenu_X->insertSeparator();
action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0,
this );
- action->addTo( importMenu );
+ action->addTo( importMenu_X );
connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) );
@@ -846,6 +848,6 @@ void MainWindow::initActions()
#ifdef _OL_IMPORT_
- importMenu->insertSeparator();
+ importMenu_X->insertSeparator();
action = new QAction( "import_ol", i18n("Import from OL"), 0,
this );
- action->addTo( importMenu );
+ action->addTo( importMenu_X );
connect( action, SIGNAL( activated() ), SLOT( importOL() ) );
@@ -854,3 +856,3 @@ void MainWindow::initActions()
- importMenu->insertSeparator();
+ //importMenu->insertSeparator();
action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0,
@@ -864,7 +866,9 @@ void MainWindow::initActions()
connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) );
-
importMenu->insertSeparator();
+ importMenu->insertItem( i18n("Import"), importMenu_X );
+ //importMenu->insertSeparator();
action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0,
this );
- action->addTo( importMenu ); connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) );
+ action->addTo( exportMenu_X );
+ connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) );
@@ -876,14 +880,10 @@ void MainWindow::initActions()
connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) );
- importMenu->insertItem( i18n("Export to phone"), ex2phone );
+ exportMenu_X->insertItem( i18n("Export to phone"), ex2phone );
- importMenu->insertSeparator();
- action = new QAction( "manage cat", i18n("Manage new categories..."), 0,
- this );
- action->addTo( importMenu );
- connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) );
+ importMenu->insertItem( i18n("Export"), exportMenu_X );
#ifndef DESKTOP_VERSION
- importMenu->insertSeparator();
+ //importMenu->insertSeparator();
brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0,
this );
- brAction->addTo( importMenu );
+ brAction->addTo( beamMenu_X );
brAction->setToggleAction (true ) ;
@@ -893,3 +893,3 @@ void MainWindow::initActions()
this );
- action->addTo( importMenu );
+ action->addTo( beamMenu_X );
connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) );
@@ -898,9 +898,10 @@ void MainWindow::initActions()
this );
- action->addTo( importMenu );
+ action->addTo( beamMenu_X );
connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) );
+ importMenu->insertItem( i18n("Beam"), beamMenu_X );
#else
- importMenu->insertSeparator();
+ //importMenu->insertSeparator();
icon = loadPixmap( pathString + "print" );
action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this );
- action->addTo( importMenu );
+ action->addTo( beamMenu_X );
connect( action, SIGNAL( activated() ),
@@ -910,3 +911,3 @@ void MainWindow::initActions()
action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this );
- action->addTo( importMenu );
+ action->addTo( beamMenu_X );
connect( action, SIGNAL( activated() ),
@@ -914,7 +915,13 @@ void MainWindow::initActions()
action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this );
- action->addTo( importMenu );
+ action->addTo( beamMenu_X );
connect( action, SIGNAL( activated() ),
mView->viewManager(), SIGNAL( printWNV() ) );
+ importMenu->insertItem( i18n("Print"), beamMenu_X );
#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();
action = new QAction( "beam all", i18n("Save"), 0,
diff --git a/libkdepim/kdatepicker.cpp b/libkdepim/kdatepicker.cpp
index 77793c4..6cb432b 100644
--- a/libkdepim/kdatepicker.cpp
+++ b/libkdepim/kdatepicker.cpp
@@ -480,3 +480,5 @@ void KDatePicker::keyPressEvent ( QKeyEvent * e )
break;
-
+ case Qt::Key_Escape:
+ e->ignore();
+ break;
default: