-rw-r--r-- | core/pim/todo/mainwindow.cpp | 10 | ||||
-rw-r--r-- | core/pim/todo/mainwindow.h | 5 | ||||
-rw-r--r-- | core/pim/todo/todo.pro | 28 |
3 files changed, 15 insertions, 28 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 6725951..ecb4e40 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -54,6 +54,8 @@ | |||
54 | #include <opie/opimnotifymanager.h> | 54 | #include <opie/opimnotifymanager.h> |
55 | #include <opie/otodoaccessvcal.h> | 55 | #include <opie/otodoaccessvcal.h> |
56 | 56 | ||
57 | #include <opie/oapplicationfactory.h> | ||
58 | |||
57 | #include "quickeditimpl.h" | 59 | #include "quickeditimpl.h" |
58 | #include "todotemplatemanager.h" | 60 | #include "todotemplatemanager.h" |
59 | #include "templateeditor.h" | 61 | #include "templateeditor.h" |
@@ -63,11 +65,12 @@ | |||
63 | #include "todoeditor.h" | 65 | #include "todoeditor.h" |
64 | #include "mainwindow.h" | 66 | #include "mainwindow.h" |
65 | 67 | ||
68 | OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) | ||
66 | 69 | ||
67 | using namespace Todo; | 70 | using namespace Todo; |
68 | 71 | ||
69 | MainWindow::MainWindow( QWidget* parent, | 72 | MainWindow::MainWindow( QWidget* parent, |
70 | const char* name ) | 73 | const char* name, WFlags ) |
71 | : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) | 74 | : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) |
72 | { | 75 | { |
73 | m_syncing = false; | 76 | m_syncing = false; |
@@ -350,6 +353,7 @@ TodoShow* MainWindow::currentShow() { | |||
350 | return m_curShow; | 353 | return m_curShow; |
351 | } | 354 | } |
352 | void MainWindow::slotReload() { | 355 | void MainWindow::slotReload() { |
356 | m_syncing = FALSE; | ||
353 | m_todoMgr.reload(); | 357 | m_todoMgr.reload(); |
354 | currentView()->updateView( ); | 358 | currentView()->updateView( ); |
355 | raiseCurrentView(); | 359 | raiseCurrentView(); |
@@ -604,14 +608,14 @@ void MainWindow::receiveFile( const QString& filename ) { | |||
604 | OTodoAccess::List::Iterator it; | 608 | OTodoAccess::List::Iterator it; |
605 | for ( it = list.begin(); it != list.end(); ++it ) | 609 | for ( it = list.begin(); it != list.end(); ++it ) |
606 | m_todoMgr.add( (*it) ); | 610 | m_todoMgr.add( (*it) ); |
607 | 611 | ||
608 | currentView()->updateView(); | 612 | currentView()->updateView(); |
609 | } | 613 | } |
610 | } | 614 | } |
611 | } | 615 | } |
612 | 616 | ||
613 | void MainWindow::slotFlush() { | 617 | void MainWindow::slotFlush() { |
614 | m_syncing = FALSE; | 618 | m_syncing = TRUE; |
615 | m_todoMgr.save(); | 619 | m_todoMgr.save(); |
616 | } | 620 | } |
617 | void MainWindow::slotShowDetails() { | 621 | void MainWindow::slotShowDetails() { |
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index b04a958..bd341c2 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h | |||
@@ -62,8 +62,11 @@ namespace Todo { | |||
62 | friend class TodoView; // avoid QObject here.... | 62 | friend class TodoView; // avoid QObject here.... |
63 | friend class TodoShow; // avoid QObject | 63 | friend class TodoShow; // avoid QObject |
64 | public: | 64 | public: |
65 | /* OApplicationFactory application Name */ | ||
66 | static QString appName() { return QString::fromLatin1("todolist"); } | ||
67 | |||
65 | MainWindow( QWidget *parent = 0, | 68 | MainWindow( QWidget *parent = 0, |
66 | const char* name = 0 ); | 69 | const char* name = 0, WFlags fl = 0 ); |
67 | ~MainWindow(); | 70 | ~MainWindow(); |
68 | 71 | ||
69 | /** return a context menu for an OTodo */ | 72 | /** return a context menu for an OTodo */ |
diff --git a/core/pim/todo/todo.pro b/core/pim/todo/todo.pro index 4a63770..51cfde7 100644 --- a/core/pim/todo/todo.pro +++ b/core/pim/todo/todo.pro | |||
@@ -1,6 +1,6 @@ | |||
1 | TEMPLATE= app | 1 | #TEMPLATE= app |
2 | CONFIG = qt warn_on release | 2 | CONFIG = qt warn_on release quick-app |
3 | DESTDIR = $(OPIEDIR)/bin | 3 | #DESTDIR = $(OPIEDIR)/bin |
4 | 4 | ||
5 | HEADERS= smalltodo.h \ | 5 | HEADERS= smalltodo.h \ |
6 | todomanager.h \ | 6 | todomanager.h \ |
@@ -24,7 +24,7 @@ HEADERS = smalltodo.h \ | |||
24 | SOURCES= smalltodo.cpp \ | 24 | SOURCES= smalltodo.cpp \ |
25 | todomanager.cpp \ | 25 | todomanager.cpp \ |
26 | mainwindow.cpp \ | 26 | mainwindow.cpp \ |
27 | main.cpp \ | 27 | # main.cpp \ |
28 | tableview.cpp \ | 28 | tableview.cpp \ |
29 | todoview.cpp \ | 29 | todoview.cpp \ |
30 | todotemplatemanager.cpp \ | 30 | todotemplatemanager.cpp \ |
@@ -46,24 +46,4 @@ INCLUDEPATH += $(OPIEDIR)/include | |||
46 | DEPENDPATH+= $(OPIEDIR)/include | 46 | DEPENDPATH+= $(OPIEDIR)/include |
47 | LIBS += -lqpe -lopie | 47 | LIBS += -lqpe -lopie |
48 | 48 | ||
49 | TRANSLATIONS = ../../../i18n/de/todolist.ts \ | ||
50 | ../../../i18n/nl/todolist.ts \ | ||
51 | ../../../i18n/da/todolist.ts \ | ||
52 | ../../../i18n/xx/todolist.ts \ | ||
53 | ../../../i18n/en/todolist.ts \ | ||
54 | ../../../i18n/es/todolist.ts \ | ||
55 | ../../../i18n/fr/todolist.ts \ | ||
56 | ../../../i18n/hu/todolist.ts \ | ||
57 | ../../../i18n/ja/todolist.ts \ | ||
58 | ../../../i18n/ko/todolist.ts \ | ||
59 | ../../../i18n/no/todolist.ts \ | ||
60 | ../../../i18n/pl/todolist.ts \ | ||
61 | ../../../i18n/pt/todolist.ts \ | ||
62 | ../../../i18n/pt_BR/todolist.ts \ | ||
63 | ../../../i18n/sl/todolist.ts \ | ||
64 | ../../../i18n/zh_CN/todolist.ts \ | ||
65 | ../../../i18n/zh_TW/todolist.ts | ||
66 | |||
67 | |||
68 | |||
69 | include ( $(OPIEDIR)/include.pro ) | 49 | include ( $(OPIEDIR)/include.pro ) |