KiCad PCB EDA Suite
DIALOG_FP_LIB_TABLE Class Reference

Class DIALOG_FP_LIB_TABLE shows and edits the PCB library tables. More...

Inheritance diagram for DIALOG_FP_LIB_TABLE:
DIALOG_FP_LIB_TABLE_BASE DIALOG_SHIM KIWAY_HOLDER

Public Member Functions

 DIALOG_FP_LIB_TABLE (wxTopLevelWindow *aParent, FP_LIB_TABLE *aGlobal, FP_LIB_TABLE *aProject)
 
 ~DIALOG_FP_LIB_TABLE ()
 
int ShowQuasiModal ()
 
void EndQuasiModal (int retCode)
 
bool IsQuasiModal ()
 
bool Show (bool show) override
 
bool Enable (bool enable) override
 
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

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 FixOSXCancelButtonIssue ()
 A ugly hack to fix an issue on OSX: when typing ctrl+c in a wxTextCtrl inside a dialog, it is closed instead of copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer, when the dlg is created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority to copy text standard accelerator, and the dlg is closed when trying to copy text this function do nothing on other platforms. More...
 

Protected Attributes

wxAuiNotebook * m_auinotebook
 
wxPanel * m_global_panel
 
wxStaticText * m_staticText3
 
wxStaticText * m_GblTableFilename
 
wxGrid * m_global_grid
 
wxPanel * m_project_panel
 
wxStaticText * m_staticText4
 
wxStaticText * m_PrjTableFilename
 
wxGrid * m_project_grid
 
wxButton * m_buttonWizard
 
wxButton * m_append_button
 
wxButton * m_delete_button
 
wxButton * m_move_up_button
 
wxButton * m_move_down_button
 
wxButton * m_edit_options
 
wxGrid * m_path_subs_grid
 
wxStdDialogButtonSizer * m_sdbSizer
 
wxButton * m_sdbSizerOK
 
wxButton * m_sdbSizerCancel
 
std::string m_hash_key
 
EVENT_LOOPm_qmodal_loop
 
bool m_qmodal_showing
 
WDO_ENABLE_DISABLEm_qmodal_parent_disabler
 

Private Member Functions

int getCursorCol () const
 If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based column index. More...
 
int getCursorRow () const
 If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based row index. More...
 
bool verifyTables ()
 Function verifyTables trims important fields, removes blank row entries, and checks for duplicates. More...
 
void onKeyDown (wxKeyEvent &ev) override
 
void pageChangedHandler (wxAuiNotebookEvent &event) override
 
void appendRowHandler (wxCommandEvent &event) override
 
void deleteRowHandler (wxCommandEvent &event) override
 
void moveUpHandler (wxCommandEvent &event) override
 
void moveDownHandler (wxCommandEvent &event) override
 
void optionsEditor (wxCommandEvent &event) override
 
void OnClickLibraryWizard (wxCommandEvent &event) override
 
void onCancelButtonClick (wxCommandEvent &event) override
 
void onCancelCaptionButtonClick (wxCloseEvent &event) override
 
void onOKButtonClick (wxCommandEvent &event) override
 
void populateEnvironReadOnlyTable ()
 Populate the readonly environment variable table with names and values by examining all the full_uri columns. More...
 
FP_LIB_TABLE_GRIDglobal_model () const
 
FP_LIB_TABLE_GRIDproject_model () const
 
FP_LIB_TABLE_GRIDcur_model () const
 

Private Attributes

FP_LIB_TABLEm_global
 
FP_LIB_TABLEm_project
 
wxGrid * m_cur_grid
 changed based on tab choice More...
 

Static Private Attributes

static int m_pageNdx = 0
 Remember the last notebook page selected during a session. More...
 

Detailed Description

Class DIALOG_FP_LIB_TABLE shows and edits the PCB library tables.

Two tables are expected, one global and one project specific.

Definition at line 161 of file dialog_fp_lib_table.cpp.

Constructor & Destructor Documentation

DIALOG_FP_LIB_TABLE::DIALOG_FP_LIB_TABLE ( wxTopLevelWindow *  aParent,
FP_LIB_TABLE aGlobal,
FP_LIB_TABLE aProject 
)
inline

Definition at line 165 of file dialog_fp_lib_table.cpp.

References COL_DESCR, COL_ENABLED, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, IO_MGR::EAGLE, IO_MGR::GEDA_PCB, FP_LIB_TABLE::GetGlobalTableFileName(), IO_MGR::GITHUB, IO_MGR::KICAD_SEXP, IO_MGR::LEGACY, DIALOG_FP_LIB_TABLE_BASE::m_auinotebook, m_cur_grid, DIALOG_FP_LIB_TABLE_BASE::m_GblTableFilename, DIALOG_FP_LIB_TABLE_BASE::m_global_grid, m_pageNdx, DIALOG_FP_LIB_TABLE_BASE::m_PrjTableFilename, DIALOG_FP_LIB_TABLE_BASE::m_project_grid, pageChangedHandler(), populateEnvironReadOnlyTable(), KIWAY_HOLDER::Prj(), and IO_MGR::ShowType().

165  :
166  DIALOG_FP_LIB_TABLE_BASE( aParent ),
167  m_global( aGlobal ),
168  m_project( aProject )
169  {
170  // For user info, shows the table filenames:
171  m_PrjTableFilename->SetLabel( Prj().FootprintLibTblName() );
173 
174  // wxGrid only supports user owned tables if they exist past end of ~wxGrid(),
175  // so make it a grid owned table.
176  m_global_grid->SetTable( new FP_LIB_TABLE_GRID( *aGlobal ), true );
177  m_project_grid->SetTable( new FP_LIB_TABLE_GRID( *aProject ), true );
178 
179  // add Cut, Copy, and Paste to wxGrids
180  m_global_grid->PushEventHandler( new FP_GRID_TRICKS( m_global_grid ) );
181  m_project_grid->PushEventHandler( new FP_GRID_TRICKS( m_project_grid ) );
182 
183  m_global_grid->AutoSizeColumns( false );
184  m_project_grid->AutoSizeColumns( false );
185 
186  wxArrayString choices;
187 
188  choices.Add( IO_MGR::ShowType( IO_MGR::KICAD_SEXP ) );
189  choices.Add( IO_MGR::ShowType( IO_MGR::GITHUB ) );
190  choices.Add( IO_MGR::ShowType( IO_MGR::LEGACY ) );
191  choices.Add( IO_MGR::ShowType( IO_MGR::EAGLE ) );
192  choices.Add( IO_MGR::ShowType( IO_MGR::GEDA_PCB ) );
193 
194  /* PCAD_PLUGIN does not support Footprint*() functions
195  choices.Add( IO_MGR::ShowType( IO_MGR::GITHUB ) );
196  */
197 
199 
200  for( int i=0; i<2; ++i )
201  {
202  wxGrid* g = i==0 ? m_global_grid : m_project_grid;
203 
204  wxGridCellAttr* attr;
205 
206  attr = new wxGridCellAttr;
207  attr->SetEditor( new wxGridCellChoiceEditor( choices ) );
208  g->SetColAttr( COL_TYPE, attr );
209 
210  attr = new wxGridCellAttr;
211  attr->SetEditor( new wxGridCellBoolEditor() );
212  attr->SetRenderer( new wxGridCellBoolRenderer() );
213  g->SetColAttr( COL_ENABLED, attr );
214 
215  // all but COL_OPTIONS, which is edited with Option Editor anyways.
216  g->AutoSizeColumn( COL_NICKNAME, false );
217  g->AutoSizeColumn( COL_TYPE, false );
218  g->AutoSizeColumn( COL_URI, false );
219  g->AutoSizeColumn( COL_DESCR, false );
220 
221  // would set this to width of title, if it was easily known.
222  g->SetColSize( COL_OPTIONS, 80 );
223  }
224 
225  // This scrunches the dialog hideously, probably due to wxAUI container.
226  // Fit();
227  // We derive from DIALOG_SHIM so prior size will be used anyways.
228 
229  // select the last selected page
230  m_auinotebook->SetSelection( m_pageNdx );
231 
232  // fire pageChangedHandler() so m_cur_grid gets set
233  // m_auinotebook->SetSelection will generate a pageChangedHandler()
234  // event call later, but too late.
235  wxAuiNotebookEvent uneventful;
236  pageChangedHandler( uneventful );
237 
238  // Gives a selection for each grid, mainly for delete lib button.
239  // Without that, we do not see what lib will be deleted
240  m_global_grid->SelectRow( 0 );
241  m_project_grid->SelectRow( 0 );
242 
243  // for ALT+A handling, we want the initial focus to be on the first selected grid.
244  m_cur_grid->SetFocus();
245 
246  // On some windows manager (Unity, XFCE), this dialog is
247  // not always raised, depending on this dialog is run.
248  // Force it to be raised
249  Raise();
250  }
static const wxString ShowType(PCB_FILE_T aFileType)
Function ShowType returns a brief name for a plugin, given aFileType enum.
Definition: io_mgr.cpp:77
DIALOG_FP_LIB_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("PCB Library Tables"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(717, 600), long style=wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU)
Geda PCB file formats.
Definition: io_mgr.h:57
void populateEnvironReadOnlyTable()
Populate the readonly environment variable table with names and values by examining all the full_uri ...
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
void pageChangedHandler(wxAuiNotebookEvent &event) override
Legacy Pcbnew file formats prior to s-expression.
Definition: io_mgr.h:53
static int m_pageNdx
Remember the last notebook page selected during a session.
wxGrid * m_cur_grid
changed based on tab choice
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
Read only http://github.com repo holding pretty footprints.
Definition: io_mgr.h:58
static wxString GetGlobalTableFileName()
Function GetGlobalTableFileName.
S-expression Pcbnew file format.
Definition: io_mgr.h:54
DIALOG_FP_LIB_TABLE::~DIALOG_FP_LIB_TABLE ( )
inline

Definition at line 252 of file dialog_fp_lib_table.cpp.

References DIALOG_FP_LIB_TABLE_BASE::m_global_grid, and DIALOG_FP_LIB_TABLE_BASE::m_project_grid.

253  {
254  // Delete the GRID_TRICKS.
255  // Any additional event handlers should be popped before the window is deleted.
256  m_global_grid->PopEventHandler( true );
257  m_project_grid->PopEventHandler( true );
258  }

Member Function Documentation

void DIALOG_FP_LIB_TABLE::appendRowHandler ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 393 of file dialog_fp_lib_table.cpp.

References m_cur_grid.

394  {
395  if( m_cur_grid->AppendRows( 1 ) )
396  {
397  int last_row = m_cur_grid->GetNumberRows() - 1;
398 
399  // wx documentation is wrong, SetGridCursor does not make visible.
400  m_cur_grid->MakeCellVisible( last_row, 0 );
401  m_cur_grid->SetGridCursor( last_row, 0 );
402  m_cur_grid->SelectRow( m_cur_grid->GetGridCursorRow() );
403  }
404  }
wxGrid * m_cur_grid
changed based on tab choice
FP_LIB_TABLE_GRID* DIALOG_FP_LIB_TABLE::cur_model ( ) const
inlineprivate

Definition at line 705 of file dialog_fp_lib_table.cpp.

References m_cur_grid.

Referenced by moveDownHandler(), moveUpHandler(), optionsEditor(), and verifyTables().

706  {
707  return (FP_LIB_TABLE_GRID*) m_cur_grid->GetTable();
708  }
wxGrid * m_cur_grid
changed based on tab choice
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
void DIALOG_FP_LIB_TABLE::deleteRowHandler ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 406 of file dialog_fp_lib_table.cpp.

References getCursorCol(), getCursorRow(), and m_cur_grid.

407  {
408  int currRow = getCursorRow();
409 
410  // In a wxGrid, collect rows that have a selected cell, or are selected
411  // is not so easy: it depend on the way the selection was made.
412  // Here, we collect row selected by clicking on a row label, and
413  // row that contain a cell previously selected.
414  // If no candidate, just delete the row with the grid cursor.
415  wxArrayInt selectedRows = m_cur_grid->GetSelectedRows();
416  wxGridCellCoordsArray cells = m_cur_grid->GetSelectedCells();
417  wxGridCellCoordsArray blockTopLeft = m_cur_grid->GetSelectionBlockTopLeft();
418  wxGridCellCoordsArray blockBotRight = m_cur_grid->GetSelectionBlockBottomRight();
419 
420  // Add all row having cell selected to list:
421  for( unsigned ii = 0; ii < cells.GetCount(); ii++ )
422  selectedRows.Add( cells[ii].GetRow() );
423 
424  // Handle block selection
425  if( !blockTopLeft.IsEmpty() && !blockBotRight.IsEmpty() )
426  {
427  for( int i = blockTopLeft[0].GetRow(); i <= blockBotRight[0].GetRow(); ++i )
428  selectedRows.Add( i );
429  }
430 
431  // Use the row having the grid cursor only if we have no candidate:
432  if( selectedRows.size() == 0 && getCursorRow() >= 0 )
433  selectedRows.Add( getCursorRow() );
434 
435  std::sort( selectedRows.begin(), selectedRows.end() );
436 
437  // Remove selected rows (note: a row can be stored more than once in list)
438  int last_row = -1;
439  for( int ii = selectedRows.GetCount()-1; ii >= 0; ii-- )
440  {
441  int row = selectedRows[ii];
442 
443  if( row != last_row )
444  {
445  last_row = row;
446  m_cur_grid->DeleteRows( row, 1 );
447  }
448  }
449 
450  if( currRow >= m_cur_grid->GetNumberRows() )
451  m_cur_grid->SetGridCursor(m_cur_grid->GetNumberRows()-1, getCursorCol() );
452 
453  m_cur_grid->SelectRow( m_cur_grid->GetGridCursorRow() );
454  }
int getCursorCol() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based column index.
int getCursorRow() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based row index.
wxGrid * m_cur_grid
changed based on tab choice
bool DIALOG_SHIM::Enable ( bool  enable)
overrideinherited

Definition at line 184 of file dialog_shim.cpp.

Referenced by DIALOG_PRINT_USING_PRINTER::InitValues().

185 {
186  // so we can do logging of this state change:
187 
188 #if defined(DEBUG)
189  const char* type_id = typeid( *this ).name();
190  printf( "wxDialog %s: %s\n", type_id, enable ? "enabled" : "disabled" );
191 #endif
192 
193  return wxDialog::Enable( enable );
194 }
void DIALOG_SHIM::EndQuasiModal ( int  retCode)
inherited

Definition at line 542 of file dialog_shim.cpp.

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

Referenced by HK_PROMPT_DIALOG::EndFlexible(), DIALOG_SHIM::OnButton(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCancelButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCancelButtonClick(), DIALOG_EDIT_ONE_FIELD::OnCancelClick(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCloseDialog(), DIALOG_EDIT_ONE_FIELD::OnCloseDialog(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCloseDialog(), DIALOG_CHOOSE_COMPONENT::OnCloseTimer(), DIALOG_SHIM::OnCloseWindow(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick(), DIALOG_EDIT_ONE_FIELD::OnOkClick(), DIALOG_EXCHANGE_MODULE::OnQuit(), DIALOG_CHOOSE_COMPONENT::OnSchViewDClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp(), and DIALOG_SHIM::~DIALOG_SHIM().

543 {
544  // Hook up validator and transfer data from controls handling so quasi-modal dialogs
545  // handle validation in the same way as other dialogs.
546  if( ( retCode == wxID_OK ) && ( !Validate() || !TransferDataFromWindow() ) )
547  return;
548 
549  SetReturnCode( retCode );
550 
551  if( !IsQuasiModal() )
552  {
553  wxFAIL_MSG( wxT( "either DIALOG_SHIM::EndQuasiModal called twice or ShowQuasiModal wasn't called" ) );
554  return;
555  }
556 
557  m_qmodal_showing = false;
558 
559  if( m_qmodal_loop )
560  {
561  if( m_qmodal_loop->IsRunning() )
562  m_qmodal_loop->Exit( 0 );
563  else
564  m_qmodal_loop->ScheduleExit( 0 );
565 
566  m_qmodal_loop = NULL;
567  }
568 
571 
572  Show( false );
573 }
bool m_qmodal_showing
Definition: dialog_shim.h:132
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:131
bool IsQuasiModal()
Definition: dialog_shim.h:93
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:133
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 104 of file dialog_shim.cpp.

References PCAD2KICAD::Center.

Referenced by COLOR4D_PICKER_DLG::COLOR4D_PICKER_DLG(), DIALOG_BOM::DIALOG_BOM(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DESIGN_RULES::DIALOG_DESIGN_RULES(), DIALOG_DIMENSION_EDITOR::DIALOG_DIMENSION_EDITOR(), DIALOG_DISPLAY_OPTIONS::DIALOG_DISPLAY_OPTIONS(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY(), DIALOG_EDIT_COMPONENTS_LIBID::DIALOG_EDIT_COMPONENTS_LIBID(), DIALOG_EDIT_LINE_STYLE::DIALOG_EDIT_LINE_STYLE(), DIALOG_EESCHEMA_OPTIONS::DIALOG_EESCHEMA_OPTIONS(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG::DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG(), 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_LIBEDIT_OPTIONS::DIALOG_LIBEDIT_OPTIONS(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_SCH_EDIT_SHEET_PIN::DIALOG_SCH_EDIT_SHEET_PIN(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SELECT_PRETTY_LIB::DIALOG_SELECT_PRETTY_LIB(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_EDIT_ONE_FIELD::init(), NETLIST_DIALOG::NETLIST_DIALOG(), DIALOG_LIB_EDIT_PIN::OnInitDialog(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnInitDialog(), DIALOG_TRACK_VIA_PROPERTIES::OnInitDlg(), DIALOG_GRAPHIC_ITEMS_OPTIONS::OnInitDlg(), DialogEditModuleText::OnInitDlg(), DIALOG_SET_GRID::OnInitDlg(), DIALOG_PCB_TEXT_PROPERTIES::OnInitDlg(), DIALOG_PRINT_FOR_MODEDIT::OnInitDlg(), DIALOG_GRAPHIC_ITEM_PROPERTIES::OnInitDlg(), DIALOG_MODULE_MODULE_EDITOR::OnInitDlg(), DIALOG_SIM_SETTINGS::onInitDlg(), DIALOG_SPICE_MODEL::onInitDlg(), DIALOG_MODULE_BOARD_EDITOR::OnInitDlg(), DIALOG_PRINT_USING_PRINTER::OnInitDlg(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnInitDlg(), TARGET_PROPERTIES_DIALOG_EDITOR::TARGET_PROPERTIES_DIALOG_EDITOR(), and DIALOG_SIGNAL_LIST::TransferDataToWindow().

105 {
106  // must be called from the constructor of derived classes,
107  // when all widgets are initialized, and therefore their size fixed
108 
109  // SetSizeHints fixes the minimal size of sizers in the dialog
110  // (SetSizeHints calls Fit(), so no need to call it)
111  GetSizer()->SetSizeHints( this );
112 
113  // the default position, when calling the first time the dlg
114  Center();
115 }
void DIALOG_SHIM::FixOSXCancelButtonIssue ( )
protectedinherited

A ugly hack to fix an issue on OSX: when typing ctrl+c in a wxTextCtrl inside a dialog, it is closed instead of copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer, when the dlg is created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority to copy text standard accelerator, and the dlg is closed when trying to copy text this function do nothing on other platforms.

Definition at line 117 of file dialog_shim.cpp.

Referenced by DIALOG_SHIM::Show().

118 {
119 #ifdef __WXMAC__
120  // A ugly hack to fix an issue on OSX: ctrl+c closes the dialog instead of
121  // copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer
122  // created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority
123  // to copy text standard accelerator, and the dlg is closed when trying to copy text
124  wxButton* button = dynamic_cast< wxButton* > ( wxWindow::FindWindowById( wxID_CANCEL, this ) );
125 
126  if( button )
127  button->SetLabel( _( "Cancel" ) );
128 #endif
129 }
int DIALOG_FP_LIB_TABLE::getCursorCol ( ) const
inlineprivate

If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based column index.

Definition at line 264 of file dialog_fp_lib_table.cpp.

References m_cur_grid.

Referenced by deleteRowHandler(), moveDownHandler(), and moveUpHandler().

265  {
266  return m_cur_grid->GetGridCursorCol();
267  }
wxGrid * m_cur_grid
changed based on tab choice
int DIALOG_FP_LIB_TABLE::getCursorRow ( ) const
inlineprivate

If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based row index.

Definition at line 271 of file dialog_fp_lib_table.cpp.

References m_cur_grid.

Referenced by deleteRowHandler(), moveDownHandler(), moveUpHandler(), and optionsEditor().

272  {
273  return m_cur_grid->GetGridCursorRow();
274  }
wxGrid * m_cur_grid
changed based on tab choice
FP_LIB_TABLE_GRID* DIALOG_FP_LIB_TABLE::global_model ( ) const
inlineprivate

Definition at line 695 of file dialog_fp_lib_table.cpp.

References DIALOG_FP_LIB_TABLE_BASE::m_global_grid.

Referenced by onOKButtonClick(), populateEnvironReadOnlyTable(), and verifyTables().

696  {
697  return (FP_LIB_TABLE_GRID*) m_global_grid->GetTable();
698  }
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
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 60 of file kiway_player.h.

References KIWAY_HOLDER::m_kiway.

Referenced by SCH_EDIT_FRAME::AppendSchematic(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), CVPCB_MAINFRAME::CreateScreenCmp(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_SHIM::DIALOG_SHIM(), EDIT_TOOL::editFootprintInFpEditor(), SCH_EDIT_FRAME::EditSheet(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), LIB_MANAGER::GetBufferedPart(), LIB_MANAGER::getLibraryBuffer(), FOOTPRINT_EDIT_FRAME::GetPlotSettings(), SCH_EDIT_FRAME::ImportFile(), PCB_EDIT_FRAME::ImportFile(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers(), PCB_EDIT_FRAME::InstallModuleOptionsFrame(), KIWAY_PLAYER::language_change(), CVPCB_MAINFRAME::LoadFootprintFiles(), KIWAY_PLAYER::OnChangeIconsOptions(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), SCH_EDIT_FRAME::OnLeftClick(), SCH_BASE_FRAME::OnOpenLibraryViewer(), SCH_EDIT_FRAME::OnSimulate(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), FOOTPRINT_EDIT_FRAME::OnUpdateInsertModuleInBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadModuleFromBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateReplaceModuleInBoard(), SCH_EDIT_FRAME::OpenProjectFiles(), KIWAY_HOLDER::Prj(), PCB_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Special_Functions(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_EDIT_FRAME::refreshSchematic(), SCH_EDIT_FRAME::rescueProject(), SCH_EDIT_FRAME::SaveEEFile(), CVPCB_MAINFRAME::SaveFootprintAssociation(), SCH_BASE_FRAME::SelectComponentFromLibBrowser(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_EDIT_FRAME::SetPlotSettings(), DISPLAY_FOOTPRINTS_FRAME::Show3D_Frame(), FOOTPRINT_VIEWER_FRAME::Show3D_Frame(), FOOTPRINT_EDIT_FRAME::Show3D_Frame(), FOOTPRINT_WIZARD_FRAME::Show3D_Frame(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::UpdatePart(), and DIALOG_EXCHANGE_MODULE::ViewAndSelectFootprint().

61  {
62  wxASSERT( m_kiway ); // smoke out bugs in Debug build, then Release runs fine.
63  return *m_kiway;
64  }
KIWAY * m_kiway
Definition: kiway_player.h:85
void DIALOG_FP_LIB_TABLE::moveDownHandler ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 495 of file dialog_fp_lib_table.cpp.

References cur_model(), getCursorCol(), getCursorRow(), m_cur_grid, and LIB_TABLE::rows.

496  {
497  wxArrayInt rowsSelected = m_cur_grid->GetSelectedRows();
498 
499  if( rowsSelected.GetCount() == 0 )
500  return;
501 
502  FP_LIB_TABLE_GRID* tbl = cur_model();
503 
504  // @todo: add multiple selection moves.
505  int curRow = rowsSelected[0];
506 
507  if( unsigned( curRow + 1 ) < tbl->rows.size() )
508  {
509  int curCol = getCursorCol();
510 
511  boost::ptr_vector< LIB_TABLE_ROW >::auto_type move_me =
512  tbl->rows.release( tbl->rows.begin() + curRow );
513 
514  ++curRow;
515  tbl->rows.insert( tbl->rows.begin() + curRow, move_me.release() );
516 
517  if( tbl->GetView() )
518  {
519  // fire a msg to cause redrawing
520  wxGridTableMessage msg( tbl,
521  wxGRIDTABLE_NOTIFY_ROWS_INSERTED,
522  curRow - 1,
523  0 );
524 
525  tbl->GetView()->ProcessTableMessage( msg );
526  }
527 
528  m_cur_grid->MakeCellVisible( curRow, curCol );
529  m_cur_grid->SetGridCursor( curRow, curCol );
530  m_cur_grid->SelectRow( getCursorRow() );
531  }
532  }
int getCursorCol() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based column index.
int getCursorRow() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based row index.
LIB_TABLE_ROWS rows
FP_LIB_TABLE_GRID * cur_model() const
wxGrid * m_cur_grid
changed based on tab choice
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
void DIALOG_FP_LIB_TABLE::moveUpHandler ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 456 of file dialog_fp_lib_table.cpp.

References cur_model(), getCursorCol(), getCursorRow(), m_cur_grid, and LIB_TABLE::rows.

457  {
458  wxArrayInt rowsSelected = m_cur_grid->GetSelectedRows();
459 
460  if( rowsSelected.GetCount() == 0 )
461  return;
462 
463  // @todo: add multiple selection moves.
464  int curRow = rowsSelected[0];
465 
466  if( curRow >= 1 )
467  {
468  int curCol = getCursorCol();
469 
470  FP_LIB_TABLE_GRID* tbl = cur_model();
471 
472  boost::ptr_vector< LIB_TABLE_ROW >::auto_type move_me =
473  tbl->rows.release( tbl->rows.begin() + curRow );
474 
475  --curRow;
476  tbl->rows.insert( tbl->rows.begin() + curRow, move_me.release() );
477 
478  if( tbl->GetView() )
479  {
480  // fire a msg to cause redrawing
481  wxGridTableMessage msg( tbl,
482  wxGRIDTABLE_NOTIFY_ROWS_INSERTED,
483  curRow,
484  0 );
485 
486  tbl->GetView()->ProcessTableMessage( msg );
487  }
488 
489  m_cur_grid->MakeCellVisible( curRow, curCol );
490  m_cur_grid->SetGridCursor( curRow, curCol );
491  m_cur_grid->SelectRow( getCursorRow() );
492  }
493  }
int getCursorCol() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based column index.
int getCursorRow() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based row index.
LIB_TABLE_ROWS rows
FP_LIB_TABLE_GRID * cur_model() const
wxGrid * m_cur_grid
changed based on tab choice
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
void DIALOG_FP_LIB_TABLE::onCancelButtonClick ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 568 of file dialog_fp_lib_table.cpp.

569  {
570  EndModal( 0 );
571  }
void DIALOG_FP_LIB_TABLE::onCancelCaptionButtonClick ( wxCloseEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 573 of file dialog_fp_lib_table.cpp.

574  {
575  EndModal( 0 );
576  }
void DIALOG_FP_LIB_TABLE::OnClickLibraryWizard ( wxCommandEvent &  event)
overrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 718 of file dialog_fp_lib_table.cpp.

References COL_NICKNAME, COL_TYPE, COL_URI, WIZARD_FPLIB_TABLE::GetFirstPage(), WIZARD_FPLIB_TABLE::GetLibraries(), WIZARD_FPLIB_TABLE::GetLibScope(), LIB_TABLE_GRID::GetNumberRows(), WIZARD_FPLIB_TABLE::GLOBAL, WIZARD_FPLIB_TABLE::LIBRARY::INVALID, DIALOG_FP_LIB_TABLE_BASE::m_auinotebook, DIALOG_FP_LIB_TABLE_BASE::m_global_grid, DIALOG_FP_LIB_TABLE_BASE::m_project_grid, and LIB_TABLE_GRID::SetValue().

719 {
720  WIZARD_FPLIB_TABLE dlg( this );
721 
722  if( !dlg.RunWizard( dlg.GetFirstPage() ) )
723  return; // Aborted by user
724 
725  const std::vector<WIZARD_FPLIB_TABLE::LIBRARY>& libs = dlg.GetLibraries();
726  bool global_scope = dlg.GetLibScope() == WIZARD_FPLIB_TABLE::GLOBAL;
727  wxGrid* libgrid = global_scope ? m_global_grid : m_project_grid;
728  FP_LIB_TABLE_GRID* tbl = (FP_LIB_TABLE_GRID*) libgrid->GetTable();
729 
730  for( std::vector<WIZARD_FPLIB_TABLE::LIBRARY>::const_iterator it = libs.begin();
731  it != libs.end(); ++it )
732  {
733  if( it->GetStatus() == WIZARD_FPLIB_TABLE::LIBRARY::INVALID )
734  continue;
735 
736  if( libgrid->AppendRows( 1 ) )
737  {
738  int last_row = libgrid->GetNumberRows() - 1;
739 
740  // Add the nickname: currently make it from filename
741  tbl->SetValue( last_row, COL_NICKNAME, it->GetDescription() );
742 
743  // Add the path:
744  tbl->SetValue( last_row, COL_URI, it->GetAutoPath( dlg.GetLibScope() ) );
745 
746  // Add the plugin name:
747  tbl->SetValue( last_row, COL_TYPE, it->GetPluginName() );
748 
749  libgrid->MakeCellVisible( last_row, 0 );
750  libgrid->SetGridCursor( last_row, 0 );
751  }
752  }
753 
754  // Switch to the current scope tab
755  if( global_scope )
756  m_auinotebook->SetSelection( 0 );
757  else
758  m_auinotebook->SetSelection( 1 );
759 
760  libgrid->SelectRow( libgrid->GetGridCursorRow() );
761 }
int GetNumberRows() override
void SetValue(int aRow, int aCol, const wxString &aValue) override
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
void DIALOG_FP_LIB_TABLE::onKeyDown ( wxKeyEvent &  ev)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 375 of file dialog_fp_lib_table.cpp.

References m_cur_grid.

376  {
377 #if 0
378  // send the key to the current grid
379  ((wxEvtHandler*)m_cur_grid)->ProcessEvent( ev );
380 #else
381  // or no:
382  // m_cur_grid has the focus most of the time anyways, so above not needed.
383  ev.Skip();
384 #endif
385  }
wxGrid * m_cur_grid
changed based on tab choice
void DIALOG_FP_LIB_TABLE::onOKButtonClick ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 578 of file dialog_fp_lib_table.cpp.

References LIB_TABLE::Clear(), global_model(), m_cur_grid, m_global, m_project, project_model(), LIB_TABLE::reindex(), LIB_TABLE::rows, and verifyTables().

579  {
580  int dialogRet = 0;
581 
582  // stuff any pending cell editor text into the table.
583  m_cur_grid->SaveEditControlValue();
584 
585  if( verifyTables() )
586  {
587  if( *global_model() != *m_global )
588  {
589  dialogRet |= 1;
590 
591  m_global->Clear();
592  m_global->rows.transfer( m_global->rows.end(), global_model()->rows.begin(),
593  global_model()->rows.end(), global_model()->rows );
594  m_global->reindex();
595  }
596 
597  if( *project_model() != *m_project )
598  {
599  dialogRet |= 2;
600 
601  m_project->Clear();
602  m_project->rows.transfer( m_project->rows.end(), project_model()->rows.begin(),
603  project_model()->rows.end(), project_model()->rows );
604  m_project->reindex();
605  }
606 
607  EndModal( dialogRet );
608  }
609  }
FP_LIB_TABLE_GRID * project_model() const
void Clear()
Delete all rows.
void reindex()
LIB_TABLE_ROWS rows
FP_LIB_TABLE_GRID * global_model() const
wxGrid * m_cur_grid
changed based on tab choice
bool verifyTables()
Function verifyTables trims important fields, removes blank row entries, and checks for duplicates...
void DIALOG_FP_LIB_TABLE::optionsEditor ( wxCommandEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 534 of file dialog_fp_lib_table.cpp.

References COL_NICKNAME, COL_TYPE, COL_URI, cur_model(), getCursorRow(), LIB_TABLE_ROW::GetNickName(), LIB_TABLE_GRID::GetNumberRows(), LIB_TABLE_ROW::GetOptions(), LIB_TABLE_ROW::GetType(), InvokePluginOptionsEditor(), m_cur_grid, Refresh(), LIB_TABLE::rows, and LIB_TABLE_ROW::SetOptions().

535  {
536  FP_LIB_TABLE_GRID* tbl = cur_model();
537 
538  if( tbl->GetNumberRows() )
539  {
540  int curRow = getCursorRow();
541  LIB_TABLE_ROW* row = &tbl->rows[curRow];
542 
543  wxString result;
544  const wxString& options = row->GetOptions();
545 
546  InvokePluginOptionsEditor( this, row->GetNickName(), row->GetType(), options, &result );
547 
548  if( options != result )
549  {
550  row->SetOptions( result );
551 
552  // all but options:
553  m_cur_grid->AutoSizeColumn( COL_NICKNAME, false );
554  m_cur_grid->AutoSizeColumn( COL_URI, false );
555  m_cur_grid->AutoSizeColumn( COL_TYPE, false );
556 
557  // On Windows, the grid is not refresh,
558  // so force resfresh after a change
559 #ifdef __WINDOWS__
560  Refresh();
561 #endif
562  }
563  }
564  }
int getCursorRow() const
If the cursor is not on a valid cell, because there are no rows at all, return -1, else return a 0 based row index.
Hold a record identifying a library accessed by the appropriate plug in object in the LIB_TABLE...
void InvokePluginOptionsEditor(wxTopLevelWindow *aCaller, const wxString &aNickname, const wxString &aPluginType, const wxString &aOptions, wxString *aResult)
Function InvokePluginOptionsEditor calls DIALOG_FP_PLUGIN_OPTIONS dialog so that plugin options set c...
const wxString & GetOptions() const
Return the options string, which may hold a password or anything else needed to instantiate the under...
LIB_TABLE_ROWS rows
virtual const wxString GetType() const =0
Return the type of library represented by this row.
int GetNumberRows() override
void Refresh()
Update the board display after modifying it bu a python script (note: it is automatically called by a...
FP_LIB_TABLE_GRID * cur_model() const
const wxString & GetNickName() const
wxGrid * m_cur_grid
changed based on tab choice
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
void SetOptions(const wxString &aOptions)
Change the library options strings.
void DIALOG_FP_LIB_TABLE::pageChangedHandler ( wxAuiNotebookEvent &  event)
inlineoverrideprivatevirtual

Implements DIALOG_FP_LIB_TABLE_BASE.

Definition at line 387 of file dialog_fp_lib_table.cpp.

References DIALOG_FP_LIB_TABLE_BASE::m_auinotebook, m_cur_grid, DIALOG_FP_LIB_TABLE_BASE::m_global_grid, m_pageNdx, and DIALOG_FP_LIB_TABLE_BASE::m_project_grid.

Referenced by DIALOG_FP_LIB_TABLE().

388  {
389  m_pageNdx = m_auinotebook->GetSelection();
391  }
static int m_pageNdx
Remember the last notebook page selected during a session.
wxGrid * m_cur_grid
changed based on tab choice
void DIALOG_FP_LIB_TABLE::populateEnvironReadOnlyTable ( )
inlineprivate

Populate the readonly environment variable table with names and values by examining all the full_uri columns.

Definition at line 613 of file dialog_fp_lib_table.cpp.

References COL_URI, LIB_TABLE_GRID::GetNumberRows(), LIB_TABLE_GRID::GetValue(), global_model(), FP_LIB_TABLE::GlobalPathEnvVariableName(), KISYS3DMOD, DIALOG_FP_LIB_TABLE_BASE::m_path_subs_grid, project_model(), and PROJECT_VAR_NAME.

Referenced by DIALOG_FP_LIB_TABLE().

614  {
615  wxRegEx re( ".*?\\$\\{(.+?)\\}.*?", wxRE_ADVANCED );
616  wxASSERT( re.IsValid() ); // wxRE_ADVANCED is required.
617 
618  std::set< wxString > unique;
619  typedef std::set<wxString>::const_iterator SET_CITER;
620 
621  // clear the table
622  m_path_subs_grid->DeleteRows( 0, m_path_subs_grid->GetNumberRows() );
623 
626 
627  int gblRowCount = gbl->GetNumberRows();
628  int prjRowCount = prj->GetNumberRows();
629  int row;
630 
631  for( row = 0; row < gblRowCount; ++row )
632  {
633  wxString uri = gbl->GetValue( row, COL_URI );
634 
635  while( re.Matches( uri ) )
636  {
637  wxString envvar = re.GetMatch( uri, 1 );
638 
639  // ignore duplicates
640  unique.insert( envvar );
641 
642  // delete the last match and search again
643  uri.Replace( re.GetMatch( uri, 0 ), wxEmptyString );
644  }
645  }
646 
647  for( row = 0; row < prjRowCount; ++row )
648  {
649  wxString uri = prj->GetValue( row, COL_URI );
650 
651  while( re.Matches( uri ) )
652  {
653  wxString envvar = re.GetMatch( uri, 1 );
654 
655  // ignore duplicates
656  unique.insert( envvar );
657 
658  // delete the last match and search again
659  uri.Replace( re.GetMatch( uri, 0 ), wxEmptyString );
660  }
661  }
662 
663  // Make sure this special environment variable shows up even if it was
664  // not used yet. It is automatically set by KiCad to the directory holding
665  // the current project.
666  unique.insert( PROJECT_VAR_NAME );
667  unique.insert( FP_LIB_TABLE::GlobalPathEnvVariableName() );
668  // This special environment variable is used to locate 3d shapes
669  unique.insert( KISYS3DMOD );
670 
671  m_path_subs_grid->AppendRows( unique.size() );
672 
673  row = 0;
674 
675  for( SET_CITER it = unique.begin(); it != unique.end(); ++it, ++row )
676  {
677  wxString evName = *it;
678  wxString evValue;
679 
680  m_path_subs_grid->SetCellValue( row, 0, evName );
681 
682  if( wxGetEnv( evName, &evValue ) )
683  m_path_subs_grid->SetCellValue( row, 1, evValue );
684  }
685 
686  m_path_subs_grid->AutoSizeColumns();
687  }
FP_LIB_TABLE_GRID * project_model() const
#define PROJECT_VAR_NAME
A variable name whose value holds the current project directory.
Definition: project.h:36
int GetNumberRows() override
FP_LIB_TABLE_GRID * global_model() const
static const wxString GlobalPathEnvVariableName()
Function GlobalPathEnvVarVariableName.
#define KISYS3DMOD
A variable name whose value holds the path of 3D shape files.
Definition: 3d_viewer.h:38
wxString GetValue(int aRow, int aCol) override
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
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.

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

Referenced by DIALOG_EDIT_COMPONENT_IN_LIBRARY::AddAliasOfPart(), SCH_EDIT_FRAME::AppendSchematic(), PCB_EDIT_FRAME::ArchiveModulesOnBoard(), DIALOG_SYMBOL_REMAP::backupProject(), LIB_VIEW_FRAME::BestZoom(), DIALOG_MODULE_MODULE_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_MODULE_BOARD_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::BrowseAndSelectDocFile(), DIALOG_EXCHANGE_MODULE::BrowseAndSelectFootprint(), DIALOG_SYMBOL_LIB_TABLE::browseLibrariesHandler(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_MODULE_MODULE_EDITOR::Cfg3DPath(), DIALOG_MODULE_BOARD_EDITOR::Cfg3DPath(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyPanelToOptions(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), FOOTPRINT_EDIT_FRAME::DeleteModuleFromCurrentLibrary(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_FP_LIB_TABLE(), DIALOG_MODULE_BOARD_EDITOR::DIALOG_MODULE_BOARD_EDITOR(), DIALOG_MODULE_MODULE_EDITOR::DIALOG_MODULE_MODULE_EDITOR(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE(), LIB_VIEW_FRAME::DisplayLibInfos(), LIB_EDIT_FRAME::DisplayLibInfos(), SCH_BASE_FRAME::DisplayListComponentsInLib(), PCB_EDIT_FRAME::doAutoSave(), DIALOG_MODULE_MODULE_EDITOR::Edit3DShapeFileName(), DIALOG_MODULE_BOARD_EDITOR::Edit3DShapeFileName(), SCH_EDIT_FRAME::EditSheet(), PCB_EDIT_FRAME::Export_IDF3(), PCB_EDIT_FRAME::ExportVRML_File(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_EDIT_FRAME::GenD356File(), NETLIST_DIALOG::GenNetlist(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), LIB_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), FOOTPRINT_EDIT_FRAME::GetCurrentLib(), SCH_BASE_FRAME::GetLibAlias(), SCH_BASE_FRAME::GetLibPart(), FOOTPRINT_EDIT_FRAME::getLibPath(), LIB_EDIT_FRAME::getLibraryFileName(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), DIALOG_BOM::getPluginFileName(), LIB_VIEW_FRAME::getSelectedAlias(), FP_THREAD_IFACE::GetTable(), SCH_EDIT_FRAME::ImportFile(), PCB_EDIT_FRAME::ImportFile(), DIALOG_MODULE_MODULE_EDITOR::initModeditProperties(), DIALOG_MODULE_BOARD_EDITOR::InitModeditProperties(), PCB_EDIT_FRAME::InstallNetlistFrame(), SCH_EDIT_FRAME::IsSearchCacheObsolete(), SCH_EDIT_FRAME::Load_Component(), SCH_EDIT_FRAME::LoadCmpToFootprintLinkFile(), LIB_EDIT_FRAME::LoadComponentFromCurrentLib(), CVPCB_MAINFRAME::LoadFootprintFiles(), DIALOG_SPICE_MODEL::loadLibrary(), LIB_EDIT_FRAME::LoadOneSymbol(), CVPCB_MAINFRAME::LoadProjectFile(), SCH_EDIT_FRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), DIALOG_DRC_CONTROL::makeValidFileNameReport(), FOOTPRINT_VIEWER_FRAME::OnActivate(), DIALOG_GENCAD_EXPORT_OPTIONS::onBrowse(), DIALOG_DRC_CONTROL::OnButtonBrowseRptFileClick(), DIALOG_EDIT_COMPONENTS_LIBID::onClickOrphansButton(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_GENDRILL::OnGenReportFile(), SCH_EDIT_FRAME::OnImportProject(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), PCB_EDIT_FRAME::OnLeftClick(), DIALOG_NETLIST::OnOpenNetlistClick(), DIALOG_PLOT::OnOutputDirectoryBrowseClicked(), DIALOG_SVG_PRINT::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), DIALOG_GEN_MODULE_POSITION::OnOutputDirectoryBrowseClicked(), LIB_EDIT_FRAME::OnPlotCurrentComponent(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), SCH_EDIT_FRAME::OnRightClick(), DIALOG_BOM::OnRunPlugin(), DIALOG_NETLIST::OnSaveMessagesToFile(), SCH_EDIT_FRAME::OnSaveProject(), DIALOG_CHOOSE_COMPONENT::OnSchViewPaint(), DIALOG_SPICE_MODEL::onSelectLibrary(), LIB_VIEW_FRAME::OnSelectSymbol(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnTestChipName(), FOOTPRINT_EDIT_FRAME::OnUpdateSelectCurrentLib(), LIB_EDIT_FRAME::OnViewEntryDoc(), LIB_VIEW_FRAME::onViewSymbolDocument(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::PasteListOfItems(), PCB_EDITOR_CONTROL::PlaceModule(), DIALOG_CHOOSE_COMPONENT::PopulateFootprintSelector(), SCH_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::RecreateCmpFileFromBoard(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_VIEW_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), LIB_VIEW_FRAME::ReCreateListCmp(), LIB_VIEW_FRAME::ReCreateListLib(), LIB_VIEW_FRAME::RedrawActiveWindow(), 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::SaveFootprintInLibrary(), LIB_EDIT_FRAME::saveLibrary(), LIB_EDIT_FRAME::SaveOneSymbol(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), SCH_BASE_FRAME::saveSymbolLibTables(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_BASE_FRAME::SelectComponentFromLibrary(), FOOTPRINT_VIEWER_FRAME::SelectCurrentFootprint(), PCB_BASE_FRAME::SelectLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), LIB_EDIT_FRAME::selectSymLibTable(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), LIB_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), LIB_EDIT_FRAME::SetCurPart(), DIALOG_CHOOSE_COMPONENT::ShowFootprintFor(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), EDA_3D_VIEWER::takeScreenshot(), SIM_PLOT_FRAME::updateNetlistExporter(), SCH_SCREEN::UpdateSymbolLinks(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), CVPCB_MAINFRAME::UpdateTitle(), FOOTPRINT_EDIT_FRAME::updateTitle(), SCH_EDIT_FRAME::WriteNetListFile(), DIALOG_MODULE_BOARD_EDITOR::~DIALOG_MODULE_BOARD_EDITOR(), and DIALOG_MODULE_MODULE_EDITOR::~DIALOG_MODULE_MODULE_EDITOR().

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_player.h:60
VTBL_ENTRY PROJECT & Prj() const
Function Prj returns the PROJECT associated with this KIWAY.
Definition: kiway.cpp:144
FP_LIB_TABLE_GRID* DIALOG_FP_LIB_TABLE::project_model ( ) const
inlineprivate

Definition at line 700 of file dialog_fp_lib_table.cpp.

References DIALOG_FP_LIB_TABLE_BASE::m_project_grid.

Referenced by onOKButtonClick(), populateEnvironReadOnlyTable(), and verifyTables().

701  {
702  return (FP_LIB_TABLE_GRID*) m_project_grid->GetTable();
703  }
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.
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.

References KIWAY_HOLDER::m_kiway, and name.

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

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_player.h:85
const char * name
bool DIALOG_SHIM::Show ( bool  show)
overrideinherited

Definition at line 139 of file dialog_shim.cpp.

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

Referenced by DisplayHotkeyList(), DIALOG_SHIM::EndQuasiModal(), InvokeDialogERC(), DIALOG_ANNOTATE::OnApplyClick(), DIALOG_SCH_FIND::OnCancel(), DIALOG_ANNOTATE::OnCancelClick(), DIALOG_DRC_CONTROL::OnLeftDClickClearance(), DIALOG_DRC_CONTROL::OnLeftDClickUnconnected(), DIALOG_DRC_CONTROL::OnPopupMenu(), DIALOG_EXCHANGE_MODULE::OnQuit(), POSITION_RELATIVE_TOOL::PositionRelative(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), DRC::ShowDRCDialog(), and DIALOG_SHIM::ShowQuasiModal().

140 {
141  bool ret;
142  const char* hash_key;
143 
144  if( m_hash_key.size() )
145  {
146  // a special case like EDA_LIST_DIALOG, which has multiple uses.
147  hash_key = m_hash_key.c_str();
148  }
149  else
150  {
151  hash_key = typeid(*this).name();
152  }
153 
154  // Show or hide the window. If hiding, save current position and size.
155  // If showing, use previous position and size.
156  if( show )
157  {
158 #ifndef __WINDOWS__
159  wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
160 #endif
161  ret = wxDialog::Show( show );
162 
163  // classname is key, returns a zeroed out default EDA_RECT if none existed before.
164  EDA_RECT r = class_map[ hash_key ];
165 
166  if( r.GetSize().x != 0 && r.GetSize().y != 0 )
167  SetSize( r.GetPosition().x, r.GetPosition().y, r.GetSize().x, r.GetSize().y, 0 );
168  }
169  else
170  {
171  // Save the dialog's position & size before hiding, using classname as key
172  EDA_RECT r( wxDialog::GetPosition(), wxDialog::GetSize() );
173  class_map[ hash_key ] = r;
174 
175  ret = wxDialog::Show( show );
176  }
177 
179 
180  return ret;
181 }
const wxSize GetSize() const
std::string m_hash_key
Definition: dialog_shim.h:128
void FixOSXCancelButtonIssue()
A ugly hack to fix an issue on OSX: when typing ctrl+c in a wxTextCtrl inside a dialog, it is closed instead of copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer, when the dlg is created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority to copy text standard accelerator, and the dlg is closed when trying to copy text this function do nothing on other platforms.
static RECT_MAP class_map
const wxPoint GetPosition() const
Class EDA_RECT handles the component boundary box.
int DIALOG_SHIM::ShowQuasiModal ( )
inherited

Definition at line 497 of file dialog_shim.cpp.

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

Referenced by SCH_EDIT_FRAME::EditComponent(), SCH_EDIT_FRAME::EditComponentFieldText(), LIB_EDIT_FRAME::EditField(), EDIT_TOOL::ExchangeFootprints(), PCB_EDIT_FRAME::InstallExchangeModuleFrame(), LIB_EDIT_FRAME::InstallFieldsEditorDialog(), SCH_EDIT_FRAME::InstallHierarchyFrame(), InvokeDialogCreateBOMEditor(), InvokeDialogUpdateFields(), SCH_EDIT_FRAME::OnRemapSymbols(), LIB_VIEW_FRAME::OnSelectSymbol(), SCH_EDIT_FRAME::OpenProjectFiles(), and SCH_BASE_FRAME::SelectComponentFromLibrary().

498 {
499  // This is an exception safe way to zero a pointer before returning.
500  // Yes, even though DismissModal() clears this first normally, this is
501  // here in case there's an exception before the dialog is dismissed.
502  struct NULLER
503  {
504  void*& m_what;
505  NULLER( void*& aPtr ) : m_what( aPtr ) {}
506  ~NULLER() { m_what = 0; } // indeed, set it to NULL on destruction
507  } clear_this( (void*&) m_qmodal_loop );
508 
509  // release the mouse if it's currently captured as the window having it
510  // will be disabled when this dialog is shown -- but will still keep the
511  // capture making it impossible to do anything in the modal dialog itself
512  wxWindow* win = wxWindow::GetCapture();
513  if( win )
514  win->ReleaseMouse();
515 
516  // Get the optimal parent
517  wxWindow* parent = GetParentForModalDialog( GetParent(), GetWindowStyle() );
518 
519  // Show the optimal parent
520  DBG( if( parent ) printf( "%s: optimal parent: %s\n", __func__, typeid(*parent).name() );)
521 
522  wxASSERT_MSG( !m_qmodal_parent_disabler,
523  wxT( "Caller using ShowQuasiModal() twice on same window?" ) );
524 
525  // quasi-modal: disable only my "optimal" parent
527 
528  Show( true );
529 
530  m_qmodal_showing = true;
531 
532  EVENT_LOOP event_loop;
533 
534  m_qmodal_loop = &event_loop;
535 
536  event_loop.Run();
537 
538  return GetReturnCode();
539 }
bool m_qmodal_showing
Definition: dialog_shim.h:132
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:131
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:133
Toggle a window's "enable" status to disabled, then enabled on destruction.
Definition: dialog_shim.cpp:33
#define DBG(x)
Definition: fctsys.h:33
bool DIALOG_FP_LIB_TABLE::verifyTables ( )
inlineprivate

Function verifyTables trims important fields, removes blank row entries, and checks for duplicates.

Returns
bool - true if tables are OK, else false.

Definition at line 281 of file dialog_fp_lib_table.cpp.

References COL_NICKNAME, COL_URI, cur_model(), LIB_TABLE_GRID::DeleteRows(), Format(), GetChars(), LIB_TABLE_GRID::GetNumberRows(), LIB_TABLE_GRID::GetValue(), global_model(), DIALOG_FP_LIB_TABLE_BASE::m_auinotebook, m_cur_grid, project_model(), and LIB_TABLE_GRID::SetValue().

Referenced by onOKButtonClick().

282  {
283  for( int t=0; t<2; ++t )
284  {
285  FP_LIB_TABLE_GRID& model = t==0 ? *global_model() : *project_model();
286 
287  for( int r = 0; r < model.GetNumberRows(); )
288  {
289  wxString nick = model.GetValue( r, COL_NICKNAME ).Trim( false ).Trim();
290  wxString uri = model.GetValue( r, COL_URI ).Trim( false ).Trim();
291 
292  if( !nick || !uri )
293  {
294  // Delete the "empty" row, where empty means missing nick or uri.
295  // This also updates the UI which could be slow, but there should only be a few
296  // rows to delete, unless the user fell asleep on the Add Row
297  // button.
298  model.DeleteRows( r, 1 );
299  }
300  else if( nick.find( ':' ) != size_t( -1 ) )
301  {
302  wxString msg = wxString::Format(
303  _( "Illegal character '%s' found in Nickname: '%s' in row %d" ),
304  ":", GetChars( nick ), r );
305 
306  // show the tabbed panel holding the grid we have flunked:
307  if( &model != cur_model() )
308  {
309  m_auinotebook->SetSelection( &model == global_model() ? 0 : 1 );
310  }
311 
312  // go to the problematic row
313  m_cur_grid->SetGridCursor( r, 0 );
314  m_cur_grid->SelectBlock( r, 0, r, 0 );
315  m_cur_grid->MakeCellVisible( r, 0 );
316 
317  wxMessageDialog errdlg( this, msg, _( "No Colon in Nicknames" ) );
318  errdlg.ShowModal();
319  return false;
320  }
321  else
322  {
323  // set the trimmed values back into the table so they get saved to disk.
324  model.SetValue( r, COL_NICKNAME, nick );
325  model.SetValue( r, COL_URI, uri );
326  ++r; // this row was OK.
327  }
328  }
329  }
330 
331  // check for duplicate nickNames, separately in each table.
332  for( int t=0; t<2; ++t )
333  {
334  FP_LIB_TABLE_GRID& model = t==0 ? *global_model() : *project_model();
335 
336  for( int r1 = 0; r1 < model.GetNumberRows() - 1; ++r1 )
337  {
338  wxString nick1 = model.GetValue( r1, COL_NICKNAME );
339 
340  for( int r2=r1+1; r2 < model.GetNumberRows(); ++r2 )
341  {
342  wxString nick2 = model.GetValue( r2, COL_NICKNAME );
343 
344  if( nick1 == nick2 )
345  {
346  wxString msg = wxString::Format(
347  _( "Duplicate Nickname: '%s' in rows %d and %d" ),
348  GetChars( nick1 ), r1+1, r2+1
349  );
350 
351  // show the tabbed panel holding the grid we have flunked:
352  if( &model != cur_model() )
353  {
354  m_auinotebook->SetSelection( &model == global_model() ? 0 : 1 );
355  }
356 
357  // go to the lower of the two rows, it is technically the duplicate:
358  m_cur_grid->SetGridCursor( r2, 0 );
359  m_cur_grid->SelectBlock( r2, 0, r2, 0 );
360  m_cur_grid->MakeCellVisible( r2, 0 );
361 
362  wxMessageDialog errdlg( this, msg, _( "Please Delete or Modify One" ) );
363  errdlg.ShowModal();
364  return false;
365  }
366  }
367  }
368  }
369 
370  return true;
371  }
FP_LIB_TABLE_GRID * project_model() const
bool DeleteRows(size_t aPos, size_t aNumRows) override
int GetNumberRows() override
FP_LIB_TABLE_GRID * global_model() const
FP_LIB_TABLE_GRID * cur_model() const
void SetValue(int aRow, int aCol, const wxString &aValue) override
wxString GetValue(int aRow, int aCol) override
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
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
wxGrid * m_cur_grid
changed based on tab choice
This class builds a wxGridTableBase by wrapping an FP_LIB_TABLE object.

Member Data Documentation

wxButton* DIALOG_FP_LIB_TABLE_BASE::m_append_button
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_buttonWizard
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_delete_button
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_edit_options
protectedinherited
wxStaticText* DIALOG_FP_LIB_TABLE_BASE::m_GblTableFilename
protectedinherited
FP_LIB_TABLE* DIALOG_FP_LIB_TABLE::m_global
private

Definition at line 692 of file dialog_fp_lib_table.cpp.

Referenced by onOKButtonClick().

wxGrid* DIALOG_FP_LIB_TABLE_BASE::m_global_grid
protectedinherited
wxPanel* DIALOG_FP_LIB_TABLE_BASE::m_global_panel
protectedinherited
std::string DIALOG_SHIM::m_hash_key
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_move_down_button
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_move_up_button
protectedinherited
int DIALOG_FP_LIB_TABLE::m_pageNdx = 0
staticprivate

Remember the last notebook page selected during a session.

Definition at line 711 of file dialog_fp_lib_table.cpp.

Referenced by DIALOG_FP_LIB_TABLE(), and pageChangedHandler().

wxGrid* DIALOG_FP_LIB_TABLE_BASE::m_path_subs_grid
protectedinherited
wxStaticText* DIALOG_FP_LIB_TABLE_BASE::m_PrjTableFilename
protectedinherited
FP_LIB_TABLE* DIALOG_FP_LIB_TABLE::m_project
private

Definition at line 693 of file dialog_fp_lib_table.cpp.

Referenced by onOKButtonClick().

wxGrid* DIALOG_FP_LIB_TABLE_BASE::m_project_grid
protectedinherited
wxPanel* DIALOG_FP_LIB_TABLE_BASE::m_project_panel
protectedinherited
EVENT_LOOP* DIALOG_SHIM::m_qmodal_loop
protectedinherited

Definition at line 131 of file dialog_shim.h.

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

WDO_ENABLE_DISABLE* DIALOG_SHIM::m_qmodal_parent_disabler
protectedinherited
bool DIALOG_SHIM::m_qmodal_showing
protectedinherited
wxStdDialogButtonSizer* DIALOG_FP_LIB_TABLE_BASE::m_sdbSizer
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_sdbSizerCancel
protectedinherited
wxButton* DIALOG_FP_LIB_TABLE_BASE::m_sdbSizerOK
protectedinherited
wxStaticText* DIALOG_FP_LIB_TABLE_BASE::m_staticText3
protectedinherited
wxStaticText* DIALOG_FP_LIB_TABLE_BASE::m_staticText4
protectedinherited

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