file.h
author insilmaril
Tue Mar 07 11:32:02 2006 +0000 (2006-03-07)
changeset 229 90ea59d3e826
parent 195 98f260cfb1fe
child 235 402f4cde3ea6
permissions -rw-r--r--
Added xsl for Taskjuggler Export by Matt
     1 #ifndef FILE_H
     2 #define FILE_H
     3 
     4 #include <qdir.h>
     5 
     6 enum LoadMode {NewMap,ImportAdd,ImportReplace};
     7 enum SaveMode {PartOfMap,CompleteMap,UndoCommand};
     8 enum ErrorCode {success,aborted,nozip};
     9 
    10 
    11 /////////////////////////////////////////////////////////////////////////////
    12 QString maskPath (QString );
    13 QString convertToRel (const QString &,const QString &);
    14 QString makeUniqueDir (QString);
    15 void removeDir(QDir);
    16 void makeSubDirs (const QString &);
    17 ErrorCode zipDir (const QDir &,const QString&);
    18 ErrorCode unzipDir (const QDir &,const QString&);
    19 bool loadStringFromDisk (const QString &, QString &);
    20 bool saveStringToDisk (const QString &, const QString &s);
    21 
    22 /////////////////////////////////////////////////////////////////////////////
    23 #include <qlabel.h>
    24 #include <qfiledialog.h>
    25 #include <qpixmap.h>
    26 
    27 class ImagePreview : public QLabel, public QFilePreview
    28 {
    29 public:
    30     ImagePreview( QWidget * );
    31     void previewUrl( const QUrl & );
    32 };
    33 
    34 #endif