ReactOS 0.4.15-dev-5836-g942b022
|
#include <history.h>
Public Member Functions | |
ImageModel () | |
void | CopyPrevious (void) |
void | Undo (BOOL bClearRedo=FALSE) |
void | Redo (void) |
void | ResetToPrevious (void) |
void | ClearHistory (void) |
void | Insert (HBITMAP hbm) |
void | Crop (int nWidth, int nHeight, int nOffsetX=0, int nOffsetY=0) |
void | SaveImage (LPTSTR lpFileName) |
BOOL | IsImageSaved () const |
BOOL | HasUndoSteps () const |
BOOL | HasRedoSteps () const |
void | StretchSkew (int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0) |
int | GetWidth () const |
int | GetHeight () const |
void | InvertColors () |
void | Clear (COLORREF color=0x00ffffff) |
HDC | GetDC () |
void | FlipHorizontally () |
void | FlipVertically () |
void | RotateNTimes90Degrees (int iN) |
void | DrawSelectionBackground (COLORREF rgbBG) |
void | DeleteSelection () |
void | Bound (POINT &pt) |
Public Attributes | |
HBITMAP | hBms [HISTORYSIZE] |
Private Member Functions | |
void | NotifyDimensionsChanged () |
void | NotifyImageChanged () |
Private Attributes | |
HDC | hDrawingDC |
int | currInd |
int | undoSteps |
int | redoSteps |
ImageModel::ImageModel | ( | ) |
Definition at line 27 of file history.cpp.
Definition at line 305 of file history.cpp.
Referenced by FreeSelTool::OnMouseMove(), RectSelTool::OnMouseMove(), and TextTool::UpdatePoint().
Definition at line 233 of file history.cpp.
Definition at line 109 of file history.cpp.
Referenced by _tWinMain(), and SetBitmapAndInfo().
Definition at line 47 of file history.cpp.
Referenced by DeleteSelection(), FlipHorizontally(), FlipVertically(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), FreeSelTool::OnButtonDown(), RectSelTool::OnButtonDown(), GenericDrawTool::OnButtonDown(), FillTool::OnButtonDown(), ZoomTool::OnButtonDown(), TextTool::OnButtonDown(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), TextTool::OnButtonUp(), CMainWindow::OnCommand(), CSelectionWindow::OnLButtonUp(), RotateNTimes90Degrees(), SelectionModel::RotateNTimes90Degrees(), and SelectionModel::StretchSkew().
Definition at line 131 of file history.cpp.
Referenced by _tWinMain(), CMainWindow::InsertSelectionFromHBITMAP(), CMainWindow::OnCommand(), and CCanvasWindow::OnLButtonUp().
void ImageModel::DeleteSelection | ( | ) |
Definition at line 293 of file history.cpp.
Referenced by CMainWindow::OnCommand(), SelectionModel::RotateNTimes90Degrees(), and SelectionModel::StretchSkew().
Definition at line 285 of file history.cpp.
Referenced by DeleteSelection(), CSelectionWindow::ForceRefreshSelectionContents(), CSelectionWindow::OnLButtonUp(), and CSelectionWindow::OnMouseMove().
void ImageModel::FlipHorizontally | ( | ) |
Definition at line 244 of file history.cpp.
Referenced by CMainWindow::OnCommand().
void ImageModel::FlipVertically | ( | ) |
Definition at line 252 of file history.cpp.
Referenced by CMainWindow::OnCommand().
HDC ImageModel::GetDC | ( | ) |
Definition at line 239 of file history.cpp.
Referenced by ToolBase::beginEvent(), FlipHorizontally(), FlipVertically(), CSelectionWindow::ForceRefreshSelectionContents(), CMainWindow::OnCommand(), CSelectionWindow::OnMouseMove(), CFullscreenWindow::OnPaint(), CImgAreaWindow::OnPaint(), CMiniatureWindow::OnPaint(), and RotateNTimes90Degrees().
int ImageModel::GetHeight | ( | ) | const |
Definition at line 220 of file history.cpp.
Referenced by _tWinMain(), Bound(), Clear(), Crop(), ColorTool::fetchColor(), FlipHorizontally(), FlipVertically(), CCanvasWindow::GetBaseRect(), Insert(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CMainWindow::OnCommand(), CAttributesDialog::OnDefault(), CAttributesDialog::OnInitDialog(), CCanvasWindow::OnLButtonUp(), CCanvasWindow::OnMouseMove(), CImgAreaWindow::OnMouseMove(), CFullscreenWindow::OnPaint(), CImgAreaWindow::OnPaint(), CMiniatureWindow::OnPaint(), Redo(), RotateNTimes90Degrees(), ToolsModel::selectAll(), StretchSkew(), Undo(), CCanvasWindow::Update(), and zoomTo().
int ImageModel::GetWidth | ( | ) | const |
Definition at line 215 of file history.cpp.
Referenced by _tWinMain(), Bound(), Clear(), Crop(), ColorTool::fetchColor(), FlipHorizontally(), FlipVertically(), CCanvasWindow::GetBaseRect(), Insert(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CMainWindow::OnCommand(), CAttributesDialog::OnDefault(), CAttributesDialog::OnInitDialog(), CCanvasWindow::OnLButtonUp(), CCanvasWindow::OnMouseMove(), CImgAreaWindow::OnMouseMove(), CFullscreenWindow::OnPaint(), CImgAreaWindow::OnPaint(), CMiniatureWindow::OnPaint(), Redo(), RotateNTimes90Degrees(), ToolsModel::selectAll(), StretchSkew(), Undo(), CCanvasWindow::Update(), and zoomTo().
BOOL ImageModel::HasRedoSteps | ( | ) | const |
Definition at line 184 of file history.cpp.
Referenced by CMainWindow::OnInitMenuPopup().
BOOL ImageModel::HasUndoSteps | ( | ) | const |
Definition at line 179 of file history.cpp.
Referenced by CMainWindow::OnInitMenuPopup().
Definition at line 115 of file history.cpp.
Referenced by CMainWindow::OnCommand(), SetBitmapAndInfo(), and StretchSkew().
void ImageModel::InvertColors | ( | ) |
Definition at line 225 of file history.cpp.
Referenced by CMainWindow::OnCommand().
BOOL ImageModel::IsImageSaved | ( | ) | const |
Definition at line 174 of file history.cpp.
Referenced by CMainWindow::ConfirmSave().
|
private |
Definition at line 15 of file history.cpp.
Referenced by Crop(), Insert(), Redo(), RotateNTimes90Degrees(), StretchSkew(), and Undo().
|
private |
Definition at line 21 of file history.cpp.
Referenced by Clear(), Crop(), DeleteSelection(), FlipHorizontally(), FlipVertically(), Insert(), InvertColors(), Redo(), ResetToPrevious(), RotateNTimes90Degrees(), StretchSkew(), and Undo().
Definition at line 81 of file history.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 100 of file history.cpp.
Referenced by SelectionModel::CalculateBoundingBoxAndContents(), DeleteSelection(), LineTool::draw(), RectTool::draw(), EllipseTool::draw(), RRectTool::draw(), CSelectionWindow::ForceRefreshSelectionContents(), FreeSelTool::OnButtonUp(), RectSelTool::OnButtonUp(), BezierTool::OnButtonUp(), ShapeTool::OnButtonUp(), BezierTool::OnFinishDraw(), ShapeTool::OnFinishDraw(), FreeSelTool::OnMouseMove(), RectSelTool::OnMouseMove(), BezierTool::OnMouseMove(), ShapeTool::OnMouseMove(), CSelectionWindow::OnMouseMove(), and TextTool::UpdatePoint().
Definition at line 260 of file history.cpp.
Referenced by CMainWindow::OnCommand().
void ImageModel::StretchSkew | ( | int | nStretchPercentX, |
int | nStretchPercentY, | ||
int | nSkewDegX = 0 , |
||
int | nSkewDegY = 0 |
||
) |
Definition at line 189 of file history.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 60 of file history.cpp.
Referenced by FreeSelTool::OnButtonUp(), RectSelTool::OnButtonUp(), TextTool::OnButtonUp(), FreeSelTool::OnCancelDraw(), RectSelTool::OnCancelDraw(), GenericDrawTool::OnCancelDraw(), BezierTool::OnCancelDraw(), ShapeTool::OnCancelDraw(), CMainWindow::OnCommand(), and CSelectionWindow::OnLButtonUp().
|
private |
Definition at line 23 of file history.h.
Referenced by CopyPrevious(), Crop(), GetHeight(), GetWidth(), ImageModel(), Insert(), Redo(), ResetToPrevious(), RotateNTimes90Degrees(), SaveImage(), StretchSkew(), and Undo().
HBITMAP ImageModel::hBms[HISTORYSIZE] |
Definition at line 21 of file history.h.
Referenced by CopyPrevious(), Crop(), GetHeight(), GetWidth(), ImageModel(), Insert(), Redo(), ResetToPrevious(), RotateNTimes90Degrees(), SaveImage(), StretchSkew(), and Undo().
|
private |
Definition at line 19 of file history.h.
Referenced by Clear(), CopyPrevious(), Crop(), DrawSelectionBackground(), FlipHorizontally(), FlipVertically(), GetDC(), ImageModel(), Insert(), InvertColors(), Redo(), ResetToPrevious(), RotateNTimes90Degrees(), SaveImage(), StretchSkew(), and Undo().
|
private |
Definition at line 25 of file history.h.
Referenced by ClearHistory(), CopyPrevious(), Crop(), HasRedoSteps(), ImageModel(), Insert(), Redo(), RotateNTimes90Degrees(), and Undo().
|
private |
Definition at line 24 of file history.h.
Referenced by ClearHistory(), CopyPrevious(), Crop(), HasUndoSteps(), ImageModel(), Insert(), Redo(), RotateNTimes90Degrees(), and Undo().