author | zecke <zecke> | 2002-04-14 15:14:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-14 15:14:03 (UTC) |
commit | a0fe593db4e700989cc19e28b67a58f87823afeb (patch) (side-by-side diff) | |
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 @@ -89,14 +89,15 @@ class DueTextItem : public QTableItem bool m_hasDate:1; bool m_completed:1; }; -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 public: TodoTable( QWidget *parent = 0, const char * name = 0 ); @@ -117,14 +118,17 @@ public: void setShowCategory( const QString &c ) { showCat = c; updateVisible(); } const QString &showCategory() const { return showCat; } int showCategoryId() const; 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 ); virtual void sortColumn( int col, bool ascending, bool /*wholeRows*/ ); // int rowHeight( int ) const; @@ -150,12 +154,13 @@ private: void updateJournal( const ToDoEvent &todo, journal_action action, int row = -1); void mergeJournal(); void journalFreeReplaceEntry( const ToDoEvent &todo, int row ); 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 ); void slotPressed( int row, int col, int button, const QPoint &pos ); void slotCheckPriority(int row, int col ); void slotCurrentChanged(int row, int col ); |