1.1 --- a/mapeditor.h Mon Jan 14 16:26:59 2008 +0000
1.2 +++ b/mapeditor.h Wed Feb 27 16:09:06 2008 +0000
1.3 @@ -164,7 +164,7 @@
1.4 ErrorCode load (QString, const LoadMode &, const FileType& ); // newmap, import/replace selection
1.5 public:
1.6 /*! \brief Save the map to file */
1.7 - int save(const SaveMode &);
1.8 + ErrorCode save(const SaveMode &);
1.9 void setZipped(bool); //!< Set or unset compression of map with zip save map zipped
1.10 bool saveZipped(); //!< True, if file will be saved zipped
1.11 void print(); //!< Print the map
1.12 @@ -386,12 +386,15 @@
1.13 void displayNetworkError (QAbstractSocket::SocketError);
1.14
1.15 void autosave ();
1.16 + void fileChanged();
1.17
1.18 private:
1.19 State state; // State of MapEditor
1.20 QGraphicsScene *mapScene;
1.21 VymModel *model; // Vym Map, includding several mapCenters
1.22 QTimer *autosaveTimer;
1.23 + QTimer *fileChangedTimer;
1.24 + QDateTime fileChangedTime;
1.25
1.26 bool adjustCanvasRequested; // collect requests until end of user event
1.27 BranchObj *editingBO; // entering Text into BO
1.28 @@ -437,6 +440,7 @@
1.29
1.30 bool zipped; // should map be zipped
1.31 static int mapNum; // unique number for Editor
1.32 + FileType fileType; // type of file, e.g. vym, freemind...
1.33 QString fileName; // short name of file (for tab)
1.34 QString filePath; // path to file which will be saved
1.35 QString fileDir; // dir where file is saved