mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
[MSPAINT] Add const to ToolsModel methods (#4190)
Add const keywords to some methods of ToolsModel class. CORE-17931
This commit is contained in:
parent
b5536e448a
commit
102898191d
2 changed files with 14 additions and 14 deletions
|
@ -24,7 +24,7 @@ ToolsModel::ToolsModel()
|
|||
m_zoom = 1000;
|
||||
}
|
||||
|
||||
int ToolsModel::GetLineWidth()
|
||||
int ToolsModel::GetLineWidth() const
|
||||
{
|
||||
return m_lineWidth;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ void ToolsModel::SetLineWidth(int nLineWidth)
|
|||
NotifyToolSettingsChanged();
|
||||
}
|
||||
|
||||
int ToolsModel::GetShapeStyle()
|
||||
int ToolsModel::GetShapeStyle() const
|
||||
{
|
||||
return m_shapeStyle;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ void ToolsModel::SetShapeStyle(int nShapeStyle)
|
|||
NotifyToolSettingsChanged();
|
||||
}
|
||||
|
||||
int ToolsModel::GetBrushStyle()
|
||||
int ToolsModel::GetBrushStyle() const
|
||||
{
|
||||
return m_brushStyle;
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ void ToolsModel::SetBrushStyle(int nBrushStyle)
|
|||
NotifyToolSettingsChanged();
|
||||
}
|
||||
|
||||
int ToolsModel::GetActiveTool()
|
||||
int ToolsModel::GetActiveTool() const
|
||||
{
|
||||
return m_activeTool;
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ void ToolsModel::SetActiveTool(int nActiveTool)
|
|||
NotifyToolChanged();
|
||||
}
|
||||
|
||||
int ToolsModel::GetAirBrushWidth()
|
||||
int ToolsModel::GetAirBrushWidth() const
|
||||
{
|
||||
return m_airBrushWidth;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ void ToolsModel::SetAirBrushWidth(int nAirBrushWidth)
|
|||
NotifyToolSettingsChanged();
|
||||
}
|
||||
|
||||
int ToolsModel::GetRubberRadius()
|
||||
int ToolsModel::GetRubberRadius() const
|
||||
{
|
||||
return m_rubberRadius;
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ void ToolsModel::SetRubberRadius(int nRubberRadius)
|
|||
NotifyToolSettingsChanged();
|
||||
}
|
||||
|
||||
BOOL ToolsModel::IsBackgroundTransparent()
|
||||
BOOL ToolsModel::IsBackgroundTransparent() const
|
||||
{
|
||||
return m_transpBg;
|
||||
}
|
||||
|
|
|
@ -28,19 +28,19 @@ private:
|
|||
|
||||
public:
|
||||
ToolsModel();
|
||||
int GetLineWidth();
|
||||
int GetLineWidth() const;
|
||||
void SetLineWidth(int nLineWidth);
|
||||
int GetShapeStyle();
|
||||
int GetShapeStyle() const;
|
||||
void SetShapeStyle(int nShapeStyle);
|
||||
int GetBrushStyle();
|
||||
int GetBrushStyle() const;
|
||||
void SetBrushStyle(int nBrushStyle);
|
||||
int GetActiveTool();
|
||||
int GetActiveTool() const;
|
||||
void SetActiveTool(int nActiveTool);
|
||||
int GetAirBrushWidth();
|
||||
int GetAirBrushWidth() const;
|
||||
void SetAirBrushWidth(int nAirBrushWidth);
|
||||
int GetRubberRadius();
|
||||
int GetRubberRadius() const;
|
||||
void SetRubberRadius(int nRubberRadius);
|
||||
BOOL IsBackgroundTransparent();
|
||||
BOOL IsBackgroundTransparent() const;
|
||||
void SetBackgroundTransparent(BOOL bTransparent);
|
||||
int GetZoom() const;
|
||||
void SetZoom(int nZoom);
|
||||
|
|
Loading…
Reference in a new issue