Scribus
Open source desktop publishing at your fingertips
smlinestylewidget.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 
8 #ifndef SMLINESTYLEWIDGET_H
9 #define SMLINESTYLEWIDGET_H
10 
11 class QEvent;
12 
13 #include "scribusstructs.h"
14 #include "styleitem.h"
15 #include "ui_smlinestylewidget.h"
16 
17 class LineCombo;
18 class ColorCombo;
19 class ScrSpinBox;
20 
21 class SMLineStyleWidget : public QWidget, Ui::SMLineStyleWidget
22 {
23  Q_OBJECT
24 public:
25  SMLineStyleWidget();
26  ~SMLineStyleWidget();
27 
28  virtual void changeEvent(QEvent *e);
29 
30  void showStyle(const multiLine &lineStyle, ColorList &colorList, int subLine = 0);
31  void languageChange();
32  void unitChange(int unitIndex);
33 
34 private:
35  multiLine m_currentStyle;
36  ColorList m_colors;
37 
38  void updateLineList();
39  QColor getColor(const QString &name, int shade);
40 
41  friend class SMLineStyle;
42 
43 protected slots:
44  void slotEditNewLine(int i);
45 
46 };
47 
48 #endif
The ColorCombo widget is a combo box for displaying list of colors.
Definition: colorcombo.h:33
Definition: sccolor.h:155
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: scribusstructs.h:250
Definition: smlinestyle.h:20
Definition: linecombo.h:37