Subversion Repositories Scribus

Rev

Rev 455 | Rev 2969 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 paul 1
/***************************************************************************
2
                          customfdialog.h  -  description
3
                             -------------------
4
    begin                : Fri Nov 30 2001
5
    copyright            : (C) 2001 by Franz Schmid
6
    email                : Franz.Schmid@altmuehlnet.de
7
 ***************************************************************************/
8
 
9
/***************************************************************************
10
 *                                                                         *
11
 *   This program is free software; you can redistribute it and/or modify  *
12
 *   it under the terms of the GNU General Public License as published by  *
13
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 *   (at your option) any later version.                                   *
15
 *                                                                         *
16
 ***************************************************************************/
17
 
18
#ifndef CUSTOMFDIALOG_H
19
#define CUSTOMFDIALOG_H
20
 
21
#include <qfiledialog.h>
22
#include <qurl.h>
23
#include <qlabel.h>
24
#include <qdir.h>
25
#include <qpixmap.h>
26
#include <qcheckbox.h>
27
#include <qlayout.h>
28
#include <qframe.h>
29
#include <qtoolbutton.h>
15 Franz 30
#include <qcombobox.h>
415 Franz 31
#include <qstring.h>
3 paul 32
/**
33
  *@author Franz Schmid
34
  */
35
class ImIconProvider : public QFileIconProvider
36
{
37
    Q_OBJECT
38
    QStringList fmts;
39
    QPixmap imagepm;
40
    QPixmap docpm;
41
    QPixmap pspm;
42
    QPixmap pdfpm;
43
    QPixmap txtpm;
867 fschmid 44
    QPixmap oosxdpm;
45
    QPixmap oosxwpm;
46
    QPixmap vectorpm;
3 paul 47
public:
48
    ImIconProvider(QWidget *pa);
49
    ~ImIconProvider() {};
50
 
51
    const QPixmap * pixmap(const QFileInfo &fi);
52
};
53
 
54
class FDialogPreview : public QLabel, public QFilePreview
55
{
56
    Q_OBJECT
57
public:
58
        FDialogPreview(QWidget *pa);
59
        ~FDialogPreview() {};
311 Franz 60
        void updtPix();
3 paul 61
        void GenPreview(QString name);
62
        virtual void previewUrl(const QUrl &url);
63
};
64
 
65
class CustomFDialog : public QFileDialog
66
{
67
    Q_OBJECT
68
public:
415 Franz 69
        CustomFDialog(QWidget *pa, QString wDir, QString cap = "", QString filter = "",
70
                      bool Pre = false, bool mod = true, bool comp = false, bool cod = false,
71
                      bool dirOnly = false);
3 paul 72
        ~CustomFDialog();
73
        QDir cDir;
74
        QCheckBox* SaveZip;
310 Franz 75
        QCheckBox* WFonts;
3 paul 76
        QFrame* Layout;
77
        QToolButton* HomeB;
15 Franz 78
        QFrame* LayoutC;
79
        QComboBox *TxCodeM;
80
        QLabel *TxCodeT;
3 paul 81
private slots:
82
        void slotHome();
83
        void HandleComp();
84
protected:
85
        QHBoxLayout* Layout1;
15 Franz 86
        QHBoxLayout* Layout1C;
3 paul 87
};
88
 
89
#endif