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 #ifndef ALIGNSELECT_H
8 #define ALIGNSELECT_H
9 
10 #include <QHBoxLayout>
11 #include <QToolButton>
12 #include <QButtonGroup>
13 
14 class QEvent;
15 
16 #include "scribusapi.h"
17 
18 class SCRIBUS_API AlignSelect : public QWidget
19 {
20 
21 Q_OBJECT
22 
23 public:
24 	AlignSelect(QWidget* parent);
~AlignSelect()25 	~AlignSelect() {};
26 
27 	void setStyle(int s, int d);
28 	int getStyle();
29 	int selectedId();
30 
31 	QButtonGroup* buttonGroup;
32 	int selected;
33 	QToolButton* TextL;
34 	QToolButton* TextR;
35 	QToolButton* TextC;
36 	QToolButton* TextB;
37 	QToolButton* TextF;
38 
39 public slots:
40 	void iconSetChange();
41 	void languageChange();
42 	void setTypeStyle(int a);
43 
44 protected:
45 	QHBoxLayout* GroupAlignLayout;
46 
47 	void changeEvent(QEvent *e) override;
48 
49 signals:
50 	void State(int);
51 };
52 
53 #endif
54 
55