exportoofiledialog.h
author insilmaril
Wed, 08 Apr 2009 12:02:07 +0000
branchrelease-1-12-maintained
changeset 66 c4893070033f
parent 57 d045ba89798e
permissions -rw-r--r--
Bugfix for autosave time
     1 #ifndef EXPORTOOFILEDIALOG
     2 #define EXPORTOOFILEDIALOG
     3 
     4 #include <QFileDialog>
     5 #include <QStringList>
     6 
     7 #include "options.h"
     8 #include "settings.h"
     9 
    10 extern Options options;
    11 extern QDir vymBaseDir;
    12 
    13 /*! \brief Dialog to select output file and format for Open Office documents
    14 
    15 This is an overloaded QFileDialog, which allows to select templates by setting a type.
    16 */
    17 
    18 class ExportOOFileDialog:public QFileDialog
    19 {
    20 	Q_OBJECT
    21 public:
    22 	ExportOOFileDialog();
    23 
    24 	ExportOOFileDialog (QWidget * parent , const  QString &caption=QString());
    25 	bool foundConfig();
    26 	QString selectedConfig();
    27 	QString selectedFile();
    28 	void show();
    29 	 
    30 private slots:
    31 	void  newConfigPath (const QString&f);
    32 
    33 private:
    34 	void init();
    35 	void addFilter(const QString &);
    36 	void scanExportConfigs(QDir );
    37 	QStringList configPaths;
    38 	QStringList filters;
    39 	QString lastFilter;
    40 	
    41 };
    42 #endif