Rev 310 | Rev 415 | 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> |
3 | paul | 31 | /** |
32 | *@author Franz Schmid |
||
33 | */ |
||
34 | class ImIconProvider : public QFileIconProvider |
||
35 | { |
||
36 | Q_OBJECT |
||
37 | QStringList fmts; |
||
38 | QPixmap imagepm; |
||
39 | QPixmap docpm; |
||
40 | QPixmap pspm; |
||
41 | QPixmap pdfpm; |
||
42 | QPixmap txtpm; |
||
43 | |||
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: |
||
168 | Franz | 66 | CustomFDialog(QWidget *pa, QString cap = "", QString filter = "", bool Pre = false, bool mod = true, |
310 | Franz | 67 | bool comp = false, bool cod = false, bool dirOnly = false); |
3 | paul | 68 | ~CustomFDialog(); |
69 | QDir cDir; |
||
70 | QCheckBox* SaveZip; |
||
310 | Franz | 71 | QCheckBox* WFonts; |
3 | paul | 72 | QFrame* Layout; |
73 | QToolButton* HomeB; |
||
15 | Franz | 74 | QFrame* LayoutC; |
75 | QComboBox *TxCodeM; |
||
76 | QLabel *TxCodeT; |
||
3 | paul | 77 | private slots: |
78 | void slotHome(); |
||
79 | void HandleComp(); |
||
80 | protected: |
||
81 | QHBoxLayout* Layout1; |
||
15 | Franz | 82 | QHBoxLayout* Layout1C; |
3 | paul | 83 | }; |
84 | |||
85 | #endif |