43 const wxArrayString& aFootprintHistoryList ) :
44 DIALOG_SHIM( aParent, wxID_ANY,
_(
"Choose Footprint" ), wxDefaultPosition, wxDefaultSize,
45 wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ),
47 m_currentCamera( m_trackBallCamera ),
54 wxBoxSizer* m_SizerTop =
new wxBoxSizer( wxVERTICAL );
83 wxBoxSizer* bSizerBottom;
84 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
86 bSizerBottom->Add( 0, 0, 1, 0, 5 );
90 bSizerBottom->Add( separator, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 1 );
96 bSizerBottom->Add(
m_grButton3DView, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 1 );
102 bSizerBottom->Add(
m_grButtonFpView, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 1 );
104 separator =
new BITMAP_BUTTON(
this, wxID_ANY, wxNullBitmap );
106 bSizerBottom->Add( separator, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 1 );
111 SetTitle( GetTitle() + wxString::Format(
_(
" (%d items loaded)" ),
114 wxStdDialogButtonSizer* sdbSizer =
new wxStdDialogButtonSizer();
115 wxButton* okButton =
new wxButton(
this, wxID_OK );
116 wxButton* cancelButton =
new wxButton(
this, wxID_CANCEL );
117 sdbSizer->AddButton( okButton );
118 sdbSizer->AddButton( cancelButton );
121 bSizerBottom->Add( 20, 0, 0, 0, 5 );
122 bSizerBottom->Add( sdbSizer, 0, wxEXPAND | wxALL, 5 );
124 m_SizerTop->Add( bSizerBottom, 0, wxEXPAND, 5 );
125 SetSizer( m_SizerTop );
132 SetMinSize( wxSize( 400, 300 ) );
286 wxLogDebug( wxS(
"Entering DIALOG_FOOTPRINT_CHOOSER::TearDownQuasiModal()" ) );
301 wxLogDebug( wxS(
"Stopping footprint preview panel drawing." ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
#define RANGE_SCALE_3D
This defines the range that all coord will have to be rendered.
bool m_IsPreviewer
true if we're in a 3D preview panel, false for the standard 3D viewer
void SetBoard(BOARD *aBoard) noexcept
Set current board to be rendered.
EDA_3D_VIEWER_SETTINGS * m_Cfg
Container for design settings for a BOARD object.
void SetEnabledLayers(LSET aMask)
Change the bit-mask of enabled layers to aMask.
int GetBoardThickness() const
The full thickness of the board including copper and masks.
BOARD_STACKUP & GetStackupDescriptor()
void SetBoardThickness(int aThickness)
Manage layers needed to make a physical board.
void RemoveAll()
Delete all items in list and clear the list.
void BuildDefaultStackupList(const BOARD_DESIGN_SETTINGS *aSettings, int aActiveCopperLayersCount=0)
Create a default stackup, according to the current BOARD_DESIGN_SETTINGS settings.
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
void SetBoardUse(BOARD_USE aUse)
Set what the board is going to be used for.
void SetProject(PROJECT *aProject, bool aReferenceOnly=false)
Link a board to a given project.
void DeleteAllFootprints()
Remove all footprints from the deque and free the memory associated with them.
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void EndQuasiModal(int retCode)
Implement a canvas based on a wxGLCanvas.
void SetProjectionMode(int aMode)
void SetAnimationEnabled(bool aEnable)
Enable or disable camera animation when switching to a pre-defined view.
void ReloadRequest(BOARD *aBoard=nullptr, S3D_CACHE *aCachePointer=nullptr)
void OnCloseWindow(wxCloseEvent &event)
void SetMovingSpeedMultiplier(int aMultiplier)
Set the camera animation moving speed multiplier option.
void Request_refresh(bool aRedrawImmediately=true)
Schedule a refresh update of the canvas.
void StopDrawing()
Prevent the GAL canvas from further drawing until it is recreated or StartDrawing() is called.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
A logical library item identifier and consists of various portions much like a URI.
bool IsValid() const
Check if this LID_ID is valid.
Model class in the component selector Model-View-Adapter (mediated MVC) architecture.
static LSET FrontMask()
Return a mask holding all technical layers and the external CU layer on front side.
static LSET BackMask()
Return a mask holding all technical layers and the external CU layer on back side.
static const wxGLAttributes GetAttributesList(ANTIALIASING_MODE aAntiAliasingMode, bool aAlpha=false)
Get a list of attributes to pass to wxGLCanvas.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
virtual BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Returns the BOARD_DESIGN_SETTINGS for the open project.
virtual COMMON_SETTINGS * GetCommonSettings() const
virtual SETTINGS_MANAGER & GetSettingsManager() const
static S3D_CACHE * Get3DCacheManager(PROJECT *aProject, bool updateProjDir=false)
Return a pointer to an instance of the 3D cache manager.
T * GetAppSettings(const wxString &aFilename)
Returns a handle to the a given settings by type If the settings have already been loaded,...
PGM_BASE & Pgm()
The global Program "get" accessor.
std::vector< FAB_LAYER_COLOR > dummy
int moving_speed_multiplier
bool use_board_editor_copper_colors
bool show_soldermask_bottom