ReactOS 0.4.15-dev-7907-g95bf896
ToolsModel Class Reference

#include <toolsmodel.h>

Collaboration diagram for ToolsModel:

Public Member Functions

 ToolsModel ()
 
 ~ToolsModel ()
 
BOOL IsSelection () const
 
int GetLineWidth () const
 
void SetLineWidth (int nLineWidth)
 
void MakeLineThickerOrThinner (BOOL bThinner)
 
INT GetPenWidth () const
 
void SetPenWidth (INT nPenWidth)
 
void MakePenThickerOrThinner (BOOL bThinner)
 
int GetShapeStyle () const
 
void SetShapeStyle (int nShapeStyle)
 
INT GetBrushWidth () const
 
void SetBrushWidth (INT nBrushWidth)
 
void MakeBrushThickerOrThinner (BOOL bThinner)
 
BrushStyle GetBrushStyle () const
 
void SetBrushStyle (BrushStyle nBrushStyle)
 
TOOLTYPE GetActiveTool () const
 
TOOLTYPE GetOldActiveTool () const
 
void SetActiveTool (TOOLTYPE nActiveTool)
 
INT GetAirBrushRadius () const
 
void SetAirBrushRadius (INT nAirBrushRadius)
 
void MakeAirBrushThickerOrThinner (BOOL bThinner)
 
int GetRubberRadius () const
 
void SetRubberRadius (int nRubberRadius)
 
void MakeRubberThickerOrThinner (BOOL bThinner)
 
SIZE GetToolSize () const
 
BOOL IsBackgroundTransparent () const
 
void SetBackgroundTransparent (BOOL bTransparent)
 
int GetZoom () const
 
void SetZoom (int nZoom)
 
void OnButtonDown (BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
 
void OnMouseMove (BOOL bLeftButton, LONG x, LONG y)
 
void OnButtonUp (BOOL bLeftButton, LONG x, LONG y)
 
void OnEndDraw (BOOL bCancel)
 
void OnDrawOverlayOnImage (HDC hdc)
 
void OnDrawOverlayOnCanvas (HDC hdc)
 
void resetTool ()
 
void selectAll ()
 
void NotifyToolChanged ()
 
void NotifyToolSettingsChanged ()
 
void NotifyZoomChanged ()
 
void SpecialTweak (BOOL bMinus)
 
void DrawWithMouseTool (POINT pt, WPARAM wParam)
 

Private Member Functions

ToolBaseGetOrCreateTool (TOOLTYPE nTool)
 

Private Attributes

int m_lineWidth
 
INT m_penWidth
 
INT m_brushWidth
 
int m_shapeStyle
 
BrushStyle m_brushStyle
 
TOOLTYPE m_activeTool
 
TOOLTYPE m_oldActiveTool
 
INT m_airBrushRadius
 
int m_rubberRadius
 
BOOL m_transpBg
 
int m_zoom
 
ToolBasem_pToolObject
 

Detailed Description

Definition at line 67 of file toolsmodel.h.

Constructor & Destructor Documentation

◆ ToolsModel()

ToolsModel::ToolsModel ( )

Definition at line 14 of file toolsmodel.cpp.

15{
17 m_brushWidth = 4;
18 m_shapeStyle = 0;
24 m_zoom = 1000;
26}
TOOLTYPE m_oldActiveTool
Definition: toolsmodel.h:76
INT m_airBrushRadius
Definition: toolsmodel.h:77
INT m_brushWidth
Definition: toolsmodel.h:72
int m_rubberRadius
Definition: toolsmodel.h:78
int m_lineWidth
Definition: toolsmodel.h:70
BOOL m_transpBg
Definition: toolsmodel.h:79
int m_shapeStyle
Definition: toolsmodel.h:73
BrushStyle m_brushStyle
Definition: toolsmodel.h:74
int m_zoom
Definition: toolsmodel.h:80
TOOLTYPE m_activeTool
Definition: toolsmodel.h:75
ToolBase * m_pToolObject
Definition: toolsmodel.h:81
ToolBase * GetOrCreateTool(TOOLTYPE nTool)
Definition: toolsmodel.cpp:34
INT m_penWidth
Definition: toolsmodel.h:71
#define FALSE
Definition: types.h:117
@ TOOL_PEN
Definition: toolsmodel.h:18
@ BrushStyleRound
Definition: toolsmodel.h:33

◆ ~ToolsModel()

ToolsModel::~ToolsModel ( )

Definition at line 28 of file toolsmodel.cpp.

29{
30 delete m_pToolObject;
32}
#define NULL
Definition: types.h:112

Member Function Documentation

◆ DrawWithMouseTool()

void ToolsModel::DrawWithMouseTool ( POINT  pt,
WPARAM  wParam 
)

Definition at line 1201 of file mouse.cpp.

1202{
1203 LONG xRel = pt.x - g_ptStart.x, yRel = pt.y - g_ptStart.y;
1204
1205 switch (m_activeTool)
1206 {
1207 // freesel, rectsel and text tools always show numbers limited to fit into image area
1208 case TOOL_FREESEL:
1209 case TOOL_RECTSEL:
1210 case TOOL_TEXT:
1211 if (xRel < 0)
1212 xRel = (pt.x < 0) ? -g_ptStart.x : xRel;
1213 else if (pt.x > imageModel.GetWidth())
1214 xRel = imageModel.GetWidth() - g_ptStart.x;
1215 if (yRel < 0)
1216 yRel = (pt.y < 0) ? -g_ptStart.y : yRel;
1217 else if (pt.y > imageModel.GetHeight())
1218 yRel = imageModel.GetHeight() - g_ptStart.y;
1219 break;
1220
1221 // while drawing, update cursor coordinates only for tools 3, 7, 8, 9, 14
1222 case TOOL_RUBBER:
1223 case TOOL_PEN:
1224 case TOOL_BRUSH:
1225 case TOOL_AIRBRUSH:
1226 case TOOL_SHAPE:
1227 {
1228 CStringW strCoord;
1229 strCoord.Format(L"%ld, %ld", pt.x, pt.y);
1231 break;
1232 }
1233 default:
1234 break;
1235 }
1236
1237 // rectsel and shape tools always show non-negative numbers when drawing
1239 {
1240 xRel = labs(xRel);
1241 yRel = labs(yRel);
1242 }
1243
1244 if (wParam & MK_LBUTTON)
1245 {
1246 OnMouseMove(TRUE, pt.x, pt.y);
1247 canvasWindow.Invalidate(FALSE);
1248 if ((m_activeTool >= TOOL_TEXT) || IsSelection())
1249 {
1250 CStringW strSize;
1252 yRel = xRel;
1253 strSize.Format(L"%ld x %ld", xRel, yRel);
1255 }
1256 }
1257
1258 if (wParam & MK_RBUTTON)
1259 {
1260 OnMouseMove(FALSE, pt.x, pt.y);
1261 canvasWindow.Invalidate(FALSE);
1262 if (m_activeTool >= TOOL_TEXT)
1263 {
1264 CStringW strSize;
1266 yRel = xRel;
1267 strSize.Format(L"%ld x %ld", xRel, yRel);
1269 }
1270 }
1271}
HWND g_hStatusBar
Definition: main.cpp:23
static POINT g_ptStart
Definition: mouse.cpp:17
CCanvasWindow canvasWindow
Definition: canvas.cpp:10
void __cdecl Format(UINT nFormatID,...)
Definition: cstringt.h:818
int GetWidth() const
Definition: history.cpp:253
int GetHeight() const
Definition: history.cpp:258
BOOL IsSelection() const
Definition: toolsmodel.cpp:41
void OnMouseMove(BOOL bLeftButton, LONG x, LONG y)
Definition: mouse.cpp:1160
WPARAM wParam
Definition: combotst.c:138
#define TRUE
Definition: types.h:120
#define pt(x, y)
Definition: drawing.c:79
ImageModel imageModel
Definition: history.cpp:11
_Check_return_ long __cdecl labs(_In_ long x)
if(dx< 0)
Definition: linetemp.h:194
#define L(x)
Definition: ntvdm.h:50
long LONG
Definition: pedump.c:60
#define SB_SETTEXT
Definition: commctrl.h:1949
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
@ TOOL_AIRBRUSH
Definition: toolsmodel.h:20
@ TOOL_SHAPE
Definition: toolsmodel.h:25
@ TOOL_RUBBER
Definition: toolsmodel.h:14
@ TOOL_BRUSH
Definition: toolsmodel.h:19
@ TOOL_TEXT
Definition: toolsmodel.h:21
@ TOOL_LINE
Definition: toolsmodel.h:22
@ TOOL_FREESEL
Definition: toolsmodel.h:12
@ TOOL_RECTSEL
Definition: toolsmodel.h:13
LONG_PTR LPARAM
Definition: windef.h:208
#define MK_RBUTTON
Definition: winuser.h:2368
#define MK_LBUTTON
Definition: winuser.h:2367
#define VK_SHIFT
Definition: winuser.h:2202
SHORT WINAPI GetAsyncKeyState(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by CCanvasWindow::OnMouseMove().

◆ GetActiveTool()

◆ GetAirBrushRadius()

INT ToolsModel::GetAirBrushRadius ( ) const

◆ GetBrushStyle()

BrushStyle ToolsModel::GetBrushStyle ( ) const

Definition at line 123 of file toolsmodel.cpp.

124{
125 return m_brushStyle;
126}

Referenced by CToolSettingsWindow::drawBrush(), and BrushTool::OnDraw().

◆ GetBrushWidth()

INT ToolsModel::GetBrushWidth ( ) const

◆ GetLineWidth()

◆ GetOldActiveTool()

TOOLTYPE ToolsModel::GetOldActiveTool ( ) const

Definition at line 139 of file toolsmodel.cpp.

140{
141 return m_oldActiveTool;
142}

Referenced by ColorTool::OnButtonUp(), and ZoomTool::OnButtonUp().

◆ GetOrCreateTool()

ToolBase * ToolsModel::GetOrCreateTool ( TOOLTYPE  nTool)
private

Definition at line 34 of file toolsmodel.cpp.

35{
36 delete m_pToolObject;
38 return m_pToolObject;
39}
static ToolBase * createToolObject(TOOLTYPE type)
Definition: mouse.cpp:1127

Referenced by SetActiveTool(), and ToolsModel().

◆ GetPenWidth()

INT ToolsModel::GetPenWidth ( ) const

Definition at line 58 of file toolsmodel.cpp.

59{
60 return m_penWidth;
61}

Referenced by GetToolSize(), MakePenThickerOrThinner(), and PenTool::OnDraw().

◆ GetRubberRadius()

int ToolsModel::GetRubberRadius ( ) const

◆ GetShapeStyle()

◆ GetToolSize()

SIZE ToolsModel::GetToolSize ( ) const

Definition at line 205 of file toolsmodel.cpp.

206{
207 SIZE size;
208 switch (m_activeTool)
209 {
210 case TOOL_FREESEL:
211 case TOOL_RECTSEL:
214 break;
215 case TOOL_COLOR:
216 case TOOL_ZOOM:
217 case TOOL_TEXT:
218 case TOOL_FILL:
219 size.cx = size.cy = 1;
220 break;
221 case TOOL_LINE:
222 case TOOL_BEZIER:
223 case TOOL_RECT:
224 case TOOL_RRECT:
225 case TOOL_SHAPE:
226 case TOOL_ELLIPSE:
227 size.cx = size.cy = GetLineWidth();
228 break;
229 case TOOL_AIRBRUSH:
230 size.cx = size.cy = GetAirBrushRadius() * 2;
231 break;
232 case TOOL_RUBBER:
233 size.cx = size.cy = GetRubberRadius() * 2;
234 break;
235 case TOOL_BRUSH:
236 size.cx = size.cy = GetBrushWidth();
237 break;
238 case TOOL_PEN:
239 size.cx = size.cy = GetPenWidth();
240 break;
241 }
242 if (size.cx < 1)
243 size.cx = 1;
244 if (size.cy < 1)
245 size.cy = 1;
246 return size;
247}
SelectionModel selectionModel
int Width() const noexcept
Definition: atltypes.h:461
int Height() const noexcept
Definition: atltypes.h:318
int GetLineWidth() const
Definition: toolsmodel.cpp:46
INT GetPenWidth() const
Definition: toolsmodel.cpp:58
int GetRubberRadius() const
Definition: toolsmodel.cpp:194
INT GetAirBrushRadius() const
Definition: toolsmodel.cpp:183
INT GetBrushWidth() const
Definition: toolsmodel.cpp:70
GLsizeiptr size
Definition: glext.h:5919
@ TOOL_COLOR
Definition: toolsmodel.h:16
@ TOOL_RECT
Definition: toolsmodel.h:24
@ TOOL_BEZIER
Definition: toolsmodel.h:23
@ TOOL_FILL
Definition: toolsmodel.h:15
@ TOOL_ZOOM
Definition: toolsmodel.h:17
@ TOOL_ELLIPSE
Definition: toolsmodel.h:26
@ TOOL_RRECT
Definition: toolsmodel.h:27

Referenced by TwoPointDrawTool::OnButtonUp(), SmoothDrawTool::OnButtonUp(), and ShapeTool::OnEndDraw().

◆ GetZoom()

◆ IsBackgroundTransparent()

◆ IsSelection()

BOOL ToolsModel::IsSelection ( ) const

◆ MakeAirBrushThickerOrThinner()

void ToolsModel::MakeAirBrushThickerOrThinner ( BOOL  bThinner)

Definition at line 100 of file toolsmodel.cpp.

101{
102 INT thickness = GetAirBrushRadius();
103 SetAirBrushRadius(bThinner ? max(1, thickness - 1) : (thickness + 1));
104}
void SetAirBrushRadius(INT nAirBrushRadius)
Definition: toolsmodel.cpp:188
#define max(a, b)
Definition: svc.c:63
int32_t INT
Definition: typedefs.h:58

Referenced by AirBrushTool::OnSpecialTweak().

◆ MakeBrushThickerOrThinner()

void ToolsModel::MakeBrushThickerOrThinner ( BOOL  bThinner)

Definition at line 94 of file toolsmodel.cpp.

95{
96 INT thickness = GetBrushWidth();
97 SetBrushWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
98}
void SetBrushWidth(INT nBrushWidth)
Definition: toolsmodel.cpp:75

Referenced by BrushTool::OnSpecialTweak().

◆ MakeLineThickerOrThinner()

void ToolsModel::MakeLineThickerOrThinner ( BOOL  bThinner)

Definition at line 82 of file toolsmodel.cpp.

83{
84 INT thickness = GetLineWidth();
85 SetLineWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
86}
void SetLineWidth(int nLineWidth)
Definition: toolsmodel.cpp:51

Referenced by TwoPointDrawTool::OnSpecialTweak(), BezierTool::OnSpecialTweak(), and ShapeTool::OnSpecialTweak().

◆ MakePenThickerOrThinner()

void ToolsModel::MakePenThickerOrThinner ( BOOL  bThinner)

Definition at line 88 of file toolsmodel.cpp.

89{
90 INT thickness = GetPenWidth();
91 SetPenWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
92}
void SetPenWidth(INT nPenWidth)
Definition: toolsmodel.cpp:63

Referenced by PenTool::OnSpecialTweak().

◆ MakeRubberThickerOrThinner()

void ToolsModel::MakeRubberThickerOrThinner ( BOOL  bThinner)

Definition at line 106 of file toolsmodel.cpp.

107{
108 INT thickness = GetRubberRadius();
109 SetRubberRadius(bThinner ? max(1, thickness - 1) : (thickness + 1));
110}
void SetRubberRadius(int nRubberRadius)
Definition: toolsmodel.cpp:199

Referenced by RubberTool::OnSpecialTweak().

◆ NotifyToolChanged()

void ToolsModel::NotifyToolChanged ( )

Definition at line 272 of file toolsmodel.cpp.

273{
274 if (toolBoxContainer.IsWindow())
276 if (toolSettingsWindow.IsWindow())
278 if (fontsDialog.IsWindow())
280 if (textEditWindow.IsWindow())
282}
CFontsDialog fontsDialog
Definition: dialogs.cpp:16
CToolBox toolBoxContainer
Definition: toolbox.cpp:11
#define WM_TOOLSMODELTOOLCHANGED
Definition: precomp.h:49
CTextEditWindow textEditWindow
Definition: textedit.cpp:12
CToolSettingsWindow toolSettingsWindow

Referenced by CFontsDialog::OnCommand(), CFontsDialog::OnFontName(), CFontsDialog::OnFontSize(), and SetActiveTool().

◆ NotifyToolSettingsChanged()

void ToolsModel::NotifyToolSettingsChanged ( )

◆ NotifyZoomChanged()

void ToolsModel::NotifyZoomChanged ( )

Definition at line 292 of file toolsmodel.cpp.

293{
294 if (toolSettingsWindow.IsWindow())
296 if (textEditWindow.IsWindow())
298 if (canvasWindow.IsWindow())
300}
#define WM_TOOLSMODELZOOMCHANGED
Definition: precomp.h:51

Referenced by SetZoom().

◆ OnButtonDown()

void ToolsModel::OnButtonDown ( BOOL  bLeftButton,
LONG  x,
LONG  y,
BOOL  bDoubleClick 
)

Definition at line 1152 of file mouse.cpp.

1153{
1155 g_ptEnd = g_ptStart = { x, y };
1156 m_pToolObject->OnButtonDown(bLeftButton, x, y, bDoubleClick);
1158}
static POINT g_ptEnd
Definition: mouse.cpp:17
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void endEvent()
Definition: mouse.cpp:138
virtual void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
Definition: toolsmodel.h:49
void beginEvent()
Definition: mouse.cpp:131

Referenced by CCanvasWindow::OnButtonDblClk(), CCanvasWindow::OnButtonDown(), and selectAll().

◆ OnButtonUp()

void ToolsModel::OnButtonUp ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)

Definition at line 1169 of file mouse.cpp.

1170{
1172 if (m_pToolObject->OnButtonUp(bLeftButton, x, y))
1173 g_ptEnd = { x, y };
1174
1176}
virtual BOOL OnButtonUp(BOOL bLeftButton, LONG &x, LONG &y)
Definition: toolsmodel.h:51

Referenced by CCanvasWindow::OnButtonUp(), and selectAll().

◆ OnDrawOverlayOnCanvas()

void ToolsModel::OnDrawOverlayOnCanvas ( HDC  hdc)

Definition at line 1191 of file mouse.cpp.

1192{
1194}
HDC hdc
Definition: main.c:9
virtual void OnDrawOverlayOnCanvas(HDC hdc)
Definition: toolsmodel.h:54

Referenced by CCanvasWindow::DoDraw().

◆ OnDrawOverlayOnImage()

void ToolsModel::OnDrawOverlayOnImage ( HDC  hdc)

◆ OnEndDraw()

void ToolsModel::OnEndDraw ( BOOL  bCancel)

Definition at line 1178 of file mouse.cpp.

1179{
1180 ATLTRACE("ToolsModel::OnEndDraw(%d)\n", bCancel);
1182 m_pToolObject->OnEndDraw(bCancel);
1184}
#define ATLTRACE(format,...)
Definition: atltrace.h:269
virtual void OnEndDraw(BOOL bCancel)
Definition: mouse.cpp:125

Referenced by CCanvasWindow::OnButtonDown(), CCanvasWindow::OnEndDraw(), CTextEditWindow::OnKeyDown(), and SetActiveTool().

◆ OnMouseMove()

void ToolsModel::OnMouseMove ( BOOL  bLeftButton,
LONG  x,
LONG  y 
)

Definition at line 1160 of file mouse.cpp.

1161{
1163 if (m_pToolObject->OnMouseMove(bLeftButton, x, y))
1164 g_ptEnd = { x, y };
1165
1167}
virtual BOOL OnMouseMove(BOOL bLeftButton, LONG &x, LONG &y)
Definition: toolsmodel.h:50

Referenced by DrawWithMouseTool(), and selectAll().

◆ resetTool()

void ToolsModel::resetTool ( )

◆ selectAll()

void ToolsModel::selectAll ( )

Definition at line 307 of file toolsmodel.cpp.

308{
310 OnButtonDown(TRUE, 0, 0, FALSE);
313}
void SetActiveTool(TOOLTYPE nActiveTool)
Definition: toolsmodel.cpp:144
void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
Definition: mouse.cpp:1152
void OnButtonUp(BOOL bLeftButton, LONG x, LONG y)
Definition: mouse.cpp:1169

Referenced by CMainWindow::OnCommand().

◆ SetActiveTool()

void ToolsModel::SetActiveTool ( TOOLTYPE  nActiveTool)

Definition at line 144 of file toolsmodel.cpp.

145{
147
149
150 m_activeTool = nActiveTool;
151
152 switch (m_activeTool)
153 {
154 case TOOL_FREESEL:
155 case TOOL_RECTSEL:
156 case TOOL_COLOR:
157 case TOOL_ZOOM:
158 case TOOL_TEXT:
159 // The active tool is not an actually drawing tool
160 break;
161
162 case TOOL_LINE:
163 case TOOL_BEZIER:
164 case TOOL_RECT:
165 case TOOL_SHAPE:
166 case TOOL_ELLIPSE:
167 case TOOL_FILL:
168 case TOOL_AIRBRUSH:
169 case TOOL_RRECT:
170 case TOOL_RUBBER:
171 case TOOL_BRUSH:
172 case TOOL_PEN:
173 // The active tool is an actually drawing tool. Save it for TOOL_COLOR to restore
174 m_oldActiveTool = nActiveTool;
175 break;
176 }
177
179
181}
void OnEndDraw(BOOL bCancel)
Definition: mouse.cpp:1178
void NotifyToolChanged()
Definition: toolsmodel.cpp:272

Referenced by CMainWindow::InsertSelectionFromHBITMAP(), ColorTool::OnButtonUp(), ZoomTool::OnButtonUp(), CToolBox::OnCommand(), and selectAll().

◆ SetAirBrushRadius()

void ToolsModel::SetAirBrushRadius ( INT  nAirBrushRadius)

Definition at line 188 of file toolsmodel.cpp.

189{
190 m_airBrushRadius = nAirBrushRadius;
192}
void NotifyToolSettingsChanged()
Definition: toolsmodel.cpp:284

Referenced by MakeAirBrushThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().

◆ SetBackgroundTransparent()

void ToolsModel::SetBackgroundTransparent ( BOOL  bTransparent)

Definition at line 254 of file toolsmodel.cpp.

255{
256 m_transpBg = bTransparent;
259}
void NotifyImageChanged()
Definition: history.cpp:23

Referenced by CMainWindow::OnCommand(), and CToolSettingsWindow::OnLButtonDown().

◆ SetBrushStyle()

void ToolsModel::SetBrushStyle ( BrushStyle  nBrushStyle)

Definition at line 128 of file toolsmodel.cpp.

129{
130 m_brushStyle = nBrushStyle;
132}

Referenced by CToolSettingsWindow::OnLButtonDown().

◆ SetBrushWidth()

void ToolsModel::SetBrushWidth ( INT  nBrushWidth)

◆ SetLineWidth()

void ToolsModel::SetLineWidth ( int  nLineWidth)

◆ SetPenWidth()

void ToolsModel::SetPenWidth ( INT  nPenWidth)

Definition at line 63 of file toolsmodel.cpp.

Referenced by MakePenThickerOrThinner().

◆ SetRubberRadius()

void ToolsModel::SetRubberRadius ( int  nRubberRadius)

Definition at line 199 of file toolsmodel.cpp.

200{
201 m_rubberRadius = nRubberRadius;
203}

Referenced by MakeRubberThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().

◆ SetShapeStyle()

void ToolsModel::SetShapeStyle ( int  nShapeStyle)

Definition at line 117 of file toolsmodel.cpp.

118{
119 m_shapeStyle = nShapeStyle;
121}

Referenced by CToolSettingsWindow::OnLButtonDown().

◆ SetZoom()

void ToolsModel::SetZoom ( int  nZoom)

Definition at line 266 of file toolsmodel.cpp.

267{
268 m_zoom = nZoom;
270}
void NotifyZoomChanged()
Definition: toolsmodel.cpp:292

Referenced by CCanvasWindow::zoomTo().

◆ SpecialTweak()

void ToolsModel::SpecialTweak ( BOOL  bMinus)

Definition at line 1196 of file mouse.cpp.

1197{
1199}
virtual void OnSpecialTweak(BOOL bMinus)
Definition: toolsmodel.h:56

Referenced by CMainWindow::OnCommand().

Member Data Documentation

◆ m_activeTool

TOOLTYPE ToolsModel::m_activeTool
private

◆ m_airBrushRadius

INT ToolsModel::m_airBrushRadius
private

Definition at line 77 of file toolsmodel.h.

Referenced by GetAirBrushRadius(), SetAirBrushRadius(), and ToolsModel().

◆ m_brushStyle

BrushStyle ToolsModel::m_brushStyle
private

Definition at line 74 of file toolsmodel.h.

Referenced by GetBrushStyle(), SetBrushStyle(), and ToolsModel().

◆ m_brushWidth

INT ToolsModel::m_brushWidth
private

Definition at line 72 of file toolsmodel.h.

Referenced by GetBrushWidth(), SetBrushWidth(), and ToolsModel().

◆ m_lineWidth

int ToolsModel::m_lineWidth
private

Definition at line 70 of file toolsmodel.h.

Referenced by GetLineWidth(), SetLineWidth(), and ToolsModel().

◆ m_oldActiveTool

TOOLTYPE ToolsModel::m_oldActiveTool
private

Definition at line 76 of file toolsmodel.h.

Referenced by GetOldActiveTool(), SetActiveTool(), and ToolsModel().

◆ m_penWidth

INT ToolsModel::m_penWidth
private

Definition at line 71 of file toolsmodel.h.

Referenced by GetPenWidth(), SetPenWidth(), and ToolsModel().

◆ m_pToolObject

◆ m_rubberRadius

int ToolsModel::m_rubberRadius
private

Definition at line 78 of file toolsmodel.h.

Referenced by GetRubberRadius(), SetRubberRadius(), and ToolsModel().

◆ m_shapeStyle

int ToolsModel::m_shapeStyle
private

Definition at line 73 of file toolsmodel.h.

Referenced by GetShapeStyle(), SetShapeStyle(), and ToolsModel().

◆ m_transpBg

BOOL ToolsModel::m_transpBg
private

Definition at line 79 of file toolsmodel.h.

Referenced by IsBackgroundTransparent(), SetBackgroundTransparent(), and ToolsModel().

◆ m_zoom

int ToolsModel::m_zoom
private

Definition at line 80 of file toolsmodel.h.

Referenced by GetZoom(), SetZoom(), and ToolsModel().


The documentation for this class was generated from the following files: