ReactOS 0.4.15-dev-6679-g945ee4b
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 GetAirBrushWidth () const
 
void SetAirBrushWidth (int nAirBrushWidth)
 
void MakeAirBrushThickerOrThinner (BOOL bThinner)
 
int GetRubberRadius () const
 
void SetRubberRadius (int nRubberRadius)
 
void MakeRubberThickerOrThinner (BOOL bThinner)
 
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 OnCancelDraw ()
 
void OnFinishDraw ()
 
void OnDrawOverlayOnImage (HDC hdc)
 
void OnDrawOverlayOnCanvas (HDC hdc)
 
void resetTool ()
 
void selectAll ()
 
void NotifyToolChanged ()
 
void NotifyToolSettingsChanged ()
 
void NotifyZoomChanged ()
 
void SpecialTweak (BOOL bMinus)
 

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_airBrushWidth
 
int m_rubberRadius
 
BOOL m_transpBg
 
int m_zoom
 
ToolBasem_tools [TOOL_MAX+1]
 
ToolBasem_pToolObject
 

Detailed Description

Definition at line 74 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;
25 ZeroMemory(&m_tools, sizeof(m_tools));
27}
TOOLTYPE m_oldActiveTool
Definition: toolsmodel.h:83
int m_airBrushWidth
Definition: toolsmodel.h:84
INT m_brushWidth
Definition: toolsmodel.h:79
int m_rubberRadius
Definition: toolsmodel.h:85
int m_lineWidth
Definition: toolsmodel.h:77
BOOL m_transpBg
Definition: toolsmodel.h:86
int m_shapeStyle
Definition: toolsmodel.h:80
ToolBase * m_tools[TOOL_MAX+1]
Definition: toolsmodel.h:88
BrushStyle m_brushStyle
Definition: toolsmodel.h:81
int m_zoom
Definition: toolsmodel.h:87
TOOLTYPE m_activeTool
Definition: toolsmodel.h:82
ToolBase * m_pToolObject
Definition: toolsmodel.h:89
ToolBase * GetOrCreateTool(TOOLTYPE nTool)
Definition: toolsmodel.cpp:35
INT m_penWidth
Definition: toolsmodel.h:78
#define FALSE
Definition: types.h:117
@ TOOL_PEN
Definition: toolsmodel.h:18
@ BrushStyleRound
Definition: toolsmodel.h:33
#define ZeroMemory
Definition: winbase.h:1700

◆ ~ToolsModel()

ToolsModel::~ToolsModel ( )

Definition at line 29 of file toolsmodel.cpp.

30{
31 for (size_t i = 0; i < _countof(m_tools); ++i)
32 delete m_tools[i];
33}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define _countof(array)
Definition: sndvol32.h:68

Member Function Documentation

◆ GetActiveTool()

◆ GetAirBrushWidth()

int ToolsModel::GetAirBrushWidth ( ) const

Definition at line 185 of file toolsmodel.cpp.

186{
187 return m_airBrushWidth;
188}

Referenced by AirBrushTool::draw(), CToolSettingsWindow::drawAirBrush(), and MakeAirBrushThickerOrThinner().

◆ GetBrushStyle()

BrushStyle ToolsModel::GetBrushStyle ( ) const

Definition at line 125 of file toolsmodel.cpp.

126{
127 return m_brushStyle;
128}

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

◆ GetBrushWidth()

INT ToolsModel::GetBrushWidth ( ) const

Definition at line 72 of file toolsmodel.cpp.

73{
74 return m_brushWidth;
75}

Referenced by BrushTool::draw(), CToolSettingsWindow::drawBrush(), and MakeBrushThickerOrThinner().

◆ GetLineWidth()

◆ GetOldActiveTool()

TOOLTYPE ToolsModel::GetOldActiveTool ( ) const

Definition at line 141 of file toolsmodel.cpp.

142{
143 return m_oldActiveTool;
144}

Referenced by ColorTool::OnButtonUp().

◆ GetOrCreateTool()

ToolBase * ToolsModel::GetOrCreateTool ( TOOLTYPE  nTool)
private

Definition at line 35 of file toolsmodel.cpp.

36{
37 if (!m_tools[nTool])
38 m_tools[nTool] = ToolBase::createToolObject(nTool);
39
40 return m_tools[nTool];
41}
static ToolBase * createToolObject(TOOLTYPE type)
Definition: mouse.cpp:1066

Referenced by SetActiveTool(), and ToolsModel().

◆ GetPenWidth()

INT ToolsModel::GetPenWidth ( ) const

Definition at line 60 of file toolsmodel.cpp.

61{
62 return m_penWidth;
63}

Referenced by PenTool::draw(), and MakePenThickerOrThinner().

◆ GetRubberRadius()

int ToolsModel::GetRubberRadius ( ) const

Definition at line 196 of file toolsmodel.cpp.

197{
198 return m_rubberRadius;
199}

Referenced by RubberTool::draw(), CToolSettingsWindow::drawRubber(), and MakeRubberThickerOrThinner().

◆ GetShapeStyle()

◆ GetZoom()

◆ IsBackgroundTransparent()

◆ IsSelection()

BOOL ToolsModel::IsSelection ( ) const

Definition at line 43 of file toolsmodel.cpp.

44{
46}
TOOLTYPE GetActiveTool() const
Definition: toolsmodel.cpp:136
@ TOOL_FREESEL
Definition: toolsmodel.h:12
@ TOOL_RECTSEL
Definition: toolsmodel.h:13

Referenced by CMainWindow::CanUndo(), CMainWindow::OnCommand(), CMainWindow::OnInitMenuPopup(), and CCanvasWindow::OnMouseMove().

◆ MakeAirBrushThickerOrThinner()

void ToolsModel::MakeAirBrushThickerOrThinner ( BOOL  bThinner)

Definition at line 102 of file toolsmodel.cpp.

103{
104 INT thickness = GetAirBrushWidth();
105 SetAirBrushWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
106}
int GetAirBrushWidth() const
Definition: toolsmodel.cpp:185
void SetAirBrushWidth(int nAirBrushWidth)
Definition: toolsmodel.cpp:190
#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 96 of file toolsmodel.cpp.

97{
98 INT thickness = GetBrushWidth();
99 SetBrushWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
100}
void SetBrushWidth(INT nBrushWidth)
Definition: toolsmodel.cpp:77
INT GetBrushWidth() const
Definition: toolsmodel.cpp:72

Referenced by BrushTool::OnSpecialTweak().

◆ MakeLineThickerOrThinner()

void ToolsModel::MakeLineThickerOrThinner ( BOOL  bThinner)

Definition at line 84 of file toolsmodel.cpp.

85{
86 INT thickness = GetLineWidth();
87 SetLineWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
88}
int GetLineWidth() const
Definition: toolsmodel.cpp:48
void SetLineWidth(int nLineWidth)
Definition: toolsmodel.cpp:53

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

◆ MakePenThickerOrThinner()

void ToolsModel::MakePenThickerOrThinner ( BOOL  bThinner)

Definition at line 90 of file toolsmodel.cpp.

91{
92 INT thickness = GetPenWidth();
93 SetPenWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
94}
INT GetPenWidth() const
Definition: toolsmodel.cpp:60
void SetPenWidth(INT nPenWidth)
Definition: toolsmodel.cpp:65

Referenced by PenTool::OnSpecialTweak().

◆ MakeRubberThickerOrThinner()

void ToolsModel::MakeRubberThickerOrThinner ( BOOL  bThinner)

Definition at line 108 of file toolsmodel.cpp.

109{
110 INT thickness = GetRubberRadius();
111 SetRubberRadius(bThinner ? max(1, thickness - 1) : (thickness + 1));
112}
void SetRubberRadius(int nRubberRadius)
Definition: toolsmodel.cpp:201
int GetRubberRadius() const
Definition: toolsmodel.cpp:196

Referenced by RubberTool::OnSpecialTweak().

◆ NotifyToolChanged()

void ToolsModel::NotifyToolChanged ( )

Definition at line 230 of file toolsmodel.cpp.

231{
232 if (toolBoxContainer.IsWindow())
234 if (toolSettingsWindow.IsWindow())
236 if (fontsDialog.IsWindow())
238 if (textEditWindow.IsWindow())
240}
#define WM_TOOLSMODELTOOLCHANGED
Definition: common.h:18
CFontsDialog fontsDialog
Definition: dialogs.cpp:21
CToolBox toolBoxContainer
Definition: toolbox.cpp:11
CTextEditWindow textEditWindow
Definition: textedit.cpp:12
CToolSettingsWindow toolSettingsWindow

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

◆ NotifyToolSettingsChanged()

void ToolsModel::NotifyToolSettingsChanged ( )

Definition at line 242 of file toolsmodel.cpp.

243{
244 if (toolSettingsWindow.IsWindow())
246 if (textEditWindow.IsWindow())
248}
#define WM_TOOLSMODELSETTINGSCHANGED
Definition: common.h:19

Referenced by SetAirBrushWidth(), SetBackgroundTransparent(), SetBrushStyle(), SetBrushWidth(), SetLineWidth(), SetPenWidth(), SetRubberRadius(), and SetShapeStyle().

◆ NotifyZoomChanged()

void ToolsModel::NotifyZoomChanged ( )

Definition at line 250 of file toolsmodel.cpp.

251{
252 if (toolSettingsWindow.IsWindow())
254 if (textEditWindow.IsWindow())
256 if (canvasWindow.IsWindow())
258}
#define WM_TOOLSMODELZOOMCHANGED
Definition: common.h:20
CCanvasWindow canvasWindow
Definition: canvas.cpp:10

Referenced by SetZoom().

◆ OnButtonDown()

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

Definition at line 260 of file toolsmodel.cpp.

261{
263 g_ptStart.x = g_ptEnd.x = x;
264 g_ptStart.y = g_ptEnd.y = y;
265 m_pToolObject->OnButtonDown(bLeftButton, x, y, bDoubleClick);
267}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
POINT g_ptEnd
Definition: globalvar.h:14
POINT g_ptStart
Definition: main.cpp:13
void endEvent()
Definition: mouse.cpp:84
virtual void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
Definition: toolsmodel.h:52
void beginEvent()
Definition: mouse.cpp:77
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48

Referenced by CCanvasWindow::OnLRButtonDblClk(), CCanvasWindow::OnLRButtonDown(), and selectAll().

◆ OnButtonUp()

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

Definition at line 280 of file toolsmodel.cpp.

281{
283 if (m_pToolObject->OnButtonUp(bLeftButton, x, y))
284 {
285 g_ptEnd.x = x;
286 g_ptEnd.y = y;
287 }
289}
virtual BOOL OnButtonUp(BOOL bLeftButton, LONG &x, LONG &y)
Definition: toolsmodel.h:54

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

◆ OnCancelDraw()

void ToolsModel::OnCancelDraw ( )

Definition at line 291 of file toolsmodel.cpp.

292{
293 ATLTRACE("ToolsModel::OnCancelDraw()\n");
297}
#define ATLTRACE(format,...)
Definition: atltrace.h:276
virtual void OnCancelDraw()
Definition: mouse.cpp:65

Referenced by CCanvasWindow::cancelDrawing(), CTextEditWindow::OnKeyDown(), and CCanvasWindow::OnLRButtonDown().

◆ OnDrawOverlayOnCanvas()

void ToolsModel::OnDrawOverlayOnCanvas ( HDC  hdc)

Definition at line 312 of file toolsmodel.cpp.

313{
315}
HDC hdc
Definition: main.c:9
virtual void OnDrawOverlayOnCanvas(HDC hdc)
Definition: toolsmodel.h:60

Referenced by CCanvasWindow::DoDraw().

◆ OnDrawOverlayOnImage()

void ToolsModel::OnDrawOverlayOnImage ( HDC  hdc)

Definition at line 307 of file toolsmodel.cpp.

308{
310}
virtual void OnDrawOverlayOnImage(HDC hdc)
Definition: toolsmodel.h:59

Referenced by CCanvasWindow::DoDraw(), and SelectionModel::Landing().

◆ OnFinishDraw()

void ToolsModel::OnFinishDraw ( )

Definition at line 299 of file toolsmodel.cpp.

300{
301 ATLTRACE("ToolsModel::OnFinishDraw()\n");
305}
virtual void OnFinishDraw()
Definition: mouse.cpp:71

Referenced by CCanvasWindow::finishDrawing(), CCanvasWindow::OnLRButtonDown(), and SetActiveTool().

◆ OnMouseMove()

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

Definition at line 269 of file toolsmodel.cpp.

270{
272 if (m_pToolObject->OnMouseMove(bLeftButton, x, y))
273 {
274 g_ptEnd.x = x;
275 g_ptEnd.y = y;
276 }
278}
virtual BOOL OnMouseMove(BOOL bLeftButton, LONG &x, LONG &y)
Definition: toolsmodel.h:53

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

◆ resetTool()

◆ selectAll()

void ToolsModel::selectAll ( )

Definition at line 322 of file toolsmodel.cpp.

323{
325 OnButtonDown(TRUE, 0, 0, FALSE);
328}
int GetWidth() const
Definition: history.cpp:194
int GetHeight() const
Definition: history.cpp:199
void SetActiveTool(TOOLTYPE nActiveTool)
Definition: toolsmodel.cpp:146
void OnMouseMove(BOOL bLeftButton, LONG x, LONG y)
Definition: toolsmodel.cpp:269
void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick)
Definition: toolsmodel.cpp:260
void OnButtonUp(BOOL bLeftButton, LONG x, LONG y)
Definition: toolsmodel.cpp:280
#define TRUE
Definition: types.h:120
ImageModel imageModel
Definition: history.cpp:11

Referenced by CMainWindow::OnCommand().

◆ SetActiveTool()

void ToolsModel::SetActiveTool ( TOOLTYPE  nActiveTool)

Definition at line 146 of file toolsmodel.cpp.

147{
148 OnFinishDraw();
149
151
152 m_activeTool = nActiveTool;
153
154 switch (m_activeTool)
155 {
156 case TOOL_FREESEL:
157 case TOOL_RECTSEL:
158 case TOOL_COLOR:
159 case TOOL_ZOOM:
160 case TOOL_TEXT:
161 // The active tool is not an actually drawing tool
162 break;
163
164 case TOOL_LINE:
165 case TOOL_BEZIER:
166 case TOOL_RECT:
167 case TOOL_SHAPE:
168 case TOOL_ELLIPSE:
169 case TOOL_FILL:
170 case TOOL_AIRBRUSH:
171 case TOOL_RRECT:
172 case TOOL_RUBBER:
173 case TOOL_BRUSH:
174 case TOOL_PEN:
175 // The active tool is an actually drawing tool. Save it for TOOL_COLOR to restore
176 m_oldActiveTool = nActiveTool;
177 break;
178 }
179
181
183}
void OnFinishDraw()
Definition: toolsmodel.cpp:299
void NotifyToolChanged()
Definition: toolsmodel.cpp:230
SelectionModel selectionModel
@ TOOL_AIRBRUSH
Definition: toolsmodel.h:20
@ TOOL_COLOR
Definition: toolsmodel.h:16
@ TOOL_SHAPE
Definition: toolsmodel.h:25
@ TOOL_RUBBER
Definition: toolsmodel.h:14
@ TOOL_BRUSH
Definition: toolsmodel.h:19
@ TOOL_RECT
Definition: toolsmodel.h:24
@ TOOL_BEZIER
Definition: toolsmodel.h:23
@ TOOL_FILL
Definition: toolsmodel.h:15
@ TOOL_TEXT
Definition: toolsmodel.h:21
@ TOOL_LINE
Definition: toolsmodel.h:22
@ TOOL_ZOOM
Definition: toolsmodel.h:17
@ TOOL_ELLIPSE
Definition: toolsmodel.h:26
@ TOOL_RRECT
Definition: toolsmodel.h:27

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

◆ SetAirBrushWidth()

void ToolsModel::SetAirBrushWidth ( int  nAirBrushWidth)

Definition at line 190 of file toolsmodel.cpp.

191{
192 m_airBrushWidth = nAirBrushWidth;
194}
void NotifyToolSettingsChanged()
Definition: toolsmodel.cpp:242

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

◆ SetBackgroundTransparent()

void ToolsModel::SetBackgroundTransparent ( BOOL  bTransparent)

Definition at line 212 of file toolsmodel.cpp.

213{
214 m_transpBg = bTransparent;
217}
void NotifyImageChanged()
Definition: history.cpp:15

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

◆ SetBrushStyle()

void ToolsModel::SetBrushStyle ( BrushStyle  nBrushStyle)

Definition at line 130 of file toolsmodel.cpp.

131{
132 m_brushStyle = nBrushStyle;
134}

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 65 of file toolsmodel.cpp.

Referenced by MakePenThickerOrThinner().

◆ SetRubberRadius()

void ToolsModel::SetRubberRadius ( int  nRubberRadius)

Definition at line 201 of file toolsmodel.cpp.

202{
203 m_rubberRadius = nRubberRadius;
205}

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

◆ SetShapeStyle()

void ToolsModel::SetShapeStyle ( int  nShapeStyle)

Definition at line 119 of file toolsmodel.cpp.

120{
121 m_shapeStyle = nShapeStyle;
123}

Referenced by CToolSettingsWindow::OnLButtonDown().

◆ SetZoom()

void ToolsModel::SetZoom ( int  nZoom)

Definition at line 224 of file toolsmodel.cpp.

225{
226 m_zoom = nZoom;
228}
void NotifyZoomChanged()
Definition: toolsmodel.cpp:250

Referenced by zoomTo().

◆ SpecialTweak()

void ToolsModel::SpecialTweak ( BOOL  bMinus)

Definition at line 330 of file toolsmodel.cpp.

331{
333}
virtual void OnSpecialTweak(BOOL bMinus)
Definition: toolsmodel.h:62

Referenced by CMainWindow::OnCommand().

Member Data Documentation

◆ m_activeTool

TOOLTYPE ToolsModel::m_activeTool
private

Definition at line 82 of file toolsmodel.h.

Referenced by GetActiveTool(), NotifyToolChanged(), SetActiveTool(), and ToolsModel().

◆ m_airBrushWidth

int ToolsModel::m_airBrushWidth
private

Definition at line 84 of file toolsmodel.h.

Referenced by GetAirBrushWidth(), SetAirBrushWidth(), and ToolsModel().

◆ m_brushStyle

BrushStyle ToolsModel::m_brushStyle
private

Definition at line 81 of file toolsmodel.h.

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

◆ m_brushWidth

INT ToolsModel::m_brushWidth
private

Definition at line 79 of file toolsmodel.h.

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

◆ m_lineWidth

int ToolsModel::m_lineWidth
private

Definition at line 77 of file toolsmodel.h.

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

◆ m_oldActiveTool

TOOLTYPE ToolsModel::m_oldActiveTool
private

Definition at line 83 of file toolsmodel.h.

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

◆ m_penWidth

INT ToolsModel::m_penWidth
private

Definition at line 78 of file toolsmodel.h.

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

◆ m_pToolObject

◆ m_rubberRadius

int ToolsModel::m_rubberRadius
private

Definition at line 85 of file toolsmodel.h.

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

◆ m_shapeStyle

int ToolsModel::m_shapeStyle
private

Definition at line 80 of file toolsmodel.h.

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

◆ m_tools

ToolBase* ToolsModel::m_tools[TOOL_MAX+1]
private

Definition at line 88 of file toolsmodel.h.

Referenced by GetOrCreateTool(), ToolsModel(), and ~ToolsModel().

◆ m_transpBg

BOOL ToolsModel::m_transpBg
private

Definition at line 86 of file toolsmodel.h.

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

◆ m_zoom

int ToolsModel::m_zoom
private

Definition at line 87 of file toolsmodel.h.

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


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