Scribus
Open source desktop publishing at your fingertips
propertiespalette_shadow.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 PROPERTIESPALETTE_SHADOW_H
8 #define PROPERTIESPALETTE_SHADOW_H
9 
10 #include "scribusapi.h"
11 #include "scguardedptr.h"
12 
13 #include "proptree.h"
14 
15 class PageItem;
16 class ScribusDoc;
17 class Selection;
18 class ScribusMainWindow;
19 
20 class SCRIBUS_API PropertiesPalette_Shadow : public PropTreeWidget
21 {
22  Q_OBJECT
23 
24 public:
25  PropertiesPalette_Shadow(QWidget* parent);
27 
28  virtual void changeEvent(QEvent *e);
29  void updateColorList();
30 
31 private:
32 
33  PageItem* currentItemFromSelection();
34 
35 public slots:
36  void setMainWindow(ScribusMainWindow *mw);
37 
38  void setDoc(ScribusDoc *d);
39  void setCurrentItem(PageItem *i);
40  void unsetDoc();
41  void unsetItem();
42 
43  void languageChange();
44  void unitChange();
45  void handleSelectionChanged();
46  void handleUpdateRequest(int);
47 
48 private slots:
49  void handleNewValues();
50 
51 protected slots:
52  void updateSpinBoxConstants();
53 
54 protected:
55  PropTreeItem *hasSoftShadow;
56  PropTreeItem *softShadowXOffset;
57  PropTreeItem *softShadowYOffset;
58  PropTreeItem *softShadowBlurRadius;
59  PropTreeItem *colorProps;
60  PropTreeItem *softShadowColor;
61  PropTreeItem *softShadowShade;
62  PropTreeItem *softShadowOpacity;
63  PropTreeItem *softShadowBlendMode;
64  PropTreeItem *softShadowErase;
65  PropTreeItem *softShadowObjTrans;
66  ScribusMainWindow *m_ScMW;
67 
68  bool m_haveDoc;
69  bool m_haveItem;
70  double m_unitRatio;
71  int m_unitIndex;
72  PageItem *m_item;
74 };
75 
76 #endif
Definition: proptree.h:57
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: propertiespalette_shadow.h:20
the Document Class
Definition: scribusdoc.h:90
Definition: proptree.h:114
Definition: pageitem.h:92
Definition: selection.h:34