ReactOS 0.4.16-dev-597-gdbf7844
|
#include <toolsmodel.h>
Private Member Functions | |
ToolBase * | GetOrCreateTool (TOOLTYPE nTool) |
Definition at line 67 of file toolsmodel.h.
ToolsModel::ToolsModel | ( | ) |
Definition at line 14 of file toolsmodel.cpp.
ToolsModel::~ToolsModel | ( | ) |
Definition at line 28 of file toolsmodel.cpp.
Definition at line 1201 of file mouse.cpp.
Referenced by CCanvasWindow::OnMouseMove().
TOOLTYPE ToolsModel::GetActiveTool | ( | ) | const |
Definition at line 134 of file toolsmodel.cpp.
Referenced by CMainWindow::CanPaste(), CMainWindow::CanRedo(), CMainWindow::CanUndo(), SelectionModel::DrawBackground(), SelectionBaseTool::isRectSelect(), IsSelection(), CCanvasWindow::OnButtonDown(), CMainWindow::OnCommand(), CMainWindow::OnInitMenuPopup(), CToolSettingsWindow::OnLButtonDown(), CCanvasWindow::OnMouseMove(), CToolSettingsWindow::OnPaint(), CCanvasWindow::OnSetCursor(), CToolBox::OnToolsModelToolChanged(), and SelectionModel::TakeOff().
INT ToolsModel::GetAirBrushRadius | ( | ) | const |
Definition at line 183 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawAirBrush(), GetToolSize(), MakeAirBrushThickerOrThinner(), and AirBrushTool::OnDraw().
BrushStyle ToolsModel::GetBrushStyle | ( | ) | const |
Definition at line 123 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawBrush(), and BrushTool::OnDraw().
INT ToolsModel::GetBrushWidth | ( | ) | const |
Definition at line 70 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawBrush(), GetToolSize(), MakeBrushThickerOrThinner(), and BrushTool::OnDraw().
int ToolsModel::GetLineWidth | ( | ) | const |
Definition at line 46 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawLine(), GetToolSize(), MakeLineThickerOrThinner(), nearlyEqualPoints(), BezierTool::OnDrawOverlayOnImage(), ShapeTool::OnDrawOverlayOnImage(), LineTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), and RRectTool::OnDrawOverlayOnImage().
TOOLTYPE ToolsModel::GetOldActiveTool | ( | ) | const |
Definition at line 139 of file toolsmodel.cpp.
Referenced by ColorTool::OnButtonUp(), and ZoomTool::OnButtonUp().
Definition at line 34 of file toolsmodel.cpp.
Referenced by SetActiveTool(), and ToolsModel().
INT ToolsModel::GetPenWidth | ( | ) | const |
Definition at line 58 of file toolsmodel.cpp.
Referenced by GetToolSize(), MakePenThickerOrThinner(), and PenTool::OnDraw().
int ToolsModel::GetRubberRadius | ( | ) | const |
Definition at line 194 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawRubber(), GetToolSize(), MakeRubberThickerOrThinner(), and RubberTool::OnDraw().
int ToolsModel::GetShapeStyle | ( | ) | const |
Definition at line 112 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawBox(), ShapeTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), and RRectTool::OnDrawOverlayOnImage().
SIZE ToolsModel::GetToolSize | ( | ) | const |
Definition at line 205 of file toolsmodel.cpp.
Referenced by TwoPointDrawTool::OnButtonUp(), SmoothDrawTool::OnButtonUp(), and ShapeTool::OnEndDraw().
int ToolsModel::GetZoom | ( | ) | const |
Definition at line 261 of file toolsmodel.cpp.
Referenced by CCanvasWindow::DoDraw(), CCanvasWindow::getNewZoomRect(), ZoomTool::OnButtonDown(), ZoomTool::OnDrawOverlayOnCanvas(), CMainWindow::OnInitMenuPopup(), CMainWindow::OnMouseWheel(), CToolSettingsWindow::OnToolsModelZoomChanged(), CToolSettingsWindow::OnVScroll(), UnZoomed(), and Zoomed().
BOOL ToolsModel::IsBackgroundTransparent | ( | ) | const |
Definition at line 249 of file toolsmodel.cpp.
Referenced by CTextEditWindow::DoFillBack(), TextTool::draw(), CToolSettingsWindow::drawTrans(), CMainWindow::OnCommand(), SelectionBaseTool::OnDrawOverlayOnImage(), CTextEditWindow::OnEraseBkGnd(), and CMainWindow::OnInitMenuPopup().
BOOL ToolsModel::IsSelection | ( | ) | const |
Definition at line 41 of file toolsmodel.cpp.
Referenced by CMainWindow::CanUndo(), DrawWithMouseTool(), CMainWindow::OnInitMenuPopup(), and CCanvasWindow::OnMouseMove().
Definition at line 100 of file toolsmodel.cpp.
Referenced by AirBrushTool::OnSpecialTweak().
Definition at line 82 of file toolsmodel.cpp.
Referenced by TwoPointDrawTool::OnSpecialTweak(), BezierTool::OnSpecialTweak(), and ShapeTool::OnSpecialTweak().
Definition at line 106 of file toolsmodel.cpp.
Referenced by RubberTool::OnSpecialTweak().
void ToolsModel::NotifyToolChanged | ( | ) |
Definition at line 272 of file toolsmodel.cpp.
Referenced by CFontsDialog::OnCommand(), CFontsDialog::OnFontName(), CFontsDialog::OnFontSize(), and SetActiveTool().
void ToolsModel::NotifyToolSettingsChanged | ( | ) |
Definition at line 284 of file toolsmodel.cpp.
Referenced by SetAirBrushRadius(), SetBackgroundTransparent(), SetBrushStyle(), SetBrushWidth(), SetLineWidth(), SetPenWidth(), SetRubberRadius(), and SetShapeStyle().
void ToolsModel::NotifyZoomChanged | ( | ) |
Definition at line 1152 of file mouse.cpp.
Referenced by CCanvasWindow::OnButtonDblClk(), CCanvasWindow::OnButtonDown(), and selectAll().
Definition at line 1169 of file mouse.cpp.
Referenced by CCanvasWindow::OnButtonUp(), and selectAll().
Definition at line 1191 of file mouse.cpp.
Referenced by CCanvasWindow::DoDraw().
Definition at line 1186 of file mouse.cpp.
Referenced by CCanvasWindow::DoDraw(), SelectionModel::Landing(), SelectionBaseTool::OnButtonDown(), SelectionBaseTool::OnButtonUp(), and SelectionBaseTool::OnMouseMove().
Definition at line 1178 of file mouse.cpp.
Referenced by CCanvasWindow::OnButtonDown(), CCanvasWindow::OnEndDraw(), CTextEditWindow::OnKeyDown(), and SetActiveTool().
Definition at line 1160 of file mouse.cpp.
Referenced by DrawWithMouseTool(), and selectAll().
void ToolsModel::resetTool | ( | ) |
Definition at line 302 of file toolsmodel.cpp.
Referenced by CCanvasWindow::OnButtonDblClk(), CCanvasWindow::OnButtonDown(), CCanvasWindow::OnButtonUp(), and CToolBox::OnToolsModelToolChanged().
void ToolsModel::selectAll | ( | ) |
Definition at line 307 of file toolsmodel.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 144 of file toolsmodel.cpp.
Referenced by CMainWindow::InsertSelectionFromHBITMAP(), ColorTool::OnButtonUp(), ZoomTool::OnButtonUp(), CToolBox::OnCommand(), and selectAll().
Definition at line 188 of file toolsmodel.cpp.
Referenced by MakeAirBrushThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 254 of file toolsmodel.cpp.
Referenced by CMainWindow::OnCommand(), and CToolSettingsWindow::OnLButtonDown().
void ToolsModel::SetBrushStyle | ( | BrushStyle | nBrushStyle | ) |
Definition at line 128 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::OnLButtonDown().
Definition at line 75 of file toolsmodel.cpp.
Referenced by MakeBrushThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 51 of file toolsmodel.cpp.
Referenced by MakeLineThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 63 of file toolsmodel.cpp.
Referenced by MakePenThickerOrThinner().
Definition at line 199 of file toolsmodel.cpp.
Referenced by MakeRubberThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 117 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::OnLButtonDown().
Definition at line 266 of file toolsmodel.cpp.
Referenced by CCanvasWindow::zoomTo().
|
private |
Definition at line 75 of file toolsmodel.h.
Referenced by DrawWithMouseTool(), GetActiveTool(), GetToolSize(), NotifyToolChanged(), SetActiveTool(), and ToolsModel().
|
private |
Definition at line 77 of file toolsmodel.h.
Referenced by GetAirBrushRadius(), SetAirBrushRadius(), and ToolsModel().
|
private |
Definition at line 74 of file toolsmodel.h.
Referenced by GetBrushStyle(), SetBrushStyle(), and ToolsModel().
|
private |
Definition at line 72 of file toolsmodel.h.
Referenced by GetBrushWidth(), SetBrushWidth(), and ToolsModel().
|
private |
Definition at line 70 of file toolsmodel.h.
Referenced by GetLineWidth(), SetLineWidth(), and ToolsModel().
|
private |
Definition at line 76 of file toolsmodel.h.
Referenced by GetOldActiveTool(), SetActiveTool(), and ToolsModel().
|
private |
Definition at line 71 of file toolsmodel.h.
Referenced by GetPenWidth(), SetPenWidth(), and ToolsModel().
|
private |
Definition at line 81 of file toolsmodel.h.
Referenced by GetOrCreateTool(), OnButtonDown(), OnButtonUp(), OnDrawOverlayOnCanvas(), OnDrawOverlayOnImage(), OnEndDraw(), OnMouseMove(), resetTool(), SetActiveTool(), SpecialTweak(), ToolsModel(), and ~ToolsModel().
|
private |
Definition at line 78 of file toolsmodel.h.
Referenced by GetRubberRadius(), SetRubberRadius(), and ToolsModel().
|
private |
Definition at line 73 of file toolsmodel.h.
Referenced by GetShapeStyle(), SetShapeStyle(), and ToolsModel().
|
private |
Definition at line 79 of file toolsmodel.h.
Referenced by IsBackgroundTransparent(), SetBackgroundTransparent(), and ToolsModel().
|
private |
Definition at line 80 of file toolsmodel.h.
Referenced by GetZoom(), SetZoom(), and ToolsModel().