Back to index

scribus-ng  1.3.4.dfsg+svn20071115
polygonwidget.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef POLYGONWIDGET_H
00008 #define POLYGONWIDGET_H
00009 
00010 #include <qwidget.h>
00011 #include <qcheckbox.h>
00012 #include <qlabel.h>
00013 #include <qslider.h>
00014 #include <qspinbox.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qpixmap.h>
00018 
00019 #include "scribusapi.h"
00020 #include "prefsstructs.h"
00021 
00022 class SCRIBUS_API PolygonWidget : public QWidget
00023 {
00024        Q_OBJECT
00025 
00026 public:
00027        PolygonWidget(QWidget* parent, int polyC, int polyFd, double polyF, bool polyS, double polyR);
00028        ~PolygonWidget() {};
00029        double GetZeroFaktor();
00030        double GetMaxFaktor();
00031        void getValues(int* polyC, int* polyFd, double* polyF, bool* polyS, double* polyR);
00032        void restoreDefaults(struct toolPrefs *prefsData);
00033 
00034        QLabel* Text1;
00035        QSpinBox* Ecken;
00036        QCheckBox* Konvex;
00037        QLabel* Text2;
00038        QSpinBox* Faktor;
00039        QSlider* Slider1;
00040        QLabel* Preview;
00041        QLabel* Text2_2;
00042        QSpinBox* Faktor2;
00043        QSlider* Slider2;
00044        QPixmap* Pre;
00045        double PFactor;
00046 
00047 public slots:
00048        void UpdatePreView();
00049        double GetFaktor();
00050        void ValFromSpin(int a);
00051        void ValFromSpin2(int a);
00052 
00053 protected:
00054        QVBoxLayout* PolygonPropsLayout;
00055        QHBoxLayout* Layout11;
00056        QVBoxLayout* Layout10;
00057        QHBoxLayout* Layout2;
00058        QHBoxLayout* Layout9;
00059        QVBoxLayout* Layout8;
00060        QHBoxLayout* Layout7;
00061        QHBoxLayout* Layout1_2;
00062        QHBoxLayout* Layout9_2;
00063        QVBoxLayout* Layout8_2;
00064        QHBoxLayout* Layout7_2;
00065 };
00066 
00067 #endif