Diffstat (limited to 'core/pim/todo/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index b2b3b8f..0ab6230 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -52,25 +52,25 @@ | |||
52 | #include "templateeditor.h" | 52 | #include "templateeditor.h" |
53 | #include "tableview.h" | 53 | #include "tableview.h" |
54 | 54 | ||
55 | #include "textviewshow.h" | 55 | #include "textviewshow.h" |
56 | #include "todoeditor.h" | 56 | #include "todoeditor.h" |
57 | #include "mainwindow.h" | 57 | #include "mainwindow.h" |
58 | 58 | ||
59 | 59 | ||
60 | using namespace Todo; | 60 | using namespace Todo; |
61 | 61 | ||
62 | MainWindow::MainWindow( QWidget* parent, | 62 | MainWindow::MainWindow( QWidget* parent, |
63 | const char* name ) | 63 | const char* name ) |
64 | : OPimMainWindow("Todolist") | 64 | : OPimMainWindow("Todolist", parent, name) |
65 | { | 65 | { |
66 | 66 | ||
67 | m_syncing = false; | 67 | m_syncing = false; |
68 | m_counter = 0; | 68 | m_counter = 0; |
69 | m_tempManager = new TemplateManager(); | 69 | m_tempManager = new TemplateManager(); |
70 | m_tempManager->load(); | 70 | m_tempManager->load(); |
71 | 71 | ||
72 | initUI(); | 72 | initUI(); |
73 | initConfig(); | 73 | initConfig(); |
74 | initViews(); | 74 | initViews(); |
75 | initActions(); | 75 | initActions(); |
76 | initEditor(); | 76 | initEditor(); |
@@ -243,25 +243,25 @@ void MainWindow::initViews() { | |||
243 | */ | 243 | */ |
244 | } | 244 | } |
245 | void MainWindow::initEditor() { | 245 | void MainWindow::initEditor() { |
246 | m_curEdit = new Editor(); | 246 | m_curEdit = new Editor(); |
247 | } | 247 | } |
248 | void MainWindow::initShow() { | 248 | void MainWindow::initShow() { |
249 | m_curShow = new TextViewShow(this); | 249 | m_curShow = new TextViewShow(this); |
250 | m_stack->addWidget( m_curShow->widget() , m_counter++ ); | 250 | m_stack->addWidget( m_curShow->widget() , m_counter++ ); |
251 | } | 251 | } |
252 | MainWindow::~MainWindow() { | 252 | MainWindow::~MainWindow() { |
253 | delete templateManager(); | 253 | delete templateManager(); |
254 | } | 254 | } |
255 | void MainWindow::connectBase( ViewBase* base) { | 255 | void MainWindow::connectBase( ViewBase* ) { |
256 | // once templates and signals mix we'll use it again | 256 | // once templates and signals mix we'll use it again |
257 | } | 257 | } |
258 | QPopupMenu* MainWindow::contextMenu( int , bool recur ) { | 258 | QPopupMenu* MainWindow::contextMenu( int , bool recur ) { |
259 | QPopupMenu* menu = new QPopupMenu(); | 259 | QPopupMenu* menu = new QPopupMenu(); |
260 | 260 | ||
261 | m_editAction->addTo( menu ); | 261 | m_editAction->addTo( menu ); |
262 | m_deleteAction->addTo( menu ); | 262 | m_deleteAction->addTo( menu ); |
263 | m_duplicateAction->addTo( menu ); | 263 | m_duplicateAction->addTo( menu ); |
264 | 264 | ||
265 | menu->insertSeparator(); | 265 | menu->insertSeparator(); |
266 | 266 | ||
267 | /* | 267 | /* |
@@ -788,18 +788,12 @@ void MainWindow::add( const OPimRecord& rec) { | |||
788 | 788 | ||
789 | const OTodo& todo = static_cast<const OTodo&>(rec); | 789 | const OTodo& todo = static_cast<const OTodo&>(rec); |
790 | 790 | ||
791 | m_todoMgr.add(todo ); | 791 | m_todoMgr.add(todo ); |
792 | currentView()->addEvent( todo ); | 792 | currentView()->addEvent( todo ); |
793 | 793 | ||
794 | 794 | ||
795 | // I'm afraid we must call this every time now, otherwise | 795 | // I'm afraid we must call this every time now, otherwise |
796 | // spend expensive time comparing all these strings... | 796 | // spend expensive time comparing all these strings... |
797 | // but only call if we changed something -zecke | 797 | // but only call if we changed something -zecke |
798 | populateCategories(); | 798 | populateCategories(); |
799 | } | 799 | } |
800 | /* todo does not have the QDataStream<< and >> operators implemented :( | ||
801 | * FIXME | ||
802 | */ | ||
803 | OPimRecord* MainWindow::record( int rtti, const QByteArray& ) { | ||
804 | return 0l; | ||
805 | } | ||