krita

kis_birdeye_box.h

00001 /*
00002  *  Copyright (c) 2004 Kivio Team
00003  *  Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef KIS_BIRDEYE_BOX_H
00021 #define KIS_BIRDEYE_BOX_H
00022 
00023 #include "qwidget.h"
00024 
00025 #include "kis_types.h"
00026 
00027 class KoBirdEyePanel;
00028 class KisDoubleWidget;
00029 class KisView;
00030 class KisCanvasSubject;
00031 class KoZoomAdapter;
00032 class KisColorSpace;
00033 
00034 class KisBirdEyeBox : public QWidget
00035 { 
00036     Q_OBJECT
00037 
00038 public:
00039 
00040     KisBirdEyeBox(KisView * view, QWidget * parent = 0, const char* name=0);
00041     ~KisBirdEyeBox();
00042 
00043     void setImage(KisImageSP image);
00044 
00045 public slots:
00046     void slotDocCommandExecuted();
00047     void slotImageUpdated(QRect r);
00048     void slotImageSizeChanged(Q_INT32 w, Q_INT32 h);
00049     void slotImageColorSpaceChanged(KisColorSpace *cs);
00050 
00051 protected slots:
00052     void exposureValueChanged(double exposure);
00053     void exposureSliderPressed();
00054     void exposureSliderReleased();
00055     
00056 private:
00057     KoBirdEyePanel * m_birdEyePanel;
00058     KisDoubleWidget * m_exposureDoubleWidget;
00059     QLabel *m_exposureLabel;
00060     KisView * m_view;
00061     KisCanvasSubject * m_subject;
00062     bool m_draggingExposureSlider;
00063     KoZoomAdapter * m_zoomAdapter;
00064     KisImageSP m_image;
00065     QRect m_dirtyRect;
00066 };
00067 
00068 #endif // KIS_BIRDEYE_BOX_H
KDE Home | KDE Accessibility Home | Description of Access Keys