Back to index

scribus-ng  1.3.4.dfsg+svn20071115
cmykfw.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef CMYKFARBEN_H
00008 #define CMYKFARBEN_H
00009 
00010 #include <qdialog.h>
00011 #include <qpixmap.h>
00012 #include <qcolor.h>
00013 #include <qcheckbox.h>
00014 #include <qcombobox.h>
00015 #include <qframe.h>
00016 #include <qlabel.h>
00017 #include <qpushbutton.h>
00018 #include <qslider.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qlineedit.h>
00022 #include <qwidgetstack.h>
00023 #include <qlistbox.h>
00024 
00025 class ScColor;
00026 class ScribusDoc;
00027 class ColorListBox;
00028 #include "colorchart.h"
00029 #include "colorsetmanager.h"
00030 #include "mspinbox.h"
00031 #include "scribusapi.h"
00032 #include "scribusstructs.h"
00033 
00034 class SCRIBUS_API CMYKChoose : public QDialog
00035 {
00036        Q_OBJECT
00037 
00038 public:
00039        CMYKChoose( QWidget* parent, ScribusDoc* doc, ScColor orig, QString name, ColorList *Colors, QStringList Cust, bool newCol );
00040        ~CMYKChoose() {};
00041        virtual void mouseReleaseEvent(QMouseEvent *m);
00042        QLabel* TextLabel1;
00043        QLineEdit* Farbname;
00044        QLabel* TextLabel3;
00045        QComboBox* ComboBox1;
00046        QCheckBox* Separations;
00047        QCheckBox* Regist;
00048        QComboBox* Swatches;
00049        QLabel* TextLabel5_2;
00050        QLabel* OldC;
00051        QLabel* TextLabel5;
00052        QLabel* NewC;
00053        QPushButton* Cancel;
00054        QPushButton* Cancel_2;
00055        QFrame* Frame4;
00056        QWidgetStack* TabStack;
00057        QFrame* Frame5;
00058        QFrame* Frame5a;
00059        ColorListBox* ColorSwatch;
00060        ColorChart* ColorMap;
00061        QLabel* CyanP;
00062        QLabel* CyanT;
00063        QSlider* CyanSL;
00064        MSpinBox* CyanSp;
00065        QLabel* MagentaP;
00066        QLabel* MagentaT;
00067        QSlider* MagentaSL;
00068        MSpinBox* MagentaSp;
00069        QLabel* YellowP;
00070        QLabel* YellowT;
00071        QSlider* YellowSL;
00072        MSpinBox* YellowSp;
00073        QLabel* BlackP;
00074        QLabel* BlackT;
00075        QSlider* BlackSL;
00076        MSpinBox* BlackSp;
00077        QPixmap imageA;
00078        QPixmap imageN;
00079        QPixmap alertIcon;
00080        ScColor Farbe;
00081        bool CMYKmode;
00082        bool Wsave;
00083        bool dynamic;
00084        bool isNew;
00085        int BlackComp;
00086        ColorList *EColors;
00087        ColorList CurrSwatch;
00088        QStringList CColSet;
00089        QString Fnam;
00090 
00091 public slots:
00092        void SetValueS(int val);
00093        void ToggleSL();
00094        QPixmap SliderPix(int farbe);
00095        QPixmap SliderBlack();
00096        void SelSwatch(int n);
00097        void setSpot();
00098        void setRegist();
00099        void SelModel(const QString& mod);
00100        void setColor();
00101        void setColor2(int h, int s, bool ende);
00102        void SelFromSwatch( int c);
00103        void setValues();
00104        void Verlassen();
00105 
00106 protected:
00107        QHBoxLayout* CMYKFarbenLayout;
00108        QVBoxLayout* Layout23;
00109        QGridLayout* Layout2;
00110        QGridLayout* Layout2x;
00111        QHBoxLayout* Layout21;
00112        QVBoxLayout* Frame4Layout;
00113        QHBoxLayout* Frame5Layout;
00114        QHBoxLayout* Frame5aLayout;
00115        QVBoxLayout* Layout1_2;
00116        QVBoxLayout* Layout1_2_2;
00117        QVBoxLayout* Layout1_2_3;
00118        QVBoxLayout* Layout1_2_4;
00119        
00120        ColorSetManager csm;
00121        int customSetStartIndex;
00122        ScribusDoc* m_doc;
00123 };
00124 
00125 #endif // CMYKFARBEN_H