27#include <wx/popupwin.h>
28#include <wx/cmdline.h>
73 PROF_TIMER cntConnectivity(
"connectivity-build" );
75 cntConnectivity.
Stop();
86#ifdef USE_TOOL_MANAGER
104 BOARD* brd =
nullptr;
108 brd = pi->
LoadBoard( wxString( filename.c_str() ),
nullptr,
nullptr );
112 wxPrintf(
"Board Loading Error: '%s'\n", ioe.
Problem() );
135 m_galPanel = std::make_shared<PCB_DRAW_PANEL_GAL>( aParent, -1, wxPoint( 0, 0 ),
147 gal->SetGridVisibility(
true );
148 gal->SetGridSize(
VECTOR2D( 100000.0, 100000.0 ) );
149 gal->SetGridOrigin(
VECTOR2D( 0.0, 0.0 ) );
154 m_galPanel->GetViewControls()->ShowCursor(
true );
156#ifdef USE_TOOL_MANAGER
160 m_toolManager = std::make_unique<TOOL_MANAGER>( );
162 m_galPanel->GetViewControls(), cfg,
nullptr );
164 m_pcbActions = std::make_unique<TEST_ACTIONS>( );
165 m_toolDispatcher = std::make_unique<TOOL_DISPATCHER>( m_toolManager.get() );
170 m_toolManager->InitTools();
171 m_toolManager->InvokeTool(
"test.DefaultTool" );
Gather all the actions that are shared by tools.
Information pertinent to a Pcbnew printed circuit board.
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
double GetScaleFactor() const override
Get the DPI scale from all known sources in order:
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
virtual const wxString Problem() const
what was the problem?
virtual void Load()
Updates the parameters of this object based on the current JSON document contents.
OPENGL_ANTIALIASING_MODE gl_antialiasing_mode
A PLUGIN derivation for saving and loading Pcbnew s-expression formatted files.
std::shared_ptr< BOARD > m_board
std::shared_ptr< PCB_DRAW_PANEL_GAL > m_galPanel
void createView(wxWindow *aParent, PCB_DRAW_PANEL_GAL::GAL_TYPE aGalType=PCB_DRAW_PANEL_GAL::GAL_TYPE_OPENGL)
virtual void SetBoard(std::shared_ptr< BOARD > b)
virtual void createUserTools()
virtual ~PCB_TEST_FRAME_BASE()
KIGFX::GAL_DISPLAY_OPTIONS m_displayOptions
virtual BOARD * LoadAndDisplayBoard(const std::string &filename)
Releases a PLUGIN in the context of a potential thrown exception through its destructor.
virtual BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const STRING_UTF8_MAP *aProperties=nullptr, PROJECT *aProject=nullptr, PROGRESS_REPORTER *aProgressReporter=nullptr)
Load information from some input file format that this PLUGIN implementation knows about into either ...
A small class to help profiling.
void Stop()
Save the time when this function was called, and set the counter stane to stop.
T * GetAppSettings()
Returns a handle to the a given settings by type If the settings have already been loaded,...
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
T * RegisterSettings(T *aSettings, bool aLoadNow=true)
Takes ownership of the pointer passed in.
const wxChar *const traceGalProfile
Flag to enable debug output of GAL performance profiling.
The Cairo implementation of the graphics abstraction layer.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
wxLogTrace helper definitions.
#define KI_TRACE(aWhat,...)
VECTOR2< double > VECTOR2D
WX_VIEW_CONTROLS class definition.