Subversion Repositories Scribus

Rev

Rev 415 | Rev 867 | 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;
44
public:
45
    ImIconProvider(QWidget *pa);
46
    ~ImIconProvider() {};
47
 
48
    const QPixmap * pixmap(const QFileInfo &fi);
49
};
50
 
51
class FDialogPreview : public QLabel, public QFilePreview
52
{
53
    Q_OBJECT
54
public:
55
        FDialogPreview(QWidget *pa);
56
        ~FDialogPreview() {};
311 Franz 57
        void updtPix();
3 paul 58
        void GenPreview(QString name);
59
        virtual void previewUrl(const QUrl &url);
60
};
61
 
62
class CustomFDialog : public QFileDialog
63
{
64
    Q_OBJECT
65
public:
415 Franz 66
        CustomFDialog(QWidget *pa, QString wDir, QString cap = "", QString filter = "",
67
                      bool Pre = false, bool mod = true, bool comp = false, bool cod = false,
68
                      bool dirOnly = false);
3 paul 69
        ~CustomFDialog();
70
        QDir cDir;
71
        QCheckBox* SaveZip;
310 Franz 72
        QCheckBox* WFonts;
3 paul 73
        QFrame* Layout;
74
        QToolButton* HomeB;
15 Franz 75
        QFrame* LayoutC;
76
        QComboBox *TxCodeM;
77
        QLabel *TxCodeT;
3 paul 78
private slots:
79
        void slotHome();
80
        void HandleComp();
81
protected:
82
        QHBoxLayout* Layout1;
15 Franz 83
        QHBoxLayout* Layout1C;
3 paul 84
};
85
 
86
#endif