]> git.sven.stormbind.net Git - sven/vym.git/blob - src/exportoofiledialog.h
Replace Pierre as the maintainer
[sven/vym.git] / src / exportoofiledialog.h
1 #ifndef EXPORTOOFILEDIALOG
2 #define EXPORTOOFILEDIALOG
3
4 #include <QFileDialog>
5 #include <QStringList>
6
7 #include "settings.h"
8
9 /*! \brief Dialog to select output file and format for Open Office documents
10
11 This is an overloaded QFileDialog, which allows to select templates by setting a
12 type.
13 */
14
15 class ExportOOFileDialog : public QFileDialog {
16     Q_OBJECT
17   public:
18     ExportOOFileDialog();
19
20     ExportOOFileDialog(QWidget *parent, const QString &caption = QString());
21     bool foundConfig();
22     QString selectedConfig();
23     void show();
24
25   private slots:
26     void newConfigPath(const QString &f);
27
28   private:
29     void init();
30     void addFilter(const QString &);
31     void scanExportConfigs(QDir);
32     QStringList configPaths;
33     QStringList filters;
34     QString lastFilter;
35 };
36 #endif