file.h
author insilmaril
Thu Jul 06 15:39:54 2006 +0000 (2006-07-06)
branchqt4-port
changeset 10 e2a80d9b5858
parent 2 608f976aa7bb
child 11 b8c547f0fc58
permissions -rw-r--r--
disabled join lines/paragraphs in TextEditor
insilmaril@2
     1
#ifndef FILE_H
insilmaril@2
     2
#define FILE_H
insilmaril@2
     3
insilmaril@2
     4
#include <qdir.h>
insilmaril@2
     5
insilmaril@2
     6
enum LoadMode {NewMap,ImportAdd,ImportReplace};
insilmaril@2
     7
enum SaveMode {PartOfMap,CompleteMap,UndoCommand};
insilmaril@2
     8
enum ErrorCode {success,aborted,nozip};
insilmaril@2
     9
insilmaril@2
    10
insilmaril@2
    11
/////////////////////////////////////////////////////////////////////////////
insilmaril@2
    12
QString maskPath (QString );
insilmaril@2
    13
QString convertToRel (const QString &,const QString &);
insilmaril@2
    14
QString makeUniqueDir (QString);
insilmaril@2
    15
void removeDir(QDir);
insilmaril@2
    16
void makeSubDirs (const QString &);
insilmaril@2
    17
ErrorCode zipDir (const QDir &,const QString&);
insilmaril@2
    18
ErrorCode unzipDir (const QDir &,const QString&);
insilmaril@2
    19
bool loadStringFromDisk (const QString &, QString &);
insilmaril@2
    20
bool saveStringToDisk (const QString &, const QString &s);
insilmaril@2
    21
insilmaril@2
    22
/////////////////////////////////////////////////////////////////////////////
insilmaril@2
    23
#include <qlabel.h>
insilmaril@2
    24
#include <q3filedialog.h>
insilmaril@2
    25
#include <qpixmap.h>
insilmaril@2
    26
insilmaril@2
    27
class ImagePreview : public QLabel, public Q3FilePreview
insilmaril@2
    28
{
insilmaril@2
    29
public:
insilmaril@2
    30
    ImagePreview( QWidget * );
insilmaril@2
    31
    void previewUrl( const Q3Url & );
insilmaril@2
    32
protected:
insilmaril@2
    33
	Q3FileDialog *fdia;
insilmaril@2
    34
};
insilmaril@2
    35
insilmaril@4
    36
insilmaril@4
    37
insilmaril@4
    38
class ImageIO
insilmaril@4
    39
{
insilmaril@4
    40
public:
insilmaril@4
    41
	ImageIO ();
insilmaril@4
    42
	QStringList getFilters();
insilmaril@4
    43
	QString getType ( QString );
insilmaril@4
    44
insilmaril@4
    45
private:	
insilmaril@4
    46
	QStringList imageFilters;
insilmaril@4
    47
	QStringList imageTypes;
insilmaril@4
    48
};
insilmaril@4
    49
insilmaril@2
    50
#endif