KiCad PCB EDA Suite
DIALOG_TRACK_VIA_PROPERTIES Class Reference

#include <dialog_track_via_properties.h>

Inheritance diagram for DIALOG_TRACK_VIA_PROPERTIES:
DIALOG_TRACK_VIA_PROPERTIES_BASE DIALOG_SHIM KIWAY_HOLDER

Public Types

enum  HOLDER_TYPE { DIALOG, FRAME, PANEL }
 

Public Member Functions

 DIALOG_TRACK_VIA_PROPERTIES (PCB_BASE_FRAME *aParent, const PCBNEW_SELECTION &aItems, COMMIT &aCommit)
 
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 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...
 

Static Public Member Functions

static bool IsCtrl (int aChar, const wxKeyEvent &e)
 
static bool IsShiftCtrl (int aChar, const wxKeyEvent &e)
 
static void FixOSXCancelButtonIssue (wxWindow *aWindow)
 

Protected Member Functions

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...
 
void ResetSize ()
 Clear the existing dialog size and position. More...
 

Protected Attributes

wxBoxSizer * m_MainSizer
 
wxStaticBoxSizer * m_sbCommonSizer
 
wxStaticText * m_netSelectorLabel
 
NET_SELECTORm_netSelector
 
wxCheckBox * m_lockedCbox
 
wxStaticBoxSizer * m_sbTrackSizer
 
wxStaticText * m_TrackStartXLabel
 
wxTextCtrl * m_TrackStartXCtrl
 
wxStaticText * m_TrackStartXUnit
 
wxStaticText * m_TrackStartYLabel
 
wxTextCtrl * m_TrackStartYCtrl
 
wxStaticText * m_TrackStartYUnit
 
wxStaticText * m_TrackEndXLabel
 
wxTextCtrl * m_TrackEndXCtrl
 
wxStaticText * m_TrackEndXUnit
 
wxStaticText * m_TrackEndYLabel
 
wxTextCtrl * m_TrackEndYCtrl
 
wxStaticText * m_TrackEndYUnit
 
wxStaticText * m_DesignRuleWidths
 
wxChoice * m_DesignRuleWidthsCtrl
 
wxStaticText * m_DesignRuleWidthsUnits
 
wxStaticText * m_TrackWidthLabel
 
wxTextCtrl * m_TrackWidthCtrl
 
wxStaticText * m_TrackWidthUnit
 
wxCheckBox * m_trackNetclass
 
wxStaticText * m_TrackLayerLabel
 
PCB_LAYER_BOX_SELECTORm_TrackLayerCtrl
 
wxStaticBoxSizer * m_sbViaSizer
 
wxStaticText * m_ViaXLabel
 
wxTextCtrl * m_ViaXCtrl
 
wxStaticText * m_ViaXUnit
 
wxStaticText * m_ViaYLabel
 
wxTextCtrl * m_ViaYCtrl
 
wxStaticText * m_ViaYUnit
 
wxStaticText * m_DesignRuleVias
 
wxChoice * m_DesignRuleViasCtrl
 
wxStaticText * m_DesignRuleViasUnit
 
wxStaticText * m_ViaDiameterLabel
 
wxTextCtrl * m_ViaDiameterCtrl
 
wxStaticText * m_ViaDiameterUnit
 
wxStaticText * m_ViaDrillLabel
 
wxTextCtrl * m_ViaDrillCtrl
 
wxStaticText * m_ViaDrillUnit
 
wxCheckBox * m_viaNetclass
 
wxStaticText * m_ViaTypeLabel
 
wxChoice * m_ViaTypeChoice
 
wxStaticText * m_ViaStartLayerLabel
 
PCB_LAYER_BOX_SELECTORm_ViaStartLayer
 
wxStaticText * m_ViaEndLayerLabel1
 
PCB_LAYER_BOX_SELECTORm_ViaEndLayer
 
wxStdDialogButtonSizer * m_StdButtons
 
wxButton * m_StdButtonsOK
 
wxButton * m_StdButtonsCancel
 
EDA_UNITS 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
 
EDA_BASE_FRAMEm_parentFrame
 
std::vector< wxWindow * > m_tabOrder
 

Private Member Functions

void onTrackNetclassCheck (wxCommandEvent &aEvent) override
 
void onWidthSelect (wxCommandEvent &aEvent) override
 
void onWidthEdit (wxCommandEvent &aEvent) override
 
void onViaNetclassCheck (wxCommandEvent &aEvent) override
 
void onViaSelect (wxCommandEvent &aEvent) override
 
void onViaEdit (wxCommandEvent &aEvent) override
 
bool confirmPadChange (const std::vector< D_PAD * > &connectedPads)
 

Private Attributes

PCB_BASE_FRAMEm_frame
 
const PCBNEW_SELECTIONm_items
 
COMMITm_commit
 
UNIT_BINDER m_trackStartX
 
UNIT_BINDER m_trackStartY
 
UNIT_BINDER m_trackEndX
 
UNIT_BINDER m_trackEndY
 
UNIT_BINDER m_trackWidth
 
UNIT_BINDER m_viaX
 
UNIT_BINDER m_viaY
 
UNIT_BINDER m_viaDiameter
 
UNIT_BINDER m_viaDrill
 
bool m_tracks
 
bool m_vias
 

Detailed Description

Definition at line 35 of file dialog_track_via_properties.h.

Member Enumeration Documentation

◆ HOLDER_TYPE

enum KIWAY_HOLDER::HOLDER_TYPE
inherited
Enumerator
DIALOG 
FRAME 
PANEL 

Definition at line 42 of file kiway_holder.h.

Constructor & Destructor Documentation

◆ DIALOG_TRACK_VIA_PROPERTIES()

DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES ( PCB_BASE_FRAME aParent,
const PCBNEW_SELECTION aItems,
COMMIT aCommit 
)

Definition at line 36 of file dialog_track_via_properties.cpp.

38  :
40  m_frame( aParent ),
41  m_items( aItems ),
42  m_commit( aCommit ),
51  m_viaDrill( aParent, m_ViaDrillLabel, m_ViaDrillCtrl, m_ViaDrillUnit, true, false ),
52  m_tracks( false ),
53  m_vias( false )
54 {
55  wxASSERT( !m_items.Empty() );
56 
57  // Configure display origin transforms
64 
65  VIATYPE viaType = VIATYPE::NOT_DEFINED;
66 
69  m_TrackLayerCtrl->SetBoardFrame( aParent );
71 
74  m_ViaStartLayer->SetBoardFrame( aParent );
76 
79  m_ViaEndLayer->SetBoardFrame( aParent );
81 
82  bool nets = false;
83  int net = 0;
84  bool hasLocked = false;
85  bool hasUnlocked = false;
86 
87  // Look for values that are common for every item that is selected
88  for( EDA_ITEM* item : m_items )
89  {
90  if( !nets )
91  {
92  net = static_cast<BOARD_CONNECTED_ITEM*>( item )->GetNetCode();
93  nets = true;
94  }
95  else if( net != static_cast<BOARD_CONNECTED_ITEM*>( item )->GetNetCode() )
96  {
97  net = -1;
98  }
99 
100  switch( item->Type() )
101  {
102  case PCB_TRACE_T:
103  case PCB_ARC_T:
104  {
105  const TRACK* t = static_cast<const TRACK*>( item );
106 
107  if( !m_tracks ) // first track in the list
108  {
111  m_trackEndX.SetValue( t->GetEnd().x );
112  m_trackEndY.SetValue( t->GetEnd().y );
115  m_tracks = true;
116  }
117  else // check if values are the same for every selected track
118  {
119  if( m_trackStartX.GetValue() != t->GetStart().x )
121 
122  if( m_trackStartY.GetValue() != t->GetStart().y )
124 
125  if( m_trackEndX.GetValue() != t->GetEnd().x )
127 
128  if( m_trackEndY.GetValue() != t->GetEnd().y )
130 
131  if( m_trackWidth.GetValue() != t->GetWidth() )
133 
135  {
139  }
140  }
141 
142  if( t->IsLocked() )
143  hasLocked = true;
144  else
145  hasUnlocked = true;
146 
147  break;
148  }
149 
150  case PCB_VIA_T:
151  {
152  const VIA* v = static_cast<const VIA*>( item );
153 
154  if( !m_vias ) // first via in the list
155  {
156  m_viaX.SetValue( v->GetPosition().x );
157  m_viaY.SetValue( v->GetPosition().y );
160  m_vias = true;
161  viaType = v->GetViaType();
164  }
165  else // check if values are the same for every selected via
166  {
167  if( m_viaX.GetValue() != v->GetPosition().x )
169 
170  if( m_viaY.GetValue() != v->GetPosition().y )
172 
173  if( m_viaDiameter.GetValue() != v->GetWidth() )
175 
176  if( m_viaDrill.GetValue() != v->GetDrillValue() )
178 
179  if( viaType != v->GetViaType() )
180  viaType = VIATYPE::NOT_DEFINED;
181 
183  {
187  }
188 
190  {
194  }
195  }
196 
197  if( v->IsLocked() )
198  hasLocked = true;
199  else
200  hasUnlocked = true;
201 
202  break;
203  }
204 
205  default:
206  {
207  wxASSERT( false );
208  break;
209  }
210  }
211  }
212 
213  m_netSelector->SetBoard( aParent->GetBoard() );
214  m_netSelector->SetNetInfo( &aParent->GetBoard()->GetNetInfo() );
215 
216  if ( net >= 0 )
217  {
219  }
220  else
221  {
224  }
225 
226  wxASSERT( m_tracks || m_vias );
227 
228  if( m_vias )
229  {
231 
232  int viaSelection = wxNOT_FOUND;
233 
234  for( unsigned ii = 0; ii < aParent->GetDesignSettings().m_ViasDimensionsList.size(); ii++ )
235  {
236  VIA_DIMENSION* viaDimension = &aParent->GetDesignSettings().m_ViasDimensionsList[ii];
237  wxString msg = StringFromValue( m_units, viaDimension->m_Diameter, false, true )
238  + " / " + StringFromValue( m_units, viaDimension->m_Drill, false, true );
239  m_DesignRuleViasCtrl->Append( msg, viaDimension );
240 
241  if( viaSelection == wxNOT_FOUND
242  && m_viaDiameter.GetValue() == viaDimension->m_Diameter
243  && m_viaDrill.GetValue() == viaDimension->m_Drill )
244  {
245  viaSelection = ii;
246  }
247  }
248 
249  m_DesignRuleViasCtrl->SetSelection( viaSelection );
250 
252 
253  m_ViaTypeChoice->Enable();
254 
255  switch( viaType )
256  {
257  case VIATYPE::THROUGH:
258  m_ViaTypeChoice->SetSelection( 0 );
259  break;
260  case VIATYPE::MICROVIA:
261  m_ViaTypeChoice->SetSelection( 1 );
262  break;
264  m_ViaTypeChoice->SetSelection( 2 );
265  break;
267  m_ViaTypeChoice->SetSelection( wxNOT_FOUND );
268  break;
269  }
270 
271  m_ViaStartLayer->Enable( viaType != VIATYPE::THROUGH );
272  m_ViaEndLayer->Enable( viaType != VIATYPE::THROUGH );
273  }
274  else
275  {
276  m_MainSizer->Hide( m_sbViaSizer, true );
277  }
278 
279  if( m_tracks )
280  {
282 
283  int widthSelection = wxNOT_FOUND;
284 
285  for( unsigned ii = 0; ii < aParent->GetDesignSettings().m_TrackWidthList.size(); ii++ )
286  {
287  int width = aParent->GetDesignSettings().m_TrackWidthList[ii];
288  wxString msg = StringFromValue( m_units, width, false, true );
289  m_DesignRuleWidthsCtrl->Append( msg );
290 
291  if( widthSelection == wxNOT_FOUND && m_trackWidth.GetValue() == width )
292  widthSelection = ii;
293  }
294 
295  m_DesignRuleWidthsCtrl->SetSelection( widthSelection );
296 
298  }
299  else
300  {
301  m_MainSizer->Hide( m_sbTrackSizer, true );
302  }
303 
304  if( hasLocked && hasUnlocked )
305  m_lockedCbox->Set3StateValue( wxCHK_UNDETERMINED );
306  else if( hasLocked )
307  m_lockedCbox->Set3StateValue( wxCHK_CHECKED );
308  else
309  m_lockedCbox->Set3StateValue( wxCHK_UNCHECKED );
310 
312 
313  m_StdButtonsOK->SetDefault();
314 
315  // Now all widgets have the size fixed, call FinishDialogSettings
317 }
bool IsLocked() const override
Function IsLocked.
Definition: class_track.h:136
void SetIndeterminateString(const wxString &aString)
Struct VIA_DIMENSION is a small helper container to handle a stock of specific vias each with unique ...
virtual BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Returns the BOARD_DESIGN_SETTINGS for the open project Overloaded in FOOTPRINT_EDIT_FRAME.
std::vector< int > m_TrackWidthList
void SetNotAllowedLayerSet(LSET aMask)
const wxPoint & GetStart() const
Definition: class_track.h:116
void SetBoard(BOARD *aBoard)
static LSET AllNonCuMask()
Function AllNonCuMask returns a mask holding all layer minus CU layers.
Definition: lset.cpp:742
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
class ARC, an arc track segment on a copper layer
Definition: typeinfo.h:98
const NETINFO_LIST & GetNetInfo() const
Definition: class_board.h:713
void SetBoardFrame(PCB_BASE_FRAME *aFrame)
wxString GetAbbreviatedUnitsLabel(EDA_UNITS aUnit, bool aUseMils, EDA_DATA_TYPE aType)
Get the units string for a given units type.
Definition: base_units.cpp:495
DIALOG_TRACK_VIA_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Track & Via Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU)
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
Definition: dialog_shim.h:114
class TRACK, a track segment (segment on a copper layer)
Definition: typeinfo.h:96
LAYER_NUM GetLayerSelection() const
int GetDrillValue() const
Function GetDrillValue "calculates" the drill value for vias (m-Drill if > 0, or default drill value ...
VIATYPE
Definition: class_track.h:68
void SetSelectedNetcode(int aNetcode)
int SetLayerSelection(LAYER_NUM layer)
void SetNetInfo(NETINFO_LIST *aNetInfoList)
bool SetLayersHotkeys(bool value)
bool Empty() const
Checks if there is anything selected.
Definition: selection.h:121
void SetUndefinedLayerName(const wxString &aName)
EDA_UNITS m_units
Definition: dialog_shim.h:197
void SetIndeterminate()
int GetWidth() const
Definition: class_track.h:110
virtual void SetValue(int aValue)
Function SetValue Sets new value (in Internal Units) for the text field, taking care of units convers...
VIATYPE GetViaType() const
Definition: class_track.h:381
EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boards.
Definition: base_struct.h:159
PCB_LAYER_ID TopLayer() const
const wxPoint & GetEnd() const
Definition: class_track.h:113
std::vector< VIA_DIMENSION > m_ViasDimensionsList
virtual long long int GetValue()
Function GetValue Returns the current value in Internal Units.
class VIA, a via (like a track segment on a copper layer)
Definition: typeinfo.h:97
void SetCoordType(ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType)
Function SetOriginTransform Sets the current origin transform mode.
Definition: unit_binder.h:171
BOARD * GetBoard() const
wxPoint GetPosition() const override
Definition: class_track.h:420
#define INDETERMINATE_STATE
Used for holding indeterminate values, such as with multiple selections holding different values or c...
Definition: base_units.h:48
PCB_LAYER_ID BottomLayer() const
virtual PCB_LAYER_ID GetLayer() const
Function GetLayer returns the primary layer this item is on.
wxString StringFromValue(EDA_UNITS aUnits, double aValue, bool aAddUnitSymbol, bool aUseMils, EDA_DATA_TYPE aType)
Function StringFromValue returns the string from aValue according to units (inch, mm ....
Definition: base_units.cpp:233

References ORIGIN_TRANSFORMS::ABS_X_COORD, ORIGIN_TRANSFORMS::ABS_Y_COORD, LSET::AllNonCuMask(), BLIND_BURIED, VIA::BottomLayer(), SELECTION::Empty(), DIALOG_SHIM::FinishDialogSettings(), GetAbbreviatedUnitsLabel(), PCB_BASE_FRAME::GetBoard(), PCB_BASE_FRAME::GetDesignSettings(), VIA::GetDrillValue(), TRACK::GetEnd(), BOARD_ITEM::GetLayer(), LAYER_BOX_SELECTOR::GetLayerSelection(), BOARD::GetNetInfo(), VIA::GetPosition(), TRACK::GetStart(), UNIT_BINDER::GetValue(), VIA::GetViaType(), TRACK::GetWidth(), INDETERMINATE_STATE, TRACK::IsLocked(), DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleViasCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleViasUnit, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidthsCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidthsUnits, VIA_DIMENSION::m_Diameter, VIA_DIMENSION::m_Drill, m_items, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_lockedCbox, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_MainSizer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_netSelector, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_sbTrackSizer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_sbViaSizer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_StdButtonsOK, m_trackEndX, m_trackEndY, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackLayerCtrl, m_tracks, m_trackStartX, m_trackStartY, m_trackWidth, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackWidthCtrl, BOARD_DESIGN_SETTINGS::m_TrackWidthList, DIALOG_SHIM::m_units, m_viaDiameter, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDiameterCtrl, m_viaDrill, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaEndLayer, m_vias, BOARD_DESIGN_SETTINGS::m_ViasDimensionsList, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaStartLayer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaTypeChoice, m_viaX, m_viaY, MICROVIA, NOT_DEFINED, PCB_ARC_T, PCB_TRACE_T, PCB_VIA_T, PCB_LAYER_BOX_SELECTOR::Resync(), NET_SELECTOR::SetBoard(), PCB_LAYER_BOX_SELECTOR::SetBoardFrame(), UNIT_BINDER::SetCoordType(), NET_SELECTOR::SetIndeterminate(), NET_SELECTOR::SetIndeterminateString(), DIALOG_SHIM::SetInitialFocus(), LAYER_BOX_SELECTOR::SetLayerSelection(), LAYER_SELECTOR::SetLayersHotkeys(), NET_SELECTOR::SetNetInfo(), PCB_LAYER_BOX_SELECTOR::SetNotAllowedLayerSet(), NET_SELECTOR::SetSelectedNetcode(), PCB_LAYER_BOX_SELECTOR::SetUndefinedLayerName(), UNIT_BINDER::SetValue(), StringFromValue(), THROUGH, VIA::TopLayer(), UNDEFINED_LAYER, wxPoint::x, and wxPoint::y.

Member Function Documentation

◆ confirmPadChange()

bool DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange ( const std::vector< D_PAD * > &  connectedPads)
private

Definition at line 320 of file dialog_track_via_properties.cpp.

321 {
322  wxString msg;
323 
324  if( changingPads.size() == 1 )
325  {
326  D_PAD* pad = *changingPads.begin();
327  msg.Printf( _( "This will change the net assigned to %s pad %s to %s.\n"
328  "Do you wish to continue?" ),
329  pad->GetParent()->GetReference(),
330  pad->GetName(),
331  m_netSelector->GetValue() );
332  }
333  else if( changingPads.size() == 2 )
334  {
335  D_PAD* pad1 = *changingPads.begin();
336  D_PAD* pad2 = *( ++changingPads.begin() );
337  msg.Printf( _( "This will change the net assigned to %s pad %s and %s pad %s to %s.\n"
338  "Do you wish to continue?" ),
339  pad1->GetParent()->GetReference(),
340  pad1->GetName(),
341  pad2->GetParent()->GetReference(),
342  pad2->GetName(),
343  m_netSelector->GetValue() );
344  }
345  else
346  {
347  msg.Printf( _( "This will change the net assigned to %lu connected pads to %s.\n"
348  "Do you wish to continue?" ),
349  static_cast<unsigned long>( changingPads.size() ),
350  m_netSelector->GetValue() );
351  }
352 
353  KIDIALOG dlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
354  dlg.SetOKLabel( _( "Continue" ) );
355  dlg.DoNotShowCheckbox( __FILE__, __LINE__ );
356 
357  return dlg.ShowModal() == wxID_OK;
358 }
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
Definition: confirm.h:44
const wxString GetReference() const
Function GetReference.
Definition: class_module.h:451
const wxString & GetName() const
Definition: class_pad.h:132
MODULE * GetParent() const
Definition: class_pad.h:111
#define _(s)
Definition: 3d_actions.cpp:33

References _, KIDIALOG::DoNotShowCheckbox(), D_PAD::GetName(), D_PAD::GetParent(), MODULE::GetReference(), DIALOG_TRACK_VIA_PROPERTIES_BASE::m_netSelector, and KIDIALOG::ShowModal().

Referenced by TransferDataFromWindow().

◆ Enable()

bool DIALOG_SHIM::Enable ( bool  enable)
overrideinherited

Definition at line 269 of file dialog_shim.cpp.

270 {
271  // so we can do logging of this state change:
272  return wxDialog::Enable( enable );
273 }

◆ EndQuasiModal()

void DIALOG_SHIM::EndQuasiModal ( int  retCode)
inherited

Definition at line 388 of file dialog_shim.cpp.

389 {
390  // Hook up validator and transfer data from controls handling so quasi-modal dialogs
391  // handle validation in the same way as other dialogs.
392  if( ( retCode == wxID_OK ) && ( !Validate() || !TransferDataFromWindow() ) )
393  return;
394 
395  SetReturnCode( retCode );
396 
397  if( !IsQuasiModal() )
398  {
399  wxFAIL_MSG( "either DIALOG_SHIM::EndQuasiModal called twice or ShowQuasiModal"
400  "wasn't called" );
401  return;
402  }
403 
404  if( m_qmodal_loop )
405  {
406  if( m_qmodal_loop->IsRunning() )
407  m_qmodal_loop->Exit( 0 );
408  else
409  m_qmodal_loop->ScheduleExit( 0 );
410 
412  }
413 
416 
417  Show( false );
418 }
WX_EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:206
#define NULL
bool IsQuasiModal()
Definition: dialog_shim.h:123
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:209

References DIALOG_SHIM::IsQuasiModal(), DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, NULL, 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_EDIT_COMPONENT_IN_SCHEMATIC::OnEditLibrarySymbol(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnEditSymbol(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnExchangeSymbol(), HTML_MESSAGE_BOX::OnOKButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnUpdateSymbol(), DIALOG_CHOOSE_FOOTPRINT::OnUseBrowser(), DIALOG_CHOOSE_COMPONENT::OnUseBrowser(), and DIALOG_SHIM::~DIALOG_SHIM().

◆ 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 144 of file dialog_shim.cpp.

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

References PCAD2KICAD::Center.

Referenced by DIALOG_3D_VIEW_OPTIONS::DIALOG_3D_VIEW_OPTIONS(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), DIALOG_BOM::DIALOG_BOM(), DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_CLEANUP_TRACKS_AND_VIAS::DIALOG_CLEANUP_TRACKS_AND_VIAS(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DIMENSION_PROPERTIES::DIALOG_DIMENSION_PROPERTIES(), DIALOG_DRC::DIALOG_DRC(), 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_EDIT_SHEET_PIN::DIALOG_EDIT_SHEET_PIN(), DIALOG_EDITOR_DATA::DIALOG_EDITOR_DATA(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_ERC::DIALOG_ERC(), 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_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GENCAD_EXPORT_OPTIONS::DIALOG_GENCAD_EXPORT_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_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), DIALOG_IMAGE_EDITOR::DIALOG_IMAGE_EDITOR(), DIALOG_INSPECTOR::DIALOG_INSPECTOR(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), 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_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_PASTE_SPECIAL::DIALOG_PASTE_SPECIAL(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_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_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP(), DIALOG_SELECT_NET_FROM_LIST::DIALOG_SELECT_NET_FROM_LIST(), 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_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_UNUSED_PAD_LAYERS::DIALOG_UNUSED_PAD_LAYERS(), DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB(), DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB(), DLG_SELECT_3DMODEL::DLG_SELECT_3DMODEL(), PAGED_DIALOG::finishInitialization(), DIALOG_EDIT_ONE_FIELD::init(), DIALOG_EDIT_LIBRARY_TABLES::InstallPanel(), NETLIST_DIALOG::NETLIST_DIALOG(), DIALOG_GRAPHIC_ITEM_PROPERTIES::OnInitDlg(), DIALOG_SCH_SHEET_PROPS::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().

◆ FixOSXCancelButtonIssue()

static void DIALOG_SHIM::FixOSXCancelButtonIssue ( wxWindow *  aWindow)
staticinherited

◆ 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().

◆ 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 165 of file dialog_shim.cpp.

166 {
167  wxSize sz( x, 0 );
168  return ConvertDialogToPixels( sz ).x;
169 }

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

◆ IsCtrl()

static bool DIALOG_SHIM::IsCtrl ( int  aChar,
const wxKeyEvent &  e 
)
inlinestaticinherited

Definition at line 136 of file dialog_shim.h.

137  {
138  return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
139  !e.ShiftDown() && !e.MetaDown();
140  }

Referenced by DIALOG_TEXT_PROPERTIES::OnCharHook().

◆ IsQuasiModal()

◆ IsShiftCtrl()

static bool DIALOG_SHIM::IsShiftCtrl ( int  aChar,
const wxKeyEvent &  e 
)
inlinestaticinherited

Definition at line 142 of file dialog_shim.h.

143  {
144  return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
145  e.ShiftDown() && !e.MetaDown();
146  }

Referenced by DIALOG_TEXT_PROPERTIES::OnCharHook().

◆ 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(), SCH_EDIT_FRAME::canCloseWindow(), KICAD_MANAGER_FRAME::CloseProject(), COMMON_CONTROL::ConfigurePaths(), DIALOG_CHOOSE_FOOTPRINT::ConstructRightPanel(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), PCB_BASE_FRAME::CreateAndShow3D_Frame(), 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(), PCB_EDITOR_CONTROL::EditFpInFpEditor(), SCH_EDITOR_CONTROL::EditWithLibEdit(), BACK_ANNOTATE::FetchNetlistFromPCB(), DISPLAY_FOOTPRINTS_FRAME::GetModule(), PCB_EDIT_FRAME::importFile(), KIWAY_PLAYER::language_change(), KICAD_MANAGER_FRAME::language_change(), DIALOG_CHANGE_SYMBOLS::launchMatchIdSymbolBrowser(), DIALOG_CHANGE_SYMBOLS::launchNewIdSymbolBrowser(), LIB_TREE_MODEL_ADAPTER::LIB_TREE_MODEL_ADAPTER(), CVPCB_MAINFRAME::LoadFootprintFiles(), TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick(), TEXT_BUTTON_FP_CHOOSER::OnButtonClick(), PL_EDITOR_FRAME::OnExit(), SCH_EDIT_FRAME::OnExit(), FOOTPRINT_EDIT_FRAME::OnExitKiCad(), FOOTPRINT_VIEWER_FRAME::OnExitKiCad(), LIB_EDIT_FRAME::OnExitKiCad(), SAVE_AS_TRAVERSER::OnFile(), 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(), KICAD_MANAGER_FRAME::OnUnarchiveFiles(), FOOTPRINT_EDIT_FRAME::OnUpdateInsertModuleInBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadModuleFromBoard(), SCH_EDIT_FRAME::OnUpdatePCB(), PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS(), KIWAY_HOLDER::Prj(), SCH_EDIT_TOOL::Properties(), BACK_ANNOTATE::PushNewLinksToPCB(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_EDIT_FRAME::refreshSchematic(), SCH_EDITOR_CONTROL::rescueProject(), EE_INSPECTION_TOOL::RunSimulation(), CVPCB_MAINFRAME::SaveFootprintAssociation(), FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard(), LIB_TREE_MODEL_ADAPTER::SavePinnedItems(), 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(), SCH_EDIT_FRAME::SetCrossProbeConnection(), CVPCB_CONTROL::ShowFootprintViewer(), COMMON_CONTROL::ShowLibraryTable(), COMMON_CONTROL::ShowPlayer(), KICAD_MANAGER_CONTROL::ShowPlayer(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), PCB_EDITOR_CONTROL::UpdateSchematicFromPCB(), LIB_CONTROL::UpdateSymbolInSchematic(), and DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint().

◆ OnPaint()

void DIALOG_SHIM::OnPaint ( wxPaintEvent &  event)
inherited

Definition at line 295 of file dialog_shim.cpp.

296 {
297  if( m_firstPaintEvent )
298  {
300 
301  selectAllInTextCtrls( GetChildren() );
302 
304  m_initialFocusTarget->SetFocus();
305  else
306  SetFocus(); // Focus the dialog itself
307 
308  m_firstPaintEvent = false;
309  }
310 
311  event.Skip();
312 }
wxWindow * m_initialFocusTarget
Definition: dialog_shim.h:204
bool m_firstPaintEvent
Definition: dialog_shim.h:203
void FixupCancelButtonCmdKeyCollision(wxWindow *aWindow)
Definition: gtk/ui.cpp:46
static void selectAllInTextCtrls(wxWindowList &children)

References KIPLATFORM::UI::FixupCancelButtonCmdKeyCollision(), DIALOG_SHIM::m_firstPaintEvent, DIALOG_SHIM::m_initialFocusTarget, and selectAllInTextCtrls().

Referenced by DIALOG_SHIM::DIALOG_SHIM().

◆ onTrackNetclassCheck()

void DIALOG_TRACK_VIA_PROPERTIES::onTrackNetclassCheck ( wxCommandEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_TRACK_VIA_PROPERTIES_BASE.

Definition at line 577 of file dialog_track_via_properties.cpp.

578 {
579  bool enableNC = aEvent.IsChecked();
580 
581  m_DesignRuleWidths->Enable( !enableNC );
582  m_DesignRuleWidthsCtrl->Enable( !enableNC );
583  m_DesignRuleWidthsUnits->Enable( !enableNC );
584 
585  m_trackWidth.Enable( !enableNC );
586 }
void Enable(bool aEnable)
Function Enable Enables/diasables the label, widget and units label.

References UNIT_BINDER::Enable(), DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidths, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidthsCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidthsUnits, and m_trackWidth.

◆ onViaEdit()

void DIALOG_TRACK_VIA_PROPERTIES::onViaEdit ( wxCommandEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_TRACK_VIA_PROPERTIES_BASE.

Definition at line 624 of file dialog_track_via_properties.cpp.

625 {
626  m_DesignRuleViasCtrl->SetSelection( wxNOT_FOUND );
627 
628  if( m_vias )
629  {
630  if( m_ViaTypeChoice->GetSelection() != 0 ) // check if selected type isnt through.
631  {
632  m_ViaStartLayer->Enable();
633  m_ViaEndLayer->Enable();
634  }
635  else
636  {
639 
640  m_ViaStartLayer->Enable( false );
641  m_ViaEndLayer->Enable( false );
642  }
643  }
644 }
int SetLayerSelection(LAYER_NUM layer)

References B_Cu, F_Cu, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleViasCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaEndLayer, m_vias, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaStartLayer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaTypeChoice, and LAYER_BOX_SELECTOR::SetLayerSelection().

◆ onViaNetclassCheck()

void DIALOG_TRACK_VIA_PROPERTIES::onViaNetclassCheck ( wxCommandEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_TRACK_VIA_PROPERTIES_BASE.

Definition at line 602 of file dialog_track_via_properties.cpp.

603 {
604  bool enableNC = aEvent.IsChecked();
605 
606  m_DesignRuleVias->Enable( !enableNC );
607  m_DesignRuleViasCtrl->Enable( !enableNC );
608  m_DesignRuleViasUnit->Enable( !enableNC );
609 
610  m_viaDiameter.Enable( !enableNC );
611  m_viaDrill.Enable( !enableNC );
612 }
void Enable(bool aEnable)
Function Enable Enables/diasables the label, widget and units label.

References UNIT_BINDER::Enable(), DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleVias, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleViasCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleViasUnit, m_viaDiameter, and m_viaDrill.

◆ onViaSelect()

void DIALOG_TRACK_VIA_PROPERTIES::onViaSelect ( wxCommandEvent &  aEvent)
overrideprivatevirtual

Reimplemented from DIALOG_TRACK_VIA_PROPERTIES_BASE.

Definition at line 615 of file dialog_track_via_properties.cpp.

616 {
617  VIA_DIMENSION* viaDimension = static_cast<VIA_DIMENSION*> ( aEvent.GetClientData() );
618 
619  m_viaDiameter.ChangeValue( viaDimension->m_Diameter );
620  m_viaDrill.ChangeValue( viaDimension->m_Drill );
621 }
Struct VIA_DIMENSION is a small helper container to handle a stock of specific vias each with unique ...
virtual void ChangeValue(int aValue)
Function ChangeValue Changes the value (in Internal Units) for the text field, taking care of units c...

References UNIT_BINDER::ChangeValue(), VIA_DIMENSION::m_Diameter, VIA_DIMENSION::m_Drill, m_viaDiameter, and m_viaDrill.

◆ onWidthEdit()

void DIALOG_TRACK_VIA_PROPERTIES::onWidthEdit ( wxCommandEvent &  aEvent)
overrideprivatevirtual

◆ onWidthSelect()

void DIALOG_TRACK_VIA_PROPERTIES::onWidthSelect ( wxCommandEvent &  aEvent)
overrideprivatevirtual

◆ Prj()

PROJECT & KIWAY_HOLDER::Prj ( ) const
inherited

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

Definition at line 35 of file kiway_holder.cpp.

36 {
37  return Kiway().Prj();
38 }
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:173

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

Referenced by PCB_BASE_EDIT_FRAME::AddLibrary(), LIB_MANAGER::addLibrary(), SCH_EDIT_FRAME::AppendSchematic(), PCB_EDIT_FRAME::ArchiveModulesOnBoard(), DIALOG_SYMBOL_REMAP::backupProject(), CVPCB_MAINFRAME::buildEquivalenceList(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_FOOTPRINT_FP_EDITOR::Cfg3DPath(), DIALOG_FOOTPRINT_BOARD_EDITOR::Cfg3DPath(), KICAD_MANAGER_FRAME::CloseProject(), DIALOG_GEN_FOOTPRINT_POSITION::CreateGerberFiles(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), SCH_EDIT_FRAME::CreateScreens(), FOOTPRINT_EDIT_FRAME::DeleteModuleFromLibrary(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), 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_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP(), DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP(), LIB_VIEW_FRAME::DisplayLibInfos(), CVPCB_MAINFRAME::DisplayStatus(), PL_DRAW_PANEL_GAL::DisplayWorksheet(), PCB_EDIT_FRAME::doAutoSave(), PCB_BASE_EDIT_FRAME::doCloseWindow(), SCH_EDIT_FRAME::doCloseWindow(), FIELDS_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), KICAD_MANAGER_CONTROL::Execute(), PCB_EDIT_FRAME::Export_IDF3(), DIALOG_EXPORT_SVG::ExportSVGFile(), LIB_CONTROL::ExportSymbolAsSVG(), LIB_CONTROL::ExportView(), PCB_EDIT_FRAME::ExportVRML_File(), BACK_ANNOTATE::FetchNetlistFromPCB(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_EDIT_FRAME::GenD356File(), DIALOG_GENDRILL::GenDrillAndMapFiles(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), LIB_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), SCH_BASE_FRAME::GetLibPart(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), DISPLAY_FOOTPRINTS_FRAME::GetModule(), KICAD_MANAGER_FRAME::GetProjectFileName(), LIB_VIEW_FRAME::GetSelectedSymbol(), FP_THREAD_IFACE::GetTable(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), SCH_EDITOR_CONTROL::ImportFPAssignments(), DIALOG_CONFIG_EQUFILES::Init(), FOOTPRINT_EDIT_FRAME::initLibraryTree(), SCH_EDIT_FRAME::KiwayMailIn(), 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::LoadProjectSettings(), PCB_EDIT_FRAME::LoadProjectSettings(), SCH_EDIT_FRAME::LoadSheetFromFile(), EDA_BASE_FRAME::LoadWindowState(), DIALOG_FOOTPRINT_FP_EDITOR::On3DModelCellChanged(), DIALOG_FOOTPRINT_BOARD_EDITOR::On3DModelCellChanged(), FOOTPRINT_VIEWER_FRAME::OnActivate(), DIALOG_FOOTPRINT_FP_EDITOR::OnAdd3DModel(), DIALOG_FOOTPRINT_BOARD_EDITOR::OnAdd3DModel(), DIALOG_BOARD_SETUP::OnAuxiliaryAction(), KICAD_MANAGER_FRAME::OnBrowseInFileExplorer(), TEXT_BUTTON_URL::OnButtonClick(), TEXT_BUTTON_FILE_BROWSER::OnButtonClick(), DIALOG_EDIT_COMPONENTS_LIBID::onClickOrphansButton(), DIALOG_GENDRILL::OnGenReportFile(), KICAD_MANAGER_FRAME::OnIdle(), SCH_EDIT_FRAME::OnImportProject(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), DIALOG_CONFIG_EQUFILES::OnOkClick(), 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_ERC::OnSaveReport(), DIALOG_DRC::OnSaveReport(), PROPERTIES_FRAME::onScintillaCharAdded(), DIALOG_LABEL_EDITOR::onScintillaCharAdded(), DIALOG_SCH_EDIT_ONE_FIELD::onScintillaCharAdded(), 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(), FOOTPRINT_EDITOR_TOOLS::PasteFootprint(), PCB_BASE_EDIT_FRAME::PCB_BASE_EDIT_FRAME(), DIALOG_PLOT::Plot(), DIALOG_PLOT_SCHEMATIC::Plot_1_Page_HPGL(), DIALOG_PLOT_SCHEMATIC::PlotOneSheetDXF(), DIALOG_CHOOSE_COMPONENT::PopulateFootprintSelector(), SCH_EDITOR_CONTROL::Print(), SCH_EDIT_FRAME::PrintPage(), EDA_DRAW_FRAME::PrintWorkSheet(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::RecreateCmpFileFromBoard(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), LIB_VIEW_FRAME::ReCreateListCmp(), LIB_VIEW_FRAME::ReCreateListLib(), SCH_EDIT_TOOL::RefreshSymbolFromLibrary(), EDA_3D_VIEWER::ReloadRequest(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), PCB_INSPECTION_TOOL::reportCopperClearance(), SCH_EDITOR_CONTROL::RescueLegacyProject(), SCH_EDITOR_CONTROL::RescueSymbolLibTableProject(), FOOTPRINT_EDIT_FRAME::restoreLastFootprint(), FOOTPRINT_EDIT_FRAME::retainLastFootprint(), DRC_TOOL::RunTests(), 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(), PCB_EDIT_FRAME::SavePcbFile(), SCH_EDIT_FRAME::SaveProject(), PCB_EDIT_FRAME::SaveProjectSettings(), DIALOG_BOARD_STATISTICS::saveReportClicked(), EDA_BASE_FRAME::SaveSettings(), SCH_BASE_FRAME::saveSymbolLibTables(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_BASE_FRAME::SelectCompFromLibTree(), PCB_BASE_FRAME::SelectLibrary(), LIB_EDIT_FRAME::SelectLibraryFromList(), LIB_EDIT_FRAME::selectSymLibTable(), PCB_BASE_EDIT_FRAME::SetBoard(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), LIB_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), LIB_EDIT_FRAME::SetCurPart(), GERBVIEW_FRAME::SetPageSettings(), EE_INSPECTION_TOOL::ShowDatasheet(), DIALOG_CHOOSE_COMPONENT::ShowFootprintFor(), COMMON_CONTROL::ShowHelp(), LIB_VIEW_FRAME::ShowModal(), FOOTPRINT_VIEWER_FRAME::ShowModal(), SCH_EDIT_FRAME::ShowSchematicSetupDialog(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::symTable(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::Sync(), FOOTPRINT_EDIT_FRAME::SyncLibraryTree(), EDA_3D_VIEWER::takeScreenshot(), PANEL_SETUP_RULES::TransferDataFromWindow(), NETLIST_DIALOG::TransferDataFromWindow(), DIALOG_EDIT_COMPONENTS_LIBID::TransferDataFromWindow(), PANEL_SETUP_RULES::TransferDataToWindow(), DIALOG_FOOTPRINT_FP_EDITOR::TransferDataToWindow(), DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataToWindow(), DIALOG_PAGES_SETTINGS::UpdatePageLayoutExample(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), FOOTPRINT_EDIT_FRAME::updateTitle(), SCH_EDIT_FRAME::UpdateTitle(), SCH_EDIT_FRAME::WriteNetListFile(), DIALOG_FOOTPRINT_BOARD_EDITOR::~DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::~DIALOG_FOOTPRINT_FP_EDITOR(), and SCH_EDIT_FRAME::~SCH_EDIT_FRAME().

◆ ResetSize()

void DIALOG_SHIM::ResetSize ( )
protectedinherited

Clear the existing dialog size and position.

This will cause the dialog size to be clear so the next time the dialog is shown the sizers will layout the dialog accordingly. This useful when there are dialog windows that size changes due to layout dependency hidden controls.

Definition at line 244 of file dialog_shim.cpp.

245 {
246  const char* hash_key;
247 
248  if( m_hash_key.size() )
249  {
250  // a special case like EDA_LIST_DIALOG, which has multiple uses.
251  hash_key = m_hash_key.c_str();
252  }
253  else
254  {
255  hash_key = typeid(*this).name();
256  }
257 
258  RECT_MAP::iterator it = class_map.find( hash_key );
259 
260  if( it == class_map.end() )
261  return;
262 
263  EDA_RECT rect = it->second;
264  rect.SetSize( 0, 0 );
265  class_map[ hash_key ] = rect;
266 }
std::string m_hash_key
Definition: dialog_shim.h:198
static RECT_MAP class_map
void SetSize(const wxSize &size)
Definition: eda_rect.h:144
EDA_RECT handles the component boundary box.
Definition: eda_rect.h:44

References class_map, DIALOG_SHIM::m_hash_key, and EDA_RECT::SetSize().

Referenced by DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY().

◆ 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 114 of file dialog_shim.h.

115  {
116  m_initialFocusTarget = aWindow;
117  }
wxWindow * m_initialFocusTarget
Definition: dialog_shim.h:204

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_EDIT_SHEET_PIN::DIALOG_EDIT_SHEET_PIN(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_FIND::DIALOG_FIND(), DIALOG_FOOTPRINT_BOARD_EDITOR::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_GRID_SETTINGS::DIALOG_GRID_SETTINGS(), DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM(), DIALOG_LIB_EDIT_TEXT::DIALOG_LIB_EDIT_TEXT(), DIALOG_PAD_PRIMITIVES_PROPERTIES::DIALOG_PAD_PRIMITIVES_PROPERTIES(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_SCH_FIND::DIALOG_SCH_FIND(), DIALOG_TARGET_PROPERTIES::DIALOG_TARGET_PROPERTIES(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES(), EDA_VIEW_SWITCHER::EDA_VIEW_SWITCHER(), 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 42 of file kiway_holder.cpp.

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

References KIWAY_HOLDER::m_kiway, and name.

Referenced by BM2CMP_FRAME::BM2CMP_FRAME(), PCB::IFACE::CreateWindow(), InvokePcbLibTableEditor(), PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME(), 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 158 of file dialog_shim.cpp.

159 {
160  wxSize sz( x, y );
161  SetSize( ConvertDialogToPixels( sz ) );
162 }

Referenced by 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 185 of file dialog_shim.cpp.

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

References class_map, EDA_RECT::GetPosition(), EDA_RECT::GetSize(), DIALOG_SHIM::m_hash_key, wxPoint::x, and wxPoint::y.

Referenced by DIALOG_SHIM::EndQuasiModal(), InvokeDialogERC(), SCH_EDIT_FRAME::OnAnnotate(), DIALOG_DRC::OnDRCItemDClick(), DIALOG_ERC::OnERCItemDClick(), DIALOG_CLEANUP_GRAPHICS::OnLeftDClickItem(), DIALOG_CLEANUP_TRACKS_AND_VIAS::OnLeftDClickItem(), POSITION_RELATIVE_TOOL::PositionRelative(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), EDA_VIEW_SWITCHER::Show(), DIALOG_PAD_PROPERTIES::Show(), DRC_TOOL::ShowDRCDialog(), SCH_EDIT_FRAME::ShowFindReplaceDialog(), HTML_MESSAGE_BOX::ShowModeless(), DIALOG_SHIM::ShowQuasiModal(), DIALOG_POSITION_RELATIVE::UpdateAnchor(), and SCH_EDIT_FRAME::UpdateHierarchyNavigator().

◆ ShowQuasiModal()

int DIALOG_SHIM::ShowQuasiModal ( )
inherited

Definition at line 338 of file dialog_shim.cpp.

339 {
340  // This is an exception safe way to zero a pointer before returning.
341  // Yes, even though DismissModal() clears this first normally, this is
342  // here in case there's an exception before the dialog is dismissed.
343  struct NULLER
344  {
345  void*& m_what;
346  NULLER( void*& aPtr ) : m_what( aPtr ) {}
347  ~NULLER() { m_what = 0; } // indeed, set it to NULL on destruction
348  } clear_this( (void*&) m_qmodal_loop );
349 
350  // release the mouse if it's currently captured as the window having it
351  // will be disabled when this dialog is shown -- but will still keep the
352  // capture making it impossible to do anything in the modal dialog itself
353  wxWindow* win = wxWindow::GetCapture();
354  if( win )
355  win->ReleaseMouse();
356 
357  // Get the optimal parent
358  wxWindow* parent = GetParentForModalDialog( GetParent(), GetWindowStyle() );
359 
360  wxASSERT_MSG( !m_qmodal_parent_disabler,
361  wxT( "Caller using ShowQuasiModal() twice on same window?" ) );
362 
363  // quasi-modal: disable only my "optimal" parent
365 
366  // Apple in its infinite wisdom will raise a disabled window before even passing
367  // us the event, so we have no way to stop it. Instead, we must set an order on
368  // the windows so that the quasi-modal will be pushed in front of the disabled
369  // window when it is raised.
371 
372  Show( true );
373 
374  m_qmodal_showing = true;
375 
376  WX_EVENT_LOOP event_loop;
377 
378  m_qmodal_loop = &event_loop;
379 
380  event_loop.Run();
381 
382  m_qmodal_showing = false;
383 
384  return GetReturnCode();
385 }
bool m_qmodal_showing
Definition: dialog_shim.h:208
#define WX_EVENT_LOOP
Definition: kiway_player.h:41
WX_EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:206
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:209
Toggle a window's "enable" status to disabled, then enabled on destruction.
Definition: dialog_shim.cpp:40
void ReparentQuasiModal(wxNonOwnedWindow *aWindow)
Move a window's parent to be the top-level window and force the window to be on top.
Definition: gtk/ui.cpp:40

References DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, KIPLATFORM::UI::ReparentQuasiModal(), 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(), LIB_VIEW_FRAME::OnSelectSymbol(), SCH_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_TOOL::Properties(), EDIT_TOOL::Properties(), SCH_EDITOR_CONTROL::RemapSymbols(), PCB_BASE_FRAME::SelectFootprintFromLibTree(), PCB_EDIT_FRAME::ShowBoardSetupDialog(), and SCH_EDIT_FRAME::ShowSchematicSetupDialog().

◆ TransferDataFromWindow()

bool DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow ( )
override

Definition at line 361 of file dialog_track_via_properties.cpp.

362 {
363  auto connectivity = m_frame->GetBoard()->GetConnectivity();
364  int newNetCode = m_netSelector->GetSelectedNetcode();
365  std::vector<D_PAD*> changingPads;
366 
367  if ( !m_netSelector->IsIndeterminate() )
368  {
369  std::set<D_PAD*> connectedPads;
370 
371  for( auto& item : m_items )
372  {
373  const KICAD_T ourTypes[] = { PCB_TRACE_T, PCB_PAD_T, PCB_VIA_T, PCB_MODULE_T, EOT };
374  auto connectedItems = connectivity->GetConnectedItems( static_cast<BOARD_CONNECTED_ITEM*>( item ), ourTypes, true );
375  for ( auto citem : connectedItems )
376  {
377  if( citem->Type() == PCB_PAD_T )
378  {
379  connectedPads.insert( static_cast<D_PAD*>( citem ) );
380  }
381  }
382  }
383 
384  for( D_PAD* pad : connectedPads )
385  {
386  if( pad->GetNetCode() != newNetCode )
387  changingPads.push_back( pad );
388  }
389  }
390 
391  // Run validations:
392 
393  if( changingPads.size() )
394  {
395  if( !confirmPadChange( changingPads ) )
396  return false;
397  }
398 
399  if( m_vias )
400  {
401  if( !m_viaDiameter.Validate( GEOMETRY_MIN_SIZE, INT_MAX )
402  || !m_viaDrill.Validate( GEOMETRY_MIN_SIZE, INT_MAX ) )
403  return false;
404 
405  if( m_ViaDiameterCtrl->IsEnabled() && !m_viaDiameter.IsIndeterminate()
406  && m_ViaDrillCtrl->IsEnabled() && !m_viaDrill.IsIndeterminate()
408  {
409  DisplayError( GetParent(), _( "Via drill size must be smaller than via diameter" ) );
410  m_ViaDrillCtrl->SelectAll();
411  m_ViaDrillCtrl->SetFocus();
412  return false;
413  }
414 
417  {
418  DisplayError( GetParent(), _( "Via start layer and end layer cannot be the same" ) );
419  return false;
420  }
421  }
422 
423  if( m_tracks )
424  {
425  if( !m_trackWidth.Validate( GEOMETRY_MIN_SIZE, INT_MAX ) )
426  return false;
427  }
428 
429  // If we survived that, then save the changes:
430 
431  bool changeLock = m_lockedCbox->Get3StateValue() != wxCHK_UNDETERMINED;
432  bool setLock = m_lockedCbox->Get3StateValue() == wxCHK_CHECKED;
433 
434  for( auto item : m_items )
435  {
436  m_commit.Modify( item );
437 
438  switch( item->Type() )
439  {
440  case PCB_TRACE_T:
441  case PCB_ARC_T:
442  {
443  wxASSERT( m_tracks );
444  TRACK* t = static_cast<TRACK*>( item );
445 
447  t->SetStart( wxPoint( m_trackStartX.GetValue(), t->GetStart().y ) );
448 
450  t->SetStart( wxPoint( t->GetStart().x, m_trackStartY.GetValue() ) );
451 
453  t->SetEnd( wxPoint( m_trackEndX.GetValue(), t->GetEnd().y ) );
454 
456  t->SetEnd( wxPoint( t->GetEnd().x, m_trackEndY.GetValue() ) );
457 
458  if( m_trackNetclass->IsChecked() )
459  t->SetWidth( t->GetNetClass()->GetTrackWidth() );
460  else if( !m_trackWidth.IsIndeterminate() )
462 
464 
465  if( layer != UNDEFINED_LAYER )
466  t->SetLayer( (PCB_LAYER_ID) layer );
467 
468  if( changeLock )
469  t->SetLocked( setLock );
470 
471  if ( !m_netSelector->IsIndeterminate() )
473 
474  break;
475  }
476 
477  case PCB_VIA_T:
478  {
479  wxASSERT( m_vias );
480  VIA* v = static_cast<VIA*>( item );
481 
482  if( !m_viaX.IsIndeterminate() )
483  v->SetPosition( wxPoint( m_viaX.GetValue(), v->GetPosition().y ) );
484 
485  if( !m_viaY.IsIndeterminate() )
486  v->SetPosition( wxPoint( v->GetPosition().x, m_viaY.GetValue() ) );
487 
488  switch( m_ViaTypeChoice->GetSelection() )
489  {
490  case 0:
492  v->SanitizeLayers();
493  break;
494  case 1:
496  break;
497  case 2:
499  break;
500  default:
501  break;
502  }
503 
504  auto startLayer = static_cast<PCB_LAYER_ID>( m_ViaStartLayer->GetLayerSelection() );
505  auto endLayer = static_cast<PCB_LAYER_ID>( m_ViaEndLayer->GetLayerSelection() );
506 
507  if (startLayer != UNDEFINED_LAYER )
508  v->SetTopLayer( startLayer );
509 
510  if (endLayer != UNDEFINED_LAYER )
511  v->SetBottomLayer( endLayer );
512 
513  v->SanitizeLayers();
514 
515  if( m_viaNetclass->IsChecked() )
516  {
517  switch( v->GetViaType() )
518  {
519  default:
520  wxFAIL_MSG("Unhandled via type");
522 
523  case VIATYPE::THROUGH:
525  v->SetWidth( v->GetNetClass()->GetViaDiameter() );
526  v->SetDrill( v->GetNetClass()->GetViaDrill() );
527  break;
528 
529  case VIATYPE::MICROVIA:
530  v->SetWidth( v->GetNetClass()->GetuViaDiameter() );
531  v->SetDrill( v->GetNetClass()->GetuViaDrill() );
532  break;
533  }
534  }
535  else
536  {
539 
540  if( !m_viaDrill.IsIndeterminate() )
541  v->SetDrill( m_viaDrill.GetValue() );
542  }
543 
544  if ( !m_netSelector->IsIndeterminate() )
546 
547  if( changeLock )
548  v->SetLocked( setLock );
549 
550  break;
551  }
552 
553  default:
554  wxASSERT( false );
555  break;
556  }
557  }
558 
559  if ( !m_netSelector->IsIndeterminate() )
560  {
561  // Commit::Push() will rebuild connectivitiy propagating nets from connected pads
562  // outwards. We therefore have to update the connected pads in order for the net
563  // change to "stick".
564  for( D_PAD* pad : changingPads )
565  {
566  m_commit.Modify( pad );
567  pad->SetNetCode( m_netSelector->GetSelectedNetcode() );
568  }
569  }
570 
571  m_commit.Push( _( "Edit track/via properties" ) );
572 
573  return true;
574 }
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:239
COMMIT & Modify(EDA_ITEM *aItem)
Modifies a given item in the model.
Definition: commit.h:103
void SetPosition(const wxPoint &aPoint) override
Definition: class_track.h:421
virtual void SetLayer(PCB_LAYER_ID aLayer)
Function SetLayer sets the layer this item is on.
void SetEnd(const wxPoint &aEnd)
Definition: class_track.h:112
const wxPoint & GetStart() const
Definition: class_track.h:116
NETCLASS * GetNetClass() const
Function GetNetClassPtr returns the NETCLASS for this item.
bool SetNetCode(int aNetCode, bool aNoAssert)
Sets net using a net code.
class ARC, an arc track segment on a copper layer
Definition: typeinfo.h:98
int GetSelectedNetcode()
class D_PAD, a pad in a footprint
Definition: typeinfo.h:90
#define KI_FALLTHROUGH
The KI_FALLTHROUGH macro is to be used when switch statement cases should purposely fallthrough from ...
Definition: macros.h:88
bool IsIndeterminate() const
Function IsIndeterminate Returns true if the control holds the indeterminate value (for instance,...
search types array terminator (End Of Types)
Definition: typeinfo.h:82
KICAD_T
Enum KICAD_T is the set of class identification values, stored in EDA_ITEM::m_StructType.
Definition: typeinfo.h:78
class TRACK, a track segment (segment on a copper layer)
Definition: typeinfo.h:96
void SetWidth(int aWidth)
Definition: class_track.h:109
LAYER_NUM GetLayerSelection() const
class MODULE, a footprint
Definition: typeinfo.h:89
void SetLocked(bool aLocked) override
Function SetLocked modifies 'lock' status for of the item.
Definition: class_track.h:141
PCB_LAYER_ID
A quick note on layer IDs:
int GetTrackWidth() const
Definition: netclass.h:168
int GetViaDrill() const
Definition: netclass.h:174
std::shared_ptr< CONNECTIVITY_DATA > GetConnectivity() const
Function GetConnectivity() returns list of missing connections between components/tracks.
Definition: class_board.h:345
bool IsIndeterminate()
bool confirmPadChange(const std::vector< D_PAD * > &connectedPads)
int GetuViaDiameter() const
Definition: netclass.h:177
int LAYER_NUM
Type LAYER_NUM can be replaced with int and removed.
virtual bool Validate(double aMin, double aMax, EDA_UNITS aUnits=EDA_UNITS::UNSCALED, bool aUseMils=false)
Function Validate Validates the control against the given range, informing the user of any errors fou...
virtual void Push(const wxString &aMessage=wxT("A commit"), bool aCreateUndoEntry=true, bool aSetDirtyBit=true)=0
Executes the changes.
#define _(s)
Definition: 3d_actions.cpp:33
void SetTopLayer(PCB_LAYER_ID aLayer)
void SetDrill(int aDrill)
Function SetDrill sets the drill value for vias.
Definition: class_track.h:483
VIATYPE GetViaType() const
Definition: class_track.h:381
int GetViaDiameter() const
Definition: netclass.h:171
const wxPoint & GetEnd() const
Definition: class_track.h:113
virtual long long int GetValue()
Function GetValue Returns the current value in Internal Units.
void SetBottomLayer(PCB_LAYER_ID aLayer)
void SetStart(const wxPoint &aStart)
Definition: class_track.h:115
int GetuViaDrill() const
Definition: netclass.h:180
class VIA, a via (like a track segment on a copper layer)
Definition: typeinfo.h:97
BOARD * GetBoard() const
#define GEOMETRY_MIN_SIZE
Definition: class_track.h:80
void SanitizeLayers()
Function SanitizeLayers Check so that the layers are correct dependin on the type of via,...
wxPoint GetPosition() const override
Definition: class_track.h:420
void SetViaType(VIATYPE aViaType)
Definition: class_track.h:382

References _, BLIND_BURIED, confirmPadChange(), DisplayError(), EOT, GEOMETRY_MIN_SIZE, PCB_BASE_FRAME::GetBoard(), BOARD::GetConnectivity(), TRACK::GetEnd(), LAYER_BOX_SELECTOR::GetLayerSelection(), BOARD_CONNECTED_ITEM::GetNetClass(), VIA::GetPosition(), NET_SELECTOR::GetSelectedNetcode(), TRACK::GetStart(), NETCLASS::GetTrackWidth(), NETCLASS::GetuViaDiameter(), NETCLASS::GetuViaDrill(), UNIT_BINDER::GetValue(), NETCLASS::GetViaDiameter(), NETCLASS::GetViaDrill(), VIA::GetViaType(), NET_SELECTOR::IsIndeterminate(), UNIT_BINDER::IsIndeterminate(), KI_FALLTHROUGH, m_commit, m_frame, m_items, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_lockedCbox, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_netSelector, m_trackEndX, m_trackEndY, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackLayerCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_trackNetclass, m_tracks, m_trackStartX, m_trackStartY, m_trackWidth, m_viaDiameter, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDiameterCtrl, m_viaDrill, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDrillCtrl, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaEndLayer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_viaNetclass, m_vias, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaStartLayer, DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaTypeChoice, m_viaX, m_viaY, MICROVIA, COMMIT::Modify(), PCB_ARC_T, PCB_MODULE_T, PCB_PAD_T, PCB_TRACE_T, PCB_VIA_T, COMMIT::Push(), VIA::SanitizeLayers(), VIA::SetBottomLayer(), VIA::SetDrill(), TRACK::SetEnd(), BOARD_ITEM::SetLayer(), TRACK::SetLocked(), BOARD_CONNECTED_ITEM::SetNetCode(), VIA::SetPosition(), TRACK::SetStart(), VIA::SetTopLayer(), VIA::SetViaType(), TRACK::SetWidth(), THROUGH, UNDEFINED_LAYER, UNIT_BINDER::Validate(), wxPoint::x, and wxPoint::y.

◆ 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 172 of file dialog_shim.cpp.

173 {
174  wxSize sz( 0, y );
175  return ConvertDialogToPixels( sz ).y;
176 }

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT().

Member Data Documentation

◆ m_commit

COMMIT& DIALOG_TRACK_VIA_PROPERTIES::m_commit
private

Definition at line 55 of file dialog_track_via_properties.h.

Referenced by TransferDataFromWindow().

◆ m_DesignRuleVias

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleVias
protectedinherited

◆ m_DesignRuleViasCtrl

◆ m_DesignRuleViasUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleViasUnit
protectedinherited

◆ m_DesignRuleWidths

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidths
protectedinherited

◆ m_DesignRuleWidthsCtrl

◆ m_DesignRuleWidthsUnits

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_DesignRuleWidthsUnits
protectedinherited

◆ m_firstPaintEvent

bool DIALOG_SHIM::m_firstPaintEvent
protectedinherited

Definition at line 203 of file dialog_shim.h.

Referenced by DIALOG_SHIM::OnPaint().

◆ m_frame

PCB_BASE_FRAME* DIALOG_TRACK_VIA_PROPERTIES::m_frame
private

Definition at line 53 of file dialog_track_via_properties.h.

Referenced by TransferDataFromWindow().

◆ m_hash_key

◆ m_initialFocusTarget

wxWindow* DIALOG_SHIM::m_initialFocusTarget
protectedinherited

Definition at line 204 of file dialog_shim.h.

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

◆ m_items

const PCBNEW_SELECTION& DIALOG_TRACK_VIA_PROPERTIES::m_items
private

◆ m_lockedCbox

wxCheckBox* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_lockedCbox
protectedinherited

◆ m_MainSizer

wxBoxSizer* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_MainSizer
protectedinherited

◆ m_netSelector

NET_SELECTOR* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_netSelector
protectedinherited

◆ m_netSelectorLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_netSelectorLabel
protectedinherited

◆ m_parentFrame

EDA_BASE_FRAME* DIALOG_SHIM::m_parentFrame
protectedinherited

Definition at line 211 of file dialog_shim.h.

Referenced by DIALOG_SHIM::OnCharHook(), and DIALOG_DRC::OnRunDRCClick().

◆ m_qmodal_loop

WX_EVENT_LOOP* DIALOG_SHIM::m_qmodal_loop
protectedinherited

Definition at line 206 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 208 of file dialog_shim.h.

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

◆ m_sbCommonSizer

wxStaticBoxSizer* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_sbCommonSizer
protectedinherited

◆ m_sbTrackSizer

wxStaticBoxSizer* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_sbTrackSizer
protectedinherited

◆ m_sbViaSizer

wxStaticBoxSizer* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_sbViaSizer
protectedinherited

◆ m_StdButtons

wxStdDialogButtonSizer* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_StdButtons
protectedinherited

◆ m_StdButtonsCancel

wxButton* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_StdButtonsCancel
protectedinherited

◆ m_StdButtonsOK

wxButton* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_StdButtonsOK
protectedinherited

◆ m_tabOrder

◆ m_trackEndX

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_trackEndX
private

◆ m_TrackEndXCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackEndXCtrl
protectedinherited

◆ m_TrackEndXLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackEndXLabel
protectedinherited

◆ m_TrackEndXUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackEndXUnit
protectedinherited

◆ m_trackEndY

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_trackEndY
private

◆ m_TrackEndYCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackEndYCtrl
protectedinherited

◆ m_TrackEndYLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackEndYLabel
protectedinherited

◆ m_TrackEndYUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackEndYUnit
protectedinherited

◆ m_TrackLayerCtrl

PCB_LAYER_BOX_SELECTOR* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackLayerCtrl
protectedinherited

◆ m_TrackLayerLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackLayerLabel
protectedinherited

◆ m_trackNetclass

wxCheckBox* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_trackNetclass
protectedinherited

◆ m_tracks

bool DIALOG_TRACK_VIA_PROPERTIES::m_tracks
private

◆ m_trackStartX

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_trackStartX
private

◆ m_TrackStartXCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackStartXCtrl
protectedinherited

◆ m_TrackStartXLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackStartXLabel
protectedinherited

◆ m_TrackStartXUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackStartXUnit
protectedinherited

◆ m_trackStartY

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_trackStartY
private

◆ m_TrackStartYCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackStartYCtrl
protectedinherited

◆ m_TrackStartYLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackStartYLabel
protectedinherited

◆ m_TrackStartYUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackStartYUnit
protectedinherited

◆ m_trackWidth

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_trackWidth
private

◆ m_TrackWidthCtrl

◆ m_TrackWidthLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackWidthLabel
protectedinherited

◆ m_TrackWidthUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_TrackWidthUnit
protectedinherited

◆ m_units

◆ m_viaDiameter

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_viaDiameter
private

◆ m_ViaDiameterCtrl

◆ m_ViaDiameterLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDiameterLabel
protectedinherited

◆ m_ViaDiameterUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDiameterUnit
protectedinherited

◆ m_viaDrill

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_viaDrill
private

◆ m_ViaDrillCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDrillCtrl
protectedinherited

◆ m_ViaDrillLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDrillLabel
protectedinherited

◆ m_ViaDrillUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaDrillUnit
protectedinherited

◆ m_ViaEndLayer

◆ m_ViaEndLayerLabel1

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaEndLayerLabel1
protectedinherited

◆ m_viaNetclass

wxCheckBox* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_viaNetclass
protectedinherited

◆ m_vias

bool DIALOG_TRACK_VIA_PROPERTIES::m_vias
private

◆ m_ViaStartLayer

PCB_LAYER_BOX_SELECTOR* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaStartLayer
protectedinherited

◆ m_ViaStartLayerLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaStartLayerLabel
protectedinherited

◆ m_ViaTypeChoice

◆ m_ViaTypeLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaTypeLabel
protectedinherited

◆ m_viaX

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_viaX
private

◆ m_ViaXCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaXCtrl
protectedinherited

◆ m_ViaXLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaXLabel
protectedinherited

◆ m_ViaXUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaXUnit
protectedinherited

◆ m_viaY

UNIT_BINDER DIALOG_TRACK_VIA_PROPERTIES::m_viaY
private

◆ m_ViaYCtrl

wxTextCtrl* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaYCtrl
protectedinherited

◆ m_ViaYLabel

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaYLabel
protectedinherited

◆ m_ViaYUnit

wxStaticText* DIALOG_TRACK_VIA_PROPERTIES_BASE::m_ViaYUnit
protectedinherited

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