1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  *   Riku Leino, tsoots@gmail.com                                          *
9  ***************************************************************************/
10 #ifndef SATDIALOG_H
11 #define SATDIALOG_H
12 
13 #include "ui_satdialog.h"
14 #include <QMap>
15 #include <prefscontext.h>
16 
17 class SATDialog : public QDialog, public Ui::SATDialogBase
18 {
19 	Q_OBJECT
20 
21 public:
22 	SATDialog(QWidget* parent, const QString& tmplName = "", int pageW = 0, int pageH = 0);
23 	~SATDialog();
24 
25 	QMap<QString, QString> cats;
26 private slots:
27 	void detailClicked(int);
28 
29 private:
30 	PrefsContext* prefs;
31 	QString author;
32 	QString email;
33 	bool isFullDetail;
34 
35 	QString findTemplateXml(const QString& dir);
36 	void    readPrefs();
37 	void    writePrefs();
38 	void    addCategories(const QString& dir);
39 	void    readCategories(const QString& fileName);
40 	void    setupCategories();
41 	void    setupPageSize(int w, int h);
42 };
43 
44 #endif
45 
46