-rw-r--r-- | core/pim/todo/todotable.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/pim/todo/todotable.h b/core/pim/todo/todotable.h index 32df514..6917e04 100644 --- a/core/pim/todo/todotable.h +++ b/core/pim/todo/todotable.h | |||
@@ -92,8 +92,9 @@ class DueTextItem : public QTableItem | |||
92 | }; | 92 | }; |
93 | 93 | ||
94 | 94 | ||
95 | enum journal_action { ACTION_ADD, ACTION_REMOVE, ACTION_REPLACE }; | 95 | enum journal_action { ACTION_ADD=0, ACTION_REMOVE, ACTION_REPLACE }; |
96 | 96 | ||
97 | class XMLElement; | ||
97 | class TodoTable : public QTable | 98 | class TodoTable : public QTable |
98 | { | 99 | { |
99 | Q_OBJECT | 100 | Q_OBJECT |
@@ -120,8 +121,11 @@ public: | |||
120 | 121 | ||
121 | bool save( const QString &fn ); | 122 | bool save( const QString &fn ); |
122 | void load( const QString &fn ); | 123 | void load( const QString &fn ); |
124 | void applyJournal( ); | ||
123 | void clear(); | 125 | void clear(); |
124 | void removeCurrentEntry(); | 126 | void removeCurrentEntry(); |
127 | void removeAllEntries() { clear(); }; | ||
128 | //void removeAllEntriesInCategory(const QString &category ); | ||
125 | 129 | ||
126 | void setPaintingEnabled( bool e ); | 130 | void setPaintingEnabled( bool e ); |
127 | 131 | ||
@@ -153,6 +157,7 @@ private: | |||
153 | void journalFreeRemoveEntry( int row ); | 157 | void journalFreeRemoveEntry( int row ); |
154 | inline void realignTable( int row ); | 158 | inline void realignTable( int row ); |
155 | void loadFile( const QString &strFile, bool fromJournal = false ); | 159 | void loadFile( const QString &strFile, bool fromJournal = false ); |
160 | void doApply(XMLElement *el ); | ||
156 | 161 | ||
157 | private slots: | 162 | private slots: |
158 | void slotClicked( int row, int col, int button, const QPoint &pos ); | 163 | void slotClicked( int row, int col, int button, const QPoint &pos ); |