Subversion Repositories Scribus

Rev

Rev 17029 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16957 jghali 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 PROPERTYWIDGET_GROUP_H
8
#define PROPERTYWIDGET_GROUP_H
9
 
10
#include "scribusapi.h"
11
#include "propertywidgetbase.h"
12
 
13
class QGroupBox;
14
 
15
class PropertyWidget_GroupShape;
16
class ScribusDoc;
17
class ScribusMainWindow;
18
class Tpalette;
19
 
20
class PropertyWidget_Group : public QFrame, public PropertyWidgetBase
21
{
22
        Q_OBJECT
23
public:
24
        PropertyWidget_Group(QWidget* parent);
25
        ~PropertyWidget_Group() {};
26
 
27
        virtual void changeEvent(QEvent *e);
28
 
29
protected:
30
        void connectSignals();
31
        void disconnectSignals();
32
 
33
        PageItem *         m_item;
34
        ScribusMainWindow* m_ScMW;
35
 
36
        double    m_unitRatio;
37
        int       m_unitIndex;
38
 
39
 
40
        PropertyWidget_GroupShape* groupShapeWidget;
41
        QGroupBox* transGroupBox;
42
        Tpalette*  groupTransWidget;
43
 
44
        void enableFromSelection(void);
45
        void setCurrentItem(PageItem *item);
46
 
47
public slots:
48
        void setMainWindow(ScribusMainWindow *mw);
49
        void setDoc(ScribusDoc *d);
50
 
51
        void handleSelectionChanged();
52
        void handleUpdateRequest(int);
53
 
54
        void languageChange();
55
        void unitChange();
56
 
57
private slots:
58
 
59
        void handleGradientChanged();
60
        void handleGroupTransparency(double trans);
61
        void handleGroupBlending(int blend);
62
        void handleGroupGradMask(int typ);
63
        void handleGroupPatternMask(QString pattern);
64
        void handleGroupPatternMaskProps(double, double, double, double, double, double, double, bool, bool);
65
 
66
        void handleSpecialGradient(double, double, double, double, double, double, double, double );
67
        void handleGradientEdit();
68
};
69
 
70
#endif