Subversion Repositories Scribus

Rev

Rev 868 | 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
 
1956 fschmid 21
#ifdef HAVE_CONFIG_H
22
#include <config.h>
23
#endif
24
 
3 paul 25
#include <qfiledialog.h>
26
#include <qurl.h>
27
#include <qlabel.h>
28
#include <qdir.h>
29
#include <qpixmap.h>
30
#include <qcheckbox.h>
31
#include <qlayout.h>
32
#include <qframe.h>
33
#include <qtoolbutton.h>
15 Franz 34
#include <qcombobox.h>
415 Franz 35
#include <qstring.h>
3 paul 36
/**
37
  *@author Franz Schmid
38
  */
39
class ImIconProvider : public QFileIconProvider
40
{
41
    Q_OBJECT
42
    QStringList fmts;
43
    QPixmap imagepm;
44
    QPixmap docpm;
45
    QPixmap pspm;
46
    QPixmap pdfpm;
47
    QPixmap txtpm;
868 fschmid 48
    QPixmap oosxdpm;
49
    QPixmap oosxwpm;
50
    QPixmap vectorpm;
3 paul 51
public:
52
    ImIconProvider(QWidget *pa);
53
    ~ImIconProvider() {};
54
 
55
    const QPixmap * pixmap(const QFileInfo &fi);
56
};
57
 
58
class FDialogPreview : public QLabel, public QFilePreview
59
{
60
    Q_OBJECT
61
public:
62
        FDialogPreview(QWidget *pa);
63
        ~FDialogPreview() {};
311 Franz 64
        void updtPix();
3 paul 65
        void GenPreview(QString name);
66
        virtual void previewUrl(const QUrl &url);
67
};
68
 
69
class CustomFDialog : public QFileDialog
70
{
71
    Q_OBJECT
72
public:
415 Franz 73
        CustomFDialog(QWidget *pa, QString wDir, QString cap = "", QString filter = "",
74
                      bool Pre = false, bool mod = true, bool comp = false, bool cod = false,
75
                      bool dirOnly = false);
3 paul 76
        ~CustomFDialog();
77
        QDir cDir;
78
        QCheckBox* SaveZip;
310 Franz 79
        QCheckBox* WFonts;
3 paul 80
        QFrame* Layout;
81
        QToolButton* HomeB;
15 Franz 82
        QFrame* LayoutC;
83
        QComboBox *TxCodeM;
84
        QLabel *TxCodeT;
3 paul 85
private slots:
86
        void slotHome();
87
        void HandleComp();
88
protected:
89
        QHBoxLayout* Layout1;
15 Franz 90
        QHBoxLayout* Layout1C;
3 paul 91
};
92
 
93
#endif