]> Shamusworld >> Repos - ttedit/blobdiff - src/previewfiledialog.h
Added preview window to file loading dialog. :-)
[ttedit] / src / previewfiledialog.h
diff --git a/src/previewfiledialog.h b/src/previewfiledialog.h
new file mode 100644 (file)
index 0000000..78a693b
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef __PREVIEWFILEDIALOG_H__
+#define __PREVIEWFILEDIALOG_H__
+
+#include <QFileDialog>
+
+class QLabel;
+
+class PreviewFileDialog: public QFileDialog
+{
+       Q_OBJECT
+
+       public:
+               PreviewFileDialog(QWidget * parent = 0,
+                       const QString & caption = QString(),
+                       const QString & directory = QString(),
+                       const QString & filter = QString());
+
+       protected slots:
+               void HandleCurrentChanged(const QString & path);
+
+       protected:
+               QLabel * mpPreview;
+};
+
+#endif // __PREVIEWFILEDIALOG_H__
+