1.1 --- a/mapeditor.h Tue Aug 29 08:31:42 2006 +0000
1.2 +++ b/mapeditor.h Wed Aug 30 12:16:25 2006 +0000
1.3 @@ -2,14 +2,14 @@
1.4 #define MAPEDITOR_H
1.5
1.6 #include <q3canvas.h>
1.7 +//#include <q3filedialog.h>
1.8 +//#include <q3process.h>
1.9 +#include <QBuffer>
1.10 +#include <QContextMenuEvent>
1.11 #include <QCursor>
1.12 -//#include <q3filedialog.h>
1.13 +#include <QDragEnterEvent>
1.14 +#include <QDropEvent>
1.15 #include <QEvent>
1.16 -//#include <q3process.h>
1.17 -#include <qbuffer.h>
1.18 -#include <QDragEnterEvent>
1.19 -#include <QContextMenuEvent>
1.20 -#include <QDropEvent>
1.21 #include <QLineEdit>
1.22 #include <QMouseEvent>
1.23 #include <QPixmap>
1.24 @@ -46,7 +46,8 @@
1.25 void saveStatePart (LinkableMapObj *, const QString &);
1.26 void saveStateConstSelection (const QString &, const QString &, const QString &);
1.27 void saveStateX (LinkableMapObj *, const QString &, const QString &);
1.28 - void saveState(const SaveMode&, const QString &, LinkableMapObj *, const QString &, LinkableMapObj *, const QString &);
1.29 + void saveStateComData (LinkableMapObj *, const QString &, LinkableMapObj *, const QString &, const QString &, LinkableMapObj *);
1.30 + void saveState(const SaveMode&, LinkableMapObj *, const QString &, LinkableMapObj *, const QString &, const QString &, LinkableMapObj *);
1.31 void parseAtom(const QString &);
1.32
1.33 void addFloatImage(const QPixmap &img);
1.34 @@ -99,7 +100,6 @@
1.35 void move(const int &,const int&);
1.36 void moveBranchUp();
1.37 void moveBranchDown();
1.38 - void editHeading(); // Start editing heading
1.39 QString getHeading (bool &,QPoint &); // Get heading, ok if selection is branch
1.40 void setHeading(const QString &);
1.41 private:
1.42 @@ -113,7 +113,8 @@
1.43 LinkableMapObj* getSelection(); // returns selection
1.44 void unselect(); // before changing current noteedit
1.45 void reselect(); // after changing current noteedit
1.46 - bool select(const QString &); // Select
1.47 + bool select(const QString &); // Select by string
1.48 + QString getSelectString();
1.49 private:
1.50 void selectInt(LinkableMapObj*);
1.51 void selectNextBranchInt(); // Increment number of branch
1.52 @@ -137,12 +138,14 @@
1.53 void findReset(); // Reset Find
1.54 void editURL(); // edit the URL
1.55 QString getURL(); // returns URL of selection or ""
1.56 + QStringList getURLs(); // returns URLs of subtree
1.57 void editHeading2URL(); // copy heading to URL
1.58 void editBugzilla2URL(); // create URL to Bugzilla
1.59 void editFATE2URL(); // create URL to FATE
1.60 void editVymLink(); // edit link to another map
1.61 void deleteVymLink(); // delete link to another map
1.62 QString getVymLink(); // return path to map
1.63 + QStringList getVymLinks(); // return paths in subtree
1.64 void toggleHideExport(); // toggle the export flag
1.65 void removeBranchKeepChilds(); // remove but keep childs
1.66 void removeChilds(); // remove childs