karbon
vzoomtool.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __VZOOMTOOL_H__
00022 #define __VZOOMTOOL_H__
00023
00024 #include "KoPoint.h"
00025 #include <qstring.h>
00026
00027 #include "vtool.h"
00028
00029 class QCursor;
00030
00031 class KarbonView;
00032
00033 class VZoomTool : public VTool
00034 {
00035 public:
00036 VZoomTool( KarbonView *view );
00037 ~VZoomTool();
00038
00039 virtual void activate();
00040 virtual void deactivate();
00041
00042 virtual void setup( KActionCollection *collection );
00043 virtual QString uiname() { return i18n( "Zoom Tool" ); }
00044 virtual QString contextHelp();
00045 virtual QString statusText();
00046
00047 protected:
00048 void draw();
00049
00050 virtual void mouseButtonPress();
00051 virtual void mouseButtonRelease();
00052 virtual void mouseDrag();
00053 virtual void mouseDragRelease();
00054
00055 virtual bool keyReleased( Qt::Key key );
00056
00057 virtual void rightMouseButtonRelease();
00058
00059 void recalc();
00060
00061 KoPoint m_current;
00062
00063 private:
00064 QCursor* m_plusCursor;
00065
00066 };
00067
00068 #endif
00069
|