-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 6 | ||||
-rw-r--r-- | korganizer/kodialogmanager.cpp | 87 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 59 | ||||
-rw-r--r-- | libkdepim/kdatepicker.cpp | 4 |
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 | |||
@@ -1290,15 +1290,15 @@ | |||
1290 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1290 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1291 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1291 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1292 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1292 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1293 | { "Summary/Loc.","Titel/Ort" }, | 1293 | { "Summary/Loc.","Titel/Ort" }, |
1294 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1294 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1295 | { "Week Number","Wochennummer" }, | 1295 | { "Week Number","Wochennummer" }, |
1296 | { "","" }, | 1296 | { "Import","Importiere" }, |
1297 | { "","" }, | 1297 | { "Export","Exportiere" }, |
1298 | { "","" }, | 1298 | { "Beam","Beame" }, |
1299 | { "","" }, | 1299 | { "","" }, |
1300 | { "","" }, | 1300 | { "","" }, |
1301 | { "","" }, | 1301 | { "","" }, |
1302 | { "","" }, | 1302 | { "","" }, |
1303 | { "","" }, | 1303 | { "","" }, |
1304 | { "","" }, | 1304 | { "","" }, |
diff --git a/korganizer/kodialogmanager.cpp b/korganizer/kodialogmanager.cpp index 41a4dc1..1af9dad 100644 --- a/korganizer/kodialogmanager.cpp +++ b/korganizer/kodialogmanager.cpp | |||
@@ -164,59 +164,62 @@ void KODialogManager::hideSearchDialog() | |||
164 | if (mSearchDialog) | 164 | if (mSearchDialog) |
165 | mSearchDialog->hide(); | 165 | mSearchDialog->hide(); |
166 | } | 166 | } |
167 | 167 | ||
168 | void KODialogManager::showSearchDialog() | 168 | void KODialogManager::showSearchDialog() |
169 | { | 169 | { |
170 | if (!mSearchDialog) { | 170 | if (!mSearchDialog) { |
171 | mSearchDialog = new SearchDialog(mMainView->calendar(),mMainView); | 171 | mSearchDialog = new SearchDialog(mMainView->calendar(),mMainView); |
172 | KOListView * lview = mSearchDialog->listview(); | 172 | KOListView * lview = mSearchDialog->listview(); |
173 | 173 | ||
174 | connect(lview, SIGNAL(showIncidenceSignal(Incidence *)), | 174 | connect(lview, SIGNAL(showIncidenceSignal(Incidence *)), |
175 | mMainView, SLOT(showIncidence(Incidence *))); | 175 | mMainView, SLOT(showIncidence(Incidence *))); |
176 | connect(lview, SIGNAL(editIncidenceSignal(Incidence *)), | 176 | connect(lview, SIGNAL(editIncidenceSignal(Incidence *)), |
177 | mMainView, SLOT(editIncidence(Incidence *))); | 177 | mMainView, SLOT(editIncidence(Incidence *))); |
178 | connect(lview, SIGNAL(deleteIncidenceSignal(Incidence *)), | 178 | connect(lview, SIGNAL(deleteIncidenceSignal(Incidence *)), |
179 | mMainView, SLOT(deleteIncidence(Incidence *))); | 179 | mMainView, SLOT(deleteIncidence(Incidence *))); |
180 | connect(lview, SIGNAL(cloneIncidenceSignal(Incidence *)), | 180 | connect(lview, SIGNAL(cloneIncidenceSignal(Incidence *)), |
181 | mMainView, SLOT(cloneIncidence(Incidence *))); | 181 | mMainView, SLOT(cloneIncidence(Incidence *))); |
182 | connect(lview, SIGNAL(beamIncidenceSignal(Incidence *)), | 182 | connect(lview, SIGNAL(beamIncidenceSignal(Incidence *)), |
183 | mMainView, SLOT(beamIncidence(Incidence *))); | 183 | mMainView, SLOT(beamIncidence(Incidence *))); |
184 | connect(lview, SIGNAL(moveIncidenceSignal(Incidence *)), | 184 | connect(lview, SIGNAL(moveIncidenceSignal(Incidence *)), |
185 | mMainView, SLOT(moveIncidence(Incidence *))); | 185 | mMainView, SLOT(moveIncidence(Incidence *))); |
186 | connect(lview, SIGNAL(beamIncidenceList(QPtrList<Incidence> )), | 186 | connect(lview, SIGNAL(beamIncidenceList(QPtrList<Incidence> )), |
187 | mMainView, SLOT(beamIncidenceList(QPtrList<Incidence> ))); | 187 | mMainView, SLOT(beamIncidenceList(QPtrList<Incidence> ))); |
188 | 188 | ||
189 | connect(mMainView, SIGNAL(configChanged()), mSearchDialog, SLOT(updateConfig())); | 189 | connect(mMainView, SIGNAL(configChanged()), mSearchDialog, SLOT(updateConfig())); |
190 | connect(mMainView, SIGNAL(updateSearchDialog()), mSearchDialog, SLOT(updateList())); | 190 | connect(mMainView, SIGNAL(updateSearchDialog()), mSearchDialog, SLOT(updateList())); |
191 | // connect( lview, SIGNAL( incidenceSelected( Incidence * ) ), | 191 | // connect( lview, SIGNAL( incidenceSelected( Incidence * ) ), |
192 | // mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); | 192 | // mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); |
193 | #ifndef DESKTOP_VERSION | 193 | #ifndef DESKTOP_VERSION |
194 | mSearchDialog->setMaximumSize( QApplication::desktop()->size()); | 194 | mSearchDialog->setMaximumSize( QApplication::desktop()->size()); |
195 | //mSearchDialog->setGeometry( 40,40, 400, 300); | 195 | mSearchDialog->showMaximized(); |
196 | mSearchDialog->showMaximized(); | ||
197 | #else | 196 | #else |
198 | KConfig *config = KOGlobals::config(); | 197 | KConfig *config = KOGlobals::config(); |
199 | config->setGroup("WidgetLayout"); | 198 | config->setGroup("WidgetLayout"); |
200 | QStringList list; | 199 | QStringList list; |
201 | list = config->readListEntry("SearchLayout"); | 200 | list = config->readListEntry("SearchLayout"); |
202 | int x,y,w,h; | 201 | int x,y,w,h; |
203 | if ( ! list.isEmpty() ) { | 202 | if ( ! list.isEmpty() ) { |
204 | x = list[0].toInt(); | 203 | x = list[0].toInt(); |
205 | y = list[1].toInt(); | 204 | y = list[1].toInt(); |
206 | w = list[2].toInt(); | 205 | w = list[2].toInt(); |
207 | h = list[3].toInt(); | 206 | h = list[3].toInt(); |
208 | mSearchDialog->setGeometry(x,y,w,h); | 207 | mSearchDialog->setGeometry(x,y,w,h); |
209 | 208 | ||
210 | } | 209 | } |
211 | 210 | ||
212 | #endif | 211 | #endif |
213 | } | 212 | } |
214 | // make sure the widget is on top again | 213 | // make sure the widget is on top again |
215 | mSearchDialog->show(); | 214 | #ifdef DESKTOP_VERSION |
216 | mSearchDialog->raise(); | 215 | mSearchDialog->show(); |
216 | #else | ||
217 | mSearchDialog->showMaximized(); | ||
218 | #endif | ||
219 | mSearchDialog->raise(); | ||
217 | } | 220 | } |
218 | 221 | ||
219 | SearchDialog * KODialogManager::getSearchDialog() | 222 | SearchDialog * KODialogManager::getSearchDialog() |
220 | { | 223 | { |
221 | return mSearchDialog; | 224 | return mSearchDialog; |
222 | } | 225 | } |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 019f41f..4f71788 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -510,19 +510,21 @@ void MainWindow::initActions() | |||
510 | KOPrefs *p = KOPrefs::instance(); | 510 | KOPrefs *p = KOPrefs::instance(); |
511 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); | 511 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); |
512 | 512 | ||
513 | QPopupMenu *viewMenu = new QPopupMenu( this ); | 513 | QPopupMenu *viewMenu = new QPopupMenu( this ); |
514 | QPopupMenu *actionMenu = new QPopupMenu( this ); | 514 | QPopupMenu *actionMenu = new QPopupMenu( this ); |
515 | QPopupMenu *importMenu = new QPopupMenu( this ); | 515 | QPopupMenu *importMenu = new QPopupMenu( this ); |
516 | QPopupMenu *importMenu_X = new QPopupMenu( this ); | ||
517 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); | ||
518 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); | ||
516 | selectFilterMenu = new QPopupMenu( this ); | 519 | selectFilterMenu = new QPopupMenu( this ); |
517 | selectFilterMenu->setCheckable( true ); | 520 | selectFilterMenu->setCheckable( true ); |
518 | syncMenu = new QPopupMenu( this ); | 521 | syncMenu = new QPopupMenu( this ); |
519 | configureAgendaMenu = new QPopupMenu( this ); | 522 | configureAgendaMenu = new QPopupMenu( this ); |
520 | configureToolBarMenu = new QPopupMenu( this ); | 523 | configureToolBarMenu = new QPopupMenu( this ); |
521 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 524 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
522 | |||
523 | QIconSet icon; | 525 | QIconSet icon; |
524 | int pixWid = 22, pixHei = 22; | 526 | int pixWid = 22, pixHei = 22; |
525 | QString pathString = ""; | 527 | QString pathString = ""; |
526 | if ( !p->mToolBarMiniIcons ) { | 528 | if ( !p->mToolBarMiniIcons ) { |
527 | if ( QApplication::desktop()->width() < 480 ) { | 529 | if ( QApplication::desktop()->width() < 480 ) { |
528 | pathString += "icons16/"; | 530 | pathString += "icons16/"; |
@@ -822,104 +824,109 @@ void MainWindow::initActions() | |||
822 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); | 824 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); |
823 | 825 | ||
824 | } | 826 | } |
825 | // actionMenu->insertSeparator(); | 827 | // actionMenu->insertSeparator(); |
826 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, | 828 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, |
827 | this ); | 829 | this ); |
828 | action->addTo( importMenu ); | 830 | action->addTo( importMenu_X ); |
829 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); | 831 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); |
830 | action = new QAction( "import_quick", i18n("Import last file"), 0, | 832 | action = new QAction( "import_quick", i18n("Import last file"), 0, |
831 | this ); | 833 | this ); |
832 | action->addTo( importMenu ); | 834 | action->addTo( importMenu_X ); |
833 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); | 835 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); |
834 | importMenu->insertSeparator(); | 836 | importMenu_X->insertSeparator(); |
835 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, | 837 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, |
836 | this ); | 838 | this ); |
837 | action->addTo( importMenu ); | 839 | action->addTo( importMenu_X ); |
838 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); | 840 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); |
839 | //#ifndef DESKTOP_VERSION | 841 | //#ifndef DESKTOP_VERSION |
840 | importMenu->insertSeparator(); | 842 | importMenu_X->insertSeparator(); |
841 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, | 843 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, |
842 | this ); | 844 | this ); |
843 | action->addTo( importMenu ); | 845 | action->addTo( importMenu_X ); |
844 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); | 846 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); |
845 | //#else | 847 | //#else |
846 | #ifdef _OL_IMPORT_ | 848 | #ifdef _OL_IMPORT_ |
847 | importMenu->insertSeparator(); | 849 | importMenu_X->insertSeparator(); |
848 | action = new QAction( "import_ol", i18n("Import from OL"), 0, | 850 | action = new QAction( "import_ol", i18n("Import from OL"), 0, |
849 | this ); | 851 | this ); |
850 | action->addTo( importMenu ); | 852 | action->addTo( importMenu_X ); |
851 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); | 853 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); |
852 | #endif | 854 | #endif |
853 | //#endif | 855 | //#endif |
854 | 856 | ||
855 | importMenu->insertSeparator(); | 857 | //importMenu->insertSeparator(); |
856 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, | 858 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, |
857 | this ); | 859 | this ); |
858 | action->addTo( importMenu ); | 860 | action->addTo( importMenu ); |
859 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); | 861 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); |
860 | 862 | ||
861 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, | 863 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, |
862 | this ); | 864 | this ); |
863 | action->addTo( importMenu ); | 865 | action->addTo( importMenu ); |
864 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); | 866 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); |
865 | |||
866 | importMenu->insertSeparator(); | 867 | importMenu->insertSeparator(); |
868 | importMenu->insertItem( i18n("Import"), importMenu_X ); | ||
869 | //importMenu->insertSeparator(); | ||
867 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, | 870 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, |
868 | this ); | 871 | this ); |
869 | action->addTo( importMenu ); connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | 872 | action->addTo( exportMenu_X ); |
873 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | ||
870 | 874 | ||
871 | 875 | ||
872 | //LR | 876 | //LR |
873 | QPopupMenu *ex2phone = new QPopupMenu( this ); | 877 | QPopupMenu *ex2phone = new QPopupMenu( this ); |
874 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 878 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
875 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 879 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
876 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); | 880 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); |
877 | importMenu->insertItem( i18n("Export to phone"), ex2phone ); | 881 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); |
878 | 882 | ||
879 | importMenu->insertSeparator(); | 883 | importMenu->insertItem( i18n("Export"), exportMenu_X ); |
880 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | ||
881 | this ); | ||
882 | action->addTo( importMenu ); | ||
883 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | ||
884 | #ifndef DESKTOP_VERSION | 884 | #ifndef DESKTOP_VERSION |
885 | importMenu->insertSeparator(); | 885 | //importMenu->insertSeparator(); |
886 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, | 886 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, |
887 | this ); | 887 | this ); |
888 | brAction->addTo( importMenu ); | 888 | brAction->addTo( beamMenu_X ); |
889 | brAction->setToggleAction (true ) ; | 889 | brAction->setToggleAction (true ) ; |
890 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); | 890 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); |
891 | 891 | ||
892 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, | 892 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, |
893 | this ); | 893 | this ); |
894 | action->addTo( importMenu ); | 894 | action->addTo( beamMenu_X ); |
895 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); | 895 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); |
896 | 896 | ||
897 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, | 897 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, |
898 | this ); | 898 | this ); |
899 | action->addTo( importMenu ); | 899 | action->addTo( beamMenu_X ); |
900 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); | 900 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); |
901 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); | ||
901 | #else | 902 | #else |
902 | importMenu->insertSeparator(); | 903 | //importMenu->insertSeparator(); |
903 | icon = loadPixmap( pathString + "print" ); | 904 | icon = loadPixmap( pathString + "print" ); |
904 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); | 905 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); |
905 | action->addTo( importMenu ); | 906 | action->addTo( beamMenu_X ); |
906 | connect( action, SIGNAL( activated() ), | 907 | connect( action, SIGNAL( activated() ), |
907 | this, SLOT( printCal() ) ); | 908 | this, SLOT( printCal() ) ); |
908 | 909 | ||
909 | icon = loadPixmap( pathString + "print" ); | 910 | icon = loadPixmap( pathString + "print" ); |
910 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); | 911 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); |
911 | action->addTo( importMenu ); | 912 | action->addTo( beamMenu_X ); |
912 | connect( action, SIGNAL( activated() ), | 913 | connect( action, SIGNAL( activated() ), |
913 | this, SLOT( printSel() ) ); | 914 | this, SLOT( printSel() ) ); |
914 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); | 915 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); |
915 | action->addTo( importMenu ); | 916 | action->addTo( beamMenu_X ); |
916 | connect( action, SIGNAL( activated() ), | 917 | connect( action, SIGNAL( activated() ), |
917 | mView->viewManager(), SIGNAL( printWNV() ) ); | 918 | mView->viewManager(), SIGNAL( printWNV() ) ); |
919 | importMenu->insertItem( i18n("Print"), beamMenu_X ); | ||
918 | #endif | 920 | #endif |
919 | importMenu->insertSeparator(); | 921 | importMenu->insertSeparator(); |
922 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | ||
923 | this ); | ||
924 | action->addTo( importMenu ); | ||
925 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | ||
926 | importMenu->insertSeparator(); | ||
920 | action = new QAction( "beam all", i18n("Save"), 0, | 927 | action = new QAction( "beam all", i18n("Save"), 0, |
921 | this ); | 928 | this ); |
922 | action->addTo( importMenu ); | 929 | action->addTo( importMenu ); |
923 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 930 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
924 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 931 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
925 | this ); | 932 | this ); |
diff --git a/libkdepim/kdatepicker.cpp b/libkdepim/kdatepicker.cpp index 77793c4..6cb432b 100644 --- a/libkdepim/kdatepicker.cpp +++ b/libkdepim/kdatepicker.cpp | |||
@@ -475,12 +475,14 @@ void KDatePicker::keyPressEvent ( QKeyEvent * e ) | |||
475 | yearBackwardClicked(); | 475 | yearBackwardClicked(); |
476 | break; | 476 | break; |
477 | 477 | ||
478 | case Qt::Key_Return: | 478 | case Qt::Key_Return: |
479 | tableClickedSlot(); | 479 | tableClickedSlot(); |
480 | break; | 480 | break; |
481 | 481 | case Qt::Key_Escape: | |
482 | e->ignore(); | ||
483 | break; | ||
482 | default: | 484 | default: |
483 | break; | 485 | break; |
484 | } | 486 | } |
485 | 487 | ||
486 | } | 488 | } |