Subversion Repositories Scribus

Rev

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