exportoofiledialog.h
author insilmaril
Mon, 30 Jul 2007 09:47:29 +0000
changeset 578 610cc6d70683
parent 464 d42d12074ff4
child 605 12e4596e7bb7
permissions -rw-r--r--
1.9.4 New base class for XML based file parsing (vym & Freemind)
     1 #ifndef EXPORTOOFILEDIALOG
     2 #define EXPORTOOFILEDIALOG
     3 
     4 #include <QFileDialog>
     5 #include <QStringList>
     6 
     7 #include "settings.h"
     8 
     9 /*! \brief Dialog to select output file and format for Open Office documents
    10 
    11 This is an overloaded QFileDialog, which allows to select templates by setting a type.
    12 */
    13 
    14 class ExportOOFileDialog:public QFileDialog
    15 {
    16 	Q_OBJECT
    17 public:
    18 	ExportOOFileDialog();
    19 
    20 	ExportOOFileDialog (QWidget * parent = 0, const  QString &caption=QString());
    21 	bool foundConfig();
    22 	QString selectedConfig();
    23 	QString selectedFile();
    24 	void show();
    25 	 
    26 private slots:
    27 	void  newConfigPath (const QString&f);
    28 
    29 private:
    30 	void init();
    31 	void addFilter(const QString &);
    32 	void scanExportConfigs(QDir );
    33 	QStringList configPaths;
    34 	QStringList filters;
    35 	QString lastFilter;
    36 	
    37 };
    38 #endif