Subversion Repositories Scribus

Rev

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