VisLU Flow 0.1

src/ColorPicker/colorpickerwidget.h

00001 /*
00002 
00003 Copyright (C) 2009, Etienne Moutot <e.moutot@gmail.com>
00004 
00005 This file is part of colorPickerWidget.
00006 
00007     colorPickerWidget is free software: you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation, either version 3 of the License, or
00010     (at your option) any later version.
00011 
00012     colorPickerWidget is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef COLORPICKERWIDGET_H
00022 #define COLORPICKERWIDGET_H
00023 
00024 #include <QtGui/QWidget>
00025 #include <QtGui/QPushbutton>
00026 #include <QtGui/QGridLayout>
00027 #include "qtcolortriangle.h"
00028 #include "colorviewer.h"
00029 #include "screen.h"
00030 
00031 class ColorPickerWidget : public QWidget
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036     ColorPickerWidget(QWidget *parent = 0);
00037     ~ColorPickerWidget();
00038 
00039 Q_SIGNALS:
00040     void colorChanged(const QColor &col);
00041 
00042 public Q_SLOTS:
00043     void setColor(const QColor &col);
00044 
00045 private slots:
00046     void pickMode();
00047     void colorChgd();
00048 
00049 private:
00050     QtColorTriangle *colorTriangle;
00051     ColorViewer *colorView;
00052     QPushButton *pickColor;
00053 
00054     QGridLayout *layout;
00055 
00056     screen *ecran;
00057 };
00058 
00059 #endif // COLORPICKERWIDGET_H
 All Classes Functions Variables