diff -r 2abfdb7e85f4 -r 3472b93efb0c mapeditor.h --- a/mapeditor.h Mon Jan 14 16:26:59 2008 +0000 +++ b/mapeditor.h Wed Feb 27 16:09:06 2008 +0000 @@ -164,7 +164,7 @@ ErrorCode load (QString, const LoadMode &, const FileType& ); // newmap, import/replace selection public: /*! \brief Save the map to file */ - int save(const SaveMode &); + ErrorCode save(const SaveMode &); void setZipped(bool); //!< Set or unset compression of map with zip save map zipped bool saveZipped(); //!< True, if file will be saved zipped void print(); //!< Print the map @@ -386,12 +386,15 @@ void displayNetworkError (QAbstractSocket::SocketError); void autosave (); + void fileChanged(); private: State state; // State of MapEditor QGraphicsScene *mapScene; VymModel *model; // Vym Map, includding several mapCenters QTimer *autosaveTimer; + QTimer *fileChangedTimer; + QDateTime fileChangedTime; bool adjustCanvasRequested; // collect requests until end of user event BranchObj *editingBO; // entering Text into BO @@ -437,6 +440,7 @@ bool zipped; // should map be zipped static int mapNum; // unique number for Editor + FileType fileType; // type of file, e.g. vym, freemind... QString fileName; // short name of file (for tab) QString filePath; // path to file which will be saved QString fileDir; // dir where file is saved