Scribus
Open source desktop publishing at your fingertips
gradientvectordialog.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 /***************************************************************************
8  gradientvectordialog.h - description
9  -------------------
10  begin : Tue Nov 17 2009
11  copyright : (C) 2009 by Franz Schmid
12  email : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef GRADVECTOR_H
25 #define GRADVECTOR_H
26 
27 #include "ui_gradientvectorbase.h"
28 
29 #include <QWidget>
30 #include <QLayout>
31 #include <QLabel>
32 #include <QEvent>
33 #include "scribusapi.h"
34 #include "ui/scrpalettebase.h"
35 
40 class SCRIBUS_API GradientVectorDialog : public ScrPaletteBase, Ui::GradientVectorBase
41 {
42  Q_OBJECT
43 
44 public:
45  GradientVectorDialog( QWidget* parent);
47  virtual void changeEvent(QEvent *e);
48  void selectLinear();
49  void selectRadial();
50  void selectConical();
51  void selectFourColor();
52  void selectDiamond();
53  void selectMesh();
54  void selectPatchMesh();
55 
56 public slots:
57  void languageChange();
58  void handleEditButton();
59  void handleEditControlButton();
60  void handlePEditButton();
61  void handlePEditControlButton();
62  void handlePAddButton();
63  void handleSnapToGridBox();
64  void endPAddButton();
65  void changebuttonRemovePatch(bool val);
66  void setValues(double x1, double y1, double x2, double y2, double fx, double fy, double sg, double sk, double cx, double cy);
67  void changeSpecialL();
68  void changeSpecialR();
69  void changeSpecialF();
70  void changeSpecialD();
71  void unitChange(int unitIndex);
72 
73 protected:
74  double m_unitRatio;
75 
76 signals:
77  void NewSpecial(double, double, double, double, double, double, double, double, double, double);
78  void editGradient(int);
79  void createNewMesh();
80  void resetMesh();
81  void meshToShape();
82  void reset1Control();
83  void resetAllControl();
84  void removePatch();
85  void snapToMGrid(bool);
86 
87 };
88 #endif
Definition: gradientvectordialog.h:40
Definition: scrpalettebase.h:38