ugkcanvas.h

来自「linux下一款GIS程序源码」· C头文件 代码 · 共 61 行

H
61
字号
/* ugkcanvas.h */#ifndef WINCLIENTRECT_H#define WINCLIENTRECT_H#include <qframe.h>#include <qpainter.h>#include "UGKGlobalFunc.h"#include "gui_manager.h"#include "markdlg.h"typedef enum{    MAPTOOL_Arrow =0,    MAPTOOL_ZoomIn =1,    MAPTOOL_ZoomOut =2,    MAPTOOL_Pan =3,    MAPTOOL_Label}MapToolType;class UGKCanvas : public QFrame{    Q_OBJECTpublic:    UGKCanvas( QWidget *parent =0, const char *name=0);    virtual ~UGKCanvas();        void setLayerManagerRef( GUI_Manager *);        void setCurMapTool( MapToolType mTool){m_CurMapTool = mTool;};    MapToolType getCurMapTool(){return m_CurMapTool;};    void CanvasRedraw(bool flag){bReDraw=flag;};    bool IsPainting(){return bPainting;};protected:         void paintEvent( QPaintEvent * );       virtual void resizeEvent ( QResizeEvent * e );       virtual void mouseMoveEvent( QMouseEvent * e );       virtual void mousePressEvent( QMouseEvent * e ) ;       virtual void mouseReleaseEvent( QMouseEvent *);  private:     QWidget *m_Parent;     bool      bSetLyrManagerRef;     GUI_Manager  *m_LyrManagerRef;      MarkDlg *dlg;         MapToolType  m_CurMapTool;     QPoint  firPt,movPt,secPt;     QPixmap *lastScreen;     bool   bLeftButtonPressed;     bool   bReDraw;     bool   bPainting;          bool   bMarkSym;     QString markSymName;     QString markSymPath;     int   markSym_X,markSym_Y;};	#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?