Scribus
Open source desktop publishing at your fingertips
cmykfw.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 #ifndef CMYKFARBEN_H
8 #define CMYKFARBEN_H
9 
10 #include <QDialog>
11 #include <QPixmap>
12 class QTreeWidgetItem;
13 
14 #include "colorsetmanager.h"
15 #include "sccolor.h"
16 #include "scribusapi.h"
17 #include "ui_cmykfwbase.h"
18 
19 class ScribusDoc;
20 
21 class SCRIBUS_API CMYKChoose : public QDialog, Ui::CMYKChooseBase
22 {
23  Q_OBJECT
24 
25 public:
26  CMYKChoose( QWidget* parent, ScribusDoc* doc, ScColor orig, QString name, ColorList *Colors, bool newCol );
27  ~CMYKChoose() {};
28 
29  QString colorName();
30  bool isSpotColor();
31 
32  QPixmap imageA;
33  QPixmap imageN;
34  QPixmap alertIcon;
35  ScColor Farbe;
36 
37  bool Wsave;
38  bool dynamic;
39  bool isNew;
40  bool isRegistration;
41  int BlackComp;
42  ColorList *EColors;
43  ColorList CurrSwatch;
44  QString Fnam;
45 
46 public slots:
47  void slotRightClick();
48  void setValSLiders(double value);
49  void setValueS(int val);
50  void toggleSL();
51  void selSwatch();
52  void setSpot();
53  void selModel(const QString& mod);
54  void setColor();
55  void setColor2(int h, int s, bool ende);
56  void selFromSwatch(QListWidgetItem* c);
57  void setValues();
58  void leave();
59 
60 protected:
61  ColorSetManager csm;
62  ScribusDoc* m_doc;
63  QTreeWidgetItem *systemSwatches;
64  QTreeWidgetItem *userSwatches;
65  QTreeWidgetItem *hsvSelector;
66  QStringList customColSet;
67  bool isHLC;
68 
69  virtual void showEvent(QShowEvent * event);
70 
71  QPalette sliderPix(int farbe);
72  QPalette sliderBlack();
73 };
74 
75 #endif // CMYKFARBEN_H
Definition: sccolor.h:51
Definition: cmykfw.h:21
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
Definition: colorsetmanager.h:27