34#include <wx/checkbox.h>
43#define REPEATED_PLACEMENT _( "Place repeated copies" )
44#define PLACE_AS_GROUP _( "Place as group" )
45#define KEEP_ANNOTATIONS _( "Keep annotations" )
48 std::vector<LIB_ID>& aHistoryList ) :
51 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
63 if( aPreselect && aPreselect->
IsValid() )
66 SetName( wxT(
"Design Blocks" ) );
68 wxBoxSizer* cbSizer =
new wxBoxSizer( wxVERTICAL );
85 sizer->Add( cbSizer, 0, wxEXPAND, 5 );
107 m_placeAsGroup->SetToolTip(
_(
"Place the design block as a group." ) );
114 "layout. Otherwise, clear them." ) );
123 cfg->m_DesignBlockChooserPanel.place_as_sheet =
m_placeAsGroup->GetValue();
134 m_placeAsGroup->SetValue( cfg->m_DesignBlockChooserPanel.place_as_sheet );
141 m_cbRepeatedPlacement( nullptr ), m_cbPlaceAsSheet( nullptr ), m_cbKeepAnnotations( nullptr )
143 wxASSERT( aSettings );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
PANEL_DESIGN_BLOCK_CHOOSER m_DesignBlockChooserPanel
PANEL_DESIGN_BLOCK_CHOOSER * m_chooserPanel
wxFileDialogCheckBox * m_cbKeepAnnotations
void TransferDataFromCustomControls() override
EESCHEMA_SETTINGS * m_settings
void AddCustomControls(wxFileDialogCustomize &customizer) override
FILEDLG_IMPORT_SHEET_CONTENTS(EESCHEMA_SETTINGS *aSettings)
wxFileDialogCheckBox * m_cbRepeatedPlacement
wxFileDialogCheckBox * m_cbPlaceAsSheet
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
wxCheckBox * m_placeAsGroup
void OnCheckBox(wxCommandEvent &aEvent)
wxCheckBox * m_repeatedPlacement
wxCheckBox * m_keepAnnotations
PCB_DESIGN_BLOCK_PANE(PCB_EDIT_FRAME *aParent, const LIB_ID *aPreselect, std::vector< LIB_ID > &aHistoryList)
void setLabelsAndTooltips() override
The main frame for Pcbnew.
This file is part of the common library.
#define REPEATED_PLACEMENT
Definition of file extensions used in Kicad.