From cc4d38d347ea5afad47d82b90c9a0bd3996192b2 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 7 Jun 2021 22:55:30 -0400 Subject: [PATCH] Slightly "unhide" the UNDO_REDO_LIST enum --- include/eda_base_frame.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/eda_base_frame.h b/include/eda_base_frame.h index 607a29bb23..d9759e2472 100644 --- a/include/eda_base_frame.h +++ b/include/eda_base_frame.h @@ -98,6 +98,15 @@ wxDECLARE_EVENT( UNITS_CHANGED, wxCommandEvent ); class EDA_BASE_FRAME : public wxFrame, public TOOLS_HOLDER, public KIWAY_HOLDER { public: + /** + * Specifies whether we are interacting with the undo or redo stacks + */ + enum UNDO_REDO_LIST + { + UNDO_LIST, + REDO_LIST + }; + EDA_BASE_FRAME( wxWindow* aParent, FRAME_T aFrameType, const wxString& aTitle, const wxPoint& aPos, const wxSize& aSize, long aStyle, const wxString& aFrameName, KIWAY* aKiway ); @@ -524,7 +533,6 @@ public: * @param aItemCount number of old commands to delete. -1 to remove all old commands * this will empty the list of commands. */ - enum UNDO_REDO_LIST { UNDO_LIST, REDO_LIST }; virtual void ClearUndoORRedoList( UNDO_REDO_LIST aList, int aItemCount = -1 ) { }