exportoofiledialog.h
author insilmaril
Fri, 11 Jul 2008 12:36:39 +0000
changeset 715 c7f2d53c98d1
parent 605 12e4596e7bb7
permissions -rw-r--r--
Fix for umlauts in paths
     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