exportoofiledialog.h
author insilmaril
Thu, 08 Nov 2007 15:28:03 +0000
changeset 620 24bfecc949a0
parent 605 12e4596e7bb7
permissions -rw-r--r--
1.11.2 split up of xml helper functions. started to work on attributes
     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 , 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