ReactOS 0.4.15-dev-5884-gab5aff5
|
#include <toolsmodel.h>
Public Member Functions | |
ToolBase (TOOLTYPE tool) | |
virtual | ~ToolBase () |
virtual void | OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) |
virtual void | OnMouseMove (BOOL bLeftButton, LONG x, LONG y) |
virtual void | OnButtonUp (BOOL bLeftButton, LONG x, LONG y) |
virtual void | OnCancelDraw () |
virtual void | OnFinishDraw () |
void | beginEvent () |
void | endEvent () |
void | reset () |
Static Public Member Functions | |
static ToolBase * | createToolObject (TOOLTYPE type) |
Public Attributes | |
TOOLTYPE | m_tool |
HDC | m_hdc |
COLORREF | m_fg |
COLORREF | m_bg |
Static Public Attributes | |
static INT | pointSP = 0 |
static POINT | pointStack [256] = { { 0 } } |
Definition at line 34 of file toolsmodel.h.
|
inline |
Definition at line 42 of file toolsmodel.h.
|
inlinevirtual |
Definition at line 46 of file toolsmodel.h.
void ToolBase::beginEvent | ( | ) |
Definition at line 99 of file mouse.cpp.
Referenced by ToolsModel::OnButtonDown(), ToolsModel::OnButtonUp(), ToolsModel::OnCancelDraw(), ToolsModel::OnFinishDraw(), and ToolsModel::OnMouseMove().
Definition at line 763 of file mouse.cpp.
Referenced by ToolsModel::GetOrCreateTool().
void ToolBase::endEvent | ( | ) |
Definition at line 106 of file mouse.cpp.
Referenced by ToolsModel::OnButtonDown(), ToolsModel::OnButtonUp(), ToolsModel::OnCancelDraw(), ToolsModel::OnFinishDraw(), and ToolsModel::OnMouseMove().
|
inlinevirtual |
Reimplemented in FreeSelTool, RectSelTool, GenericDrawTool, FillTool, ZoomTool, TextTool, BezierTool, and ShapeTool.
Definition at line 50 of file toolsmodel.h.
Referenced by ToolsModel::OnButtonDown().
Reimplemented in FreeSelTool, RectSelTool, GenericDrawTool, ColorTool, TextTool, BezierTool, and ShapeTool.
Definition at line 58 of file toolsmodel.h.
Referenced by ToolsModel::OnButtonUp().
|
virtual |
Reimplemented in FreeSelTool, RectSelTool, GenericDrawTool, BezierTool, and ShapeTool.
Definition at line 89 of file mouse.cpp.
Referenced by FreeSelTool::OnCancelDraw(), RectSelTool::OnCancelDraw(), GenericDrawTool::OnCancelDraw(), BezierTool::OnCancelDraw(), ShapeTool::OnCancelDraw(), and ToolsModel::OnCancelDraw().
|
virtual |
Reimplemented in FreeSelTool, RectSelTool, TextTool, BezierTool, and ShapeTool.
Definition at line 94 of file mouse.cpp.
Referenced by FreeSelTool::OnFinishDraw(), RectSelTool::OnFinishDraw(), TextTool::OnFinishDraw(), BezierTool::OnFinishDraw(), ShapeTool::OnFinishDraw(), and ToolsModel::OnFinishDraw().
Reimplemented in FreeSelTool, RectSelTool, GenericDrawTool, ColorTool, TextTool, BezierTool, and ShapeTool.
Definition at line 54 of file toolsmodel.h.
Referenced by ToolsModel::OnMouseMove().
void ToolBase::reset | ( | ) |
Definition at line 80 of file mouse.cpp.
Referenced by OnCancelDraw(), OnFinishDraw(), and ToolsModel::resetTool().
COLORREF ToolBase::m_bg |
Definition at line 38 of file toolsmodel.h.
Referenced by beginEvent(), BezierTool::draw(), RubberTool::draw(), PenTool::draw(), BrushTool::draw(), AirBrushTool::draw(), LineTool::draw(), RectTool::draw(), EllipseTool::draw(), RRectTool::draw(), ShapeTool::draw(), FillTool::OnButtonDown(), and TextTool::OnButtonUp().
COLORREF ToolBase::m_fg |
Definition at line 38 of file toolsmodel.h.
Referenced by beginEvent(), BezierTool::draw(), RubberTool::draw(), PenTool::draw(), BrushTool::draw(), AirBrushTool::draw(), LineTool::draw(), RectTool::draw(), EllipseTool::draw(), RRectTool::draw(), ShapeTool::draw(), FillTool::OnButtonDown(), and TextTool::OnButtonUp().
HDC ToolBase::m_hdc |
Definition at line 37 of file toolsmodel.h.
Referenced by beginEvent(), BezierTool::draw(), RubberTool::draw(), PenTool::draw(), BrushTool::draw(), AirBrushTool::draw(), LineTool::draw(), RectTool::draw(), EllipseTool::draw(), RRectTool::draw(), ShapeTool::draw(), endEvent(), ColorTool::fetchColor(), FillTool::OnButtonDown(), FreeSelTool::OnButtonUp(), RectSelTool::OnButtonUp(), TextTool::OnButtonUp(), FreeSelTool::OnMouseMove(), RectSelTool::OnMouseMove(), and TextTool::UpdatePoint().
TOOLTYPE ToolBase::m_tool |
Definition at line 36 of file toolsmodel.h.
|
static |
Definition at line 39 of file toolsmodel.h.
Referenced by BezierTool::draw(), ShapeTool::draw(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), BezierTool::OnButtonUp(), ShapeTool::OnButtonUp(), CMainWindow::OnCommand(), BezierTool::OnFinishDraw(), ShapeTool::OnFinishDraw(), CImgAreaWindow::OnKeyDown(), CCanvasWindow::OnLButtonDown(), BezierTool::OnMouseMove(), ShapeTool::OnMouseMove(), and reset().
|
static |
Definition at line 40 of file toolsmodel.h.
Referenced by BezierTool::draw(), ShapeTool::draw(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), ShapeTool::OnButtonUp(), BezierTool::OnMouseMove(), and ShapeTool::OnMouseMove().