ReactOS
0.4.15-dev-1619-g69dffed
|
#include <history.h>
Public Member Functions | |
ImageModel () | |
void | CopyPrevious (void) |
void | Undo (void) |
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 () |
BOOL | HasUndoSteps () |
BOOL | HasRedoSteps () |
void | StretchSkew (int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0) |
int | GetWidth () |
int | GetHeight () |
void | InvertColors () |
void | Clear (COLORREF color=0x00ffffff) |
HDC | GetDC () |
void | FlipHorizontally () |
void | FlipVertically () |
void | RotateNTimes90Degrees (int iN) |
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 25 of file history.cpp.
Definition at line 212 of file history.cpp.
Definition at line 45 of file history.cpp.
Referenced by endPaintingL(), FlipHorizontally(), FlipVertically(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CMainWindow::OnCommand(), RotateNTimes90Degrees(), startPaintingL(), startPaintingR(), and whilePaintingL().
Definition at line 124 of file history.cpp.
Referenced by _tWinMain(), CMainWindow::InsertSelectionFromHBITMAP(), CMainWindow::OnCommand(), and CSizeboxWindow::OnLButtonUp().
void ImageModel::FlipHorizontally | ( | ) |
Definition at line 223 of file history.cpp.
Referenced by CMainWindow::OnCommand().
void ImageModel::FlipVertically | ( | ) |
Definition at line 231 of file history.cpp.
Referenced by CMainWindow::OnCommand().
HDC ImageModel::GetDC | ( | ) |
Definition at line 218 of file history.cpp.
Referenced by CImgAreaWindow::cancelDrawing(), FlipHorizontally(), FlipVertically(), CMainWindow::OnCommand(), CImgAreaWindow::OnLButtonDown(), CImgAreaWindow::OnLButtonUp(), CSelectionWindow::OnMouseMove(), CImgAreaWindow::OnMouseMove(), CMiniatureWindow::OnPaint(), CFullscreenWindow::OnPaint(), CImgAreaWindow::OnPaint(), CImgAreaWindow::OnRButtonDown(), CImgAreaWindow::OnRButtonUp(), and RotateNTimes90Degrees().
int ImageModel::GetHeight | ( | ) |
Definition at line 199 of file history.cpp.
Referenced by _tWinMain(), Clear(), Crop(), FlipHorizontally(), FlipVertically(), Insert(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CMainWindow::OnCommand(), CAttributesDialog::OnDefault(), CScrollboxWindow::OnHScroll(), CAttributesDialog::OnInitDialog(), CSizeboxWindow::OnLButtonUp(), CSizeboxWindow::OnMouseMove(), CImgAreaWindow::OnMouseMove(), CMiniatureWindow::OnPaint(), CFullscreenWindow::OnPaint(), CImgAreaWindow::OnPaint(), CImgAreaWindow::OnSize(), CScrollboxWindow::OnVScroll(), Redo(), RotateNTimes90Degrees(), StretchSkew(), Undo(), updateCanvasAndScrollbars(), whilePaintingL(), and zoomTo().
int ImageModel::GetWidth | ( | ) |
Definition at line 194 of file history.cpp.
Referenced by _tWinMain(), Clear(), Crop(), FlipHorizontally(), FlipVertically(), Insert(), CMainWindow::InsertSelectionFromHBITMAP(), InvertColors(), CMainWindow::OnCommand(), CAttributesDialog::OnDefault(), CScrollboxWindow::OnHScroll(), CAttributesDialog::OnInitDialog(), CSizeboxWindow::OnLButtonUp(), CSizeboxWindow::OnMouseMove(), CImgAreaWindow::OnMouseMove(), CMiniatureWindow::OnPaint(), CFullscreenWindow::OnPaint(), CImgAreaWindow::OnPaint(), CImgAreaWindow::OnSize(), CScrollboxWindow::OnVScroll(), Redo(), RotateNTimes90Degrees(), StretchSkew(), Undo(), updateCanvasAndScrollbars(), whilePaintingL(), and zoomTo().
BOOL ImageModel::HasRedoSteps | ( | ) |
Definition at line 177 of file history.cpp.
Referenced by CMainWindow::OnInitMenuPopup().
BOOL ImageModel::HasUndoSteps | ( | ) |
Definition at line 172 of file history.cpp.
Referenced by CMainWindow::OnInitMenuPopup().
Definition at line 108 of file history.cpp.
Referenced by CMainWindow::OnCommand(), SetBitmapAndInfo(), and StretchSkew().
void ImageModel::InvertColors | ( | ) |
Definition at line 204 of file history.cpp.
Referenced by CMainWindow::OnCommand().
BOOL ImageModel::IsImageSaved | ( | ) |
Definition at line 167 of file history.cpp.
Referenced by CMainWindow::ConfirmSave().
|
private |
Definition at line 15 of file history.cpp.
Referenced by Crop(), Insert(), Redo(), StretchSkew(), and Undo().
|
private |
Definition at line 20 of file history.cpp.
Referenced by Clear(), Crop(), FlipHorizontally(), FlipVertically(), Insert(), InvertColors(), Redo(), ResetToPrevious(), RotateNTimes90Degrees(), StretchSkew(), and Undo().
Definition at line 93 of file history.cpp.
Referenced by SelectionModel::CalculateBoundingBoxAndContents(), CImgAreaWindow::cancelDrawing(), endPaintingL(), endPaintingR(), CSelectionWindow::OnMouseMove(), whilePaintingL(), and whilePaintingR().
Definition at line 239 of file history.cpp.
Referenced by CMainWindow::OnCommand().
void ImageModel::StretchSkew | ( | int | nStretchPercentX, |
int | nStretchPercentY, | ||
int | nSkewDegX = 0 , |
||
int | nSkewDegY = 0 |
||
) |
Definition at line 182 of file history.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 57 of file history.cpp.
Referenced by CImgAreaWindow::cancelDrawing(), CSelectionWindow::OnCaptureChanged(), CMainWindow::OnCommand(), CImgAreaWindow::OnLButtonDown(), and CImgAreaWindow::OnRButtonDown().
|
private |
Definition at line 20 of file history.h.
Referenced by CopyPrevious(), Crop(), GetHeight(), GetWidth(), ImageModel(), Insert(), Redo(), ResetToPrevious(), SaveImage(), StretchSkew(), and Undo().
HBITMAP ImageModel::hBms[HISTORYSIZE] |
Definition at line 18 of file history.h.
Referenced by CopyPrevious(), Crop(), GetHeight(), GetWidth(), ImageModel(), Insert(), Redo(), ResetToPrevious(), SaveImage(), StretchSkew(), and Undo().
|
private |
Definition at line 16 of file history.h.
Referenced by Clear(), CopyPrevious(), Crop(), FlipHorizontally(), FlipVertically(), GetDC(), ImageModel(), Insert(), InvertColors(), Redo(), ResetToPrevious(), RotateNTimes90Degrees(), SaveImage(), and Undo().
|
private |
Definition at line 22 of file history.h.
Referenced by ClearHistory(), CopyPrevious(), Crop(), HasRedoSteps(), ImageModel(), Insert(), Redo(), and Undo().
|
private |
Definition at line 21 of file history.h.
Referenced by ClearHistory(), CopyPrevious(), Crop(), HasUndoSteps(), ImageModel(), Insert(), Redo(), and Undo().