kivio

kivio_birdeye_panel.h
1/*
2 * Kivio - Visual Modelling and Flowcharting
3 * Copyright (C) 2000-2001 theKompany.com & Dave Marotti
4 * Copyright (C) 2005 Peter Simonsson <psn@linux.se>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20#ifndef KIVIOBIRDEYEPANEL_H
21#define KIVIOBIRDEYEPANEL_H
22#include "kivio_birdeye_panel_base.h"
23
24class TQPixmap;
25
26class KivioView;
27class KivioCanvas;
28class KivioDoc;
29class KivioPage;
30class TDEAction;
31class KoZoomHandler;
32
33class KivioBirdEyePanel : public KivioBirdEyePanelBase
34{ TQ_OBJECT
35
36public:
37 KivioBirdEyePanel(KivioView* view, TQWidget* parent=0, const char* name=0);
38 ~KivioBirdEyePanel();
39
40 bool eventFilter(TQObject*, TQEvent*);
41
42public slots:
43 void zoomMinus();
44 void zoomPlus();
45
46protected slots:
47 void updateView();
48 void canvasZoomChanged(int zoom);
49 void slotUpdateView(KivioPage*);
50
51protected:
52 void handleMouseMove(TQPoint);
53 void handleMouseMoveAction(TQPoint);
54 void handleMousePress(TQPoint);
55
56private:
57 KivioView* m_pView;
58 KivioCanvas* m_pCanvas;
59 KivioDoc* m_pDoc;
60
61 TDEAction* zoomIn;
62 TDEAction* zoomOut;
63 TQPixmap* m_buffer;
64
65 TQRect varea;
66 AlignmentFlags apos;
67 bool handlePress;
68 TQPoint lastPos;
69 KoZoomHandler* m_zoomHandler;
70};
71
72#endif