https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fa4c3bd560802d4e7d4553...
commit fa4c3bd560802d4e7d4553c4625dbaf404086aed Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Tue Jun 13 18:24:42 2023 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Tue Jun 13 18:24:42 2023 +0900
[MSPAINT] s/HasUndoSteps/CanUndo/ and s/HasRedoSteps/CanRedo/
CORE-18867 --- base/applications/mspaint/history.cpp | 4 ++-- base/applications/mspaint/history.h | 4 ++-- base/applications/mspaint/winproc.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/base/applications/mspaint/history.cpp b/base/applications/mspaint/history.cpp index 5be421fdfa0..4220bae84bd 100644 --- a/base/applications/mspaint/history.cpp +++ b/base/applications/mspaint/history.cpp @@ -176,12 +176,12 @@ BOOL ImageModel::IsImageSaved() const return imageSaved; }
-BOOL ImageModel::HasUndoSteps() const +BOOL ImageModel::CanUndo() const { return undoSteps > 0; }
-BOOL ImageModel::HasRedoSteps() const +BOOL ImageModel::CanRedo() const { return redoSteps > 0; } diff --git a/base/applications/mspaint/history.h b/base/applications/mspaint/history.h index 40792f8d661..d7a65f9e892 100644 --- a/base/applications/mspaint/history.h +++ b/base/applications/mspaint/history.h @@ -34,8 +34,8 @@ public: 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; + BOOL CanUndo() const; + BOOL CanRedo() const; void StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSkewDegX = 0, int nSkewDegY = 0); int GetWidth() const; int GetHeight() const; diff --git a/base/applications/mspaint/winproc.cpp b/base/applications/mspaint/winproc.cpp index 087c50fd76e..c1deaa155bc 100644 --- a/base/applications/mspaint/winproc.cpp +++ b/base/applications/mspaint/winproc.cpp @@ -431,8 +431,8 @@ LRESULT CMainWindow::OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BO ProcessFileMenu((HMENU)wParam); break; case 1: /* Edit menu */ - EnableMenuItem(menu, IDM_EDITUNDO, ENABLED_IF(imageModel.HasUndoSteps())); - EnableMenuItem(menu, IDM_EDITREDO, ENABLED_IF(imageModel.HasRedoSteps())); + EnableMenuItem(menu, IDM_EDITUNDO, ENABLED_IF(imageModel.CanUndo())); + EnableMenuItem(menu, IDM_EDITREDO, ENABLED_IF(imageModel.CanRedo())); EnableMenuItem(menu, IDM_EDITCUT, ENABLED_IF(trueSelection)); EnableMenuItem(menu, IDM_EDITCOPY, ENABLED_IF(trueSelection)); EnableMenuItem(menu, IDM_EDITDELETESELECTION, ENABLED_IF(trueSelection));