From d0ef881a5340237be471f26caabdf9900f03ca3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Tue, 31 Oct 2017 12:03:37 +0100 Subject: [PATCH] refactoring: make BOARD_COMMIT independent from pcbnew --- pcbnew/board_commit.cpp | 2 +- pcbnew/board_commit.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index dcb504b4e4..95c5de5c33 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -44,7 +44,7 @@ BOARD_COMMIT::BOARD_COMMIT( PCB_TOOL* aTool ) } -BOARD_COMMIT::BOARD_COMMIT( PCB_BASE_FRAME* aFrame ) +BOARD_COMMIT::BOARD_COMMIT( EDA_DRAW_FRAME* aFrame ) { m_toolMgr = aFrame->GetToolManager(); m_editModules = aFrame->IsType( FRAME_PCB_MODULE_EDITOR ); diff --git a/pcbnew/board_commit.h b/pcbnew/board_commit.h index 197bbfbbea..fea964d298 100644 --- a/pcbnew/board_commit.h +++ b/pcbnew/board_commit.h @@ -30,14 +30,16 @@ class BOARD_ITEM; class PICKED_ITEMS_LIST; class PCB_TOOL; -class PCB_BASE_FRAME; class TOOL_MANAGER; +class EDA_DRAW_FRAME; +class TOOL_BASE; class BOARD_COMMIT : public COMMIT { public: - BOARD_COMMIT( PCB_TOOL* aTool ); - BOARD_COMMIT( PCB_BASE_FRAME* aFrame ); + BOARD_COMMIT( EDA_DRAW_FRAME* aFrame ); + BOARD_COMMIT( PCB_TOOL *aTool ); + virtual ~BOARD_COMMIT(); virtual void Push( const wxString& aMessage = wxT( "A commit" ), bool aCreateUndoEntry = true ) override;