exportoofiledialog.h
author insilmaril
Thu Jul 30 12:55:17 2009 +0000 (2009-07-30)
branchrelease-1-12-maintained
changeset 75 dbb2a175f7b5
permissions -rw-r--r--
fixed version
insilmaril@57
     1
#ifndef EXPORTOOFILEDIALOG
insilmaril@57
     2
#define EXPORTOOFILEDIALOG
insilmaril@57
     3
insilmaril@57
     4
#include <QFileDialog>
insilmaril@57
     5
#include <QStringList>
insilmaril@57
     6
insilmaril@57
     7
#include "options.h"
insilmaril@57
     8
#include "settings.h"
insilmaril@57
     9
insilmaril@57
    10
extern Options options;
insilmaril@57
    11
extern QDir vymBaseDir;
insilmaril@57
    12
insilmaril@57
    13
/*! \brief Dialog to select output file and format for Open Office documents
insilmaril@57
    14
insilmaril@57
    15
This is an overloaded QFileDialog, which allows to select templates by setting a type.
insilmaril@57
    16
*/
insilmaril@57
    17
insilmaril@57
    18
class ExportOOFileDialog:public QFileDialog
insilmaril@57
    19
{
insilmaril@57
    20
	Q_OBJECT
insilmaril@57
    21
public:
insilmaril@57
    22
	ExportOOFileDialog();
insilmaril@57
    23
insilmaril@57
    24
	ExportOOFileDialog (QWidget * parent , const  QString &caption=QString());
insilmaril@57
    25
	bool foundConfig();
insilmaril@57
    26
	QString selectedConfig();
insilmaril@57
    27
	QString selectedFile();
insilmaril@57
    28
	void show();
insilmaril@57
    29
	 
insilmaril@57
    30
private slots:
insilmaril@57
    31
	void  newConfigPath (const QString&f);
insilmaril@57
    32
insilmaril@57
    33
private:
insilmaril@57
    34
	void init();
insilmaril@57
    35
	void addFilter(const QString &);
insilmaril@57
    36
	void scanExportConfigs(QDir );
insilmaril@57
    37
	QStringList configPaths;
insilmaril@57
    38
	QStringList filters;
insilmaril@57
    39
	QString lastFilter;
insilmaril@57
    40
	
insilmaril@57
    41
};
insilmaril@57
    42
#endif