summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp2
-rw-r--r--core/pim/todo/mainwindow.h8
-rw-r--r--core/pim/todo/quickeditimpl.cpp2
3 files changed, 5 insertions, 7 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index a244e58..c2f422d 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -55,25 +55,25 @@
55#include "tableview.h" 55#include "tableview.h"
56 56
57#include "textviewshow.h" 57#include "textviewshow.h"
58#include "todoeditor.h" 58#include "todoeditor.h"
59#include "mainwindow.h" 59#include "mainwindow.h"
60 60
61OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) 61OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> )
62 62
63using namespace Todo; 63using namespace Todo;
64 64
65MainWindow::MainWindow( QWidget* parent, 65MainWindow::MainWindow( QWidget* parent,
66 const char* name, WFlags ) 66 const char* name, WFlags )
67 : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) 67 : Opie::OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp )
68{ 68{
69 if (!name) 69 if (!name)
70 setName("todo window"); 70 setName("todo window");
71 71
72 m_syncing = false; 72 m_syncing = false;
73 m_showing = false; 73 m_showing = false;
74 m_counter = 0; 74 m_counter = 0;
75 m_tempManager = new TemplateManager(); 75 m_tempManager = new TemplateManager();
76 m_tempManager->load(); 76 m_tempManager->load();
77 77
78 initUI(); 78 initUI();
79 initConfig(); 79 initConfig();
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h
index 6a7296b..b35a42b 100644
--- a/core/pim/todo/mainwindow.h
+++ b/core/pim/todo/mainwindow.h
@@ -40,35 +40,33 @@
40#include "todoview.h" 40#include "todoview.h"
41#include "quickedit.h" 41#include "quickedit.h"
42#include "todomanager.h" 42#include "todomanager.h"
43 43
44class QPopupMenu; 44class QPopupMenu;
45class QMenuBar; 45class QMenuBar;
46class QToolBar; 46class QToolBar;
47class QAction; 47class QAction;
48class Ir; 48class Ir;
49class QVBox; 49class QVBox;
50class QLineEdit; 50class QLineEdit;
51 51
52using namespace Opie;
53
54namespace Todo { 52namespace Todo {
55 typedef TodoView View; 53 typedef TodoView View;
56 class TemplateManager; 54 class TemplateManager;
57 class Editor; 55 class Editor;
58 class TodoShow; 56 class TodoShow;
59 class TemplateEditor; 57 class TemplateEditor;
60 struct QuickEditBase; 58 struct QuickEditBase;
61 59
62 class MainWindow : public OPimMainWindow { 60 class MainWindow : public Opie::OPimMainWindow {
63 Q_OBJECT 61 Q_OBJECT
64 friend class TodoView; // avoid QObject here.... 62 friend class TodoView; // avoid QObject here....
65 friend class TodoShow; // avoid QObject 63 friend class TodoShow; // avoid QObject
66 public: 64 public:
67 /* OApplicationFactory application Name */ 65 /* OApplicationFactory application Name */
68 static QString appName() { return QString::fromLatin1("todolist"); } 66 static QString appName() { return QString::fromLatin1("todolist"); }
69 67
70 MainWindow( QWidget *parent = 0, 68 MainWindow( QWidget *parent = 0,
71 const char* name = 0, WFlags fl = 0 ); 69 const char* name = 0, WFlags fl = 0 );
72 ~MainWindow(); 70 ~MainWindow();
73 71
74 /** return a context menu for an OPimTodo */ 72 /** return a context menu for an OPimTodo */
@@ -135,25 +133,25 @@ private slots:
135 QToolBar* m_tool; 133 QToolBar* m_tool;
136 QAction* m_editAction, 134 QAction* m_editAction,
137 *m_deleteAction, 135 *m_deleteAction,
138 *m_findAction, 136 *m_findAction,
139 *m_completedAction, 137 *m_completedAction,
140 *m_showDeadLineAction, 138 *m_showDeadLineAction,
141 *m_deleteAllAction, 139 *m_deleteAllAction,
142 *m_deleteCompleteAction, 140 *m_deleteCompleteAction,
143 *m_duplicateAction, 141 *m_duplicateAction,
144 *m_showOverDueAction, 142 *m_showOverDueAction,
145 *m_showQuickTaskAction, 143 *m_showQuickTaskAction,
146 *m_effectiveAction; 144 *m_effectiveAction;
147 OWidgetStack *m_stack; 145 Opie::OWidgetStack *m_stack;
148 QPopupMenu* m_catMenu, 146 QPopupMenu* m_catMenu,
149 *m_edit, 147 *m_edit,
150 *m_options, 148 *m_options,
151 *m_template; 149 *m_template;
152 150
153 bool m_syncing:1; 151 bool m_syncing:1;
154 bool m_deadline:1; 152 bool m_deadline:1;
155 bool m_completed:1; 153 bool m_completed:1;
156 bool m_overdue:1; 154 bool m_overdue:1;
157 bool m_quicktask:1; 155 bool m_quicktask:1;
158 TodoManager m_todoMgr; 156 TodoManager m_todoMgr;
159 QString m_curCat; 157 QString m_curCat;
@@ -196,18 +194,18 @@ private slots:
196 void slotShowPrev(); 194 void slotShowPrev();
197 void slotShowDue( bool ); 195 void slotShowDue( bool );
198 void slotReturnFromView(); // for TodoShow... 196 void slotReturnFromView(); // for TodoShow...
199 /* reimplementation from opimmainwindow */ 197 /* reimplementation from opimmainwindow */
200 protected slots: 198 protected slots:
201 void flush(); 199 void flush();
202 void reload(); 200 void reload();
203 int create(); 201 int create();
204 bool remove( int uid ); 202 bool remove( int uid );
205 void beam(int uid); 203 void beam(int uid);
206 void show( int uid ); 204 void show( int uid );
207 void edit( int uid ); 205 void edit( int uid );
208 void add( const OPimRecord& ); 206 void add( const Opie::OPimRecord& );
209 void doAlarm( const QDateTime& dt, int uid ); 207 void doAlarm( const QDateTime& dt, int uid );
210 }; 208 };
211} 209}
212 210
213#endif 211#endif
diff --git a/core/pim/todo/quickeditimpl.cpp b/core/pim/todo/quickeditimpl.cpp
index cd0684f..94ae97e 100644
--- a/core/pim/todo/quickeditimpl.cpp
+++ b/core/pim/todo/quickeditimpl.cpp
@@ -12,25 +12,25 @@
12 12
13QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible ) 13QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible )
14 : QToolBar( (QMainWindow *)parent ), Todo::QuickEdit( (Todo::MainWindow *)parent ) { 14 : QToolBar( (QMainWindow *)parent ), Todo::QuickEdit( (Todo::MainWindow *)parent ) {
15 setHorizontalStretchable( TRUE ); 15 setHorizontalStretchable( TRUE );
16 16
17 // Load priority icons 17 // Load priority icons
18 // TODO - probably should be done globally somewhere else, 18 // TODO - probably should be done globally somewhere else,
19 // see also tableview.cpp/h, taskeditoroverview.cpp/h 19 // see also tableview.cpp/h, taskeditoroverview.cpp/h
20 priority1 = Resource::loadPixmap( "todo/priority1" ); 20 priority1 = Resource::loadPixmap( "todo/priority1" );
21 priority3 = Resource::loadPixmap( "todo/priority3" ); 21 priority3 = Resource::loadPixmap( "todo/priority3" );
22 priority5 = Resource::loadPixmap( "todo/priority5" ); 22 priority5 = Resource::loadPixmap( "todo/priority5" );
23 23
24 m_lbl = new OClickableLabel( this ); 24 m_lbl = new Opie::OClickableLabel( this );
25 m_lbl->setMinimumWidth( 15 ); 25 m_lbl->setMinimumWidth( 15 );
26 m_lbl->setPixmap( priority3 ); 26 m_lbl->setPixmap( priority3 );
27 connect(m_lbl, SIGNAL(clicked() ), this, SLOT(slotPrio()) ); 27 connect(m_lbl, SIGNAL(clicked() ), this, SLOT(slotPrio()) );
28 QWhatsThis::add( m_lbl, QWidget::tr( "Click here to set the priority of new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); 28 QWhatsThis::add( m_lbl, QWidget::tr( "Click here to set the priority of new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
29 29
30 m_edit = new QLineEdit( this ); 30 m_edit = new QLineEdit( this );
31 setStretchableWidget( m_edit ); 31 setStretchableWidget( m_edit );
32 QWhatsThis::add( m_edit, QWidget::tr( "Enter description of new task here.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); 32 QWhatsThis::add( m_edit, QWidget::tr( "Enter description of new task here.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) );
33 33
34 /* 34 /*
35 * it's not implemented and won't be implemented for 1.0 35 * it's not implemented and won't be implemented for 1.0
36 */ 36 */