chalk

kis_birdeye_box.h
1/*
2 * Copyright (c) 2004 Kivio Team
3 * Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#ifndef KIS_BIRDEYE_BOX_H
21#define KIS_BIRDEYE_BOX_H
22
23#include "tqwidget.h"
24
25#include "kis_types.h"
26
27class KoBirdEyePanel;
28class KisDoubleWidget;
29class KisView;
31class KoZoomAdapter;
32class KisColorSpace;
33
34class KisBirdEyeBox : public TQWidget
35{
36 TQ_OBJECT
37
38
39public:
40
41 KisBirdEyeBox(KisView * view, TQWidget * parent = 0, const char* name=0);
42 ~KisBirdEyeBox();
43
44 void setImage(KisImageSP image);
45
46public slots:
47 void slotDocCommandExecuted();
48 void slotImageUpdated(TQRect r);
49 void slotImageSizeChanged(TQ_INT32 w, TQ_INT32 h);
50 void slotImageColorSpaceChanged(KisColorSpace *cs);
51
52protected slots:
53 void exposureValueChanged(double exposure);
54 void exposureSliderPressed();
55 void exposureSliderReleased();
56
57private:
58 KoBirdEyePanel * m_birdEyePanel;
59 KisDoubleWidget * m_exposureDoubleWidget;
60 TQLabel *m_exposureLabel;
61 KisView * m_view;
62 KisCanvasSubject * m_subject;
63 bool m_draggingExposureSlider;
64 KoZoomAdapter * m_zoomAdapter;
65 KisImageSP m_image;
66 TQRect m_dirtyRect;
67};
68
69#endif // KIS_BIRDEYE_BOX_H
KisCanvasSubject is part of the Observer pattern.
A colorspace is the definition of a certain color model in Chalk.
A complex widget that provides an overview of a document with a red panning rectangle to and a zoom s...
The zoom listener interface defines methods that the bird eye panel will call whenever the zoomlevel ...