Scribus
Open source desktop publishing at your fingertips
styleselect.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 STYLESELECT_H
8 #define STYLESELECT_H
9 
10 #include <QFrame>
11 #include <QGridLayout>
12 #include <QHBoxLayout>
13 #include <QLabel>
14 #include <QMenu>
15 #include <QPixmap>
16 #include <QToolButton>
17 #include <QToolTip>
18 #include <QWidgetAction>
19 
20 class QEvent;
21 
22 #include "scrspinbox.h"
23 #include "scribusapi.h"
24 
25 class SCRIBUS_API StrikeValues : public QFrame
26 {
27  Q_OBJECT
28 
29 public:
30  StrikeValues( QWidget* parent );
31  ~StrikeValues() {};
32 
33  ScrSpinBox* LPos;
34  ScrSpinBox* LWidth;
35  QLabel* LPosTxt;
36  QLabel* LWidthTxt;
37 
38 public slots:
39  void languageChange();
40 
41 protected:
42  QGridLayout* group1Layout;
43 };
44 
45 class SCRIBUS_API UnderlineValues : public QFrame
46 {
47  Q_OBJECT
48 
49 public:
50  UnderlineValues( QWidget* parent );
51  ~UnderlineValues() {};
52 
53  ScrSpinBox* LPos;
54  ScrSpinBox* LWidth;
55  QLabel* LPosTxt;
56  QLabel* LWidthTxt;
57 
58 public slots:
59  void languageChange();
60 
61 protected:
62  QGridLayout* group1Layout;
63 };
64 
65 class SCRIBUS_API OutlineValues : public QFrame
66 {
67  Q_OBJECT
68 
69 public:
70  OutlineValues( QWidget* parent );
71  ~OutlineValues() {};
72 
73  ScrSpinBox* LWidth;
74  QLabel* LWidthTxt;
75 
76 public slots:
77  void languageChange();
78 
79 protected:
80  QGridLayout* group1Layout;
81 };
82 
83 class SCRIBUS_API ShadowValues : public QFrame
84 {
85  Q_OBJECT
86 
87 public:
88  ShadowValues( QWidget* parent );
89  ~ShadowValues() {};
90 
91  ScrSpinBox* Xoffset;
92  ScrSpinBox* Yoffset;
93  QLabel* XoffsetTxt;
94  QLabel* YoffsetTxt;
95 
96 public slots:
97  void languageChange();
98 
99 protected:
100  QGridLayout* group1Layout;
101 };
102 
103 class SCRIBUS_API StyleSelect : public QWidget
104 {
105 
106  Q_OBJECT
107 
108 public:
109  StyleSelect(QWidget* parent);
110  ~StyleSelect() {};
111 
112  virtual void changeEvent(QEvent *e);
113 
114  void setStyle(int s);
115  int getStyle();
116  ShadowValues* ShadowVal;
117  OutlineValues* OutlineVal;
118  UnderlineValues* UnderlineVal;
119  StrikeValues* StrikeVal;
120 
121 public slots:
122  void languageChange();
123 
124 private slots:
125  void setTypeStyle();
126 
127 signals:
128  void State(int);
129 
130 protected:
131  QHBoxLayout* ssLayout;
132  QToolButton* underlineButton;
133  QToolButton* underlineWordButton;
134  QToolButton* subscriptButton;
135  QToolButton* superscriptButton;
136  QToolButton* smallcapsButton;
137  QToolButton* allcapsButton;
138  QToolButton* strikeoutButton;
139  QToolButton* outlineButton;
140  QToolButton* shadowButton;
141  QMenu* ShadowPop;
142  QMenu* OutlinePop;
143  QMenu* UnderlinePop;
144  QMenu* StrikePop;
145  QWidgetAction* StrikeValAct;
146  QWidgetAction* ShadowValAct;
147  QWidgetAction* OutlineValAct;
148  QWidgetAction* UnderlineValAct;
149 };
150 
151 #endif
152 
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: styleselect.h:45
Definition: styleselect.h:103
Definition: styleselect.h:25
Definition: styleselect.h:65
Definition: styleselect.h:83