32#include <wx/checkbox.h>
39#define REPEATED_PLACEMENT _( "Place repeated copies" )
40#define PLACE_AS_SHEET _( "Place as sheet" )
41#define KEEP_ANNOTATIONS _( "Keep annotations" )
44 std::vector<LIB_ID>& aHistoryList ) :
48 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
59 if( aPreselect && aPreselect->
IsValid() )
62 SetName( wxT(
"Design Blocks" ) );
64 wxBoxSizer* cbSizer =
new wxBoxSizer( wxVERTICAL );
81 sizer->Add( cbSizer, 0, wxEXPAND, 5 );
103 if( IsShownOnScreen() )
123 m_placeAsSheet->SetToolTip(
_(
"Place the design block as a new sheet." ) );
130 "schematic. Otherwise, clear then reannotate according "
152 cfg->m_DesignBlockChooserPanel.place_as_sheet =
m_placeAsSheet->GetValue();
163 m_placeAsSheet->SetValue( cfg->m_DesignBlockChooserPanel.place_as_sheet );
194 m_cbRepeatedPlacement( nullptr ),
195 m_cbPlaceAsSheet( nullptr ),
196 m_cbKeepAnnotations( nullptr )
198 wxASSERT( aSettings );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
void OnSize(wxSizeEvent &aEvent)
~DESIGN_BLOCK_PANE() override
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)
void setLabelsAndTooltips()
PANEL_DESIGN_BLOCK_CHOOSER * m_chooserPanel
wxCheckBox * m_repeatedPlacement
virtual void OnLanguageChanged(wxCommandEvent &aEvent)
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
virtual APP_SETTINGS_BASE * config() const
Return the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
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 ShowChangedLanguage()
void RefreshLibs(bool aProgress=false)
void SelectLibId(const LIB_ID &aLibId)
Schematic editor (Eeschema) main window.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
#define REPEATED_PLACEMENT