Scribus
Open source desktop publishing at your fingertips
polyprops.h
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 POLYGONPROPS_H
8 #define POLYGONPROPS_H
9 
10 #include <QDialog>
11 class QVBoxLayout;
12 class QHBoxLayout;
13 class QPushButton;
14 
15 #include "scribusapi.h"
16 #include "ui/scrpalettebase.h"
17 class PolygonWidget;
18 
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 
38 class SCRIBUS_API PolygonProps : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43  PolygonProps(QWidget* parent, int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
44  ~PolygonProps() {};
45  void getValues(int* polyC, double* polyF, bool* polyS, double* polyR, double* polyCurvature, double* polyInnerRot, double* polyOuterCurvature);
46  void setValues(int polyC, double polyF, bool polyS, double polyR, double polyCurvature, double polyInnerRot, double polyOuterCurvature);
47  PolygonWidget* polyWidget;
48  QPushButton* okButton;
49  QPushButton* cancelButton;
50 
51 protected:
52  QVBoxLayout* PolygonPropsLayout;
53  QHBoxLayout* Layout1;
54 
55 signals:
56  void NewVectors(int, double, bool, double, double, double, double);
57 };
58 
59 #endif // POLYGONPROPS_H
Definition: polyprops.h:38
Definition: polyprops.h:19
Definition: polygonwidget.h:14
Definition: scrpalettebase.h:38