33#include <wx/checkbox.h>
45 std::vector<LIB_ID>& aHistoryList ) :
46 WX_PANEL( aParent ), m_frame( aParent )
48 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
57 if( aPreselect && aPreselect->
IsValid() )
60 SetName( wxT(
"Design Blocks" ) );
62 wxBoxSizer* cbSizer =
new wxBoxSizer( wxVERTICAL );
65 m_repeatedPlacement->SetToolTip(
_(
"Place copies of the design block on subsequent clicks." ) );
68 m_placeAsSheet->SetToolTip(
_(
"Place the design block as a new sheet." ) );
71 m_keepAnnotations->SetToolTip(
_(
"Preserve reference designators in the source schematic. "
72 "Otherwise, clear then reannotate according to settings." ) );
84 sizer->Add( cbSizer, 0, wxEXPAND | wxLEFT, 5 );
99 cfg->m_DesignBlockChooserPanel.place_as_sheet =
m_placeAsSheet->GetValue();
110 m_placeAsSheet->SetValue( cfg->m_DesignBlockChooserPanel.place_as_sheet );
136 wxASSERT( aSettings );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
void SelectLibId(const LIB_ID &aLibId)
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
To be called after this dialog returns from ShowModal().
void OnCheckBox(wxCommandEvent &aEvent)
PANEL_DESIGN_BLOCK_CHOOSER * m_chooserPanel
wxCheckBox * m_repeatedPlacement
DESIGN_BLOCK_PANE(SCH_EDIT_FRAME *aParent, const LIB_ID *aPreselect, std::vector< LIB_ID > &aHistoryList)
Create dialog to choose design_block.
wxCheckBox * m_placeAsSheet
wxCheckBox * m_keepAnnotations
PANEL_DESIGN_BLOCK_CHOOSER m_DesignBlockChooserPanel
static TOOL_ACTION placeDesignBlock
wxFileDialogCheckBox * m_cbRepeatedPlacement
wxFileDialogCheckBox * m_cbPlaceAsSheet
virtual void TransferDataFromCustomControls() override
wxFileDialogCheckBox * m_cbKeepAnnotations
EESCHEMA_SETTINGS * m_settings
virtual void AddCustomControls(wxFileDialogCustomize &customizer) override
FILEDLG_IMPORT_SHEET_CONTENTS(EESCHEMA_SETTINGS *aSettings)
A logical library item identifier and consists of various portions much like a URI.
bool IsValid() const
Check if this LID_ID is valid.
void SetPreselect(const LIB_ID &aPreselect)
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
To be called after this dialog returns from ShowModal().
void OnChar(wxKeyEvent &aEvent)
void RefreshLibs(bool aProgress=false)
void SelectLibId(const LIB_ID &aLibId)
Schematic editor (Eeschema) main window.
This file is part of the common library.
static const wxString KEEP_ANNOTATIONS
static const wxString REPEATED_PLACEMENT
static const wxString PLACE_AS_SHEET
Definition of file extensions used in Kicad.