|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <history.h>

Public Member Functions | |
| ImageModel () | |
| virtual | ~ImageModel () |
| HDC | GetDC () |
| BOOL | CanUndo () const |
| BOOL | CanRedo () const |
| void | PushImageForUndo () |
| void | PushImageForUndo (HBITMAP hbm) |
| void | PushImageForUndo (const RECT &rcPartial) |
| void | Undo (BOOL bClearRedo=FALSE) |
| void | Redo (void) |
| void | ClearHistory (void) |
| void | Crop (int nWidth, int nHeight, int nOffsetX=0, int nOffsetY=0) |
| void | SaveImage (LPCWSTR lpFileName) |
| BOOL | IsImageSaved () const |
| void | StretchSkew (int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0) |
| int | GetWidth () const |
| int | GetHeight () const |
| HBITMAP | CopyBitmap () |
| HBITMAP | LockBitmap () |
| void | UnlockBitmap (HBITMAP hbmLocked) |
| void | InvertColors () |
| void | FlipHorizontally () |
| void | FlipVertically () |
| void | RotateNTimes90Degrees (int iN) |
| void | Clamp (POINT &pt) const |
| void | NotifyImageChanged () |
| BOOL | IsBlackAndWhite () |
| void | PushBlackAndWhite () |
Protected Member Functions | |
| void | SwapPart () |
| void | PushDone () |
Protected Attributes | |
| HDC | m_hDrawingDC |
| HBITMAP | m_hbmMaster |
| int | m_currInd |
| int | m_undoSteps |
| int | m_redoSteps |
| IMAGE_PART | m_historyItems [HISTORYSIZE] |
| HGDIOBJ | m_hbmOld |
| ImageModel::ImageModel | ( | ) |
Definition at line 35 of file history.cpp.
|
virtual |
Definition at line 49 of file history.cpp.
|
inline |
|
inline |
Definition at line 317 of file history.cpp.
Referenced by SelectionBaseTool::OnButtonDown(), SelectionBaseTool::OnButtonUp(), TextTool::OnButtonUp(), SelectionBaseTool::OnMouseMove(), and TextTool::UpdatePoint().
Definition at line 116 of file history.cpp.
Referenced by Crop(), DoLoadImageFile(), InitializeImage(), CMainWindow::OnCommand(), CCanvasWindow::OnPaint(), PushImageForUndo(), SetBitmapAndInfo(), and ~ImageModel().
| HBITMAP ImageModel::CopyBitmap | ( | ) |
Definition at line 193 of file history.cpp.
Referenced by CMainWindow::InsertSelectionFromHBITMAP(), CCanvasWindow::OnButtonUp(), and CMainWindow::OnCommand().
| void ImageModel::FlipHorizontally | ( | ) |
Definition at line 279 of file history.cpp.
Referenced by CMainWindow::OnCommand().
| void ImageModel::FlipVertically | ( | ) |
Definition at line 287 of file history.cpp.
Referenced by CMainWindow::OnCommand().
| HDC ImageModel::GetDC | ( | ) |
Definition at line 274 of file history.cpp.
Referenced by ToolBase::beginEvent(), SelectionModel::DeleteSelection(), CCanvasWindow::DoDraw(), FlipHorizontally(), FlipVertically(), SelectionModel::Landing(), SelectionBaseTool::OnButtonDown(), SelectionBaseTool::OnButtonUp(), CMainWindow::OnCommand(), SelectionBaseTool::OnMouseMove(), CFullscreenWindow::OnPaint(), and CMiniatureWindow::OnPaint().
| int ImageModel::GetHeight | ( | ) | const |
Definition at line 261 of file history.cpp.
Referenced by Clamp(), Crop(), CCanvasWindow::DoDraw(), ToolsModel::DrawWithMouseTool(), ColorTool::fetchColor(), FlipHorizontally(), FlipVertically(), CCanvasWindow::GetImageRect(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CCanvasWindow::OnButtonUp(), CMainWindow::OnCommand(), CAttributesDialog::OnDefault(), CAttributesDialog::OnInitDialog(), CCanvasWindow::OnMouseMove(), CFullscreenWindow::OnPaint(), CMiniatureWindow::OnPaint(), PushImageForUndo(), RotateNTimes90Degrees(), ToolsModel::selectAll(), RegistrySettings::Store(), StretchSkew(), and CCanvasWindow::updateScrollRange().
| int ImageModel::GetWidth | ( | ) | const |
Definition at line 256 of file history.cpp.
Referenced by Clamp(), Crop(), CCanvasWindow::DoDraw(), ToolsModel::DrawWithMouseTool(), ColorTool::fetchColor(), FlipHorizontally(), FlipVertically(), CCanvasWindow::GetImageRect(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CCanvasWindow::OnButtonUp(), CMainWindow::OnCommand(), CAttributesDialog::OnDefault(), CAttributesDialog::OnInitDialog(), CCanvasWindow::OnMouseMove(), CFullscreenWindow::OnPaint(), CMiniatureWindow::OnPaint(), PushImageForUndo(), RotateNTimes90Degrees(), ToolsModel::selectAll(), RegistrySettings::Store(), StretchSkew(), and CCanvasWindow::updateScrollRange().
| void ImageModel::InvertColors | ( | ) |
Definition at line 266 of file history.cpp.
Referenced by CMainWindow::OnCommand().
| BOOL ImageModel::IsBlackAndWhite | ( | ) |
Definition at line 331 of file history.cpp.
Referenced by CMainWindow::OnCommand(), and CAttributesDialog::OnInitDialog().
| BOOL ImageModel::IsImageSaved | ( | ) | const |
Definition at line 227 of file history.cpp.
Referenced by CMainWindow::ConfirmSave(), and OpenMailer().
| HBITMAP ImageModel::LockBitmap | ( | ) |
Definition at line 348 of file history.cpp.
Referenced by CopyBitmap(), Crop(), SelectionModel::GetSelectionContents(), IsBlackAndWhite(), OpenMailer(), PushBlackAndWhite(), PushImageForUndo(), RegistrySettings::SetWallpaper(), and SwapPart().
| void ImageModel::NotifyImageChanged | ( | ) |
Definition at line 23 of file history.cpp.
Referenced by Crop(), FlipHorizontally(), FlipVertically(), SelectionModel::HideSelection(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), SelectionModel::Landing(), SelectionModel::NotifyContentChanged(), TwoPointDrawTool::OnButtonDown(), SmoothDrawTool::OnButtonDown(), SelectionBaseTool::OnButtonDown(), BezierTool::OnButtonDown(), ShapeTool::OnButtonDown(), TwoPointDrawTool::OnButtonUp(), SmoothDrawTool::OnButtonUp(), SelectionBaseTool::OnButtonUp(), BezierTool::OnButtonUp(), ShapeTool::OnButtonUp(), CMainWindow::OnCommand(), ToolBase::OnEndDraw(), TwoPointDrawTool::OnMouseMove(), SmoothDrawTool::OnMouseMove(), SelectionBaseTool::OnMouseMove(), BezierTool::OnMouseMove(), ShapeTool::OnMouseMove(), CCanvasWindow::OnPaletteModelColorChanged(), PushDone(), Redo(), RotateNTimes90Degrees(), ToolsModel::SetBackgroundTransparent(), ToolsModel::SetBrushWidth(), ToolsModel::SetLineWidth(), ToolsModel::SetPenWidth(), SelectionModel::StretchSelection(), StretchSkew(), SelectionModel::TakeOff(), Undo(), and TextTool::UpdatePoint().
| void ImageModel::PushBlackAndWhite | ( | ) |
Definition at line 339 of file history.cpp.
Referenced by CMainWindow::OnCommand().
|
protected |
Definition at line 181 of file history.cpp.
Referenced by PushImageForUndo().
| void ImageModel::PushImageForUndo | ( | ) |
Definition at line 127 of file history.cpp.
Referenced by Crop(), SelectionModel::DeleteSelection(), FlipHorizontally(), FlipVertically(), InvertColors(), SelectionModel::Landing(), SelectionBaseTool::OnButtonDown(), FillTool::OnButtonDown(), TwoPointDrawTool::OnButtonUp(), SmoothDrawTool::OnButtonUp(), TextTool::OnButtonUp(), CMainWindow::OnCommand(), TextTool::OnEndDraw(), BezierTool::OnEndDraw(), ShapeTool::OnEndDraw(), PushBlackAndWhite(), PushImageForUndo(), RotateNTimes90Degrees(), SetBitmapAndInfo(), and StretchSkew().
Definition at line 160 of file history.cpp.
Definition at line 140 of file history.cpp.
Definition at line 96 of file history.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 295 of file history.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 222 of file history.cpp.
Referenced by CMainWindow::saveImage().
| void ImageModel::StretchSkew | ( | int | nStretchPercentX, |
| int | nStretchPercentY, | ||
| int | nSkewDegX = 0, |
||
| int | nSkewDegY = 0 |
||
| ) |
Definition at line 232 of file history.cpp.
Referenced by CMainWindow::OnCommand().
|
protected |
Definition at line 57 of file history.cpp.
Definition at line 74 of file history.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 357 of file history.cpp.
Referenced by CopyBitmap(), Crop(), SelectionModel::GetSelectionContents(), IsBlackAndWhite(), OpenMailer(), PushBlackAndWhite(), PushImageForUndo(), RegistrySettings::SetWallpaper(), and SwapPart().
|
protected |
Definition at line 58 of file history.h.
Referenced by PushDone(), PushImageForUndo(), Redo(), SwapPart(), and Undo().
|
protected |
Definition at line 57 of file history.h.
Referenced by GetHeight(), GetWidth(), ImageModel(), LockBitmap(), PushImageForUndo(), Redo(), SaveImage(), StretchSkew(), SwapPart(), Undo(), UnlockBitmap(), and ~ImageModel().
|
protected |
Definition at line 62 of file history.h.
Referenced by ImageModel(), LockBitmap(), UnlockBitmap(), and ~ImageModel().
|
protected |
Definition at line 56 of file history.h.
Referenced by FlipHorizontally(), FlipVertically(), GetDC(), ImageModel(), InvertColors(), LockBitmap(), PushImageForUndo(), Redo(), RotateNTimes90Degrees(), StretchSkew(), Undo(), UnlockBitmap(), and ~ImageModel().
|
protected |
Definition at line 61 of file history.h.
Referenced by ClearHistory(), ImageModel(), PushImageForUndo(), and SwapPart().
|
protected |
Definition at line 60 of file history.h.
Referenced by CanRedo(), ClearHistory(), PushDone(), Redo(), and Undo().
|
protected |
Definition at line 59 of file history.h.
Referenced by CanUndo(), ClearHistory(), PushDone(), Redo(), and Undo().