Move the dock art provider to a pointer instance
This commit is contained in:
parent
496532b6ea
commit
a5c9151800
|
@ -47,6 +47,7 @@
|
||||||
#include <trace_helpers.h>
|
#include <trace_helpers.h>
|
||||||
#include <widgets/paged_dialog.h>
|
#include <widgets/paged_dialog.h>
|
||||||
#include <widgets/infobar.h>
|
#include <widgets/infobar.h>
|
||||||
|
#include <widgets/wx_aui_dock_art.h>
|
||||||
#include <wx/display.h>
|
#include <wx/display.h>
|
||||||
#include <wx/stdpaths.h>
|
#include <wx/stdpaths.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
|
@ -96,7 +97,7 @@ EDA_BASE_FRAME::EDA_BASE_FRAME( wxWindow* aParent, FRAME_T aFrameType,
|
||||||
m_mruPath = wxStandardPaths::Get().GetDocumentsDir();
|
m_mruPath = wxStandardPaths::Get().GetDocumentsDir();
|
||||||
m_FrameSize = wxSize( s_minsize_x, s_minsize_y );
|
m_FrameSize = wxSize( s_minsize_x, s_minsize_y );
|
||||||
|
|
||||||
m_auimgr.SetArtProvider( &m_auiDockArt );
|
m_auimgr.SetArtProvider( new WX_AUI_DOCK_ART() );
|
||||||
|
|
||||||
m_settingsManager = &Pgm().GetSettingsManager();
|
m_settingsManager = &Pgm().GetSettingsManager();
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
#include <kiway_holder.h>
|
#include <kiway_holder.h>
|
||||||
#include <tool/tools_holder.h>
|
#include <tool/tools_holder.h>
|
||||||
#include <widgets/ui_common.h>
|
#include <widgets/ui_common.h>
|
||||||
#include <widgets/wx_aui_dock_art.h>
|
|
||||||
#include <undo_redo_container.h>
|
#include <undo_redo_container.h>
|
||||||
|
|
||||||
// Option for main frames
|
// Option for main frames
|
||||||
|
@ -136,7 +135,6 @@ protected:
|
||||||
|
|
||||||
wxString m_AboutTitle; // Name of program displayed in About.
|
wxString m_AboutTitle; // Name of program displayed in About.
|
||||||
|
|
||||||
WX_AUI_DOCK_ART m_auiDockArt; // Our custom dock art provider we feed to the aui manager
|
|
||||||
wxAuiManager m_auimgr;
|
wxAuiManager m_auimgr;
|
||||||
wxString m_perspective; // wxAuiManager perspective.
|
wxString m_perspective; // wxAuiManager perspective.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue