Subversion Repositories Scribus

Rev

Rev 5880 | Rev 7478 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
3 paul 7
#ifndef CMYKFARBEN_H
8
#define CMYKFARBEN_H
9
 
10
#include <qdialog.h>
11
#include <qpixmap.h>
12
#include <qcolor.h>
13
#include <qcheckbox.h>
14
#include <qcombobox.h>
15
#include <qframe.h>
16
#include <qlabel.h>
17
#include <qpushbutton.h>
18
#include <qslider.h>
19
#include <qlayout.h>
20
#include <qtooltip.h>
259 Franz 21
#include <qlineedit.h>
279 Franz 22
#include <qwidgetstack.h>
23
#include <qlistbox.h>
686 cbradney 24
 
3041 fschmid 25
class ScColor;
5880 jghali 26
class ScribusDoc;
3 paul 27
#include "colorchart.h"
4606 cbradney 28
#include "colorsetmanager.h"
216 Franz 29
#include "mspinbox.h"
4606 cbradney 30
#include "scribusapi.h"
838 cbradney 31
#include "scribusstructs.h"
3 paul 32
 
2969 craig 33
class SCRIBUS_API CMYKChoose : public QDialog
216 Franz 34
{
35
        Q_OBJECT
3 paul 36
 
37
public:
5915 fschmid 38
        CMYKChoose( QWidget* parent, ScribusDoc* doc, ScColor orig, QString name, ColorList *Colors, QStringList Cust, bool newCol );
216 Franz 39
        ~CMYKChoose() {};
168 Franz 40
        virtual void mouseReleaseEvent(QMouseEvent *m);
41
        QColor CMYK2RGB(int c, int m, int y, int k);
216 Franz 42
        QLabel* TextLabel1;
259 Franz 43
        QLineEdit* Farbname;
216 Franz 44
        QLabel* TextLabel3;
45
        QComboBox* ComboBox1;
46
        QCheckBox* Separations;
3060 fschmid 47
        QCheckBox* Regist;
279 Franz 48
        QComboBox* Swatches;
216 Franz 49
        QLabel* TextLabel5_2;
50
        QLabel* OldC;
51
        QLabel* TextLabel5;
52
        QLabel* NewC;
53
        QPushButton* Cancel;
54
        QPushButton* Cancel_2;
55
        QFrame* Frame4;
279 Franz 56
        QWidgetStack* TabStack;
216 Franz 57
        QFrame* Frame5;
279 Franz 58
        QFrame* Frame5a;
59
        QListBox* ColorSwatch;
216 Franz 60
        ColorChart* ColorMap;
61
        QLabel* CyanP;
62
        QLabel* CyanT;
63
        QSlider* CyanSL;
64
        MSpinBox* CyanSp;
65
        QLabel* MagentaP;
66
        QLabel* MagentaT;
67
        QSlider* MagentaSL;
68
        MSpinBox* MagentaSp;
69
        QLabel* YellowP;
70
        QLabel* YellowT;
71
        QSlider* YellowSL;
72
        MSpinBox* YellowSp;
73
        QLabel* BlackP;
74
        QLabel* BlackT;
75
        QSlider* BlackSL;
76
        MSpinBox* BlackSp;
77
        QPixmap imageA;
78
        QPixmap imageN;
3041 fschmid 79
        QPixmap alertIcon;
2886 fschmid 80
        ScColor Farbe;
216 Franz 81
        bool CMYKmode;
168 Franz 82
        bool Wsave;
216 Franz 83
        bool dynamic;
5915 fschmid 84
        bool isNew;
216 Franz 85
        int BlackComp;
1065 cbradney 86
        ColorList *EColors;
87
        ColorList CurrSwatch;
279 Franz 88
        QStringList CColSet;
344 Franz 89
        QString Fnam;
168 Franz 90
 
3 paul 91
public slots:
216 Franz 92
        void SetValueS(int val);
168 Franz 93
        void ToggleSL();
94
        QPixmap SliderPix(int farbe);
95
        QPixmap SliderBlack();
279 Franz 96
        void SelSwatch(int n);
3057 fschmid 97
        void setSpot();
3060 fschmid 98
        void setRegist();
168 Franz 99
        void SelModel(const QString& mod);
216 Franz 100
        void setColor();
101
        void setColor2(int h, int s, bool ende);
279 Franz 102
        void SelFromSwatch( int c);
216 Franz 103
        void setValues();
259 Franz 104
        void Verlassen();
3 paul 105
 
106
protected:
216 Franz 107
        QHBoxLayout* CMYKFarbenLayout;
108
        QVBoxLayout* Layout23;
109
        QGridLayout* Layout2;
287 Franz 110
        QGridLayout* Layout2x;
216 Franz 111
        QHBoxLayout* Layout21;
112
        QVBoxLayout* Frame4Layout;
113
        QHBoxLayout* Frame5Layout;
279 Franz 114
        QHBoxLayout* Frame5aLayout;
216 Franz 115
        QVBoxLayout* Layout1_2;
116
        QVBoxLayout* Layout1_2_2;
117
        QVBoxLayout* Layout1_2_3;
118
        QVBoxLayout* Layout1_2_4;
4606 cbradney 119
 
120
        ColorSetManager csm;
121
        int customSetStartIndex;
5880 jghali 122
        ScribusDoc* m_doc;
3 paul 123
};
124
 
125
#endif // CMYKFARBEN_H