Subversion Repositories Scribus

Rev

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

Rev Author Line No. Line
4430 cbradney 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
*/
3 paul 7
#ifndef POLYGONPROPS_H
8
#define POLYGONPROPS_H
9
 
9837 fschmid 10
#include <QDialog>
11
class QVBoxLayout;
12
class QHBoxLayout;
13
class QPushButton;
2969 craig 14
 
15
#include "scribusapi.h"
16306 fschmid 16
#include "ui/scrpalettebase.h"
731 fschmid 17
class PolygonWidget;
3 paul 18
 
16306 fschmid 19
class SCRIBUS_API PolyVectorDialog :  public ScrPaletteBase
20
{
21
        Q_OBJECT
22
 
23
public:
24
        PolyVectorDialog(QWidget* parent, int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
25
        ~PolyVectorDialog() {};
26
        void setValues(int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
27
        PolygonWidget* polyWidget;
28
 
29
signals:
30
        void NewVectors(int, double, bool, double, double, double, double);
31
        void endEdit();
32
 
33
protected:
34
        QVBoxLayout* PolygonPropsLayout;
35
 
36
};
37
 
2969 craig 38
class SCRIBUS_API PolygonProps : public QDialog
731 fschmid 39
{
40
        Q_OBJECT
3 paul 41
 
42
public:
16306 fschmid 43
        PolygonProps(QWidget* parent, int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
731 fschmid 44
        ~PolygonProps() {};
16246 fschmid 45
        void getValues(int* polyC, double* polyF, bool* polyS, double* polyR, double* polyCurvature, double* polyInnerRot, double* polyOuterCurvature);
16290 fschmid 46
        void setValues(int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
731 fschmid 47
        PolygonWidget* polyWidget;
48
        QPushButton* okButton;
49
        QPushButton* cancelButton;
3 paul 50
 
51
protected:
9837 fschmid 52
        QVBoxLayout* PolygonPropsLayout;
53
        QHBoxLayout* Layout1;
16290 fschmid 54
 
55
signals:
56
        void NewVectors(int, double, bool, double, double, double, double);
3 paul 57
};
58
 
59
#endif // POLYGONPROPS_H