Subversion Repositories Scribus

Rev

Rev 16957 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15600 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 PROPERTIESPALETTE_GROUP_H
8
#define PROPERTIESPALETTE_GROUP_H
9
 
16077 jghali 10
#include "ui_propertiespalette_groupbase.h"
15600 jghali 11
 
12
#include "scribusapi.h"
13
#include "pageitem.h"
14
#include "scguardedptr.h"
15
 
16
class ScribusDoc;
17
class ScribusMainWindow;
18
class Selection;
19
 
16077 jghali 20
class SCRIBUS_API PropertiesPalette_Group : public QWidget, Ui::PropertiesPalette_GroupBase
15600 jghali 21
{
22
        Q_OBJECT
23
 
24
public:
25
        PropertiesPalette_Group(QWidget* parent);
26
        ~PropertiesPalette_Group() {};
27
 
28
        virtual void changeEvent(QEvent *e);
29
 
30
        void displayTextFlowMode(PageItem::TextFlowMode mode);
31
 
32
        void updateColorList();
33
        void updateColorSpecialGradient();
34
 
35
protected:
36
 
37
        bool      m_haveDoc;
38
        bool      m_haveItem;
39
        bool      m_userActionOn;
40
        double    m_unitRatio;
41
        int       m_unitIndex;
42
 
43
        PageItem *m_item;
44
        ScribusMainWindow*       m_ScMW;
45
        ScGuardedPtr<ScribusDoc> m_doc;
46
        Selection*               m_tmpSelection;
47
 
48
private:
49
 
50
        PageItem* currentItemFromSelection();
51
 
52
public slots:
53
        void setMainWindow(ScribusMainWindow *mw);
54
 
55
        void setDoc(ScribusDoc *d);
15741 jghali 56
        void setCurrentItem(PageItem *i);
15600 jghali 57
        void unsetDoc();
58
        void unsetItem();
59
 
60
        void handleSelectionChanged();
16179 jghali 61
        void handleUpdateRequest(int);
15600 jghali 62
 
63
        void languageChange();
64
        void unitChange();
65
 
66
private slots:
67
 
16957 jghali 68
        void handleGradientChanged();
15614 jghali 69
        void handleGroupTransparency(double trans);
70
        void handleGroupBlending(int blend);
71
        void handleGroupGradMask(int typ);
72
        void handleGroupPatternMask(QString pattern);
73
        void handleGroupPatternMaskProps(double, double, double, double, double, double, double, bool, bool);
74
 
15600 jghali 75
        void handleTextFlow();
76
        void handleNewShape(int f, int c, qreal *vals);
77
 
16781 jghali 78
        void handleFillRule();
15661 jghali 79
        void handleShapeEdit();
80
        void handleShapeEditEnded();
81
 
15600 jghali 82
        void handleSpecialGradient(double, double, double, double, double, double, double, double );
83
        void handleGradientEdit();
84
 
85
signals:
86
        void shapeChanged(int);
87
        void shapeEditStarted();
88
};
89
 
90
#endif