Scribus
Open source desktop publishing at your fingertips
smcstylewidget.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 SMCSTYLEWIDGET_H
9 #define SMCSTYLEWIDGET_H
10 
11 class QEvent;
12 
13 #include "ui_smcstylewidget.h"
14 #include "styles/charstyle.h"
15 // #include "styles/styleset.h"
16 
17 
18 class SMCStyleWidget : public QWidget, public Ui::SMCStyleWidget
19 {
20  Q_OBJECT
21 public:
22  SMCStyleWidget(QWidget *parent = 0);
23  ~SMCStyleWidget();
24 
25  virtual void changeEvent(QEvent *e);
26 
27  void show(CharStyle *cstyle, QList<CharStyle> &cstyles, const QString &defLang, int unitIndex);
28  void show(QList<CharStyle*> &cstyles, QList<CharStyle> &cstylesAll, const QString &defLang, int unitIndex);
29  //void fillLangCombo(QMap<QString,QString> langMap);
30  void fillLangComboFromList(QStringList langList);
31  void fillColorCombo(ColorList &colors);
32  void languageChange();
33  void clearAll();
34 
35 private:
36  //QMap<QString, QString> m_langMap;
37 
38  void showSizeAndPosition(const QList<CharStyle*> &cstyles);
39  void showEffects(const QList<CharStyle*> &cstyles);
40  void showColors(const QList<CharStyle*> &cstyles);
41  void showLanguage(const QList<CharStyle*> &cstyles, const QString &defLang);
42  void showParent(const QList<CharStyle*> &cstyles);
43 
44  friend class SMParagraphStyle;
45  friend class SMCharacterStyle;
46 
47 private slots:
48  void slotColorChange();
49 };
50 
51 #endif
Definition: charstyle.h:78
Definition: smtextstyles.h:20
Definition: sccolor.h:155
Definition: smtextstyles.h:130