exportoofiledialog.h
author insilmaril
Mon May 18 11:22:41 2009 +0000 (2009-05-18)
changeset 771 01f2f6d6789d
parent 464 d42d12074ff4
permissions -rw-r--r--
Fixed addBranchBefore
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