exportoofiledialog.h
author insilmaril
Mon Jul 23 12:42:02 2007 +0000 (2007-07-23)
changeset 563 9817b292f4a9
parent 366 e95081c21da2
child 605 12e4596e7bb7
permissions -rw-r--r--
Added import filter for 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