summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/short-words/vlnadialog.h
blob: 170c127cf60ae4b6b1e68483556bdfae0b753e54 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
/* This is the Scribus Short Words GUI class specification.

This code is based on the Scribus-Vlna plug in rewritten for
international use.

2004 Petr Vanek <petr@yarpen.cz>

This program is free software - see LICENSE file in the distribution
or documentation
*/

#ifndef _SHORTWORDSDIALOG_H
#define _SHORTWORDSDIALOG_H

// #include <QDialog>
#include "ui_swdialog.h"

// class QVBoxLayout;
// class QHBoxLayout;
// class QGridLayout;
// class QGroupBox;
// class QRadioButton;
// class QPushButton;
// class QLabel;

class SWConfig;

/*! \brief GUI dialog for user to make decision.
Generated from Qt designer UI file. Later changes by my hands :)
\author Petr Vanek <petr@yarpen.cz>
*/
class SWDialog : public QDialog, public Ui::SWDialog
{
	Q_OBJECT

	public:
		SWDialog(QWidget* parent = 0);
		~SWDialog();

		int actionSelected();
		bool useStyleLang();
		QString lang();

	protected slots:
		virtual void languageChange();

	private:
		//! reference on the config structure
		SWConfig *cfg;

		/*! \brief  from config file */
		void selectAction(int aAction);

		void savePrefs();

	private slots:
		/*! \brief  run shorts processing */
		virtual void okButton_pressed();
		/*! \brief  cancel and quit */
		virtual void cancelButton_pressed();
};

#endif // SWDialog_H