33#include <wx/checkbox.h>
41#define REPEATED_PLACEMENT _( "Place repeated copies" )
42#define PLACE_AS_SHEET _( "Place as sheet" )
43#define PLACE_AS_GROUP _( "Place as group" )
44#define KEEP_ANNOTATIONS _( "Keep annotations" )
47 std::vector<LIB_ID>& aHistoryList ) :
50 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
66 if( aPreselect && aPreselect->
IsValid() )
69 SetName( wxT(
"Design Blocks" ) );
71 wxBoxSizer* cbSizer =
new wxBoxSizer( wxVERTICAL );
91 sizer->Add( cbSizer, 0, wxEXPAND, 5 );
113 m_placeAsGroup->SetToolTip(
_(
"Place the design block as a group." ) );
119 m_placeAsSheet->SetToolTip(
_(
"Place the design block as a new sheet." ) );
126 "schematic. Otherwise, clear then reannotate according "
137 cfg->m_DesignBlockChooserPanel.place_as_group =
m_placeAsGroup->GetValue();
138 cfg->m_DesignBlockChooserPanel.place_as_sheet =
m_placeAsSheet->GetValue();
149 m_placeAsGroup->SetValue( cfg->m_DesignBlockChooserPanel.place_as_group );
150 m_placeAsSheet->SetValue( cfg->m_DesignBlockChooserPanel.place_as_sheet );
157 m_cbRepeatedPlacement( nullptr ), m_cbPlaceAsGroup( nullptr ), m_cbPlaceAsSheet( nullptr ),
158 m_cbKeepAnnotations( nullptr )
160 wxASSERT( aSettings );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
PANEL_DESIGN_BLOCK_CHOOSER m_DesignBlockChooserPanel
PANEL_DESIGN_BLOCK_CHOOSER * m_chooserPanel
virtual EDA_DRAW_PANEL_GAL * GetCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
GAL_TYPE GetBackend() const
Return the type of backend currently used by GAL canvas.
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.
wxPanel * GetDetailsPanel()
void SetPreselect(const LIB_ID &aPreselect)
void SetPreviewWidget(DESIGN_BLOCK_PREVIEW_WIDGET *aPreview)
void OnChar(wxKeyEvent &aEvent)
static TOOL_ACTION placeDesignBlock
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