Scribus
Open source desktop publishing at your fingertips
styleview.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 STYLEVIEW_H
9 #define STYLEVIEW_H
10 
11 #include <QTreeWidget>
12 
13 
14 class StyleView : public QTreeWidget
15 {
16  Q_OBJECT
17 public:
18  StyleView(QWidget *parent);
19 // ~StyleView();
20 protected:
21 // void contentsMousePressEvent(QMouseEvent *e);
22 // void mousePressEvent(QMouseEvent * event);
23 // void contentsMouseDoubleClickEvent(QMouseEvent *e);
24  void drawRow(QPainter *painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
25 };
26 
27 
28 class StyleViewItem : public QTreeWidgetItem
29 {
30 public:
31  StyleViewItem(QTreeWidget *parent, const QString &text);
32  StyleViewItem(QTreeWidgetItem *parent, const QString &text, const QString &rootName);
33 // ~StyleViewItem();
34 
35 // void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
36 
37  bool isRoot();
38  QString parentName();
39  QString rootName();
40  void setDirty(bool isDirty);
41  bool isDirty();
42 
43 private:
44  bool m_isRoot;
45  bool m_isDirty;
46  QString m_parentName;
47  QString m_rootName;
48 };
49 
50 #endif
Definition: styleview.h:14
Definition: styleview.h:28