X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=exportoofiledialog.h;fp=exportoofiledialog.h;h=88325f4c31100fa043f20455a764b1b9bbd5e3b8;hb=2f79edb68ae955de3c3118a7f9181c7a1f3b0d72;hp=0000000000000000000000000000000000000000;hpb=eeb718b059f8b14807b976ae6410a3021b2d4576;p=vym diff --git a/exportoofiledialog.h b/exportoofiledialog.h new file mode 100644 index 0000000..88325f4 --- /dev/null +++ b/exportoofiledialog.h @@ -0,0 +1,38 @@ +#ifndef EXPORTOOFILEDIALOG +#define EXPORTOOFILEDIALOG + +#include +#include + +#include "settings.h" + +/*! \brief Dialog to select output file and format for Open Office documents + +This is an overloaded QFileDialog, which allows to select templates by setting a type. +*/ + +class ExportOOFileDialog:public QFileDialog +{ + Q_OBJECT +public: + ExportOOFileDialog(); + + ExportOOFileDialog (QWidget * parent , const QString &caption=QString()); + bool foundConfig(); + QString selectedConfig(); + QString selectedFile(); + void show(); + +private slots: + void newConfigPath (const QString&f); + +private: + void init(); + void addFilter(const QString &); + void scanExportConfigs(QDir ); + QStringList configPaths; + QStringList filters; + QString lastFilter; + +}; +#endif