KiCad PCB EDA Suite
dialog_eeschema_config.cpp File Reference
#include <fctsys.h>
#include <pgm_base.h>
#include <kiway.h>
#include <confirm.h>
#include <gestfich.h>
#include <schframe.h>
#include <invoke_sch_dialog.h>
#include <kiface_i.h>
#include <general.h>
#include <netlist.h>
#include <libeditframe.h>
#include <viewlib_frame.h>
#include <wildcards_and_files_ext.h>
#include <wx/tokenzr.h>
#include <dialog_eeschema_config_fbp.h>
#include <eeschema_config.h>

Go to the source code of this file.

Classes

class  DIALOG_EESCHEMA_CONFIG
 

Functions

static void remove_from_listbox (wxListBox *aListBox, const wxString &aText)
 
bool InvokeEeschemaConfig (wxWindow *aParent, wxString *aCallersProjectSpecificLibPaths, wxArrayString *aCallersLibNames)
 

Function Documentation

bool InvokeEeschemaConfig ( wxWindow *  aParent,
wxString *  aCallersProjectSpecificLibPaths,
wxArrayString *  aCallersLibNames 
)

Definition at line 480 of file dialog_eeschema_config.cpp.

Referenced by LIB_EDIT_FRAME::InstallConfigFrame(), and SCH_EDIT_FRAME::InstallConfigFrame().

482 {
483  DIALOG_EESCHEMA_CONFIG dlg( aParent,
484  aCallersProjectSpecificLibPaths, aCallersLibNames );
485 
486  int ret = dlg.ShowModal();
487 
488  return wxID_OK == ret;
489 }
static void remove_from_listbox ( wxListBox *  aListBox,
const wxString &  aText 
)
static

Definition at line 443 of file dialog_eeschema_config.cpp.

Referenced by DIALOG_EESCHEMA_CONFIG::OnRemoveUserPath().

444 {
445  wxArrayString a;
446 
447  for( int i=0, cnt = aListBox->GetCount(); i<cnt; ++i )
448  {
449  wxString item = aListBox->GetString( i );
450 
451  if( item != aText )
452  a.Add( item );
453  }
454 
455  aListBox->Clear();
456 
457  aListBox->InsertItems( a, 0 );
458 }