Scribus
Open source desktop publishing at your fingertips
gradienteditor.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  gradienteditor - description
9  -------------------
10  begin : Mit Mai 26 2004
11  copyright : (C) 2004 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 GRADEDITOR_H
25 #define GRADEDITOR_H
26 
27 #include <QLabel>
28 #include <QSpinBox>
29 #include <QLayout>
30 #include <QList>
31 #include <QFrame>
32 
33 class QEvent;
34 
35 #include "scribusapi.h"
36 #include "vgradient.h"
37 #include "gradientpreview.h"
38 #include "ui_gradienteditor.h"
39 #include "sccolorengine.h"
40 
41 class SCRIBUS_API GradientEditor : public QFrame, Ui::GradientEditorBase
42 {
43  Q_OBJECT
44 
45 public:
46  GradientEditor(QWidget *pa);
47  ~GradientEditor() {};
48  void setGradient(VGradient grad);
49  const VGradient gradient();
50  void setColors(ColorList &colorList);
51  QColor setColor(QString colorName, int shad);
52  void setGradientEditable(bool val);
53  virtual void changeEvent(QEvent *e);
54 
55 public slots:
56  void setPos(double);
57  void changePos(double);
58  void slotColor(QString name, int shade);
59  void slotDisplayStop(VColorStop* stop);
60  void setGradTrans(double val);
61  void setStopColor(const QString &);
62  void setStopTrans(double val);
63  void setStopShade(double val);
64  void languageChange();
65 
66 signals:
67  void gradientChanged();
68 
69 protected:
70  ColorList m_colorList;
71  virtual bool event ( QEvent * event );
72 };
73 
74 #endif
75 
Definition: vgradient.h:36
Definition: vgradient.h:78
Definition: sccolor.h:155
Definition: gradienteditor.h:41