]> Shamusworld >> Repos - ttedit/blob - src/previewfiledialog.h
Added preview window to file loading dialog. :-)
[ttedit] / src / previewfiledialog.h
1 #ifndef __PREVIEWFILEDIALOG_H__
2 #define __PREVIEWFILEDIALOG_H__
3
4 #include <QFileDialog>
5
6 class QLabel;
7
8 class PreviewFileDialog: public QFileDialog
9 {
10         Q_OBJECT
11
12         public:
13                 PreviewFileDialog(QWidget * parent = 0,
14                         const QString & caption = QString(),
15                         const QString & directory = QString(),
16                         const QString & filter = QString());
17
18         protected slots:
19                 void HandleCurrentChanged(const QString & path);
20
21         protected:
22                 QLabel * mpPreview;
23 };
24
25 #endif  // __PREVIEWFILEDIALOG_H__
26