file.h
changeset 366 e95081c21da2
parent 235 402f4cde3ea6
child 393 053b8645e3e9
     1.1 --- a/file.h	Tue Sep 05 09:47:13 2006 +0000
     1.2 +++ b/file.h	Tue Sep 05 09:47:14 2006 +0000
     1.3 @@ -11,7 +11,7 @@
     1.4  /////////////////////////////////////////////////////////////////////////////
     1.5  QString maskPath (QString );
     1.6  QString convertToRel (const QString &,const QString &);
     1.7 -QString makeUniqueDir (QString);
     1.8 +QString makeUniqueDir (bool &,QString);
     1.9  void removeDir(QDir);
    1.10  void makeSubDirs (const QString &);
    1.11  ErrorCode zipDir (const QDir &,const QString&);
    1.12 @@ -21,16 +21,32 @@
    1.13  
    1.14  /////////////////////////////////////////////////////////////////////////////
    1.15  #include <qlabel.h>
    1.16 -#include <qfiledialog.h>
    1.17 +#include <q3filedialog.h>
    1.18  #include <qpixmap.h>
    1.19  
    1.20 -class ImagePreview : public QLabel, public QFilePreview
    1.21 +class ImagePreview : public QLabel, public Q3FilePreview
    1.22  {
    1.23  public:
    1.24      ImagePreview( QWidget * );
    1.25 -    void previewUrl( const QUrl & );
    1.26 +    void previewUrl( const Q3Url & );
    1.27  protected:
    1.28 -	QFileDialog *fdia;
    1.29 +	Q3FileDialog *fdia;
    1.30 +};
    1.31 +
    1.32 +
    1.33 +//////////////////////////////////////////////////////////
    1.34 +// Helper function to select image format while in SaveDialogs
    1.35 +
    1.36 +class ImageIO
    1.37 +{
    1.38 +public:
    1.39 +	ImageIO ();
    1.40 +	QStringList getFilters();
    1.41 +	QString getType ( QString );
    1.42 +
    1.43 +private:	
    1.44 +	QStringList imageFilters;
    1.45 +	QStringList imageTypes;
    1.46  };
    1.47  
    1.48  #endif