mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +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;
|
m_zoom = 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ToolsModel::GetLineWidth()
|
int ToolsModel::GetLineWidth() const
|
||||||
{
|
{
|
||||||
return m_lineWidth;
|
return m_lineWidth;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ void ToolsModel::SetLineWidth(int nLineWidth)
|
||||||
NotifyToolSettingsChanged();
|
NotifyToolSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int ToolsModel::GetShapeStyle()
|
int ToolsModel::GetShapeStyle() const
|
||||||
{
|
{
|
||||||
return m_shapeStyle;
|
return m_shapeStyle;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ void ToolsModel::SetShapeStyle(int nShapeStyle)
|
||||||
NotifyToolSettingsChanged();
|
NotifyToolSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int ToolsModel::GetBrushStyle()
|
int ToolsModel::GetBrushStyle() const
|
||||||
{
|
{
|
||||||
return m_brushStyle;
|
return m_brushStyle;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ void ToolsModel::SetBrushStyle(int nBrushStyle)
|
||||||
NotifyToolSettingsChanged();
|
NotifyToolSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int ToolsModel::GetActiveTool()
|
int ToolsModel::GetActiveTool() const
|
||||||
{
|
{
|
||||||
return m_activeTool;
|
return m_activeTool;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ void ToolsModel::SetActiveTool(int nActiveTool)
|
||||||
NotifyToolChanged();
|
NotifyToolChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int ToolsModel::GetAirBrushWidth()
|
int ToolsModel::GetAirBrushWidth() const
|
||||||
{
|
{
|
||||||
return m_airBrushWidth;
|
return m_airBrushWidth;
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ void ToolsModel::SetAirBrushWidth(int nAirBrushWidth)
|
||||||
NotifyToolSettingsChanged();
|
NotifyToolSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
int ToolsModel::GetRubberRadius()
|
int ToolsModel::GetRubberRadius() const
|
||||||
{
|
{
|
||||||
return m_rubberRadius;
|
return m_rubberRadius;
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ void ToolsModel::SetRubberRadius(int nRubberRadius)
|
||||||
NotifyToolSettingsChanged();
|
NotifyToolSettingsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL ToolsModel::IsBackgroundTransparent()
|
BOOL ToolsModel::IsBackgroundTransparent() const
|
||||||
{
|
{
|
||||||
return m_transpBg;
|
return m_transpBg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,19 +28,19 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ToolsModel();
|
ToolsModel();
|
||||||
int GetLineWidth();
|
int GetLineWidth() const;
|
||||||
void SetLineWidth(int nLineWidth);
|
void SetLineWidth(int nLineWidth);
|
||||||
int GetShapeStyle();
|
int GetShapeStyle() const;
|
||||||
void SetShapeStyle(int nShapeStyle);
|
void SetShapeStyle(int nShapeStyle);
|
||||||
int GetBrushStyle();
|
int GetBrushStyle() const;
|
||||||
void SetBrushStyle(int nBrushStyle);
|
void SetBrushStyle(int nBrushStyle);
|
||||||
int GetActiveTool();
|
int GetActiveTool() const;
|
||||||
void SetActiveTool(int nActiveTool);
|
void SetActiveTool(int nActiveTool);
|
||||||
int GetAirBrushWidth();
|
int GetAirBrushWidth() const;
|
||||||
void SetAirBrushWidth(int nAirBrushWidth);
|
void SetAirBrushWidth(int nAirBrushWidth);
|
||||||
int GetRubberRadius();
|
int GetRubberRadius() const;
|
||||||
void SetRubberRadius(int nRubberRadius);
|
void SetRubberRadius(int nRubberRadius);
|
||||||
BOOL IsBackgroundTransparent();
|
BOOL IsBackgroundTransparent() const;
|
||||||
void SetBackgroundTransparent(BOOL bTransparent);
|
void SetBackgroundTransparent(BOOL bTransparent);
|
||||||
int GetZoom() const;
|
int GetZoom() const;
|
||||||
void SetZoom(int nZoom);
|
void SetZoom(int nZoom);
|
||||||
|
|
Loading…
Reference in a new issue