1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*
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 POLYGONWIDGET_H
#define POLYGONWIDGET_H
#include <qwidget.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qslider.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qpixmap.h>
#include "scribusapi.h"
class SCRIBUS_API PolygonWidget : public QWidget
{
Q_OBJECT
public:
PolygonWidget(QWidget* parent, int polyC, int polyFd, double polyF, bool polyS, double polyR);
~PolygonWidget() {};
double GetZeroFaktor();
double GetMaxFaktor();
void getValues(int* polyC, int* polyFd, double* polyF, bool* polyS, double* polyR);
QLabel* Text1;
QSpinBox* Ecken;
QCheckBox* Konvex;
QLabel* Text2;
QSpinBox* Faktor;
QSlider* Slider1;
QLabel* Preview;
QLabel* Text2_2;
QSpinBox* Faktor2;
QSlider* Slider2;
QPixmap* Pre;
double PFactor;
public slots:
void UpdatePreView();
double GetFaktor();
void ValFromSpin(int a);
void ValFromSpin2(int a);
protected:
QVBoxLayout* PolygonPropsLayout;
QHBoxLayout* Layout11;
QVBoxLayout* Layout10;
QHBoxLayout* Layout2;
QHBoxLayout* Layout9;
QVBoxLayout* Layout8;
QHBoxLayout* Layout7;
QHBoxLayout* Layout1_2;
QHBoxLayout* Layout9_2;
QVBoxLayout* Layout8_2;
QHBoxLayout* Layout7_2;
};
#endif
|