6 enum LoadMode {NewMap,ImportAdd,ImportReplace};
7 enum SaveMode {PartOfMap,CompleteMap,UndoCommand};
8 enum FileType {VymMap, FreemindMap};
9 enum ErrorCode {success,aborted,nozip};
12 /////////////////////////////////////////////////////////////////////////////
13 QString maskPath (QString );
14 QString convertToRel (const QString &,const QString &);
16 QString browseDirectory (QWidget *parent=NULL, const QString &caption="");
17 bool reallyWriteDirectory(const QString &dir);
19 QString makeTmpDir (bool &ok, QString prefix);
20 bool isInTmpDir (QString fn);
21 QString makeUniqueDir (bool &ok, QString);
23 void copyDir (QDir src,QDir dst);
24 void makeSubDirs (const QString &);
25 ErrorCode zipDir (const QDir &,const QString&);
26 ErrorCode unzipDir (const QDir &,const QString&);
27 bool loadStringFromDisk (const QString &, QString &);
28 bool saveStringToDisk (const QString &, const QString &s);
30 /////////////////////////////////////////////////////////////////////////////
32 #include <q3filedialog.h>
35 class ImagePreview : public QLabel, public Q3FilePreview
38 ImagePreview( QWidget * );
39 void previewUrl( const Q3Url & );
45 //////////////////////////////////////////////////////////
46 // Helper function to select image format while in SaveDialogs
52 QStringList getFilters();
53 QString getType ( QString );
56 QStringList imageFilters;
57 QStringList imageTypes;