1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/exportoofiledialog.h Thu Jul 30 12:55:17 2009 +0000
1.3 @@ -0,0 +1,42 @@
1.4 +#ifndef EXPORTOOFILEDIALOG
1.5 +#define EXPORTOOFILEDIALOG
1.6 +
1.7 +#include <QFileDialog>
1.8 +#include <QStringList>
1.9 +
1.10 +#include "options.h"
1.11 +#include "settings.h"
1.12 +
1.13 +extern Options options;
1.14 +extern QDir vymBaseDir;
1.15 +
1.16 +/*! \brief Dialog to select output file and format for Open Office documents
1.17 +
1.18 +This is an overloaded QFileDialog, which allows to select templates by setting a type.
1.19 +*/
1.20 +
1.21 +class ExportOOFileDialog:public QFileDialog
1.22 +{
1.23 + Q_OBJECT
1.24 +public:
1.25 + ExportOOFileDialog();
1.26 +
1.27 + ExportOOFileDialog (QWidget * parent , const QString &caption=QString());
1.28 + bool foundConfig();
1.29 + QString selectedConfig();
1.30 + QString selectedFile();
1.31 + void show();
1.32 +
1.33 +private slots:
1.34 + void newConfigPath (const QString&f);
1.35 +
1.36 +private:
1.37 + void init();
1.38 + void addFilter(const QString &);
1.39 + void scanExportConfigs(QDir );
1.40 + QStringList configPaths;
1.41 + QStringList filters;
1.42 + QString lastFilter;
1.43 +
1.44 +};
1.45 +#endif