Subversion Repositories Scribus

Rev

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