Subversion Repositories Scribus

Rev

Rev 17096 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/

#ifndef PROPERTYWIDGET_GROUPSHAPE_H
#define PROPERTYWIDGET_GROUPSHAPE_H

#include "propertywidget_shape.h"

#include "scribusapi.h"
#include "pageitem.h"
#include "propertywidgetbase.h"

class ScribusDoc;
class ScribusMainWindow;
class Selection;

class SCRIBUS_API PropertyWidget_GroupShape : public PropertyWidget_Shape
{
        Q_OBJECT

public:
        PropertyWidget_GroupShape(QWidget* parent);
        ~PropertyWidget_GroupShape() {};

        void setCustomShapeIcon(int submode);
        void setLocked(bool isLocked);
        void setRoundRectEnabled(bool enabled);
        void displayTextFlowMode(PageItem::TextFlowMode mode);

protected:
        void connectSignals();
        void disconnectSignals();

protected:

        void enableCustomShape();
        void enableFromSelection(void);
        void setCurrentItem(PageItem *i);

private slots:

        void handleTextFlow();
        void handleShapeEdit();
        void handleShapeEditEnded();
        void handleCornerRadius();
        void handleNewShape(int, int, qreal *);

signals:
        void DocChanged();
        void shapeChanged(int);
        void shapeEditStarted();
};

#endif