summaryrefslogtreecommitdiff
path: root/core/pim/todo/mainwindow.h
Side-by-side diff
Diffstat (limited to 'core/pim/todo/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h
index 270cbd1..14cfa82 100644
--- a/core/pim/todo/mainwindow.h
+++ b/core/pim/todo/mainwindow.h
@@ -32,3 +32,2 @@
#include <qlist.h>
-#include <qmainwindow.h>
@@ -36,2 +35,3 @@
#include <opie/otodo.h>
+#include <opie/opimmainwindow.h>
@@ -58,4 +58,5 @@ namespace Todo {
- class MainWindow : public QMainWindow {
+ class MainWindow : public OPimMainWindow {
Q_OBJECT
+ friend class TodoView; // avoid QObject here....
public:
@@ -66,6 +67,5 @@ namespace Todo {
/** return a context menu for an OTodo */
- QPopupMenu* contextMenu(int uid );
+ QPopupMenu* contextMenu(int uid, bool doesRecur = FALSE );
QPopupMenu* options();
QPopupMenu* edit();
- QPopupMenu* view();
QToolBar* toolbar();
@@ -138,3 +138,2 @@ private slots:
*m_options,
- *m_view,
*m_template;
@@ -163,4 +162,5 @@ private slots:
void slotEdit(int);
-private slots:
void slotUpdate3( QWidget* );
+ void slotComplete( int uid );
+ void slotComplete( const OTodo& ev );
void slotNewFromTemplate(int id );
@@ -168,2 +168,3 @@ private slots:
void slotDuplicate();
+
void slotDelete();
@@ -187,2 +188,13 @@ private slots:
void slotShowDue( bool );
+ /* reimplementation from opimmainwindow */
+ protected slots:
+ void flush();
+ void reload();
+ int create();
+ bool remove( int uid );
+ void beam(int uid, int transport = IrDa );
+ void show( int uid );
+ void edit( int uid );
+ void add( const OPimRecord& );
+ OPimRecord* record( int rtti, const QByteArray& );
};