Back to index

scribus-ng  1.3.4.dfsg+svn20071115
cwdialog.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 
00008 #ifndef CWDIALOG_H
00009 #define CWDIALOG_H
00010 
00011 #include <qvariant.h>
00012 #include <qdialog.h>
00013 
00014 #include "cwdialogbase.h"
00015 #include "colorwheelwidget.h"
00016 #include "scribus.h"
00017 
00018 class QVBoxLayout;
00019 class QHBoxLayout;
00020 class QGridLayout;
00021 class QSpacerItem;
00022 class QComboBox;
00023 class QListBox;
00024 class QListView;
00025 class QPushButton;
00026 class QSpinBox;
00027 class QGroupBox;
00028 class QSlider;
00029 class ColorListBox;
00030 class ScribusDoc;
00031 class ScColor;
00032 
00033 
00039 class CWDialog : public CWDialogBase
00040 {
00041        Q_OBJECT
00042        public:
00043               CWDialog( QWidget* parent = 0, ScribusDoc* doc = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00044               ~CWDialog();
00045        private:
00047               PrefsContext* prefs;
00049               ScribusDoc* m_Doc;
00050 
00054               void setPreview();
00055 
00061               QColor computeDefect(QColor c);
00062 
00065               void fillColorList();
00066 
00071               void setupColorComponents();
00072 
00075               void setupRGBComponent(ScColor col);
00076 
00079               void setupCMYKComponent(ScColor col);
00080 
00084               void setupHSVComponent(ScColor col);
00085 
00087               void updateNamedLabels();
00088 
00092               void connectSlots(bool conn=true);
00093 
00102               void processColors(int index, bool updateSpins=true);
00103 
00105               QString getHexHsv(ScColor c);
00106 
00107        private slots:
00108               void colorspaceTab_currentChanged( QWidget * );
00109               void angleSpin_valueChanged(int);
00110               void colorWheel_clicked(int, const QPoint &);
00111               void typeCombo_activated(int);
00112               void documentColorList_currentChanged(QListBoxItem *);
00113               void defectCombo_activated(int);
00114               void addButton_clicked();
00115               void replaceButton_clicked();
00116               void cancelButton_clicked();
00117               void colorList_currentChanged(QListBoxItem *);
00118 
00119               void cSpin_valueChanged( int );
00120               void mSpin_valueChanged( int );
00121               void ySpin_valueChanged( int );
00122               void kSpin_valueChanged( int );
00123               void rSpin_valueChanged( int );
00124               void gSpin_valueChanged( int );
00125               void bSpin_valueChanged( int );
00126               void hSpin_valueChanged( int );
00127               void sSpin_valueChanged( int );
00128               void vSpin_valueChanged( int );
00129 };
00130 
00131 #endif // CWDIALOG_H