ReactOS 0.4.15-dev-6679-g945ee4b
|
#include <toolsmodel.h>
Private Member Functions | |
ToolBase * | GetOrCreateTool (TOOLTYPE nTool) |
Definition at line 74 of file toolsmodel.h.
ToolsModel::ToolsModel | ( | ) |
Definition at line 14 of file toolsmodel.cpp.
ToolsModel::~ToolsModel | ( | ) |
Definition at line 29 of file toolsmodel.cpp.
TOOLTYPE ToolsModel::GetActiveTool | ( | ) | const |
Definition at line 136 of file toolsmodel.cpp.
Referenced by CMainWindow::CanPaste(), CMainWindow::CanRedo(), CMainWindow::CanUndo(), SelectionModel::DrawBackground(), IsSelection(), CMainWindow::OnCommand(), CMainWindow::OnInitMenuPopup(), CToolSettingsWindow::OnLButtonDown(), CCanvasWindow::OnLRButtonDown(), CCanvasWindow::OnMouseMove(), CToolSettingsWindow::OnPaint(), CCanvasWindow::OnSetCursor(), CToolBox::OnToolsModelToolChanged(), and SelectionModel::TakeOff().
int ToolsModel::GetAirBrushWidth | ( | ) | const |
Definition at line 185 of file toolsmodel.cpp.
Referenced by AirBrushTool::draw(), CToolSettingsWindow::drawAirBrush(), and MakeAirBrushThickerOrThinner().
BrushStyle ToolsModel::GetBrushStyle | ( | ) | const |
Definition at line 125 of file toolsmodel.cpp.
Referenced by BrushTool::draw(), and CToolSettingsWindow::drawBrush().
INT ToolsModel::GetBrushWidth | ( | ) | const |
Definition at line 72 of file toolsmodel.cpp.
Referenced by BrushTool::draw(), CToolSettingsWindow::drawBrush(), and MakeBrushThickerOrThinner().
int ToolsModel::GetLineWidth | ( | ) | const |
Definition at line 48 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawLine(), MakeLineThickerOrThinner(), nearlyEqualPoints(), BezierTool::OnDrawOverlayOnImage(), ShapeTool::OnDrawOverlayOnImage(), LineTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), and RRectTool::OnDrawOverlayOnImage().
TOOLTYPE ToolsModel::GetOldActiveTool | ( | ) | const |
Definition at line 141 of file toolsmodel.cpp.
Referenced by ColorTool::OnButtonUp().
Definition at line 35 of file toolsmodel.cpp.
Referenced by SetActiveTool(), and ToolsModel().
INT ToolsModel::GetPenWidth | ( | ) | const |
Definition at line 60 of file toolsmodel.cpp.
Referenced by PenTool::draw(), and MakePenThickerOrThinner().
int ToolsModel::GetRubberRadius | ( | ) | const |
Definition at line 196 of file toolsmodel.cpp.
Referenced by RubberTool::draw(), CToolSettingsWindow::drawRubber(), and MakeRubberThickerOrThinner().
int ToolsModel::GetShapeStyle | ( | ) | const |
Definition at line 114 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::drawBox(), ShapeTool::OnDrawOverlayOnImage(), RectTool::OnDrawOverlayOnImage(), EllipseTool::OnDrawOverlayOnImage(), and RRectTool::OnDrawOverlayOnImage().
int ToolsModel::GetZoom | ( | ) | const |
Definition at line 219 of file toolsmodel.cpp.
Referenced by CCanvasWindow::DoDraw(), ZoomTool::OnButtonDown(), CMainWindow::OnInitMenuPopup(), CMainWindow::OnMouseWheel(), CToolSettingsWindow::OnToolsModelZoomChanged(), UnZoomed(), Zoomed(), and zoomTo().
BOOL ToolsModel::IsBackgroundTransparent | ( | ) | const |
Definition at line 207 of file toolsmodel.cpp.
Referenced by CTextEditWindow::DoFillBack(), TextTool::draw(), CToolSettingsWindow::drawTrans(), CMainWindow::OnCommand(), FreeSelTool::OnDrawOverlayOnImage(), RectSelTool::OnDrawOverlayOnImage(), CTextEditWindow::OnEraseBkGnd(), CMainWindow::OnInitMenuPopup(), and ImageModel::SelectionClone().
BOOL ToolsModel::IsSelection | ( | ) | const |
Definition at line 43 of file toolsmodel.cpp.
Referenced by CMainWindow::CanUndo(), CMainWindow::OnCommand(), CMainWindow::OnInitMenuPopup(), and CCanvasWindow::OnMouseMove().
Definition at line 102 of file toolsmodel.cpp.
Referenced by AirBrushTool::OnSpecialTweak().
Definition at line 84 of file toolsmodel.cpp.
Referenced by TwoPointDrawTool::OnSpecialTweak(), BezierTool::OnSpecialTweak(), and ShapeTool::OnSpecialTweak().
Definition at line 108 of file toolsmodel.cpp.
Referenced by RubberTool::OnSpecialTweak().
void ToolsModel::NotifyToolChanged | ( | ) |
Definition at line 230 of file toolsmodel.cpp.
Referenced by CFontsDialog::OnCommand(), CFontsDialog::OnFontName(), CFontsDialog::OnFontSize(), and SetActiveTool().
void ToolsModel::NotifyToolSettingsChanged | ( | ) |
Definition at line 242 of file toolsmodel.cpp.
Referenced by SetAirBrushWidth(), SetBackgroundTransparent(), SetBrushStyle(), SetBrushWidth(), SetLineWidth(), SetPenWidth(), SetRubberRadius(), and SetShapeStyle().
void ToolsModel::NotifyZoomChanged | ( | ) |
Definition at line 260 of file toolsmodel.cpp.
Referenced by CCanvasWindow::OnLRButtonDblClk(), CCanvasWindow::OnLRButtonDown(), and selectAll().
Definition at line 280 of file toolsmodel.cpp.
Referenced by CCanvasWindow::OnLRButtonUp(), and selectAll().
void ToolsModel::OnCancelDraw | ( | ) |
Definition at line 291 of file toolsmodel.cpp.
Referenced by CCanvasWindow::cancelDrawing(), CTextEditWindow::OnKeyDown(), and CCanvasWindow::OnLRButtonDown().
Definition at line 312 of file toolsmodel.cpp.
Referenced by CCanvasWindow::DoDraw().
Definition at line 307 of file toolsmodel.cpp.
Referenced by CCanvasWindow::DoDraw(), and SelectionModel::Landing().
void ToolsModel::OnFinishDraw | ( | ) |
Definition at line 299 of file toolsmodel.cpp.
Referenced by CCanvasWindow::finishDrawing(), CCanvasWindow::OnLRButtonDown(), and SetActiveTool().
Definition at line 269 of file toolsmodel.cpp.
Referenced by CCanvasWindow::OnMouseMove(), and selectAll().
void ToolsModel::resetTool | ( | ) |
Definition at line 317 of file toolsmodel.cpp.
Referenced by CCanvasWindow::OnLRButtonDblClk(), CCanvasWindow::OnLRButtonDown(), CCanvasWindow::OnLRButtonUp(), and CToolBox::OnToolsModelToolChanged().
void ToolsModel::selectAll | ( | ) |
Definition at line 322 of file toolsmodel.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 146 of file toolsmodel.cpp.
Referenced by CMainWindow::InsertSelectionFromHBITMAP(), ColorTool::OnButtonUp(), CToolBox::OnCommand(), and selectAll().
Definition at line 190 of file toolsmodel.cpp.
Referenced by MakeAirBrushThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 212 of file toolsmodel.cpp.
Referenced by CMainWindow::OnCommand(), and CToolSettingsWindow::OnLButtonDown().
void ToolsModel::SetBrushStyle | ( | BrushStyle | nBrushStyle | ) |
Definition at line 130 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::OnLButtonDown().
Definition at line 77 of file toolsmodel.cpp.
Referenced by MakeBrushThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 53 of file toolsmodel.cpp.
Referenced by MakeLineThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 65 of file toolsmodel.cpp.
Referenced by MakePenThickerOrThinner().
Definition at line 201 of file toolsmodel.cpp.
Referenced by MakeRubberThickerOrThinner(), and CToolSettingsWindow::OnLButtonDown().
Definition at line 119 of file toolsmodel.cpp.
Referenced by CToolSettingsWindow::OnLButtonDown().
Definition at line 224 of file toolsmodel.cpp.
Referenced by zoomTo().
|
private |
Definition at line 82 of file toolsmodel.h.
Referenced by GetActiveTool(), NotifyToolChanged(), SetActiveTool(), and ToolsModel().
|
private |
Definition at line 84 of file toolsmodel.h.
Referenced by GetAirBrushWidth(), SetAirBrushWidth(), and ToolsModel().
|
private |
Definition at line 81 of file toolsmodel.h.
Referenced by GetBrushStyle(), SetBrushStyle(), and ToolsModel().
|
private |
Definition at line 79 of file toolsmodel.h.
Referenced by GetBrushWidth(), SetBrushWidth(), and ToolsModel().
|
private |
Definition at line 77 of file toolsmodel.h.
Referenced by GetLineWidth(), SetLineWidth(), and ToolsModel().
|
private |
Definition at line 83 of file toolsmodel.h.
Referenced by GetOldActiveTool(), SetActiveTool(), and ToolsModel().
|
private |
Definition at line 78 of file toolsmodel.h.
Referenced by GetPenWidth(), SetPenWidth(), and ToolsModel().
|
private |
Definition at line 89 of file toolsmodel.h.
Referenced by OnButtonDown(), OnButtonUp(), OnCancelDraw(), OnDrawOverlayOnCanvas(), OnDrawOverlayOnImage(), OnFinishDraw(), OnMouseMove(), resetTool(), SetActiveTool(), SpecialTweak(), and ToolsModel().
|
private |
Definition at line 85 of file toolsmodel.h.
Referenced by GetRubberRadius(), SetRubberRadius(), and ToolsModel().
|
private |
Definition at line 80 of file toolsmodel.h.
Referenced by GetShapeStyle(), SetShapeStyle(), and ToolsModel().
Definition at line 88 of file toolsmodel.h.
Referenced by GetOrCreateTool(), ToolsModel(), and ~ToolsModel().
|
private |
Definition at line 86 of file toolsmodel.h.
Referenced by IsBackgroundTransparent(), SetBackgroundTransparent(), and ToolsModel().
|
private |
Definition at line 87 of file toolsmodel.h.
Referenced by GetZoom(), SetZoom(), and ToolsModel().