File: exportoofiledialog.h

package info (click to toggle)
vym 1.10.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,376 kB
  • ctags: 1,926
  • sloc: cpp: 18,468; xml: 277; sh: 211; perl: 89; makefile: 26
file content (38 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef EXPORTOOFILEDIALOG
#define EXPORTOOFILEDIALOG

#include <QFileDialog>
#include <QStringList>

#include "settings.h"

/*! \brief Dialog to select output file and format for Open Office documents

This is an overloaded QFileDialog, which allows to select templates by setting a type.
*/

class ExportOOFileDialog:public QFileDialog
{
	Q_OBJECT
public:
	ExportOOFileDialog();

	ExportOOFileDialog (QWidget * parent = 0, const  QString &caption=QString());
	bool foundConfig();
	QString selectedConfig();
	QString selectedFile();
	void show();
	 
private slots:
	void  newConfigPath (const QString&f);

private:
	void init();
	void addFilter(const QString &);
	void scanExportConfigs(QDir );
	QStringList configPaths;
	QStringList filters;
	QString lastFilter;
	
};
#endif