Diffstat (limited to 'core/pim/todo/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index d552928..924fde1 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -61,6 +61,6 @@ | |||
61 | 61 | ||
62 | using namespace Opie::Core; | 62 | using Opie::Core::OApplicationFactory; |
63 | OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) | 63 | OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) |
64 | 64 | ||
65 | using namespace Opie; | 65 | using namespace Opie; |
66 | using namespace Todo; | 66 | using namespace Todo; |
@@ -298,3 +298,3 @@ QPopupMenu* MainWindow::contextMenu( int , bool recur ) { | |||
298 | QPopupMenu* MainWindow::options() { | 298 | QPopupMenu* MainWindow::options() { |
299 | Opie::Core::owarn << "Options" << oendl; | 299 | owarn << "Options" << oendl; |
300 | return m_options; | 300 | return m_options; |
@@ -317,3 +317,3 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) { | |||
317 | 317 | ||
318 | Opie::Core::owarn << " Category " << cat << " " << m_curCat << oendl; | 318 | owarn << " Category " << cat << " " << m_curCat << oendl; |
319 | 319 | ||
@@ -376,3 +376,3 @@ void MainWindow::closeEvent( QCloseEvent* e ) { | |||
376 | if ( m_todoMgr.saveAll() ){ | 376 | if ( m_todoMgr.saveAll() ){ |
377 | Opie::Core::owarn << "saved" << oendl; | 377 | owarn << "saved" << oendl; |
378 | quit = true; | 378 | quit = true; |
@@ -539,3 +539,3 @@ void MainWindow::setCategory( int c) { | |||
539 | 539 | ||
540 | Opie::Core::owarn << "Iterating over cats " << c << oendl; | 540 | owarn << "Iterating over cats " << c << oendl; |
541 | for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) | 541 | for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) |
@@ -602,13 +602,13 @@ void MainWindow::receiveFile( const QString& filename ) { | |||
602 | 602 | ||
603 | QString message = QWidget::tr("<P>%1 new tasks arrived.<p>Would you like to add them to your Todolist?").arg(list.count() ); | 603 | QString message = QWidget::tr("<P>%1 new tasks arrived.<p>Would you like to add them to your Todolist?").arg(list.count() ); |
604 | 604 | ||
605 | if ( QMessageBox::information(this, QWidget::tr("New Tasks"), | 605 | if ( QMessageBox::information(this, QWidget::tr("New Tasks"), |
606 | message, QMessageBox::Ok, | 606 | message, QMessageBox::Ok, |
607 | QMessageBox::Cancel ) == QMessageBox::Ok ) { | 607 | QMessageBox::Cancel ) == QMessageBox::Ok ) { |
608 | OPimTodoAccess::List::Iterator it; | 608 | OPimTodoAccess::List::Iterator it; |
609 | for ( it = list.begin(); it != list.end(); ++it ) | 609 | for ( it = list.begin(); it != list.end(); ++it ) |
610 | m_todoMgr.add( (*it) ); | 610 | m_todoMgr.add( (*it) ); |
611 | 611 | ||
612 | currentView()->updateView(); | 612 | currentView()->updateView(); |
613 | } | 613 | } |
614 | } | 614 | } |
@@ -683,3 +683,5 @@ void MainWindow::slotShow( int uid ) { | |||
683 | if ( uid == 0 ) return; | 683 | if ( uid == 0 ) return; |
684 | Opie::Core::owarn << "slotShow" << oendl; | 684 | |
685 | |||
686 | owarn << "slotShow" << oendl; | ||
685 | currentShow()->slotShow( event( uid ) ); | 687 | currentShow()->slotShow( event( uid ) ); |
@@ -742,3 +744,3 @@ void MainWindow::setReadAhead( uint count ) { | |||
742 | void MainWindow::slotQuickEntered() { | 744 | void MainWindow::slotQuickEntered() { |
743 | Opie::Core::owarn << "entered" << oendl; | 745 | owarn << "entered" << oendl; |
744 | OPimTodo todo = quickEditor()->todo(); | 746 | OPimTodo todo = quickEditor()->todo(); |
@@ -789,3 +791,3 @@ void MainWindow::slotComplete( const OPimTodo& todo ) { | |||
789 | int dayDiff = to.dueDate().daysTo( date ); | 791 | int dayDiff = to.dueDate().daysTo( date ); |
790 | Opie::Core::owarn << "day diff is " << dayDiff << oendl; | 792 | owarn << "day diff is " << dayDiff << oendl; |
791 | QDate inval; | 793 | QDate inval; |
@@ -952,3 +954,3 @@ namespace { | |||
952 | for ( it = als.begin(); it != als.end(); ++it ) { | 954 | for ( it = als.begin(); it != als.end(); ++it ) { |
953 | Opie::Core::owarn << "Adding alarm for " << (*it).dateTime().toString() << oendl; | 955 | owarn << "Adding alarm for " << (*it).dateTime().toString() << oendl; |
954 | AlarmServer::addAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); | 956 | AlarmServer::addAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); |
@@ -960,3 +962,3 @@ namespace { | |||
960 | for ( it = als.begin(); it != als.end(); ++it ) { | 962 | for ( it = als.begin(); it != als.end(); ++it ) { |
961 | Opie::Core::owarn << "Removinf alarm for " << (*it).dateTime().toString() << oendl; | 963 | owarn << "Removinf alarm for " << (*it).dateTime().toString() << oendl; |
962 | AlarmServer::deleteAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); | 964 | AlarmServer::deleteAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); |