author | insilmaril |
Fri Feb 01 16:59:09 2008 +0000 (2008-02-01) | |
changeset 668 | b63ff428c781 |
parent 464 | d42d12074ff4 |
permissions | -rw-r--r-- |
insilmaril@182 | 1 |
#ifndef EXPORTOOFILEDIALOG |
insilmaril@182 | 2 |
#define EXPORTOOFILEDIALOG |
insilmaril@182 | 3 |
|
insilmaril@366 | 4 |
#include <QFileDialog> |
insilmaril@366 | 5 |
#include <QStringList> |
insilmaril@182 | 6 |
|
insilmaril@182 | 7 |
#include "settings.h" |
insilmaril@182 | 8 |
|
insilmaril@464 | 9 |
/*! \brief Dialog to select output file and format for Open Office documents |
insilmaril@464 | 10 |
|
insilmaril@464 | 11 |
This is an overloaded QFileDialog, which allows to select templates by setting a type. |
insilmaril@464 | 12 |
*/ |
insilmaril@464 | 13 |
|
insilmaril@182 | 14 |
class ExportOOFileDialog:public QFileDialog |
insilmaril@182 | 15 |
{ |
insilmaril@182 | 16 |
Q_OBJECT |
insilmaril@182 | 17 |
public: |
insilmaril@182 | 18 |
ExportOOFileDialog(); |
insilmaril@182 | 19 |
|
insilmaril@605 | 20 |
ExportOOFileDialog (QWidget * parent , const QString &caption=QString()); |
insilmaril@357 | 21 |
bool foundConfig(); |
insilmaril@182 | 22 |
QString selectedConfig(); |
insilmaril@182 | 23 |
QString selectedFile(); |
insilmaril@366 | 24 |
void show(); |
insilmaril@182 | 25 |
|
insilmaril@182 | 26 |
private slots: |
insilmaril@182 | 27 |
void newConfigPath (const QString&f); |
insilmaril@182 | 28 |
|
insilmaril@182 | 29 |
private: |
insilmaril@182 | 30 |
void init(); |
insilmaril@366 | 31 |
void addFilter(const QString &); |
insilmaril@182 | 32 |
void scanExportConfigs(QDir ); |
insilmaril@182 | 33 |
QStringList configPaths; |
insilmaril@182 | 34 |
QStringList filters; |
insilmaril@182 | 35 |
QString lastFilter; |
insilmaril@182 | 36 |
|
insilmaril@182 | 37 |
}; |
insilmaril@182 | 38 |
#endif |