Back to index

scribus-ng  1.3.4.dfsg+svn20071115
colorchart.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                           colorchart.h  -  description
00009                              -------------------
00010     begin                : Sat Sep 15 2001
00011     copyright            : (C) 2001 by Franz Schmid
00012     email                : Franz.Schmid@altmuehlnet.de
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef COLORCHART_H
00025 #define COLORCHART_H
00026 
00027 #include <qlabel.h>
00028 #include <qpixmap.h>
00029 #include "scribusapi.h"
00030 
00031 class ScribusDoc;
00032 
00037 class SCRIBUS_API ColorChart : public QLabel  {
00038 
00039 Q_OBJECT
00040 
00041 public: 
00042        ColorChart(QWidget *parent, ScribusDoc* doc);
00043        ~ColorChart() {};
00044        void mouseMoveEvent(QMouseEvent *m);
00045        void mousePressEvent(QMouseEvent *m);
00046        void mouseReleaseEvent(QMouseEvent *m);
00047        void paintEvent(QPaintEvent *e);
00048        void drawMark(int x, int y);
00049        void setMark(int h, int s);
00050        void drawPalette(int val);
00051        int Xp;
00052        int Yp;
00053        QPixmap pmx;
00054 
00055 protected:
00056        ScribusDoc* m_doc;
00057 
00058 signals:
00059        void ColorVal(int h, int s, bool ende);
00060 };
00061 
00062 #endif