summaryrefslogtreecommitdiff
path: root/core/pim/todo/todotable.h
authorzecke <zecke>2002-04-14 15:14:03 (UTC)
committer zecke <zecke>2002-04-14 15:14:03 (UTC)
commita0fe593db4e700989cc19e28b67a58f87823afeb (patch) (side-by-side diff)
tree1a369409be81aa0feb15899b56adda6ec12b2591 /core/pim/todo/todotable.h
parent16dd1d47d51e6307be8d89d36571115cb7c8788c (diff)
downloadopie-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 ;)
Diffstat (limited to 'core/pim/todo/todotable.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todotable.h7
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
};
-enum journal_action { ACTION_ADD, ACTION_REMOVE, ACTION_REPLACE };
+enum journal_action { ACTION_ADD=0, ACTION_REMOVE, ACTION_REPLACE };
+class XMLElement;
class TodoTable : public QTable
{
Q_OBJECT
@@ -120,8 +121,11 @@ public:
bool save( const QString &fn );
void load( const QString &fn );
+ void applyJournal( );
void clear();
void removeCurrentEntry();
+ void removeAllEntries() { clear(); };
+ //void removeAllEntriesInCategory(const QString &category );
void setPaintingEnabled( bool e );
@@ -153,6 +157,7 @@ private:
void journalFreeRemoveEntry( int row );
inline void realignTable( int row );
void loadFile( const QString &strFile, bool fromJournal = false );
+ void doApply(XMLElement *el );
private slots:
void slotClicked( int row, int col, int button, const QPoint &pos );