diff -r 67a91e28b30f -r 7770698893db mapeditor.h --- a/mapeditor.h Mon Jun 06 20:27:42 2005 +0000 +++ b/mapeditor.h Fri Jul 08 07:24:42 2005 +0000 @@ -29,11 +29,12 @@ void delTmpDirs(); // delete temporary directories void makeSubDirs(const QString&); // create subdirs in dir - QString saveToDir(const QString&,const QString &,bool, const QPoint - &,SaveMode); + QString saveToDir(const QString&,const QString &,bool, const QPoint &,LinkableMapObj*); void saveState(); // save actual state to backup - void saveState(const SaveMode&, LinkableMapObj *); + void saveState(LinkableMapObj *); + void saveState(const QString &); void saveState(const SaveMode&, LinkableMapObj *, const QString &); + void parseAtom(const QString &); private slots: void finishedLineEditNoSave(); @@ -63,9 +64,10 @@ void exportASCII(); void exportXML(const QString&); // export to directory void clear(); // clear map + void copy(); // copy branch to clipboard void undo(); // undo last action - void copy(); // copy branch to clipboard private: + void undoXML(const QString &); // undo by replacing with saved data LinkableMapObj* pasteNoSave(); // paste clipboard to branch void cutNoSave(); // cut to clipboard public: @@ -73,7 +75,10 @@ void cut(); // cut to clipboard and backup void moveBranchUp(); void moveBranchDown(); - void editHeading(); + void editHeading(); // Start editing heading +private: + void setHeading(const QString &); // Just set the heading for selection +public: void addNewBranch(int); // pos allows to add above/below selection void addNewBranchHere(); // insert and make selection its void deleteSelection(); @@ -138,7 +143,6 @@ void followXLink (int); void editXLink (int); void testFunction(); // FIXME just testing - void parseTest(const QString &); // FIXME just testing protected: void ensureSelectionVisible(); @@ -185,7 +189,6 @@ bool mapChanged; // Flag if undo is possible bool mapUnsaved; // Flag if map should be saved QString backupXML; // backup (XML) for undo - LinkableMapObj* undoSelection; // replace this LMO with vympart from backup QString undoCommand; // FIXME testing // if != NULL