29#include <wx/checkbox.h>
37#define REPEATED_PLACEMENT _( "Place repeated copies" )
38#define PLACE_AS_SHEET _( "Place as sheet" )
39#define PLACE_AS_GROUP _( "Place as group" )
40#define KEEP_ANNOTATIONS _( "Keep annotations" )
43 std::vector<LIB_ID>& aHistoryList ) :
46 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
62 if( aPreselect && aPreselect->
IsValid() )
65 SetName( wxT(
"Design Blocks" ) );
67 wxBoxSizer* cbSizer =
new wxBoxSizer( wxVERTICAL );
87 sizer->Add( cbSizer, 0, wxEXPAND, 5 );
109 m_placeAsGroup->SetToolTip(
_(
"Place the design block as a group." ) );
115 m_placeAsSheet->SetToolTip(
_(
"Place the design block as a new sheet." ) );
122 "schematic. Otherwise, clear then reannotate according "
133 cfg->m_DesignBlockChooserPanel.place_as_group =
m_placeAsGroup->GetValue();
134 cfg->m_DesignBlockChooserPanel.place_as_sheet =
m_placeAsSheet->GetValue();
145 m_placeAsGroup->SetValue( cfg->m_DesignBlockChooserPanel.place_as_group );
146 m_placeAsSheet->SetValue( cfg->m_DesignBlockChooserPanel.place_as_sheet );
163 wxASSERT( aSettings );
180 customizer.AddStaticText( wxT(
"\n\n" ) );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
DESIGN_BLOCK_PANE(EDA_DRAW_FRAME *aParent, const LIB_ID *aPreselect, std::vector< LIB_ID > &aHistoryList)
PANEL_DESIGN_BLOCK_CHOOSER * m_chooserPanel
DESIGN_BLOCK * GetSelectedDesignBlock(bool aUseCacheLib, bool aShowErrorMsg)
wxFileDialogCheckBox * m_cbRepeatedPlacement
wxFileDialogCheckBox * m_cbPlaceAsSheet
void TransferDataFromCustomControls() override
wxFileDialogCheckBox * m_cbKeepAnnotations
EESCHEMA_SETTINGS * m_settings
void AddCustomControls(wxFileDialogCustomize &customizer) override
FILEDLG_IMPORT_SHEET_CONTENTS(EESCHEMA_SETTINGS *aSettings)
wxFileDialogCheckBox * m_cbPlaceAsGroup
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 OnChar(wxKeyEvent &aEvent)
static TOOL_ACTION placeDesignBlock
void ProjectChanged() override
void setLabelsAndTooltips() override
void OnCheckBox(wxCommandEvent &aEvent)
wxCheckBox * m_placeAsGroup
wxCheckBox * m_repeatedPlacement
wxCheckBox * m_placeAsSheet
wxCheckBox * m_keepAnnotations
SCH_DESIGN_BLOCK_PANE(SCH_EDIT_FRAME *aParent, const LIB_ID *aPreselect, std::vector< LIB_ID > &aHistoryList)
Schematic editor (Eeschema) main window.
#define REPEATED_PLACEMENT