Move forceColorsToLegacy() to EDA_DRAW_FRAME as virtual method

This commit is contained in:
Jon Evans 2017-09-17 18:38:18 -04:00 committed by Maciej Suminski
parent 77bf22359e
commit 460b1e8540
2 changed files with 8 additions and 5 deletions

View File

@ -148,6 +148,12 @@ protected:
*/ */
virtual void unitsChangeRefresh(); virtual void unitsChangeRefresh();
/**
* Helper function to coerce all colors to legacy-compatible when
* switching from GAL to legacy canvas
*/
virtual void forceColorsToLegacy() {}
/** /**
* Function GeneralControlKeyMovement * Function GeneralControlKeyMovement
* Handle the common part of GeneralControl dedicated to global * Handle the common part of GeneralControl dedicated to global

View File

@ -123,11 +123,8 @@ protected:
*/ */
virtual void SwitchCanvas( wxCommandEvent& aEvent ) override; virtual void SwitchCanvas( wxCommandEvent& aEvent ) override;
/** ///> @copydoc EDA_DRAW_FRAME::forceColorsToLegacy()
* Helper function to coerce all colors to legacy-compatible when virtual void forceColorsToLegacy() override;
* switching from GAL to legacy canvas
*/
void forceColorsToLegacy();
#if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU) #if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU)
/** /**