KiCad PCB EDA Suite
DIALOG_FOOTPRINT_BOARD_EDITOR Class Reference

#include <dialog_edit_footprint_for_BoardEditor.h>

Inheritance diagram for DIALOG_FOOTPRINT_BOARD_EDITOR:
DIALOG_FOOTPRINT_BOARD_EDITOR_BASE DIALOG_SHIM KIWAY_HOLDER

Public Types

enum  FP_PRM_EDITOR_RETVALUE {
  PRM_EDITOR_WANT_UPDATE_FP, PRM_EDITOR_WANT_EXCHANGE_FP, PRM_EDITOR_EDIT_OK, PRM_EDITOR_EDIT_BOARD_FOOTPRINT,
  PRM_EDITOR_EDIT_LIBRARY_FOOTPRINT
}
 
enum  HOLDER_TYPE { DIALOG, FRAME, PANEL, SCREEN }
 

Public Member Functions

 DIALOG_FOOTPRINT_BOARD_EDITOR (PCB_EDIT_FRAME *aParent, MODULE *aModule)
 
 ~DIALOG_FOOTPRINT_BOARD_EDITOR () override
 
bool Validate () override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
void SetInitialFocus (wxWindow *aWindow)
 Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown. More...
 
int ShowQuasiModal ()
 
void EndQuasiModal (int retCode)
 
bool IsQuasiModal ()
 
bool Show (bool show) override
 
bool Enable (bool enable) override
 
void OnPaint (wxPaintEvent &event)
 
EDA_UNITS_T GetUserUnits () const
 
HOLDER_TYPE GetType ()
 
KIWAYKiway () const
 Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in. More...
 
PROJECTPrj () const
 Function Prj returns a reference to the PROJECT "associated with" this KIWAY. More...
 
void SetKiway (wxWindow *aDest, KIWAY *aKiway)
 Function SetKiway. More...
 

Protected Member Functions

virtual void OnInitDlg (wxInitDialogEvent &event)
 
void FinishDialogSettings ()
 In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls. More...
 
void SetSizeInDU (int x, int y)
 Set the dialog to the given dimensions in "dialog units". More...
 
int HorizPixelsFromDU (int x)
 Convert an integer number of dialog units to pixels, horizontally. More...
 
int VertPixelsFromDU (int y)
 Convert an integer number of dialog units to pixels, vertically. More...
 

Protected Attributes

wxNotebook * m_NoteBook
 
wxPanel * m_PanelGeneral
 
WX_GRIDm_itemsGrid
 
wxBitmapButton * m_bpAdd
 
wxBitmapButton * m_bpDelete
 
wxStaticText * m_XPosLabel
 
wxTextCtrl * m_ModPositionX
 
wxStaticText * m_XPosUnit
 
wxStaticText * m_YPosLabel
 
wxTextCtrl * m_ModPositionY
 
wxStaticText * m_YPosUnit
 
wxRadioButton * m_Orient0
 
wxRadioButton * m_Orient90
 
wxRadioButton * m_Orient270
 
wxRadioButton * m_Orient180
 
wxRadioButton * m_OrientOther
 
wxTextCtrl * m_OrientValueCtrl
 
wxStaticText * m_BoardSideLabel
 
wxChoice * m_BoardSideCtrl
 
wxRadioBox * m_AutoPlaceCtrl
 
wxStaticBoxSizer * m_sizerAP
 
wxBoxSizer * m_sizerAllow90
 
wxStaticText * m_allow90Label
 
wxSlider * m_CostRot90Ctrl
 
wxBoxSizer * m_sizerAllow180
 
wxStaticText * m_allow180Label
 
wxSlider * m_CostRot180Ctrl
 
wxButton * m_buttonUpdate
 
wxButton * m_buttonExchange
 
wxButton * m_buttonModuleEditor
 
wxButton * m_button5
 
wxRadioBox * m_AttributsCtrl
 
wxPanel * m_PanelClearances
 
wxStaticText * m_staticTextInfo
 
wxStaticText * m_staticTextInfoValPos
 
wxStaticText * m_staticTextInfoValNeg
 
wxStaticText * m_NetClearanceLabel
 
wxTextCtrl * m_NetClearanceCtrl
 
wxStaticText * m_NetClearanceUnits
 
wxStaticText * m_SolderMaskMarginLabel
 
wxTextCtrl * m_SolderMaskMarginCtrl
 
wxStaticText * m_SolderMaskMarginUnits
 
wxStaticText * m_SolderPasteMarginLabel
 
wxTextCtrl * m_SolderPasteMarginCtrl
 
wxStaticText * m_SolderPasteMarginUnits
 
wxStaticText * m_staticTextRatio
 
TEXT_CTRL_EVALm_SolderPasteMarginRatioCtrl
 
wxStaticText * m_SolderPasteRatioMarginUnits
 
wxStaticText * m_staticTextInfoCopper
 
wxStaticText * m_staticText16
 
wxChoice * m_ZoneConnectionChoice
 
wxPanel * m_Panel3D
 
wxBoxSizer * bSizerMain3D
 
WX_GRIDm_modelsGrid
 
wxBitmapButton * m_buttonAdd
 
wxBitmapButton * m_buttonBrowse
 
wxBitmapButton * m_buttonRemove
 
wxButton * m_button8
 
wxBoxSizer * bLowerSizer3D
 
wxStaticText * m_libraryIDLabel
 
wxStaticText * m_staticLibraryID
 
wxStdDialogButtonSizer * m_sdbSizerStdButtons
 
wxButton * m_sdbSizerStdButtonsOK
 
wxButton * m_sdbSizerStdButtonsCancel
 
EDA_UNITS_T m_units
 
std::string m_hash_key
 
bool m_firstPaintEvent
 
wxWindow * m_initialFocusTarget
 
WX_EVENT_LOOPm_qmodal_loop
 
bool m_qmodal_showing
 
WDO_ENABLE_DISABLEm_qmodal_parent_disabler
 

Private Member Functions

void On3DModelSelected (wxGridEvent &) override
 
void On3DModelCellChanged (wxGridEvent &aEvent) override
 
void OnRemove3DModel (wxCommandEvent &) override
 
void OnAdd3DModel (wxCommandEvent &) override
 
void OnAdd3DRow (wxCommandEvent &) override
 
void EditFootprint (wxCommandEvent &) override
 
void EditLibraryFootprint (wxCommandEvent &) override
 
void UpdateModule (wxCommandEvent &) override
 
void ExchangeModule (wxCommandEvent &) override
 
void ModuleOrientEvent (wxCommandEvent &) override
 
void OnOtherOrientation (wxCommandEvent &aEvent) override
 
void Cfg3DPath (wxCommandEvent &) override
 
void OnGridSize (wxSizeEvent &aEvent) override
 
void OnAddField (wxCommandEvent &) override
 
void OnDeleteField (wxCommandEvent &) override
 
void OnUpdateUI (wxUpdateUIEvent &) override
 
void select3DModel (int aModelIdx)
 
void adjustGridColumns (int aWidth)
 
void updateOrientationControl ()
 Update the orientation validated control, without triggering a change event on the control (which would update the radio buttons) More...
 

Private Attributes

wxConfigBase * m_config
 
PCB_EDIT_FRAMEm_frame
 
MODULEm_footprint
 
TEXT_MOD_GRID_TABLEm_texts
 
UNIT_BINDER m_posX
 
UNIT_BINDER m_posY
 
wxFloatingPointValidator< double > m_OrientValidator
 
double m_OrientValue
 
UNIT_BINDER m_netClearance
 
UNIT_BINDER m_solderMask
 
UNIT_BINDER m_solderPaste
 
std::vector< MODULE_3D_SETTINGSm_shapes3D_list
 
PANEL_PREV_3Dm_PreviewPane
 
wxString m_delayedErrorMessage
 
wxGrid * m_delayedFocusGrid
 
int m_delayedFocusRow
 
int m_delayedFocusColumn
 
bool m_initialFocus
 
bool m_inSelect
 

Static Private Attributes

static int m_page = 0
 

Detailed Description

Definition at line 41 of file dialog_edit_footprint_for_BoardEditor.h.

Member Enumeration Documentation

◆ FP_PRM_EDITOR_RETVALUE

◆ HOLDER_TYPE

enum KIWAY_HOLDER::HOLDER_TYPE
inherited
Enumerator
DIALOG 
FRAME 
PANEL 
SCREEN 

Definition at line 42 of file kiway_holder.h.

Constructor & Destructor Documentation

◆ DIALOG_FOOTPRINT_BOARD_EDITOR()

DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR ( PCB_EDIT_FRAME aParent,
MODULE aModule 
)

Definition at line 54 of file dialog_edit_footprint_for_BoardEditor.cpp.

55  :
63  m_initialFocus( true ),
64  m_inSelect( false )
65 {
67 
68  m_frame = aParent;
69  m_footprint = aModule;
70 
72 
73  m_delayedErrorMessage = wxEmptyString;
74  m_delayedFocusGrid = nullptr;
75  m_delayedFocusRow = -1;
77 
78  // Give an icon
79  wxIcon icon;
80  icon.CopyFromBitmap( KiBitmap( icon_modedit_xpm ) );
81  SetIcon( icon );
82 
83  // Give a bit more room for combobox editors
84  m_itemsGrid->SetDefaultRowSize( m_itemsGrid->GetDefaultRowSize() + 4 );
85  m_modelsGrid->SetDefaultRowSize( m_modelsGrid->GetDefaultRowSize() + 4 );
86 
88  m_itemsGrid->PushEventHandler( new GRID_TRICKS( m_itemsGrid ) );
89  m_modelsGrid->PushEventHandler( new GRID_TRICKS( m_modelsGrid ) );
90 
91  // Show/hide text item columns according to the user's preference
92  wxString shownColumns;
93  m_config->Read( FootprintTextShownColumnsKey, &shownColumns, wxT( "0 1 2 3 4 5 6" ) );
94  m_itemsGrid->ShowHideColumns( shownColumns );
95 
96  // Set up the 3D models grid
97  wxGridCellAttr* attr = new wxGridCellAttr;
98  attr->SetRenderer( new wxGridCellBoolRenderer() );
99  attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
100  attr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
101  m_modelsGrid->SetColAttr( 1, attr );
102  m_modelsGrid->SetWindowStyleFlag( m_modelsGrid->GetWindowStyle() & ~wxHSCROLL );
103 
104  m_OrientValidator.SetRange( -360.0, 360.0 );
105  m_OrientValueCtrl->SetValidator( m_OrientValidator );
107 
108  aParent->Prj().Get3DCacheManager()->GetResolver()->SetProgramBase( &Pgm() );
109 
111 
112  bLowerSizer3D->Add( m_PreviewPane, 1, wxEXPAND, 5 );
113 
114  // Set font sizes
115  wxFont infoFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
116  infoFont.SetSymbolicSize( wxFONTSIZE_SMALL );
117  m_allow90Label->SetFont( infoFont );
118  m_allow180Label->SetFont( infoFont );
119  m_libraryIDLabel->SetFont( infoFont );
120  m_staticLibraryID->SetFont( infoFont );
121  m_staticTextInfoValNeg->SetFont( infoFont );
122  m_staticTextInfoValPos->SetFont( infoFont );
123  m_staticTextInfoCopper->SetFont( infoFont );
124 
125  m_NoteBook->SetSelection( m_page );
126 
127  if( m_page == 0 )
128  {
130  m_delayedFocusRow = 0;
132  }
133  else if ( m_page == 1 )
135  else
136  {
138  m_delayedFocusRow = 0;
140  }
141 
142  m_sdbSizerStdButtonsOK->SetDefault();
143 
144  m_OrientValue = 0;
145 
146  // Configure button logos
147  m_bpAdd->SetBitmap( KiBitmap( small_plus_xpm ) );
148  m_bpDelete->SetBitmap( KiBitmap( trash_xpm ) );
149  m_buttonAdd->SetBitmap( KiBitmap( small_plus_xpm ) );
150  m_buttonBrowse->SetBitmap( KiBitmap( folder_xpm ) );
151  m_buttonRemove->SetBitmap( KiBitmap( trash_xpm ) );
152 
154 }
void ShowHideColumns(const wxString &shownColumns)
Show/hide the grid columns based on a tokenized string of shown column indexes.
Definition: wx_grid.cpp:119
wxConfigBase * KifaceSettings() const
Definition: kiface_i.h:103
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Class GRID_TRICKS is used to add mouse and command handling (such as cut, copy, and paste) to a WX_GR...
Definition: grid_tricks.h:51
PGM_BASE & Pgm()
The global Program "get" accessor.
Definition: kicad.cpp:65
void SetTable(wxGridTableBase *table, bool aTakeOwnership=false)
Hide wxGrid's SetTable() method with one which doesn't mess up the grid column widths when setting th...
Definition: wx_grid.cpp:57
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
Definition: dialog_shim.h:118
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
Definition: kicad.cpp:51
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:79
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
wxFloatingPointValidator< double > m_OrientValidator
DIALOG_FOOTPRINT_BOARD_EDITOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
EDA_UNITS_T m_units
Definition: dialog_shim.h:175
#define FootprintTextShownColumnsKey
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::bLowerSizer3D, DIALOG_SHIM::FinishDialogSettings(), FootprintTextShownColumnsKey, KiBitmap(), Kiface(), KIFACE_I::KifaceSettings(), DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_allow180Label, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_allow90Label, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_bpAdd, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_bpDelete, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonAdd, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonBrowse, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonRemove, m_config, m_delayedErrorMessage, m_delayedFocusColumn, m_delayedFocusGrid, m_delayedFocusRow, m_footprint, m_frame, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_libraryIDLabel, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NetClearanceCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NoteBook, m_OrientValidator, m_OrientValue, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_OrientValueCtrl, m_page, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Panel3D, m_PreviewPane, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sdbSizerStdButtonsOK, m_shapes3D_list, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticLibraryID, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfoCopper, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfoValNeg, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfoValPos, m_texts, DIALOG_SHIM::m_units, Pgm(), KIWAY_HOLDER::Prj(), DIALOG_SHIM::SetInitialFocus(), WX_GRID::SetTable(), and WX_GRID::ShowHideColumns().

◆ ~DIALOG_FOOTPRINT_BOARD_EDITOR()

DIALOG_FOOTPRINT_BOARD_EDITOR::~DIALOG_FOOTPRINT_BOARD_EDITOR ( )
override

Definition at line 157 of file dialog_edit_footprint_for_BoardEditor.cpp.

158 {
160 
161  // Prevents crash bug in wxGrid's d'tor
163 
164  // Delete the GRID_TRICKS.
165  m_itemsGrid->PopEventHandler( true );
166  m_modelsGrid->PopEventHandler( true );
167 
168  // free the memory used by all models, otherwise models which were
169  // browsed but not used would consume memory
170  Prj().Get3DCacheManager()->FlushCache( false );
171 
172  // the GL canvas has to be visible before it is destroyed
173  m_page = m_NoteBook->GetSelection();
174  m_NoteBook->SetSelection( 1 );
175 
176  delete m_PreviewPane;
177 }
void DestroyTable(wxGridTableBase *aTable)
Work-around for a bug in wxGrid which crashes when deleting the table if the cell edit control was no...
Definition: wx_grid.cpp:88
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
wxString GetShownColumns()
Get a tokenized string containing the shown column indexes.
Definition: wx_grid.cpp:101
#define FootprintTextShownColumnsKey

References WX_GRID::DestroyTable(), FootprintTextShownColumnsKey, WX_GRID::GetShownColumns(), m_config, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NoteBook, m_page, m_PreviewPane, m_texts, and KIWAY_HOLDER::Prj().

Member Function Documentation

◆ adjustGridColumns()

void DIALOG_FOOTPRINT_BOARD_EDITOR::adjustGridColumns ( int  aWidth)
private

Definition at line 809 of file dialog_edit_footprint_for_BoardEditor.cpp.

810 {
811  // Account for scroll bars
812  int itemsWidth = aWidth - ( m_itemsGrid->GetSize().x - m_itemsGrid->GetClientSize().x );
813  int modelsWidth = aWidth - ( m_modelsGrid->GetSize().x - m_modelsGrid->GetClientSize().x );
814 
815  itemsWidth -= m_itemsGrid->GetRowLabelSize();
816 
817  for( int i = 1; i < m_itemsGrid->GetNumberCols(); i++ )
818  itemsWidth -= m_itemsGrid->GetColSize( i );
819 
820  if( itemsWidth > 0 )
821  m_itemsGrid->SetColSize( 0, std::max( itemsWidth,
822  m_itemsGrid->GetVisibleWidth( 0, true, false, false ) ) );
823 
824  m_modelsGrid->SetColSize( 0, modelsWidth - m_modelsGrid->GetColSize( 1 ) - 5 );
825 }
int GetVisibleWidth(int aCol, bool aHeader=true, bool aContents=false, bool aKeep=true)
Calculates the specified column based on the actual size of the text on screen.
Definition: wx_grid.cpp:223
#define max(a, b)
Definition: auxiliary.h:86
size_t i
Definition: json11.cpp:597

References WX_GRID::GetVisibleWidth(), i, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, and max.

Referenced by OnGridSize(), OnUpdateUI(), and TransferDataToWindow().

◆ Cfg3DPath()

void DIALOG_FOOTPRINT_BOARD_EDITOR::Cfg3DPath ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 802 of file dialog_edit_footprint_for_BoardEditor.cpp.

803 {
804  if( S3D::Configure3DPaths( this, Prj().Get3DCacheManager()->GetResolver() ) )
806 }
void UpdateDummyModule(bool aRelaodRequired=true)
UpdateModelInfoList - copy shapes from the current shape list which are flagged for preview to the co...
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
bool Configure3DPaths(wxWindow *aParent, FILENAME_RESOLVER *aResolver)

References S3D::Configure3DPaths(), m_PreviewPane, KIWAY_HOLDER::Prj(), and PANEL_PREV_3D::UpdateDummyModule().

◆ EditFootprint()

void DIALOG_FOOTPRINT_BOARD_EDITOR::EditFootprint ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 180 of file dialog_edit_footprint_for_BoardEditor.cpp.

181 {
182  if( m_footprint->GetTimeStamp() == 0 ) // Module Editor needs a non null timestamp
183  {
185  m_frame->OnModify();
186  }
187 
189 }
void OnModify() override
Function OnModify must be called after a board change to set the modified flag.
timestamp_t GetNewTimeStamp()
Definition: common.cpp:217
timestamp_t GetTimeStamp() const
Definition: base_struct.h:216
void SetTimeStamp(timestamp_t aNewTimeStamp)
Definition: base_struct.h:215

References GetNewTimeStamp(), EDA_ITEM::GetTimeStamp(), m_footprint, m_frame, PCB_EDIT_FRAME::OnModify(), PRM_EDITOR_EDIT_BOARD_FOOTPRINT, and EDA_ITEM::SetTimeStamp().

◆ EditLibraryFootprint()

void DIALOG_FOOTPRINT_BOARD_EDITOR::EditLibraryFootprint ( wxCommandEvent &  )
overrideprivatevirtual

◆ Enable()

bool DIALOG_SHIM::Enable ( bool  enable)
overrideinherited

Definition at line 239 of file dialog_shim.cpp.

240 {
241  // so we can do logging of this state change:
242 
243 #if 0 && defined(DEBUG)
244  const char* type_id = typeid( *this ).name();
245  printf( "DIALOG_SHIM %s: %s\n", type_id, enable ? "enabled" : "disabled" );
246  fflush(0); //Needed on msys2 to immediately print the message
247 #endif
248 
249  return wxDialog::Enable( enable );
250 }

◆ EndQuasiModal()

void DIALOG_SHIM::EndQuasiModal ( int  retCode)
inherited

Definition at line 399 of file dialog_shim.cpp.

400 {
401  // Hook up validator and transfer data from controls handling so quasi-modal dialogs
402  // handle validation in the same way as other dialogs.
403  if( ( retCode == wxID_OK ) && ( !Validate() || !TransferDataFromWindow() ) )
404  return;
405 
406  SetReturnCode( retCode );
407 
408  if( !IsQuasiModal() )
409  {
410  wxFAIL_MSG( wxT( "either DIALOG_SHIM::EndQuasiModal called twice or ShowQuasiModal wasn't called" ) );
411  return;
412  }
413 
414  if( m_qmodal_loop )
415  {
416  if( m_qmodal_loop->IsRunning() )
417  m_qmodal_loop->Exit( 0 );
418  else
419  m_qmodal_loop->ScheduleExit( 0 );
420 
421  m_qmodal_loop = NULL;
422  }
423 
426 
427  Show( false );
428 }
WX_EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:185
bool IsQuasiModal()
Definition: dialog_shim.h:127
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:187

References DIALOG_SHIM::IsQuasiModal(), DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, and DIALOG_SHIM::Show().

Referenced by HK_PROMPT_DIALOG::EndFlexible(), DIALOG_SHIM::OnButton(), DIALOG_EDIT_COMPONENTS_LIBID::onCancel(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCancelButtonClick(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnCancelButtonClick(), DIALOG_LIB_EDIT_PIN_TABLE::OnClose(), DIALOG_PRINT_GENERIC::onCloseButton(), DIALOG_CHOOSE_FOOTPRINT::OnCloseTimer(), DIALOG_CHOOSE_COMPONENT::OnCloseTimer(), DIALOG_SHIM::OnCloseWindow(), DIALOG_CHOOSE_FOOTPRINT::OnUseBrowser(), DIALOG_CHOOSE_COMPONENT::OnUseBrowser(), and DIALOG_SHIM::~DIALOG_SHIM().

◆ ExchangeModule()

void DIALOG_FOOTPRINT_BOARD_EDITOR::ExchangeModule ( wxCommandEvent &  )
overrideprivatevirtual

◆ FinishDialogSettings()

void DIALOG_SHIM::FinishDialogSettings ( )
protectedinherited

In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls.

FinishDialogSettings must be called from derived classes, when all widgets are initialized, and therefore their size fixed. If TransferDataToWindow() is used to initialize widgets, at end of TransferDataToWindow, or better at end of a wxInitDialogEvent handler

In any case, the best way is to call it in a wxInitDialogEvent handler after calling TransfertDataToWindow(), which is the default wxInitDialogEvent handler wxDialog

Definition at line 138 of file dialog_shim.cpp.

139 {
140  // must be called from the constructor of derived classes,
141  // when all widgets are initialized, and therefore their size fixed
142 
143  // SetSizeHints fixes the minimal size of sizers in the dialog
144  // (SetSizeHints calls Fit(), so no need to call it)
145  GetSizer()->SetSizeHints( this );
146 
147  // the default position, when calling the first time the dlg
148  Center();
149 }

References PCAD2KICAD::Center.

Referenced by DIALOG_3D_VIEW_OPTIONS::DIALOG_3D_VIEW_OPTIONS(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_BOM::DIALOG_BOM(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC(), DIALOG_EDIT_COMPONENTS_LIBID::DIALOG_EDIT_COMPONENTS_LIBID(), DIALOG_EDIT_LINE_STYLE::DIALOG_EDIT_LINE_STYLE(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_EXPORT_SVG::DIALOG_EXPORT_SVG(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_FOOTPRINTS_DISPLAY_OPTIONS::DIALOG_FOOTPRINTS_DISPLAY_OPTIONS(), DIALOG_FP_BROWSER_DISPLAY_OPTIONS::DIALOG_FP_BROWSER_DISPLAY_OPTIONS(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG(), DIALOG_IMAGE_EDITOR::DIALOG_IMAGE_EDITOR(), DIALOG_INSPECTOR::DIALOG_INSPECTOR(), DIALOG_KEEPOUT_AREA_PROPERTIES::DIALOG_KEEPOUT_AREA_PROPERTIES(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM(), DIALOG_LIB_EDIT_PIN::DIALOG_LIB_EDIT_PIN(), DIALOG_LIB_EDIT_TEXT::DIALOG_LIB_EDIT_TEXT(), DIALOG_LIB_NEW_COMPONENT::DIALOG_LIB_NEW_COMPONENT(), DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_NETLIST::DIALOG_NETLIST(), DIALOG_NON_COPPER_ZONES_EDITOR::DIALOG_NON_COPPER_ZONES_EDITOR(), DIALOG_PAD_PRIMITIVE_POLY_PROPS::DIALOG_PAD_PRIMITIVE_POLY_PROPS(), DIALOG_PAD_PRIMITIVES_PROPERTIES::DIALOG_PAD_PRIMITIVES_PROPERTIES(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_PRINT_GENERIC::DIALOG_PRINT_GENERIC(), DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER(), DIALOG_PUSH_PAD_PROPERTIES::DIALOG_PUSH_PAD_PROPERTIES(), DIALOG_SCH_EDIT_SHEET_PIN::DIALOG_SCH_EDIT_SHEET_PIN(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SELECT_NET_FROM_LIST::DIALOG_SELECT_NET_FROM_LIST(), DIALOG_SET_GRID::DIALOG_SET_GRID(), DIALOG_SWAP_LAYERS::DIALOG_SWAP_LAYERS(), DIALOG_TARGET_PROPERTIES::DIALOG_TARGET_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), PAGED_DIALOG::finishInitialization(), DIALOG_EDIT_ONE_FIELD::init(), DIALOG_EDIT_LIBRARY_TABLES::InstallPanel(), NETLIST_DIALOG::NETLIST_DIALOG(), DIALOG_GRAPHIC_ITEM_PROPERTIES::OnInitDlg(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnInitDlg(), DIALOG_SIM_SETTINGS::onInitDlg(), DIALOG_SPICE_MODEL::onInitDlg(), DIALOG_SIGNAL_LIST::TransferDataToWindow(), DIALOG_UPDATE_FIELDS::TransferDataToWindow(), DIALOG_BOARD_STATISTICS::TransferDataToWindow(), and DIALOG_COLOR_PICKER::TransferDataToWindow().

◆ GetType()

HOLDER_TYPE KIWAY_HOLDER::GetType ( )
inlineinherited

Definition at line 49 of file kiway_holder.h.

49 { return m_type; }
HOLDER_TYPE m_type
Definition: kiway_holder.h:82

References KIWAY_HOLDER::m_type.

Referenced by DIALOG_SHIM::DIALOG_SHIM(), PL_EDITOR_FRAME::SaveSettings(), and GERBVIEW_FRAME::SaveSettings().

◆ GetUserUnits()

◆ HorizPixelsFromDU()

int DIALOG_SHIM::HorizPixelsFromDU ( int  x)
protectedinherited

Convert an integer number of dialog units to pixels, horizontally.

See SetSizeInDU or wxDialog documentation for more information.

Definition at line 159 of file dialog_shim.cpp.

160 {
161  wxSize sz( x, 0 );
162  return ConvertDialogToPixels( sz ).x;
163 }

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), and DIALOG_CHOOSE_FOOTPRINT::DIALOG_CHOOSE_FOOTPRINT().

◆ IsQuasiModal()

◆ Kiway()

KIWAY& KIWAY_HOLDER::Kiway ( ) const
inlineinherited

Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in.

A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.

Definition at line 56 of file kiway_holder.h.

57  {
58  wxASSERT( m_kiway ); // smoke out bugs in Debug build, then Release runs fine.
59  return *m_kiway;
60  }
KIWAY * m_kiway
Definition: kiway_holder.h:81

References KIWAY_HOLDER::m_kiway.

Referenced by TREEPROJECT_ITEM::Activate(), FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB(), PCB_BASE_EDIT_FRAME::AddLibrary(), LIB_CONTROL::AddSymbolToSchematic(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), COMMON_CONTROL::ConfigurePaths(), DIALOG_CHOOSE_FOOTPRINT::ConstructRightPanel(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), PCB_BASE_FRAME::CreateAndShow3D_Frame(), SCH_EDIT_FRAME::CreateScreens(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SHIM::DIALOG_SHIM(), CVPCB_MAINFRAME::DisplayStatus(), FIELDS_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), EDIT_TOOL::EditFpInFpEditor(), SCH_EDIT_FRAME::EditSheet(), SCH_EDITOR_CONTROL::EditWithLibEdit(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), LIB_MANAGER::GetBufferedPart(), LIB_MANAGER::getLibraryBuffer(), FOOTPRINT_EDIT_FRAME::GetPlotSettings(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::InitSheet(), KICAD_MANAGER_FRAME::language_change(), KIWAY_PLAYER::language_change(), CVPCB_MAINFRAME::LoadFootprintFiles(), KICAD_MANAGER_FRAME::LoadProject(), SCH_EDIT_FRAME::LoadSheetFromFile(), TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick(), TEXT_BUTTON_FP_CHOOSER::OnButtonClick(), KICAD_MANAGER_FRAME::OnCloseWindow(), SCH_EDIT_FRAME::OnCloseWindow(), PL_EDITOR_FRAME::OnExit(), SCH_EDIT_FRAME::OnExit(), FOOTPRINT_EDIT_FRAME::OnExitKiCad(), FOOTPRINT_VIEWER_FRAME::OnExitKiCad(), LIB_EDIT_FRAME::OnExitKiCad(), KICAD_MANAGER_FRAME::OnImportEagleFiles(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), SCH_EDIT_FRAME::OnOpenCvpcb(), SCH_EDIT_FRAME::OnOpenPcbnew(), EDA_BASE_FRAME::OnPreferences(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), FOOTPRINT_EDIT_FRAME::OnUpdateInsertModuleInBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadModuleFromBoard(), SCH_EDIT_FRAME::OnUpdatePCB(), SCH_EDIT_FRAME::OpenProjectFiles(), KIWAY_HOLDER::Prj(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_EDIT_FRAME::refreshSchematic(), SCH_EDIT_FRAME::rescueProject(), EE_INSPECTION_TOOL::RunSimulation(), SCH_EDIT_FRAME::SaveEEFile(), CVPCB_MAINFRAME::SaveFootprintAssociation(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), SCH_BASE_FRAME::SelectComponentFromLibBrowser(), SCH_EDIT_FRAME::SendCrossProbeClearHighlight(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::sendNetlistToCvpcb(), FOOTPRINT_EDIT_FRAME::SetPlotSettings(), CVPCB_CONTROL::ShowFootprintViewer(), COMMON_CONTROL::ShowLibraryTable(), COMMON_CONTROL::ShowPlayer(), KICAD_MANAGER_CONTROL::ShowPlayer(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::UpdatePart(), and DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint().

◆ ModuleOrientEvent()

void DIALOG_FOOTPRINT_BOARD_EDITOR::ModuleOrientEvent ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 210 of file dialog_edit_footprint_for_BoardEditor.cpp.

211 {
212  if( m_Orient0->GetValue() )
213  m_OrientValue = 0.0;
214  else if( m_Orient90->GetValue() )
215  m_OrientValue = 90.0;
216  else if( m_Orient270->GetValue() )
217  m_OrientValue = 270.0;
218  else if( m_Orient180->GetValue() )
219  m_OrientValue = 180.0;
220 
222 }
void updateOrientationControl()
Update the orientation validated control, without triggering a change event on the control (which wou...

References DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient0, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient180, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient270, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient90, m_OrientValue, and updateOrientationControl().

◆ On3DModelCellChanged()

void DIALOG_FOOTPRINT_BOARD_EDITOR::On3DModelCellChanged ( wxGridEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 430 of file dialog_edit_footprint_for_BoardEditor.cpp.

431 {
432  if( aEvent.GetCol() == 0 )
433  {
434  bool hasAlias = false;
435  FILENAME_RESOLVER* res = Prj().Get3DCacheManager()->GetResolver();
436  wxString filename = m_modelsGrid->GetCellValue( aEvent.GetRow(), 0 );
437 
438  filename.Replace( "\n", "" );
439  filename.Replace( "\r", "" );
440  filename.Replace( "\t", "" );
441 
442  if( filename.empty() || !res->ValidateFileName( filename, hasAlias ) )
443  {
444  m_delayedErrorMessage = wxString::Format( _( "Invalid filename: %s" ), filename );
446  m_delayedFocusRow = aEvent.GetRow();
447  m_delayedFocusColumn = aEvent.GetCol();
448  aEvent.Veto();
449  }
450 
451  // if the user has specified an alias in the name then prepend ':'
452  if( hasAlias )
453  filename.insert( 0, wxT( ":" ) );
454 
455 #ifdef __WINDOWS__
456  // In Kicad files, filenames and paths are stored using Unix notation
457  filename.Replace( wxT( "\\" ), wxT( "/" ) );
458 #endif
459 
460  m_shapes3D_list[ aEvent.GetRow() ].m_Filename = filename;
461  m_modelsGrid->SetCellValue( aEvent.GetRow(), 0, filename );
462  }
463  else if( aEvent.GetCol() == 1 )
464  {
465  wxString previewValue = m_modelsGrid->GetCellValue( aEvent.GetRow(), 1 );
466 
467  m_shapes3D_list[ aEvent.GetRow() ].m_Preview = previewValue == wxT( "1" );
468  }
469 
471 }
void UpdateDummyModule(bool aRelaodRequired=true)
UpdateModelInfoList - copy shapes from the current shape list which are flagged for preview to the co...
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
#define _(s)
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
bool ValidateFileName(const wxString &aFileName, bool &hasAlias)
Function ValidateName returns true if the given path is a valid aliased relative path.
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References _, Format(), m_delayedErrorMessage, m_delayedFocusColumn, m_delayedFocusGrid, m_delayedFocusRow, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, m_PreviewPane, m_shapes3D_list, KIWAY_HOLDER::Prj(), PANEL_PREV_3D::UpdateDummyModule(), and FILENAME_RESOLVER::ValidateFileName().

◆ On3DModelSelected()

void DIALOG_FOOTPRINT_BOARD_EDITOR::On3DModelSelected ( wxGridEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 423 of file dialog_edit_footprint_for_BoardEditor.cpp.

References m_inSelect, and select3DModel().

◆ OnAdd3DModel()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnAdd3DModel ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 491 of file dialog_edit_footprint_for_BoardEditor.cpp.

492 {
494  return;
495 
496  PROJECT& prj = Prj();
497  MODULE_3D_SETTINGS model;
498 
499  wxString initialpath = prj.GetRString( PROJECT::VIEWER_3D_PATH );
500  wxString sidx = prj.GetRString( PROJECT::VIEWER_3D_FILTER_INDEX );
501  int filter = 0;
502 
503  // If the PROJECT::VIEWER_3D_PATH hasn't been set yet, use the KISYS3DMOD environment
504  // variable and fall back to the project path if necessary.
505  if( initialpath.IsEmpty() )
506  {
507  if( !wxGetEnv( "KISYS3DMOD", &initialpath ) || initialpath.IsEmpty() )
508  initialpath = prj.GetProjectPath();
509  }
510 
511  if( !sidx.empty() )
512  {
513  long tmp;
514  sidx.ToLong( &tmp );
515 
516  if( tmp > 0 && tmp <= INT_MAX )
517  filter = (int) tmp;
518  }
519 
520  if( !S3D::Select3DModel( this, Prj().Get3DCacheManager(), initialpath, filter, &model )
521  || model.m_Filename.empty() )
522  {
523  return;
524  }
525 
526  prj.SetRString( PROJECT::VIEWER_3D_PATH, initialpath );
527  sidx = wxString::Format( wxT( "%i" ), filter );
529  FILENAME_RESOLVER* res = Prj().Get3DCacheManager()->GetResolver();
530  wxString alias;
531  wxString shortPath;
532  wxString filename = model.m_Filename;
533 
534  if( res && res->SplitAlias( filename, alias, shortPath ) )
535  filename = alias + wxT( ":" ) + shortPath;
536 
537 #ifdef __WINDOWS__
538  // In KiCad files, filenames and paths are stored using Unix notation
539  model.m_Filename.Replace( "\\", "/" );
540 #endif
541 
542  model.m_Preview = true;
543  m_shapes3D_list.push_back( model );
544 
545  int idx = m_modelsGrid->GetNumberRows();
546  m_modelsGrid->AppendRows( 1 );
547  m_modelsGrid->SetCellValue( idx, 0, filename );
548  m_modelsGrid->SetCellValue( idx, 1, wxT( "1" ) );
549 
551 }
Class PROJECT holds project specific data.
Definition: project.h:58
void UpdateDummyModule(bool aRelaodRequired=true)
UpdateModelInfoList - copy shapes from the current shape list which are flagged for preview to the co...
bool m_Preview
Include module in 3D preview.
Definition: class_module.h:103
VTBL_ENTRY const wxString GetProjectPath() const
Function GetProjectPath returns the full path of the project.
Definition: project.cpp:102
bool SplitAlias(const wxString &aFileName, wxString &anAlias, wxString &aRelPath)
Function SplitAlias returns true if the given name contains an alias and populates the string anAlias...
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
bool CommitPendingChanges(bool aQuietMode=false)
Close any open cell edit controls.
Definition: wx_grid.cpp:167
wxString m_Filename
The 3D shape filename in 3D library.
Definition: class_module.h:102
VTBL_ENTRY void SetRString(RSTRING_T aStringId, const wxString &aString)
Function SetRString stores a "retained string", which is any session and project specific string iden...
Definition: project.cpp:171
VTBL_ENTRY const wxString & GetRString(RSTRING_T aStringId)
Function GetRString returns a "retained string", which is any session and project specific string ide...
Definition: project.cpp:186
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
bool Select3DModel(wxWindow *aParent, S3D_CACHE *aCache, wxString &prevModelSelectDir, int &prevModelWildcard, MODULE_3D_SETTINGS *aModel)
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References WX_GRID::CommitPendingChanges(), Format(), PROJECT::GetProjectPath(), PROJECT::GetRString(), MODULE_3D_SETTINGS::m_Filename, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, MODULE_3D_SETTINGS::m_Preview, m_PreviewPane, m_shapes3D_list, KIWAY_HOLDER::Prj(), S3D::Select3DModel(), PROJECT::SetRString(), FILENAME_RESOLVER::SplitAlias(), PANEL_PREV_3D::UpdateDummyModule(), PROJECT::VIEWER_3D_FILTER_INDEX, and PROJECT::VIEWER_3D_PATH.

◆ OnAdd3DRow()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnAdd3DRow ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 554 of file dialog_edit_footprint_for_BoardEditor.cpp.

555 {
557  return;
558 
559  MODULE_3D_SETTINGS model;
560 
561  model.m_Preview = true;
562  m_shapes3D_list.push_back( model );
563 
564  int row = m_modelsGrid->GetNumberRows();
565  m_modelsGrid->AppendRows( 1 );
566  m_modelsGrid->SetCellValue( row, 1, wxT( "1" ) );
567 
568  m_modelsGrid->SetFocus();
569  m_modelsGrid->MakeCellVisible( row, 0 );
570  m_modelsGrid->SetGridCursor( row, 0 );
571 
572  m_modelsGrid->EnableCellEditControl( true );
573  m_modelsGrid->ShowCellEditControl();
574 }
bool m_Preview
Include module in 3D preview.
Definition: class_module.h:103
bool CommitPendingChanges(bool aQuietMode=false)
Close any open cell edit controls.
Definition: wx_grid.cpp:167
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References WX_GRID::CommitPendingChanges(), DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, MODULE_3D_SETTINGS::m_Preview, and m_shapes3D_list.

◆ OnAddField()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnAddField ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 739 of file dialog_edit_footprint_for_BoardEditor.cpp.

740 {
742  return;
743 
744  const BOARD_DESIGN_SETTINGS& dsnSettings = m_frame->GetDesignSettings();
745  TEXTE_MODULE textMod( m_footprint );
746 
747  // Set active layer if legal; otherwise copy layer from previous text item
748  if( LSET::AllTechMask().test( m_frame->GetActiveLayer() ) )
749  textMod.SetLayer( m_frame->GetActiveLayer() );
750  else
751  textMod.SetLayer( m_texts->at( m_texts->size() - 1 ).GetLayer() );
752 
753  textMod.SetTextSize( dsnSettings.GetTextSize( textMod.GetLayer() ) );
754  textMod.SetThickness( dsnSettings.GetTextThickness( textMod.GetLayer() ) );
755  textMod.SetItalic( dsnSettings.GetTextItalic( textMod.GetLayer() ) );
756  textMod.SetKeepUpright( dsnSettings.GetTextUpright( textMod.GetLayer() ) );
757  textMod.SetMirrored( IsBackLayer( textMod.GetLayer() ) );
758 
759  m_texts->push_back( textMod );
760 
761  // notify the grid
762  wxGridTableMessage msg( m_texts, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, 1 );
763  m_itemsGrid->ProcessTableMessage( msg );
764 
765  m_itemsGrid->SetFocus();
766  m_itemsGrid->MakeCellVisible( m_texts->size() - 1, 0 );
767  m_itemsGrid->SetGridCursor( m_texts->size() - 1, 0 );
768 
769  m_itemsGrid->EnableCellEditControl( true );
770  m_itemsGrid->ShowCellEditControl();
771 }
virtual BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Function GetDesignSettings returns the BOARD_DESIGN_SETTINGS for the BOARD owned by this frame.
bool IsBackLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a back layer.
int GetTextThickness(PCB_LAYER_ID aLayer) const
Function GetTextThickness Returns the default text thickness from the layer class for the given layer...
static LSET AllTechMask()
Function AllTechMask returns a mask holding all technical layers (no CU layer) on both side.
Definition: lset.cpp:746
bool GetTextUpright(PCB_LAYER_ID aLayer) const
bool GetTextItalic(PCB_LAYER_ID aLayer) const
virtual PCB_LAYER_ID GetActiveLayer() const
Function GetActiveLayer returns the active layer.
bool CommitPendingChanges(bool aQuietMode=false)
Close any open cell edit controls.
Definition: wx_grid.cpp:167
static bool GetLayer(MODEL_VRML &aModel, LAYER_NUM layer, VRML_LAYER **vlayer)
wxSize GetTextSize(PCB_LAYER_ID aLayer) const
Function GetTextSize Returns the default text size from the layer class for the given layer.
Class BOARD_DESIGN_SETTINGS contains design settings for a BOARD object.

References LSET::AllTechMask(), WX_GRID::CommitPendingChanges(), PCB_BASE_FRAME::GetActiveLayer(), PCB_BASE_FRAME::GetDesignSettings(), BOARD_ITEM::GetLayer(), GetLayer(), BOARD_DESIGN_SETTINGS::GetTextItalic(), BOARD_DESIGN_SETTINGS::GetTextSize(), BOARD_DESIGN_SETTINGS::GetTextThickness(), BOARD_DESIGN_SETTINGS::GetTextUpright(), IsBackLayer(), m_footprint, m_frame, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, m_texts, EDA_TEXT::SetItalic(), TEXTE_MODULE::SetKeepUpright(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), EDA_TEXT::SetTextSize(), and EDA_TEXT::SetThickness().

◆ OnDeleteField()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnDeleteField ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 774 of file dialog_edit_footprint_for_BoardEditor.cpp.

775 {
776  m_itemsGrid->CommitPendingChanges( true /* quiet mode */ );
777 
778  int curRow = m_itemsGrid->GetGridCursorRow();
779 
780  if( curRow < 0 )
781  return;
782  else if( curRow < 2 )
783  {
784  DisplayError( nullptr, _( "Reference and value are mandatory." ) );
785  return;
786  }
787 
788  m_texts->erase( m_texts->begin() + curRow );
789 
790  // notify the grid
791  wxGridTableMessage msg( m_texts, wxGRIDTABLE_NOTIFY_ROWS_DELETED, curRow, 1 );
792  m_itemsGrid->ProcessTableMessage( msg );
793 
794  if( m_itemsGrid->GetNumberRows() > 0 )
795  {
796  m_itemsGrid->MakeCellVisible( std::max( 0, curRow-1 ), m_itemsGrid->GetGridCursorCol() );
797  m_itemsGrid->SetGridCursor( std::max( 0, curRow-1 ), m_itemsGrid->GetGridCursorCol() );
798  }
799 }
bool CommitPendingChanges(bool aQuietMode=false)
Close any open cell edit controls.
Definition: wx_grid.cpp:167
#define _(s)
#define max(a, b)
Definition: auxiliary.h:86
void DisplayError(wxWindow *parent, const wxString &text, int displaytime)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:243

References _, WX_GRID::CommitPendingChanges(), DisplayError(), DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, m_texts, and max.

◆ OnGridSize()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnGridSize ( wxSizeEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 882 of file dialog_edit_footprint_for_BoardEditor.cpp.

883 {
884  adjustGridColumns( aEvent.GetSize().GetX());
885 
886  aEvent.Skip();
887 }

References adjustGridColumns().

◆ OnInitDlg()

virtual void DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::OnInitDlg ( wxInitDialogEvent &  event)
inlineprotectedvirtualinherited

◆ OnOtherOrientation()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnOtherOrientation ( wxCommandEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 225 of file dialog_edit_footprint_for_BoardEditor.cpp.

226 {
227  m_OrientOther->SetValue( true );
228 
229  aEvent.Skip();
230 }

References DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_OrientOther.

◆ OnPaint()

void DIALOG_SHIM::OnPaint ( wxPaintEvent &  event)
inherited

Definition at line 300 of file dialog_shim.cpp.

301 {
302  if( m_firstPaintEvent )
303  {
304 #ifdef __WXMAC__
305  fixOSXCancelButtonIssue( this );
306 #endif
307 
308  selectAllInTextCtrls( GetChildren() );
309 
311  m_initialFocusTarget->SetFocus();
312  else
313  SetFocus(); // Focus the dialog itself
314 
315  m_firstPaintEvent = false;
316  }
317 
318  event.Skip();
319 }
wxWindow * m_initialFocusTarget
Definition: dialog_shim.h:182
bool m_firstPaintEvent
Definition: dialog_shim.h:181
static void selectAllInTextCtrls(wxWindowList &children)

References DIALOG_SHIM::m_firstPaintEvent, DIALOG_SHIM::m_initialFocusTarget, and selectAllInTextCtrls().

Referenced by DIALOG_SHIM::DIALOG_SHIM().

◆ OnRemove3DModel()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnRemove3DModel ( wxCommandEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 474 of file dialog_edit_footprint_for_BoardEditor.cpp.

475 {
476  m_modelsGrid->CommitPendingChanges( true /* quiet mode */ );
477 
478  int idx = m_modelsGrid->GetGridCursorRow();
479 
480  if( idx >= 0 && m_modelsGrid->GetNumberRows() && !m_shapes3D_list.empty() )
481  {
482  m_shapes3D_list.erase( m_shapes3D_list.begin() + idx );
483  m_modelsGrid->DeleteRows( idx, 1 );
484 
485  select3DModel( idx ); // will clamp idx within bounds
487  }
488 }
void UpdateDummyModule(bool aRelaodRequired=true)
UpdateModelInfoList - copy shapes from the current shape list which are flagged for preview to the co...
bool CommitPendingChanges(bool aQuietMode=false)
Close any open cell edit controls.
Definition: wx_grid.cpp:167
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References WX_GRID::CommitPendingChanges(), DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, m_PreviewPane, m_shapes3D_list, select3DModel(), and PANEL_PREV_3D::UpdateDummyModule().

◆ OnUpdateUI()

void DIALOG_FOOTPRINT_BOARD_EDITOR::OnUpdateUI ( wxUpdateUIEvent &  )
overrideprivatevirtual

Reimplemented from DIALOG_FOOTPRINT_BOARD_EDITOR_BASE.

Definition at line 828 of file dialog_edit_footprint_for_BoardEditor.cpp.

829 {
830  if( !m_itemsGrid->IsCellEditControlShown() && !m_modelsGrid->IsCellEditControlShown() )
831  adjustGridColumns( m_itemsGrid->GetRect().GetWidth());
832 
833  // Handle a grid error. This is delayed to OnUpdateUI so that we can change focus
834  // even when the original validation was triggered from a killFocus event, and so
835  // that the corresponding notebook page can be shown in the background when triggered
836  // from an OK.
837  if( m_delayedFocusRow >= 0 )
838  {
839  // We will re-enter this routine if an error dialog is displayed, so make sure we
840  // zero out our member variables first.
841  wxGrid* grid = m_delayedFocusGrid;
842  int row = m_delayedFocusRow;
843  int col = m_delayedFocusColumn;
844  wxString msg = m_delayedErrorMessage;
845 
846  m_delayedFocusGrid = nullptr;
847  m_delayedFocusRow = -1;
849  m_delayedErrorMessage = wxEmptyString;
850 
851  if( !msg.IsEmpty() )
852  {
853  // Do not use DisplayErrorMessage(); it screws up window order on Mac
854  DisplayError( nullptr, msg );
855  }
856 
857  grid->SetFocus();
858  grid->MakeCellVisible( row, col );
859 
860  // Selecting the first grid item only makes sense for the
861  // items grid
862  if( !m_initialFocus || grid == m_itemsGrid )
863  {
864  grid->SetGridCursor( row, col );
865  grid->EnableCellEditControl( true );
866  grid->ShowCellEditControl();
867 
868  if( grid == m_itemsGrid && row == 0 && col == 0 )
869  {
870  auto referenceEditor = grid->GetCellEditor( 0, 0 );
871  SelectReferenceNumber( dynamic_cast<wxTextEntry*>( referenceEditor->GetControl() ) );
872  referenceEditor->DecRef();
873  }
874  }
875  m_initialFocus = false;
876  }
877 
878  m_buttonRemove->Enable( m_modelsGrid->GetNumberRows() > 0 );
879 }
void SelectReferenceNumber(wxTextEntry *aTextEntry)
Select the number (or "?") in a reference for ease of editing.
Definition: common.cpp:159
void DisplayError(wxWindow *parent, const wxString &text, int displaytime)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:243

References adjustGridColumns(), DisplayError(), DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonRemove, m_delayedErrorMessage, m_delayedFocusColumn, m_delayedFocusGrid, m_delayedFocusRow, m_initialFocus, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, and SelectReferenceNumber().

◆ Prj()

PROJECT & KIWAY_HOLDER::Prj ( ) const
inherited

Function Prj returns a reference to the PROJECT "associated with" this KIWAY.

Definition at line 34 of file kiway_holder.cpp.

35 {
36  return Kiway().Prj();
37 }
KIWAY & Kiway() const
Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in...
Definition: kiway_holder.h:56
VTBL_ENTRY PROJECT & Prj() const
Function Prj returns the PROJECT associated with this KIWAY.
Definition: kiway.cpp:163

References KIWAY_HOLDER::Kiway(), and KIWAY::Prj().

Referenced by PCB_BASE_EDIT_FRAME::AddLibrary(), LIB_MANAGER::addLibrary(), LIB_CONTROL::AddSymbolToSchematic(), SCH_EDIT_FRAME::AppendSchematic(), PCB_EDIT_FRAME::ArchiveModulesOnBoard(), DIALOG_SYMBOL_REMAP::backupProject(), LIB_VIEW_FRAME::BestZoom(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_FOOTPRINT_FP_EDITOR::Cfg3DPath(), Cfg3DPath(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::checkAliasName(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), KICAD_MANAGER_FRAME::CreateNewProject(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), FOOTPRINT_EDIT_FRAME::DeleteModuleFromLibrary(), DIALOG_BOARD_STATISTICS::DIALOG_BOARD_STATISTICS(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CHOOSE_FOOTPRINT::DIALOG_CHOOSE_FOOTPRINT(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP(), LIB_VIEW_FRAME::DisplayLibInfos(), CVPCB_MAINFRAME::DisplayStatus(), PCB_EDIT_FRAME::doAutoSave(), KICAD_MANAGER_CONTROL::Execute(), PCB_EDIT_FRAME::Export_IDF3(), LIB_CONTROL::ExportSymbolAsSVG(), LIB_CONTROL::ExportView(), PCB_EDIT_FRAME::ExportVRML_File(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_EDIT_FRAME::GenD356File(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), LIB_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), SCH_BASE_FRAME::GetLibAlias(), SCH_BASE_FRAME::GetLibPart(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), KICAD_MANAGER_FRAME::GetProjectFileName(), LIB_VIEW_FRAME::GetSelectedAlias(), FP_THREAD_IFACE::GetTable(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), SCH_EDITOR_CONTROL::ImportFPAssignments(), FOOTPRINT_EDIT_FRAME::initLibraryTree(), LIB_EDIT_FRAME::KiwayMailIn(), EDA_DRAW_FRAME::LibraryFileBrowser(), LIB_EDIT_FRAME::LoadComponentFromCurrentLib(), CVPCB_MAINFRAME::LoadFootprintFiles(), DIALOG_SPICE_MODEL::loadLibrary(), LIB_EDIT_FRAME::LoadOneSymbol(), KICAD_MANAGER_FRAME::LoadProject(), SCH_EDIT_FRAME::LoadProject(), SCH_EDIT_FRAME::LoadProjectFile(), CVPCB_MAINFRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), SCH_EDIT_FRAME::LoadSheetFromFile(), DIALOG_DRC_CONTROL::makeValidFileNameReport(), DIALOG_FOOTPRINT_FP_EDITOR::On3DModelCellChanged(), On3DModelCellChanged(), FOOTPRINT_VIEWER_FRAME::OnActivate(), DIALOG_FOOTPRINT_FP_EDITOR::OnAdd3DModel(), OnAdd3DModel(), KICAD_MANAGER_FRAME::OnBrowseInFileExplorer(), DIALOG_DRC_CONTROL::OnButtonBrowseRptFileClick(), DIALOG_EDIT_COMPONENTS_LIBID::onClickOrphansButton(), SCH_EDIT_FRAME::OnCloseWindow(), DIALOG_GENDRILL::OnGenReportFile(), SCH_EDIT_FRAME::OnImportProject(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), SCH_EDIT_FRAME::OnOpenCvpcb(), KICAD_MANAGER_FRAME::OnOpenFileInTextEditor(), DIALOG_NETLIST::OnOpenNetlistClick(), SCH_EDIT_FRAME::OnOpenPcbnew(), DIALOG_EXPORT_SVG::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), DIALOG_GEN_FOOTPRINT_POSITION::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), DIALOG_BOM::OnRunGenerator(), FOOTPRINT_EDIT_FRAME::OnSaveFootprintAsPng(), DIALOG_SPICE_MODEL::onSelectLibrary(), LIB_VIEW_FRAME::OnSelectSymbol(), KICAD_MANAGER_FRAME::OnUnarchiveFiles(), SCH_EDIT_FRAME::OnUpdatePCB(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), PANEL_PREV_3D::PANEL_PREV_3D(), SCH_EDITOR_CONTROL::Paste(), MODULE_EDITOR_TOOLS::PasteFootprint(), PCB_BASE_EDIT_FRAME::PCB_BASE_EDIT_FRAME(), SCH_DRAWING_TOOLS::PlaceComponent(), DIALOG_CHOOSE_COMPONENT::PopulateFootprintSelector(), SCH_EDIT_FRAME::Print(), SCH_EDIT_FRAME::PrintPage(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::RecreateCmpFileFromBoard(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), LIB_VIEW_FRAME::ReCreateListCmp(), LIB_VIEW_FRAME::ReCreateListLib(), EDA_3D_VIEWER::ReloadRequest(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), SCH_EDIT_FRAME::RescueLegacyProject(), SCH_EDIT_FRAME::RescueSymbolLibTableProject(), FOOTPRINT_EDIT_FRAME::restoreLastFootprint(), FOOTPRINT_EDIT_FRAME::retainLastFootprint(), SCH_EDIT_FRAME::SaveEEFile(), FOOTPRINT_EDIT_FRAME::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), LIB_EDIT_FRAME::saveLibrary(), LIB_EDIT_FRAME::SaveOneSymbol(), LIB_EDIT_FRAME::savePartAs(), SCH_EDIT_FRAME::SaveProject(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), DIALOG_BOARD_STATISTICS::saveReportClicked(), SCH_BASE_FRAME::saveSymbolLibTables(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_BASE_FRAME::SelectCompFromLibTree(), PCB_BASE_FRAME::SelectLibrary(), LIB_EDIT_FRAME::SelectLibraryFromList(), LIB_EDIT_FRAME::selectSymLibTable(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), LIB_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), LIB_EDIT_FRAME::SetCurPart(), KICAD_MANAGER_FRAME::SetProjectFileName(), EE_INSPECTION_TOOL::ShowDatasheet(), DIALOG_CHOOSE_COMPONENT::ShowFootprintFor(), LIB_VIEW_FRAME::ShowModal(), FOOTPRINT_VIEWER_FRAME::ShowModal(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::symTable(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::Sync(), FOOTPRINT_EDIT_FRAME::SyncLibraryTree(), EDA_3D_VIEWER::takeScreenshot(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::TransferDataFromWindow(), NETLIST_DIALOG::TransferDataFromWindow(), DIALOG_FOOTPRINT_FP_EDITOR::TransferDataToWindow(), TransferDataToWindow(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::UpdateFieldsFromLibrary(), SIM_PLOT_FRAME::updateNetlistExporter(), SCH_SCREEN::UpdateSymbolLinks(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), FOOTPRINT_EDIT_FRAME::updateTitle(), SCH_EDIT_FRAME::UpdateTitle(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::Validate(), SCH_EDIT_FRAME::WriteNetListFile(), ~DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::~DIALOG_FOOTPRINT_FP_EDITOR(), and PCB_BASE_EDIT_FRAME::~PCB_BASE_EDIT_FRAME().

◆ select3DModel()

void DIALOG_FOOTPRINT_BOARD_EDITOR::select3DModel ( int  aModelIdx)
private

Definition at line 404 of file dialog_edit_footprint_for_BoardEditor.cpp.

405 {
406  m_inSelect = true;
407 
408  aModelIdx = std::max( 0, aModelIdx );
409  aModelIdx = std::min( aModelIdx, m_modelsGrid->GetNumberRows() - 1 );
410 
411  if( m_modelsGrid->GetNumberRows() )
412  {
413  m_modelsGrid->SelectRow( aModelIdx );
414  m_modelsGrid->SetGridCursor( aModelIdx, 0 );
415  }
416 
417  m_PreviewPane->SetSelectedModel( aModelIdx );
418 
419  m_inSelect = false;
420 }
void SetSelectedModel(int idx)
SetModelDataIdx - Sets the currently selected index in the model list so that the scale/rotation/offs...
#define max(a, b)
Definition: auxiliary.h:86
#define min(a, b)
Definition: auxiliary.h:85

References m_inSelect, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, m_PreviewPane, max, min, and PANEL_PREV_3D::SetSelectedModel().

Referenced by On3DModelSelected(), OnRemove3DModel(), and TransferDataToWindow().

◆ SetInitialFocus()

void DIALOG_SHIM::SetInitialFocus ( wxWindow *  aWindow)
inlineinherited

Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.

Definition at line 118 of file dialog_shim.h.

119  {
120  m_initialFocusTarget = aWindow;
121  }
wxWindow * m_initialFocusTarget
Definition: dialog_shim.h:182

References DIALOG_SHIM::m_initialFocusTarget.

Referenced by DIALOG_BOM::DIALOG_BOM(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CHOOSE_FOOTPRINT::DIALOG_CHOOSE_FOOTPRINT(), DIALOG_CONFIGURE_PATHS::DIALOG_CONFIGURE_PATHS(), DIALOG_EDIT_LINE_STYLE::DIALOG_EDIT_LINE_STYLE(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_FIND::DIALOG_FIND(), DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_FP_PLUGIN_OPTIONS::DIALOG_FP_PLUGIN_OPTIONS(), DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM(), DIALOG_LIB_EDIT_PIN::DIALOG_LIB_EDIT_PIN(), DIALOG_LIB_EDIT_TEXT::DIALOG_LIB_EDIT_TEXT(), DIALOG_PAD_PRIMITIVES_PROPERTIES::DIALOG_PAD_PRIMITIVES_PROPERTIES(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_SCH_FIND::DIALOG_SCH_FIND(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SET_GRID::DIALOG_SET_GRID(), DIALOG_TARGET_PROPERTIES::DIALOG_TARGET_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_EDIT_ONE_FIELD::init(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchAllClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchIDClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchRefClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchSelectedClicked(), DIALOG_EXCHANGE_FOOTPRINTS::OnMatchValueClicked(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), LIB_EDIT_FRAME::savePartAs(), DIALOG_KEEPOUT_AREA_PROPERTIES::TransferDataToWindow(), DIALOG_NON_COPPER_ZONES_EDITOR::TransferDataToWindow(), and DIALOG_COPPER_ZONE::TransferDataToWindow().

◆ SetKiway()

void KIWAY_HOLDER::SetKiway ( wxWindow *  aDest,
KIWAY aKiway 
)
inherited

Function SetKiway.

Parameters
aDestis the recipient of aKiway pointer. It is only used for debugging, since "this" is not a wxWindow*. "this" is a KIWAY_HOLDER mix-in.
aKiwayis often from a parent window, or from KIFACE::CreateWindow().

Definition at line 41 of file kiway_holder.cpp.

42 {
43 #if defined(DEBUG)
44  // offer a trap point for debugging most any window
45  wxASSERT( aDest );
46  if( !strcmp( typeid(aDest).name(), "DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB" ) )
47  {
48  int breakhere=1;
49  (void) breakhere;
50  }
51 #endif
52 
53  (void) aDest;
54 
55  m_kiway = aKiway;
56 }
KIWAY * m_kiway
Definition: kiway_holder.h:81
const char * name
Definition: DXF_plotter.cpp:61

References KIWAY_HOLDER::m_kiway, and name.

Referenced by InvokePcbLibTableEditor(), and SIM_PLOT_FRAME::SIM_PLOT_FRAME().

◆ SetSizeInDU()

void DIALOG_SHIM::SetSizeInDU ( int  x,
int  y 
)
protectedinherited

Set the dialog to the given dimensions in "dialog units".

These are units equivalent to 4* the average character width and 8* the average character height, allowing a dialog to be sized in a way that scales it with the system font.

Definition at line 152 of file dialog_shim.cpp.

153 {
154  wxSize sz( x, y );
155  SetSize( ConvertDialogToPixels( sz ) );
156 }

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CHOOSE_FOOTPRINT::DIALOG_CHOOSE_FOOTPRINT(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), HTML_MESSAGE_BOX::HTML_MESSAGE_BOX(), and HTML_MESSAGE_BOX::SetDialogSizeInDU().

◆ Show()

bool DIALOG_SHIM::Show ( bool  show)
overrideinherited

Definition at line 180 of file dialog_shim.cpp.

181 {
182  bool ret;
183  const char* hash_key;
184 
185  if( m_hash_key.size() )
186  {
187  // a special case like EDA_LIST_DIALOG, which has multiple uses.
188  hash_key = m_hash_key.c_str();
189  }
190  else
191  {
192  hash_key = typeid(*this).name();
193  }
194 
195  // Show or hide the window. If hiding, save current position and size.
196  // If showing, use previous position and size.
197  if( show )
198  {
199 #ifndef __WINDOWS__
200  wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
201 #endif
202  ret = wxDialog::Show( show );
203 
204  // classname is key, returns a zeroed out default EDA_RECT if none existed before.
205  EDA_RECT savedDialogRect = class_map[ hash_key ];
206 
207  if( savedDialogRect.GetSize().x != 0 && savedDialogRect.GetSize().y != 0 )
208  {
209  SetSize( savedDialogRect.GetPosition().x,
210  savedDialogRect.GetPosition().y,
211  std::max( wxDialog::GetSize().x, savedDialogRect.GetSize().x ),
212  std::max( wxDialog::GetSize().y, savedDialogRect.GetSize().y ),
213  0 );
214  }
215 
216  // Be sure that the dialog appears in a visible area
217  // (the dialog position might have been stored at the time when it was
218  // shown on another display)
219  if( wxDisplay::GetFromWindow( this ) == wxNOT_FOUND )
220  Centre();
221  }
222  else
223  {
224  // Save the dialog's position & size before hiding, using classname as key
225  class_map[ hash_key ] = EDA_RECT( wxDialog::GetPosition(), wxDialog::GetSize() );
226 
227 #ifdef __WXMAC__
228  if ( m_eventLoop )
229  m_eventLoop->Exit( GetReturnCode() ); // Needed for APP-MODAL dlgs on OSX
230 #endif
231 
232  ret = wxDialog::Show( show );
233  }
234 
235  return ret;
236 }
std::string m_hash_key
Definition: dialog_shim.h:176
static RECT_MAP class_map
const wxPoint GetPosition() const
Definition: eda_rect.h:113
#define max(a, b)
Definition: auxiliary.h:86
Class EDA_RECT handles the component boundary box.
Definition: eda_rect.h:44
const wxSize GetSize() const
Definition: eda_rect.h:101

References class_map, EDA_RECT::GetPosition(), EDA_RECT::GetSize(), DIALOG_SHIM::m_hash_key, and max.

Referenced by DIALOG_SHIM::EndQuasiModal(), InvokeDialogERC(), SCH_EDIT_FRAME::OnAnnotate(), DIALOG_DRC_CONTROL::OnLeftDClickClearance(), DIALOG_DRC_CONTROL::OnLeftDClickFootprints(), DIALOG_CLEANUP_TRACKS_AND_VIAS::OnLeftDClickItem(), DIALOG_DRC_CONTROL::OnLeftDClickUnconnected(), POSITION_RELATIVE_TOOL::PositionRelative(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), DRC::ShowDRCDialog(), SCH_EDIT_FRAME::ShowFindReplaceDialog(), DIALOG_SHIM::ShowQuasiModal(), and DIALOG_POSITION_RELATIVE::UpdateAnchor().

◆ ShowQuasiModal()

int DIALOG_SHIM::ShowQuasiModal ( )
inherited

Definition at line 345 of file dialog_shim.cpp.

346 {
347  // This is an exception safe way to zero a pointer before returning.
348  // Yes, even though DismissModal() clears this first normally, this is
349  // here in case there's an exception before the dialog is dismissed.
350  struct NULLER
351  {
352  void*& m_what;
353  NULLER( void*& aPtr ) : m_what( aPtr ) {}
354  ~NULLER() { m_what = 0; } // indeed, set it to NULL on destruction
355  } clear_this( (void*&) m_qmodal_loop );
356 
357  // release the mouse if it's currently captured as the window having it
358  // will be disabled when this dialog is shown -- but will still keep the
359  // capture making it impossible to do anything in the modal dialog itself
360  wxWindow* win = wxWindow::GetCapture();
361  if( win )
362  win->ReleaseMouse();
363 
364  // Get the optimal parent
365  wxWindow* parent = GetParentForModalDialog( GetParent(), GetWindowStyle() );
366 
367  // Show the optimal parent
368  DBG( if( parent ) printf( "%s: optimal parent: %s\n", __func__, typeid(*parent).name() );)
369 
370  wxASSERT_MSG( !m_qmodal_parent_disabler,
371  wxT( "Caller using ShowQuasiModal() twice on same window?" ) );
372 
373  // quasi-modal: disable only my "optimal" parent
375 
376 #ifdef __WXMAC__
377  // Apple in its infinite wisdom will raise a disabled window before even passing
378  // us the event, so we have no way to stop it. Instead, we must set an order on
379  // the windows so that the quasi-modal will be pushed in front of the disabled
380  // window when it is raised.
381  ReparentQuasiModal();
382 #endif
383  Show( true );
384 
385  m_qmodal_showing = true;
386 
387  WX_EVENT_LOOP event_loop;
388 
389  m_qmodal_loop = &event_loop;
390 
391  event_loop.Run();
392 
393  m_qmodal_showing = false;
394 
395  return GetReturnCode();
396 }
bool m_qmodal_showing
Definition: dialog_shim.h:186
#define WX_EVENT_LOOP
Definition: kiway_player.h:41
WX_EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:185
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:187
Toggle a window's "enable" status to disabled, then enabled on destruction.
Definition: dialog_shim.cpp:35
#define DBG(x)
Definition: fctsys.h:33

References DBG, DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, DIALOG_SHIM::Show(), and WX_EVENT_LOOP.

Referenced by LIB_EDIT_TOOL::editFieldProperties(), SCH_EDITOR_CONTROL::EditSymbolFields(), LIB_EDIT_TOOL::editSymbolProperties(), GLOBAL_EDIT_TOOL::EditTracksAndVias(), GLOBAL_EDIT_TOOL::ExchangeFootprints(), PCB_EDIT_FRAME::InstallExchangeModuleFrame(), PCB_BASE_FRAME::InstallPadOptionsFrame(), InvokeDialogEditComponentsLibId(), InvokeDialogRescueEach(), InvokeDialogUpdateFields(), SCH_EDITOR_CONTROL::NavigateHierarchy(), SCH_EDIT_FRAME::OnRemapSymbols(), LIB_VIEW_FRAME::OnSelectSymbol(), SCH_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_TOOL::Properties(), EDIT_TOOL::Properties(), SCH_BASE_FRAME::SelectCompFromLibTree(), and PCB_BASE_FRAME::SelectFootprintFromLibTree().

◆ TransferDataFromWindow()

bool DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataFromWindow ( )
override

Definition at line 611 of file dialog_edit_footprint_for_BoardEditor.cpp.

612 {
613  if( !Validate() )
614  return false;
615 
616  if( !DIALOG_SHIM::TransferDataFromWindow() )
617  return false;
618 
619  if( !m_PanelGeneral->TransferDataFromWindow() )
620  return false;
621 
622  if( !m_Panel3D->TransferDataFromWindow() )
623  return false;
624 
625  auto view = m_frame->GetCanvas()->GetView();
626  BOARD_COMMIT commit( m_frame );
627  commit.Modify( m_footprint );
628 
629  // copy reference and value
630  m_footprint->Reference() = m_texts->at( 0 );
631  m_footprint->Value() = m_texts->at( 1 );
632 
633  size_t i = 2;
634 
635  for( auto item : m_footprint->GraphicalItems() )
636  {
637  TEXTE_MODULE* textModule = dyn_cast<TEXTE_MODULE*>( item );
638 
639  if( textModule )
640  {
641  // copy grid table entries till we run out, then delete any remaining texts
642  if( i < m_texts->size() )
643  *textModule = m_texts->at( i++ );
644  else
645  textModule->DeleteStructure();
646  }
647  }
648 
649  // if there are still grid table entries, create new texts for them
650  while( i < m_texts->size() )
651  {
652  auto newText = new TEXTE_MODULE( m_texts->at( i++ ) );
653  m_footprint->Add( newText, ADD_APPEND );
654  view->Add( newText );
655  }
656 
657  // Initialize masks clearances
661 
662  double dtmp = 0.0;
663  wxString msg = m_SolderPasteMarginRatioCtrl->GetValue();
664  msg.ToDouble( &dtmp );
665 
666  // A -50% margin ratio means no paste on a pad, the ratio must be >= -50%
667  if( dtmp < -50.0 )
668  dtmp = -50.0;
669  // A margin ratio is always <= 0
670  // 0 means use full pad copper area
671  if( dtmp > 0.0 )
672  dtmp = 0.0;
673 
675 
676  switch( m_ZoneConnectionChoice->GetSelection() )
677  {
678  default:
683  }
684 
685  // Set Module Position
686  wxPoint modpos( m_posX.GetValue(), m_posY.GetValue() );
687  m_footprint->SetPosition( modpos );
688  m_footprint->SetLocked( m_AutoPlaceCtrl->GetSelection() == 2 );
689  m_footprint->SetPadsLocked( m_AutoPlaceCtrl->GetSelection() == 1 );
690 
691  switch( m_AttributsCtrl->GetSelection() )
692  {
693  case 0: m_footprint->SetAttributes( 0 ); break;
694  case 1: m_footprint->SetAttributes( MOD_CMS ); break;
695  case 2: m_footprint->SetAttributes( MOD_VIRTUAL ); break;
696  default: wxFAIL;
697  }
698 
701 
702  // Now, set orientation. Must be done after other changes because rotation changes field
703  // positions on board (so that relative positions are held constant)
704  m_OrientValidator.TransferFromWindow();
705 
706  int orient = KiROUND( m_OrientValue * 10.0 );
707 
708  if( m_footprint->GetOrientation() != orient )
710 
711  // Set component side, that also have effect on the fields positions on board
712  bool change_layer = false;
713  if( m_BoardSideCtrl->GetSelection() == 0 ) // layer req = COMPONENT
714  {
715  if( m_footprint->GetLayer() == B_Cu )
716  change_layer = true;
717  }
718  else if( m_footprint->GetLayer() == F_Cu )
719  change_layer = true;
720 
721  if( change_layer )
723 
724  std::list<MODULE_3D_SETTINGS>* draw3D = &m_footprint->Models();
725  draw3D->clear();
726  draw3D->insert( draw3D->end(), m_shapes3D_list.begin(), m_shapes3D_list.end() );
727 
729 
730  // This is a simple edit, we must create an undo entry
731  if( m_footprint->GetEditFlags() == 0 ) // i.e. not edited, or moved
732  commit.Push( _( "Modify module properties" ) );
733 
734  SetReturnCode( PRM_EDITOR_EDIT_OK );
735  return true;
736 }
void SetPlacementCost90(int aCost)
Definition: class_module.h:527
double GetOrientation() const
Definition: class_module.h:193
TEXTE_MODULE & Reference()
Definition: class_module.h:448
void Rotate(const wxPoint &aRotCentre, double aAngle) override
Function Rotate Rotate this object.
void SetLocalClearance(int aClearance)
Definition: class_module.h:213
static int KiROUND(double v)
Round a floating point number to an integer using "round halfway cases away from zero".
Definition: common.h:115
void SetPlacementCost180(int aCost)
Definition: class_module.h:524
void CalculateBoundingBox()
Function CalculateBoundingBox calculates the bounding box in board coordinates.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
Set for modules listed in the automatic insertion list (usually SMD footprints)
Definition: class_module.h:76
void DeleteStructure()
Function DeleteStructure deletes this object after UnLink()ing it from its owner if it has one.
void SetZoneConnection(ZoneConnection aType)
Definition: class_module.h:221
DRAWINGS & GraphicalItems()
Definition: class_module.h:173
void SetLocalSolderPasteMarginRatio(double aRatio)
Definition: class_module.h:219
Pads are not covered.
Definition: zones.h:52
virtual int GetValue()
Function GetValue Returns the current value in Internal Units.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_INSERT) override
STATUS_FLAGS GetEditFlags() const
Definition: base_struct.h:269
TEXTE_MODULE & Value()
read/write accessors:
Definition: class_module.h:447
PCB_GENERAL_SETTINGS & Settings()
void Flip(const wxPoint &aCentre, bool aFlipLeftRight) override
Function Flip Flip this object, i.e.
wxFloatingPointValidator< double > m_OrientValidator
void SetPadsLocked(bool aPadsLocked)
Definition: class_module.h:310
void SetPosition(const wxPoint &aPos) override
#define _(s)
virtual KIGFX::PCB_VIEW * GetView() const override
Function GetView() Returns a pointer to the VIEW instance used in the panel.
void SetLocalSolderMaskMargin(int aMargin)
Definition: class_module.h:210
void SetLocalSolderPasteMargin(int aMargin)
Definition: class_module.h:216
std::list< MODULE_3D_SETTINGS > & Models()
Definition: class_module.h:183
void SetLocked(bool isLocked) override
Function SetLocked sets the MODULE_is_LOCKED bit in the m_ModuleStatus.
Definition: class_module.h:282
Virtual component: when created by copper shapes on board (Like edge card connectors,...
Definition: class_module.h:78
size_t i
Definition: json11.cpp:597
virtual PCB_LAYER_ID GetLayer() const
Function GetLayer returns the primary layer this item is on.
const wxPoint GetPosition() const override
Definition: class_module.h:188
Use thermal relief for pads.
Definition: zones.h:53
void SetAttributes(int aAttributes)
Definition: class_module.h:231
pads are covered by copper
Definition: zones.h:54
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References _, MODULE::Add(), ADD_APPEND, B_Cu, MODULE::CalculateBoundingBox(), BOARD_ITEM::DeleteStructure(), F_Cu, MODULE::Flip(), PCB_BASE_FRAME::GetCanvas(), EDA_ITEM::GetEditFlags(), BOARD_ITEM::GetLayer(), MODULE::GetOrientation(), MODULE::GetPosition(), UNIT_BINDER::GetValue(), PCB_DRAW_PANEL_GAL::GetView(), MODULE::GraphicalItems(), i, KiROUND(), DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_AttributsCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_AutoPlaceCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_BoardSideCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_CostRot180Ctrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_CostRot90Ctrl, PCB_GENERAL_SETTINGS::m_FlipLeftRight, m_footprint, m_frame, m_netClearance, m_OrientValidator, m_OrientValue, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Panel3D, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_PanelGeneral, m_posX, m_posY, m_shapes3D_list, m_solderMask, m_solderPaste, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginRatioCtrl, m_texts, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_ZoneConnectionChoice, MOD_CMS, MOD_VIRTUAL, MODULE::Models(), COMMIT::Modify(), PAD_ZONE_CONN_FULL, PAD_ZONE_CONN_INHERITED, PAD_ZONE_CONN_NONE, PAD_ZONE_CONN_THERMAL, PRM_EDITOR_EDIT_OK, BOARD_COMMIT::Push(), MODULE::Reference(), MODULE::Rotate(), MODULE::SetAttributes(), MODULE::SetLocalClearance(), MODULE::SetLocalSolderMaskMargin(), MODULE::SetLocalSolderPasteMargin(), MODULE::SetLocalSolderPasteMarginRatio(), MODULE::SetLocked(), MODULE::SetPadsLocked(), MODULE::SetPlacementCost180(), MODULE::SetPlacementCost90(), MODULE::SetPosition(), PCB_BASE_FRAME::Settings(), MODULE::SetZoneConnection(), Validate(), and MODULE::Value().

◆ TransferDataToWindow()

bool DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataToWindow ( )
override

Definition at line 233 of file dialog_edit_footprint_for_BoardEditor.cpp.

234 {
235  if( !wxDialog::TransferDataToWindow() )
236  return false;
237 
238  if( !m_PanelGeneral->TransferDataToWindow() )
239  return false;
240 
241  if( !m_Panel3D->TransferDataToWindow() )
242  return false;
243 
244  // Module Texts
245 
246  m_texts->push_back( m_footprint->Reference() );
247  m_texts->push_back( m_footprint->Value() );
248 
249  for( auto item : m_footprint->GraphicalItems() )
250  {
251  auto textModule = dyn_cast<TEXTE_MODULE*>( item );
252 
253  if( textModule )
254  m_texts->push_back( *textModule );
255  }
256 
257  // notify the grid
258  wxGridTableMessage tmsg( m_texts, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, m_texts->GetNumberRows() );
259  m_itemsGrid->ProcessTableMessage( tmsg );
260 
261  // Module Properties
262 
265 
267 
268  if( m_OrientValue == 0.0 )
269  m_Orient0->SetValue( true );
270  else if( m_OrientValue == 90.0 || m_OrientValue == -270.0 )
271  m_Orient90->SetValue( true );
272  else if( m_OrientValue == 270.0 || m_OrientValue == -90.0 )
273  m_Orient270->SetValue( true );
274  else if( m_OrientValue == 180.0 || m_OrientValue == -180.0 )
275  m_Orient180->SetValue( true );
276  else
277  m_OrientOther->SetValue( true );
278 
280 
281  m_BoardSideCtrl->SetSelection( (m_footprint->GetLayer() == B_Cu) ? 1 : 0 );
282 
283  if( m_footprint->IsLocked() )
284  m_AutoPlaceCtrl->SetSelection( 2 );
285  else if( m_footprint->PadsLocked() )
286  m_AutoPlaceCtrl->SetSelection( 1 );
287  else
288  m_AutoPlaceCtrl->SetSelection( 0 );
289 
290  m_AutoPlaceCtrl->SetItemToolTip( 0, _( "Component can be freely moved and auto placed. User "
291  "can arbitrarily select and edit component's pads." ) );
292  m_AutoPlaceCtrl->SetItemToolTip( 1, _( "Component can be freely moved and auto placed, but "
293  "its pads cannot be selected or edited." ) );
294  m_AutoPlaceCtrl->SetItemToolTip( 2, _( "Component is locked: it cannot be freely moved or "
295  "auto placed." ) );
296 
299 
300  m_AttributsCtrl->SetItemToolTip( 0, _( "Use this attribute for most non SMD footprints\n"
301  "Footprints with this option are not put in the footprint position list file" ) );
302  m_AttributsCtrl->SetItemToolTip( 1, _( "Use this attribute for SMD footprints.\n"
303  "Only footprints with this option are put in the footprint position list file" ) );
304  m_AttributsCtrl->SetItemToolTip( 2, _( "Use this attribute for \"virtual\" footprints drawn "
305  "on board\nsuch as an edge connector (old ISA PC bus for instance)" ) );
306 
307  switch( m_footprint->GetAttributes() & 255 )
308  {
309  case MOD_CMS: m_AttributsCtrl->SetSelection( 1 ); break;
310  case MOD_VIRTUAL: m_AttributsCtrl->SetSelection( 2 ); break;
311  case 0:
312  default: m_AttributsCtrl->SetSelection( 0 ); break;
313  }
314 
315  // Local Clearances
316 
320 
321  // Prefer "-0" to "0" for normally negative values
323  m_SolderPasteMarginCtrl->SetValue( wxT( "-" ) + m_SolderPasteMarginCtrl->GetValue() );
324 
325  // Add solder paste margin ratio in percent
326  // for the usual default value 0.0, display -0.0 (or -0,0 in some countries)
327  wxString msg;
328  msg.Printf( wxT( "%f" ), m_footprint->GetLocalSolderPasteMarginRatio() * 100.0 );
329 
331  msg[0] == '0') // Sometimes Printf adds a sign if the value is very small (0.0)
332  m_SolderPasteMarginRatioCtrl->SetValue( wxT("-") + msg );
333  else
335 
336  switch( m_footprint->GetZoneConnection() )
337  {
338  default:
339  case PAD_ZONE_CONN_INHERITED: m_ZoneConnectionChoice->SetSelection( 0 ); break;
340  case PAD_ZONE_CONN_FULL: m_ZoneConnectionChoice->SetSelection( 1 ); break;
341  case PAD_ZONE_CONN_THERMAL: m_ZoneConnectionChoice->SetSelection( 2 ); break;
342  case PAD_ZONE_CONN_NONE: m_ZoneConnectionChoice->SetSelection( 3 ); break;
343  }
344 
345  // 3D Settings
346 
347  wxString default_path;
348  wxGetEnv( KISYS3DMOD, &default_path );
349 #ifdef __WINDOWS__
350  default_path.Replace( wxT( "/" ), wxT( "\\" ) );
351 #endif
352 
353  m_shapes3D_list.clear();
354  m_modelsGrid->DeleteRows( 0, m_modelsGrid->GetNumberRows() );
355 
356  wxString origPath, alias, shortPath;
357  FILENAME_RESOLVER* res = Prj().Get3DCacheManager()->GetResolver();
358 
359  for( MODULE_3D_SETTINGS model : m_footprint->Models() )
360  {
361  m_shapes3D_list.push_back( model );
362  origPath = model.m_Filename;
363 
364  if( res && res->SplitAlias( origPath, alias, shortPath ) )
365  origPath = alias + wxT( ":" ) + shortPath;
366 
367  m_modelsGrid->AppendRows( 1 );
368  int row = m_modelsGrid->GetNumberRows() - 1;
369  m_modelsGrid->SetCellValue( row, 0, origPath );
370  m_modelsGrid->SetCellValue( row, 1, model.m_Preview ? wxT( "1" ) : wxT( "0" ) );
371  }
372 
373  select3DModel( 0 ); // will clamp idx within bounds
375 
376  // Show the footprint's ID.
377  m_staticLibraryID->SetLabel( m_footprint->GetFPID().Format() );
378 
379  for( int col = 0; col < m_itemsGrid->GetNumberCols(); col++ )
380  {
381  m_itemsGrid->SetColMinimalWidth( col, m_itemsGrid->GetVisibleWidth( col, true, false,
382  false ) );
383  // Adjust the column size. The column 6 has a small bitmap, so its width must be
384  // taken in account
385  int col_size = m_itemsGrid->GetVisibleWidth( col, true, true, false );
386 
387  if( col == 6 )
388  col_size += 20;
389 
390  if( m_itemsGrid->IsColShown( col ) )
391  m_itemsGrid->SetColSize( col, col_size );
392  }
393 
394  m_itemsGrid->SetRowLabelSize( m_itemsGrid->GetVisibleWidth( -1, false, true, true ) );
395  m_modelsGrid->SetColSize( 1, m_modelsGrid->GetVisibleWidth( 1, true, false, false ) );
396 
397  Layout();
398  adjustGridColumns( m_itemsGrid->GetRect().GetWidth());
399 
400  return true;
401 }
int GetAttributes() const
Definition: class_module.h:230
double GetOrientation() const
Definition: class_module.h:193
int GetPlacementCost90() const
Definition: class_module.h:526
TEXTE_MODULE & Reference()
Definition: class_module.h:448
Set for modules listed in the automatic insertion list (usually SMD footprints)
Definition: class_module.h:76
void UpdateDummyModule(bool aRelaodRequired=true)
UpdateModelInfoList - copy shapes from the current shape list which are flagged for preview to the co...
const LIB_ID & GetFPID() const
Definition: class_module.h:197
#define KISYS3DMOD
A variable name whose value holds the path of 3D shape files.
Definition: eda_3d_viewer.h:44
DRAWINGS & GraphicalItems()
Definition: class_module.h:173
int GetLocalSolderMaskMargin() const
Definition: class_module.h:209
void SetValue(const wxString &aValue) override
Set a new value in evaluator buffer, and display it in the wxTextCtrl.
int GetVisibleWidth(int aCol, bool aHeader=true, bool aContents=false, bool aKeep=true)
Calculates the specified column based on the actual size of the text on screen.
Definition: wx_grid.cpp:223
Pads are not covered.
Definition: zones.h:52
bool SplitAlias(const wxString &aFileName, wxString &anAlias, wxString &aRelPath)
Function SplitAlias returns true if the given name contains an alias and populates the string anAlias...
int GetLocalClearance() const
Definition: class_module.h:212
TEXTE_MODULE & Value()
read/write accessors:
Definition: class_module.h:447
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
#define _(s)
bool IsLocked() const override
Function IsLocked.
Definition: class_module.h:272
UTF8 Format() const
Definition: lib_id.cpp:237
int GetLocalSolderPasteMargin() const
Definition: class_module.h:215
int GetPlacementCost180() const
Definition: class_module.h:523
double GetLocalSolderPasteMarginRatio() const
Definition: class_module.h:218
std::list< MODULE_3D_SETTINGS > & Models()
Definition: class_module.h:183
Virtual component: when created by copper shapes on board (Like edge card connectors,...
Definition: class_module.h:78
virtual void SetValue(int aValue)
Function SetValue Sets new value (in Internal Units) for the text field, taking care of units convers...
bool PadsLocked() const
Definition: class_module.h:308
virtual PCB_LAYER_ID GetLayer() const
Function GetLayer returns the primary layer this item is on.
const wxPoint GetPosition() const override
Definition: class_module.h:188
Use thermal relief for pads.
Definition: zones.h:53
ZoneConnection GetZoneConnection() const
Definition: class_module.h:222
void updateOrientationControl()
Update the orientation validated control, without triggering a change event on the control (which wou...
pads are covered by copper
Definition: zones.h:54
int GetNumberRows() override
std::vector< MODULE_3D_SETTINGS > m_shapes3D_list

References _, adjustGridColumns(), B_Cu, LIB_ID::Format(), MODULE::GetAttributes(), MODULE::GetFPID(), BOARD_ITEM::GetLayer(), MODULE::GetLocalClearance(), MODULE::GetLocalSolderMaskMargin(), MODULE::GetLocalSolderPasteMargin(), MODULE::GetLocalSolderPasteMarginRatio(), TEXT_MOD_GRID_TABLE::GetNumberRows(), MODULE::GetOrientation(), MODULE::GetPlacementCost180(), MODULE::GetPlacementCost90(), MODULE::GetPosition(), WX_GRID::GetVisibleWidth(), MODULE::GetZoneConnection(), MODULE::GraphicalItems(), MODULE::IsLocked(), KISYS3DMOD, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_AttributsCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_AutoPlaceCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_BoardSideCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_CostRot180Ctrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_CostRot90Ctrl, m_footprint, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_modelsGrid, m_netClearance, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient0, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient180, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient270, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Orient90, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_OrientOther, m_OrientValue, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Panel3D, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_PanelGeneral, m_posX, m_posY, m_PreviewPane, m_shapes3D_list, m_solderMask, m_solderPaste, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginRatioCtrl, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticLibraryID, m_texts, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_ZoneConnectionChoice, MOD_CMS, MOD_VIRTUAL, MODULE::Models(), PAD_ZONE_CONN_FULL, PAD_ZONE_CONN_INHERITED, PAD_ZONE_CONN_NONE, PAD_ZONE_CONN_THERMAL, MODULE::PadsLocked(), KIWAY_HOLDER::Prj(), MODULE::Reference(), select3DModel(), TEXT_CTRL_EVAL::SetValue(), UNIT_BINDER::SetValue(), FILENAME_RESOLVER::SplitAlias(), PANEL_PREV_3D::UpdateDummyModule(), updateOrientationControl(), and MODULE::Value().

◆ UpdateModule()

void DIALOG_FOOTPRINT_BOARD_EDITOR::UpdateModule ( wxCommandEvent &  )
overrideprivatevirtual

◆ updateOrientationControl()

void DIALOG_FOOTPRINT_BOARD_EDITOR::updateOrientationControl ( )
private

Update the orientation validated control, without triggering a change event on the control (which would update the radio buttons)

Definition at line 890 of file dialog_edit_footprint_for_BoardEditor.cpp.

891 {
893 }
void ValidatorTransferToWindowWithoutEvents(wxValidator &aValidator)
Call a text validator's TransferDataToWindow method without firing a text change event.
Definition: validators.cpp:325
wxFloatingPointValidator< double > m_OrientValidator

References m_OrientValidator, and KIUI::ValidatorTransferToWindowWithoutEvents().

Referenced by ModuleOrientEvent(), and TransferDataToWindow().

◆ Validate()

bool DIALOG_FOOTPRINT_BOARD_EDITOR::Validate ( )
override

Definition at line 577 of file dialog_edit_footprint_for_BoardEditor.cpp.

578 {
580  return false;
581 
582  if( !DIALOG_SHIM::Validate() )
583  return false;
584 
585  // Check for empty texts.
586  for( size_t i = 2; i < m_texts->size(); ++i )
587  {
588  TEXTE_MODULE& text = m_texts->at( i );
589 
590  if( text.GetText().IsEmpty() )
591  {
592  if( m_NoteBook->GetSelection() != 0 )
593  m_NoteBook->SetSelection( 0 );
594 
596  m_delayedErrorMessage = _( "Text items must have some content." );
599 
600  return false;
601  }
602  }
603 
604  if( !m_netClearance.Validate( 0, INT_MAX ) )
605  return false;
606 
607  return true;
608 }
virtual bool Validate(int aMin, int aMax, bool setFocusOnError=true)
Function Validate Validates the control against the given range, informing the user of any errors fou...
bool CommitPendingChanges(bool aQuietMode=false)
Close any open cell edit controls.
Definition: wx_grid.cpp:167
#define _(s)
size_t i
Definition: json11.cpp:597
virtual const wxString & GetText() const
Function GetText returns the string associated with the text object.
Definition: eda_text.h:124

References _, WX_GRID::CommitPendingChanges(), EDA_TEXT::GetText(), i, m_delayedErrorMessage, m_delayedFocusColumn, m_delayedFocusGrid, m_delayedFocusRow, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_itemsGrid, m_netClearance, DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NoteBook, m_texts, TMC_TEXT, and UNIT_BINDER::Validate().

Referenced by TransferDataFromWindow().

◆ VertPixelsFromDU()

int DIALOG_SHIM::VertPixelsFromDU ( int  y)
protectedinherited

Convert an integer number of dialog units to pixels, vertically.

See SetSizeInDU or wxDialog documentation for more information.

Definition at line 166 of file dialog_shim.cpp.

167 {
168  wxSize sz( 0, y );
169  return ConvertDialogToPixels( sz ).y;
170 }

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), and DIALOG_CHOOSE_FOOTPRINT::DIALOG_CHOOSE_FOOTPRINT().

Member Data Documentation

◆ bLowerSizer3D

wxBoxSizer* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::bLowerSizer3D
protectedinherited

◆ bSizerMain3D

wxBoxSizer* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::bSizerMain3D
protectedinherited

◆ m_allow180Label

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_allow180Label
protectedinherited

◆ m_allow90Label

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_allow90Label
protectedinherited

◆ m_AttributsCtrl

wxRadioBox* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_AttributsCtrl
protectedinherited

◆ m_AutoPlaceCtrl

wxRadioBox* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_AutoPlaceCtrl
protectedinherited

◆ m_BoardSideCtrl

wxChoice* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_BoardSideCtrl
protectedinherited

◆ m_BoardSideLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_BoardSideLabel
protectedinherited

◆ m_bpAdd

◆ m_bpDelete

◆ m_button5

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_button5
protectedinherited

◆ m_button8

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_button8
protectedinherited

◆ m_buttonAdd

◆ m_buttonBrowse

◆ m_buttonExchange

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonExchange
protectedinherited

◆ m_buttonModuleEditor

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonModuleEditor
protectedinherited

◆ m_buttonRemove

◆ m_buttonUpdate

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_buttonUpdate
protectedinherited

◆ m_config

wxConfigBase* DIALOG_FOOTPRINT_BOARD_EDITOR::m_config
private

◆ m_CostRot180Ctrl

wxSlider* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_CostRot180Ctrl
protectedinherited

◆ m_CostRot90Ctrl

wxSlider* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_CostRot90Ctrl
protectedinherited

◆ m_delayedErrorMessage

wxString DIALOG_FOOTPRINT_BOARD_EDITOR::m_delayedErrorMessage
private

◆ m_delayedFocusColumn

int DIALOG_FOOTPRINT_BOARD_EDITOR::m_delayedFocusColumn
private

◆ m_delayedFocusGrid

wxGrid* DIALOG_FOOTPRINT_BOARD_EDITOR::m_delayedFocusGrid
private

◆ m_delayedFocusRow

int DIALOG_FOOTPRINT_BOARD_EDITOR::m_delayedFocusRow
private

◆ m_firstPaintEvent

bool DIALOG_SHIM::m_firstPaintEvent
protectedinherited

Definition at line 181 of file dialog_shim.h.

Referenced by DIALOG_SHIM::OnPaint().

◆ m_footprint

MODULE* DIALOG_FOOTPRINT_BOARD_EDITOR::m_footprint
private

◆ m_frame

PCB_EDIT_FRAME* DIALOG_FOOTPRINT_BOARD_EDITOR::m_frame
private

◆ m_hash_key

◆ m_initialFocus

bool DIALOG_FOOTPRINT_BOARD_EDITOR::m_initialFocus
private

Definition at line 67 of file dialog_edit_footprint_for_BoardEditor.h.

Referenced by OnUpdateUI().

◆ m_initialFocusTarget

wxWindow* DIALOG_SHIM::m_initialFocusTarget
protectedinherited

Definition at line 182 of file dialog_shim.h.

Referenced by DIALOG_SHIM::OnPaint(), and DIALOG_SHIM::SetInitialFocus().

◆ m_inSelect

bool DIALOG_FOOTPRINT_BOARD_EDITOR::m_inSelect
private

Definition at line 69 of file dialog_edit_footprint_for_BoardEditor.h.

Referenced by On3DModelSelected(), and select3DModel().

◆ m_itemsGrid

◆ m_libraryIDLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_libraryIDLabel
protectedinherited

◆ m_modelsGrid

◆ m_ModPositionX

wxTextCtrl* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_ModPositionX
protectedinherited

◆ m_ModPositionY

wxTextCtrl* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_ModPositionY
protectedinherited

◆ m_netClearance

UNIT_BINDER DIALOG_FOOTPRINT_BOARD_EDITOR::m_netClearance
private

◆ m_NetClearanceCtrl

wxTextCtrl* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NetClearanceCtrl
protectedinherited

◆ m_NetClearanceLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NetClearanceLabel
protectedinherited

◆ m_NetClearanceUnits

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NetClearanceUnits
protectedinherited

◆ m_NoteBook

wxNotebook* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_NoteBook
protectedinherited

◆ m_Orient0

◆ m_Orient180

◆ m_Orient270

◆ m_Orient90

◆ m_OrientOther

◆ m_OrientValidator

wxFloatingPointValidator<double> DIALOG_FOOTPRINT_BOARD_EDITOR::m_OrientValidator
private

◆ m_OrientValue

double DIALOG_FOOTPRINT_BOARD_EDITOR::m_OrientValue
private

◆ m_OrientValueCtrl

◆ m_page

int DIALOG_FOOTPRINT_BOARD_EDITOR::m_page = 0
staticprivate

◆ m_Panel3D

wxPanel* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_Panel3D
protectedinherited

◆ m_PanelClearances

wxPanel* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_PanelClearances
protectedinherited

◆ m_PanelGeneral

wxPanel* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_PanelGeneral
protectedinherited

◆ m_posX

UNIT_BINDER DIALOG_FOOTPRINT_BOARD_EDITOR::m_posX
private

◆ m_posY

UNIT_BINDER DIALOG_FOOTPRINT_BOARD_EDITOR::m_posY
private

◆ m_PreviewPane

◆ m_qmodal_loop

WX_EVENT_LOOP* DIALOG_SHIM::m_qmodal_loop
protectedinherited

Definition at line 185 of file dialog_shim.h.

Referenced by DIALOG_SHIM::EndQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().

◆ m_qmodal_parent_disabler

WDO_ENABLE_DISABLE* DIALOG_SHIM::m_qmodal_parent_disabler
protectedinherited

◆ m_qmodal_showing

bool DIALOG_SHIM::m_qmodal_showing
protectedinherited

Definition at line 186 of file dialog_shim.h.

Referenced by DIALOG_SHIM::IsQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().

◆ m_sdbSizerStdButtons

wxStdDialogButtonSizer* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sdbSizerStdButtons
protectedinherited

◆ m_sdbSizerStdButtonsCancel

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sdbSizerStdButtonsCancel
protectedinherited

◆ m_sdbSizerStdButtonsOK

wxButton* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sdbSizerStdButtonsOK
protectedinherited

◆ m_shapes3D_list

◆ m_sizerAllow180

wxBoxSizer* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sizerAllow180
protectedinherited

◆ m_sizerAllow90

wxBoxSizer* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sizerAllow90
protectedinherited

◆ m_sizerAP

wxStaticBoxSizer* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_sizerAP
protectedinherited

◆ m_solderMask

UNIT_BINDER DIALOG_FOOTPRINT_BOARD_EDITOR::m_solderMask
private

◆ m_SolderMaskMarginCtrl

wxTextCtrl* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderMaskMarginCtrl
protectedinherited

◆ m_SolderMaskMarginLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderMaskMarginLabel
protectedinherited

◆ m_SolderMaskMarginUnits

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderMaskMarginUnits
protectedinherited

◆ m_solderPaste

UNIT_BINDER DIALOG_FOOTPRINT_BOARD_EDITOR::m_solderPaste
private

◆ m_SolderPasteMarginCtrl

wxTextCtrl* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginCtrl
protectedinherited

◆ m_SolderPasteMarginLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginLabel
protectedinherited

◆ m_SolderPasteMarginRatioCtrl

TEXT_CTRL_EVAL* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginRatioCtrl
protectedinherited

◆ m_SolderPasteMarginUnits

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteMarginUnits
protectedinherited

◆ m_SolderPasteRatioMarginUnits

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_SolderPasteRatioMarginUnits
protectedinherited

◆ m_staticLibraryID

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticLibraryID
protectedinherited

◆ m_staticText16

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticText16
protectedinherited

◆ m_staticTextInfo

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfo
protectedinherited

◆ m_staticTextInfoCopper

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfoCopper
protectedinherited

◆ m_staticTextInfoValNeg

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfoValNeg
protectedinherited

◆ m_staticTextInfoValPos

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextInfoValPos
protectedinherited

◆ m_staticTextRatio

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_staticTextRatio
protectedinherited

◆ m_texts

◆ m_units

◆ m_XPosLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_XPosLabel
protectedinherited

◆ m_XPosUnit

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_XPosUnit
protectedinherited

◆ m_YPosLabel

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_YPosLabel
protectedinherited

◆ m_YPosUnit

wxStaticText* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_YPosUnit
protectedinherited

◆ m_ZoneConnectionChoice

wxChoice* DIALOG_FOOTPRINT_BOARD_EDITOR_BASE::m_ZoneConnectionChoice
protectedinherited

The documentation for this class was generated from the following files: