author | zecke <zecke> | 2002-04-14 15:14:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-14 15:14:03 (UTC) |
commit | a0fe593db4e700989cc19e28b67a58f87823afeb (patch) (unidiff) | |
tree | 1a369409be81aa0feb15899b56adda6ec12b2591 /core/pim/todo/todotable.h | |
parent | 16dd1d47d51e6307be8d89d36571115cb7c8788c (diff) | |
download | opie-a0fe593db4e700989cc19e28b67a58f87823afeb.zip opie-a0fe593db4e700989cc19e28b67a58f87823afeb.tar.gz opie-a0fe593db4e700989cc19e28b67a58f87823afeb.tar.bz2 |
-menu restructure ( closer to the Zaurus)
-first Part of restoring journal I need to rewrite the whole crap later
qt journaled on a row basis which doesn't work anymore cause of
flexible sorting
-something I forgot ;)
-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 | |||
@@ -91,10 +91,11 @@ class DueTextItem : public QTableItem | |||
91 | 91 | ||
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 |
100 | 101 | ||
@@ -119,10 +120,13 @@ public: | |||
119 | int showCategoryId() const; | 120 | int showCategoryId() const; |
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 | ||
128 | virtual void sortColumn( int col, bool ascending, bool /*wholeRows*/ ); | 132 | virtual void sortColumn( int col, bool ascending, bool /*wholeRows*/ ); |
@@ -152,8 +156,9 @@ private: | |||
152 | void journalFreeReplaceEntry( const ToDoEvent &todo, int row ); | 156 | void journalFreeReplaceEntry( const ToDoEvent &todo, int row ); |
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 ); |
159 | void slotPressed( int row, int col, int button, const QPoint &pos ); | 164 | void slotPressed( int row, int col, int button, const QPoint &pos ); |