~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/polygonwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2009-02-09 09:25:18 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090209092518-iqsxmh3pjspgrdyd
Tags: 1.3.5.dfsg~svn20090208-2
debian/control: Use "type-handling -n arm,armel,armeb any" to generate the
list of architectures to build on.

Show diffs side-by-side

added added

removed removed

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