-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 13 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 15 | ||||
-rw-r--r-- | korganizer/calendarview.h | 1 | ||||
-rw-r--r-- | korganizer/kofilterview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kofilterview.h | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 7 |
6 files changed, 28 insertions, 11 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 593806b..708ac19 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1471,11 +1471,22 @@ | |||
1471 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, | 1471 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, |
1472 | { "Edit category list...","Ändere Kategorieliste..." }, | 1472 | { "Edit category list...","Ändere Kategorieliste..." }, |
1473 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, | 1473 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, |
1474 | { "Filepath: ","Dateipfad: " }, | 1474 | { "Filepath: ","Dateipfad: " }, |
1475 | { "The loading of one or more calendar failed:","Das Laden eines oder mehrerer Kalender schlug fehl:" }, | ||
1476 | { "You can try to reload the calendar in the Resource View!","In der Resourcenansicht können Sie erneut versuchen den Kalender zu laden!" }, | 1475 | { "You can try to reload the calendar in the Resource View!","In der Resourcenansicht können Sie erneut versuchen den Kalender zu laden!" }, |
1477 | { "<b>WARNING:</b> There is a pending suspended alarm!","<b>WARNUNG:</b> Es gibt einen laufenden Suspendalarm!" }, | 1476 | { "<b>WARNING:</b> There is a pending suspended alarm!","<b>WARNUNG:</b> Es gibt einen laufenden Suspendalarm!" }, |
1478 | { "Pending Suspend Alarm","Laufender Suspend Alarm" }, | 1477 | { "Pending Suspend Alarm","Laufender Suspend Alarm" }, |
1478 | { "Error loading calendar %1","Fehler beim Laden von Kalender %1" }, | ||
1479 | { "Calendar(s) not loaded:","Nicht geladene(r) Kalender:" }, | ||
1480 | { "Loding of calendar(s) failed","Laden von Kalendern fehlgeschlagen" }, | ||
1481 | { "","" }, | ||
1482 | { "","" }, | ||
1483 | { "","" }, | ||
1484 | { "","" }, | ||
1485 | { "","" }, | ||
1486 | { "","" }, | ||
1487 | { "","" }, | ||
1488 | { "","" }, | ||
1489 | { "","" }, | ||
1479 | { "","" }, | 1490 | { "","" }, |
1480 | { "","" }, | 1491 | { "","" }, |
1481 | { "","" }, \ No newline at end of file | 1492 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 70a1d2d..678143d 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -473,8 +473,9 @@ void CalendarView::init() | |||
473 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mViewManager, SLOT( setDefaultCalendar(int)) ); | 473 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mViewManager, SLOT( setDefaultCalendar(int)) ); |
474 | connect( mCalEditView, SIGNAL( removeCalendar(int) ),mCalendar, SLOT( setCalendarRemove(int)) ); | 474 | connect( mCalEditView, SIGNAL( removeCalendar(int) ),mCalendar, SLOT( setCalendarRemove(int)) ); |
475 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); | 475 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); |
476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); | 476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); |
477 | connect( mCalEditView, SIGNAL( checkCalendar() ),this, SLOT( checkFiles() )); | ||
477 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); | 478 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); |
478 | 479 | ||
479 | mTodoList->setNavigator( mNavigator ); | 480 | mTodoList->setNavigator( mNavigator ); |
480 | #if 0 | 481 | #if 0 |
@@ -680,12 +681,10 @@ void CalendarView::scrollBarValue(int val ) | |||
680 | block = false; | 681 | block = false; |
681 | #endif | 682 | #endif |
682 | 683 | ||
683 | } | 684 | } |
684 | 685 | void CalendarView::checkFiles() | |
685 | void CalendarView::checkAlarms() | ||
686 | { | 686 | { |
687 | |||
688 | QString message; | 687 | QString message; |
689 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 688 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
690 | KopiCalendarFile * cal = calendars.first(); | 689 | KopiCalendarFile * cal = calendars.first(); |
691 | while ( cal ) { | 690 | while ( cal ) { |
@@ -694,11 +693,17 @@ void CalendarView::checkAlarms() | |||
694 | } | 693 | } |
695 | cal = calendars.next(); | 694 | cal = calendars.next(); |
696 | } | 695 | } |
697 | if ( !message.isEmpty() ) { | 696 | if ( !message.isEmpty() ) { |
698 | message = KGlobal::formatMessage( i18n("The loading of one or more calendar failed:"),0 )+"\n" + message +KGlobal::formatMessage(i18n("You can try to reload the calendar in the Resource View!"),0); | 697 | message = KGlobal::formatMessage( i18n("Calendar(s) not loaded:"),0 )+"\n" + message +KGlobal::formatMessage(i18n("You can try to reload the calendar in the Resource View!"),0); |
699 | KMessageBox::error(this,message); | 698 | KMessageBox::error(this,message, i18n("Loding of calendar(s) failed")); |
700 | } | 699 | } |
700 | QTimer::singleShot( 2000, this, SLOT ( checkAlarms() )); | ||
701 | } | ||
702 | void CalendarView::checkAlarms() | ||
703 | { | ||
704 | |||
705 | |||
701 | KConfig *config = KOGlobals::config(); | 706 | KConfig *config = KOGlobals::config(); |
702 | config->setGroup( "AppRun" ); | 707 | config->setGroup( "AppRun" ); |
703 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); | 708 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); |
704 | int daysto = dt.daysTo( QDate::currentDate() ); | 709 | int daysto = dt.daysTo( QDate::currentDate() ); |
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index c9e9870..651194b 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -200,8 +200,9 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
200 | 200 | ||
201 | 201 | ||
202 | public slots: | 202 | public slots: |
203 | void checkAlarms(); | 203 | void checkAlarms(); |
204 | void checkFiles(); | ||
204 | void slotprintSelInc(); | 205 | void slotprintSelInc(); |
205 | void showNextAlarms(); | 206 | void showNextAlarms(); |
206 | void showOpenError(); | 207 | void showOpenError(); |
207 | void watchSavedFile(); | 208 | void watchSavedFile(); |
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp index 3cde103..20118aa 100644 --- a/korganizer/kofilterview.cpp +++ b/korganizer/kofilterview.cpp | |||
@@ -214,8 +214,9 @@ void KOCalEditView::infoCal( int id ) | |||
214 | if ( KMessageBox::Yes == KMessageBox::questionYesNo( this, i18n("The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>").arg(name).arg(file) ) ) { | 214 | if ( KMessageBox::Yes == KMessageBox::questionYesNo( this, i18n("The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>").arg(name).arg(file) ) ) { |
215 | emit calendarAdded( id ); | 215 | emit calendarAdded( id ); |
216 | emit needsUpdate(); | 216 | emit needsUpdate(); |
217 | QTimer::singleShot( 0, this, SLOT ( readConfig() ) ); | 217 | QTimer::singleShot( 0, this, SLOT ( readConfig() ) ); |
218 | QTimer::singleShot( 100, this, SIGNAL ( checkCalendar() ) ); | ||
218 | } | 219 | } |
219 | } | 220 | } |
220 | else | 221 | else |
221 | KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) ); | 222 | KMessageBox::information( this, i18n("The calendar <b>%1</b> is displaying file <b>%2</b>").arg(name).arg(file) ); |
@@ -378,8 +379,9 @@ void KOCalEditView::addCal() | |||
378 | kkf = KOPrefs::instance()->mCalendars.next(); | 379 | kkf = KOPrefs::instance()->mCalendars.next(); |
379 | } | 380 | } |
380 | } | 381 | } |
381 | addCalendar ( name, file ); | 382 | addCalendar ( name, file ); |
383 | QTimer::singleShot( 100, this, SIGNAL ( checkCalendar() ) ); | ||
382 | } | 384 | } |
383 | int KOCalEditView::addCalendar( QString name, QString file, bool ask ) | 385 | int KOCalEditView::addCalendar( QString name, QString file, bool ask ) |
384 | { | 386 | { |
385 | 387 | ||
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 54fe2c5..02107cf 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -232,8 +232,9 @@ class KOCalEditView : public QScrollView | |||
232 | void setCalendarDefault ( int cal ); | 232 | void setCalendarDefault ( int cal ); |
233 | void removeCalendar ( int cal ); | 233 | void removeCalendar ( int cal ); |
234 | void calendarAdded( int ); | 234 | void calendarAdded( int ); |
235 | void needsUpdate(); | 235 | void needsUpdate(); |
236 | void checkCalendar(); | ||
236 | 237 | ||
237 | private: | 238 | private: |
238 | QWidget *mw; | 239 | QWidget *mw; |
239 | void toggleList ( QPtrList<KOCalCheckButton> ); | 240 | void toggleList ( QPtrList<KOCalCheckButton> ); |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index b797d8c..501eed5 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -397,13 +397,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) : | |||
397 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | 397 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), |
398 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); | 398 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); |
399 | mBRdisabled = false; | 399 | mBRdisabled = false; |
400 | //toggleBeamReceive(); | 400 | //toggleBeamReceive(); |
401 | int tiint= 3000; | 401 | |
402 | #ifndef DESKTOP_VERSION | 402 | QTimer::singleShot( 1000, mView, SLOT ( checkFiles() )); |
403 | tiint = 5000; | ||
404 | #endif | ||
405 | QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() )); | ||
406 | } | 403 | } |
407 | MainWindow::~MainWindow() | 404 | MainWindow::~MainWindow() |
408 | { | 405 | { |
409 | //qDebug("MainWindow::~MainWindow() "); | 406 | //qDebug("MainWindow::~MainWindow() "); |