exportoofiledialog.h
author insilmaril
Mon, 23 Jul 2007 12:42:02 +0000
changeset 562 2f452407dcb7
parent 464 d42d12074ff4
child 605 12e4596e7bb7
permissions -rw-r--r--
Added import filter for Freemind
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@366
    20
	ExportOOFileDialog (QWidget * parent = 0, 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