6 enum LoadMode {NewMap,ImportAdd,ImportReplace};
7 enum SaveMode {PartOfMap,CompleteMap,UndoCommand};
8 enum ErrorCode {success,aborted,nozip};
11 /////////////////////////////////////////////////////////////////////////////
12 QString maskPath (QString );
13 QString convertToRel (const QString &,const QString &);
15 QString browseDirectory (QWidget *parent=NULL, const QString &caption="");
16 bool reallyWriteDirectory(const QString &dir);
18 QString makeUniqueDir (bool &,QString);
20 void copyDir (QDir src,QDir dst);
21 void makeSubDirs (const QString &);
22 ErrorCode zipDir (const QDir &,const QString&);
23 ErrorCode unzipDir (const QDir &,const QString&);
24 bool loadStringFromDisk (const QString &, QString &);
25 bool saveStringToDisk (const QString &, const QString &s);
27 /////////////////////////////////////////////////////////////////////////////
29 #include <q3filedialog.h>
32 class ImagePreview : public QLabel, public Q3FilePreview
35 ImagePreview( QWidget * );
36 void previewUrl( const Q3Url & );
42 //////////////////////////////////////////////////////////
43 // Helper function to select image format while in SaveDialogs
49 QStringList getFilters();
50 QString getType ( QString );
53 QStringList imageFilters;
54 QStringList imageTypes;