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 makeUniqueDir (bool &,QString);
21 void copyDir (QDir src,QDir dst);
22 void makeSubDirs (const QString &);
23 ErrorCode zipDir (const QDir &,const QString&);
24 ErrorCode unzipDir (const QDir &,const QString&);
25 bool loadStringFromDisk (const QString &, QString &);
26 bool saveStringToDisk (const QString &, const QString &s);
28 /////////////////////////////////////////////////////////////////////////////
30 #include <q3filedialog.h>
33 class ImagePreview : public QLabel, public Q3FilePreview
36 ImagePreview( QWidget * );
37 void previewUrl( const Q3Url & );
43 //////////////////////////////////////////////////////////
44 // Helper function to select image format while in SaveDialogs
50 QStringList getFilters();
51 QString getType ( QString );
54 QStringList imageFilters;
55 QStringList imageTypes;