# HG changeset patch
# User insilmaril
# Date 1144766054 0
# Node ID f6fecd518011dcb89debc4ab53b78ed16f00b694
# Parent  3492af261af2668ecdf3e27b66696617438879a2
added basic history window

diff -r 3492af261af2 -r f6fecd518011 mapeditor.h
--- a/mapeditor.h	Tue Apr 11 14:34:14 2006 +0000
+++ b/mapeditor.h	Tue Apr 11 14:34:14 2006 +0000
@@ -12,6 +12,7 @@
 #include "mapcenterobj.h"
 #include "file.h"
 #include "misc.h"
+#include "showtextdialog.h"
 
 class QNetworkOperation;
 class QUrlOperator;
@@ -30,24 +31,26 @@
 	bool isRepositionBlocked(); // block while load or undo
 	
 private:
+	QString getName(LinkableMapObj*);	// Get e.g. heading or filename
 	void makeTmpDirs();		// create temporary directories
     QString saveToDir(const QString&,const QString &,bool, const QPoint &,LinkableMapObj*);
-    void saveState();		// save actual state to backup
-    void saveState(LinkableMapObj *);
-    void saveState(const QString &, const QString &);
-    void saveState(const QString &, LinkableMapObj *);
-    void saveState(const SaveMode&, const QString &, LinkableMapObj *, const QString &, LinkableMapObj *);
+    void saveState(const QString &);	// save actual state to backup
+    void saveState(LinkableMapObj *, const QString &);
+    void saveState(const QString &, const QString &, const QString &);
+    void saveState(const QString &, LinkableMapObj *, const QString &);
+    void saveState(const SaveMode&, const QString &, LinkableMapObj *, const QString &, LinkableMapObj *, const QString &);
     void parseAtom(const QString &);	
 
     void addFloatImage(const QPixmap &img);
 
   private slots:
-    void finishedLineEditNoSave();
+    void finishedLineEdit();
     void fetchImage(const QString &img);
     void imageDataFetched(const QByteArray &, QNetworkOperation *);
     void imageDataFinished(QNetworkOperation *);
 
 public:
+	void toggleHistoryWindow();
 	bool isDefault();		// false, if map was changed once
     bool isUnsaved();		// save necessary
     bool hasChanged();		// undo possible
@@ -131,11 +134,8 @@
 	void editVymLink();						// edit link to another map
 	void deleteVymLink();					// delete link to another map
 	QString getVymLink();					// return path to map
-	void setHideExport();					// toggle the export flag
-protected:	
 	void toggleHideExport();				// toggle the export flag
-public:	
-	void removeBranchHere();				// remove but keep childs
+	void removeBranchKeepChilds();			// remove but keep childs
 	void removeChilds();					// remove childs
 	void editMapInfo();						// dialog to enter author, ...
 	void updateActions();					// update e.g. format buttons
@@ -250,6 +250,8 @@
   QDataStream *imageData;
   QBuffer *imageBuffer;
 
+	ShowTextDialog *historyWindow;
+
 };
 #endif