KGLLib
extras/kgllib/hdrglwidgetcontrol.h
00001 /*
00002  * Copyright 2008  Rivo Laks <rivolaks@hot.ee>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef KGLLIB_HDRGLWIDGETCONTROL_H
00019 #define KGLLIB_HDRGLWIDGETCONTROL_H
00020 
00021 #include "kgllib.h"
00022 
00023 #include <QtGui/QWidget>
00024 
00025 
00026 namespace KGLLib
00027 {
00028 class HdrGLWidget;
00029 
00030 class KGLLIB_EXTRAS_EXPORT HdrGLWidgetControl : public QWidget
00031 {
00032     Q_OBJECT
00033 public:
00034     HdrGLWidgetControl(HdrGLWidget* widget, QWidget* parent = 0);
00035     virtual ~HdrGLWidgetControl();
00036 
00037 public slots:
00038     void updateSettings();
00039 
00040 protected slots:
00041     void setBloomDownsize(int ds);
00042     void setBloomStrength(double s);
00043     void setExposure(double exp);
00044     void setExposureAutoSpeed(double s);
00045     void setExposureAutoTarget(double t);
00046     void setAutoExposure(bool a);
00047 
00048 private:
00049     class Private;
00050     Private* const d;
00051 
00052     HdrGLWidget* mGLWidget;
00053 };
00054 
00055 }
00056 
00057 #endif