Subversion Repositories Scribus

Rev

Rev 17096 | 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_GROUPSHAPE_H
8
#define PROPERTYWIDGET_GROUPSHAPE_H
9
 
10
#include "propertywidget_shape.h"
11
 
12
#include "scribusapi.h"
13
#include "pageitem.h"
14
#include "propertywidgetbase.h"
15
 
16
class ScribusDoc;
17
class ScribusMainWindow;
18
class Selection;
19
 
20
class SCRIBUS_API PropertyWidget_GroupShape : public PropertyWidget_Shape
21
{
22
        Q_OBJECT
23
 
24
public:
25
        PropertyWidget_GroupShape(QWidget* parent);
26
        ~PropertyWidget_GroupShape() {};
27
 
28
        void setCustomShapeIcon(int submode);
29
        void setLocked(bool isLocked);
30
        void setRoundRectEnabled(bool enabled);
31
        void displayTextFlowMode(PageItem::TextFlowMode mode);
32
 
33
protected:
34
        void connectSignals();
35
        void disconnectSignals();
36
 
37
protected:
38
 
39
        void enableCustomShape();
40
        void enableFromSelection(void);
41
        void setCurrentItem(PageItem *i);
42
 
43
private slots:
44
 
45
        void handleTextFlow();
46
        void handleShapeEdit();
47
        void handleShapeEditEnded();
48
        void handleCornerRadius();
49
        void handleNewShape(int, int, qreal *);
50
 
51
signals:
52
        void DocChanged();
53
        void shapeChanged(int);
54
        void shapeEditStarted();
55
};
56
 
57
#endif