Scribus
Open source desktop publishing at your fingertips
alignselect.h
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);
25  ~AlignSelect() {};
26  void setStyle(int s);
27  int getStyle();
28  int selectedId();
29 
30  virtual void changeEvent(QEvent *e);
31 
32  QButtonGroup* buttonGroup;
33  int selected;
34  QToolButton* TextL;
35  QToolButton* TextR;
36  QToolButton* TextC;
37  QToolButton* TextB;
38  QToolButton* TextF;
39 
40 public slots:
41  void languageChange();
42 
43 private slots:
44  void setTypeStyle(int a);
45 
46 signals:
47  void State(int);
48 
49 protected:
50  QHBoxLayout* GroupAlignLayout;
51 
52 };
53 
54 #endif
55 
Definition: alignselect.h:18