kivio
kivio_birdeye_panel.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KIVIOBIRDEYEPANEL_H
00021 #define KIVIOBIRDEYEPANEL_H
00022 #include "kivio_birdeye_panel_base.h"
00023
00024 class QPixmap;
00025
00026 class KivioView;
00027 class KivioCanvas;
00028 class KivioDoc;
00029 class KivioPage;
00030 class KAction;
00031 class KoZoomHandler;
00032
00033 class KivioBirdEyePanel : public KivioBirdEyePanelBase
00034 { Q_OBJECT
00035 public:
00036 KivioBirdEyePanel(KivioView* view, QWidget* parent=0, const char* name=0);
00037 ~KivioBirdEyePanel();
00038
00039 bool eventFilter(QObject*, QEvent*);
00040
00041 public slots:
00042 void zoomMinus();
00043 void zoomPlus();
00044
00045 protected slots:
00046 void updateView();
00047 void canvasZoomChanged(int zoom);
00048 void slotUpdateView(KivioPage*);
00049
00050 protected:
00051 void handleMouseMove(QPoint);
00052 void handleMouseMoveAction(QPoint);
00053 void handleMousePress(QPoint);
00054
00055 private:
00056 KivioView* m_pView;
00057 KivioCanvas* m_pCanvas;
00058 KivioDoc* m_pDoc;
00059
00060 KAction* zoomIn;
00061 KAction* zoomOut;
00062 QPixmap* m_buffer;
00063
00064 QRect varea;
00065 AlignmentFlags apos;
00066 bool handlePress;
00067 QPoint lastPos;
00068 KoZoomHandler* m_zoomHandler;
00069 };
00070
00071 #endif
|