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 481 of file dialog_eeschema_config.cpp.

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

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

Definition at line 444 of file dialog_eeschema_config.cpp.

Referenced by DIALOG_EESCHEMA_CONFIG::OnRemoveUserPath().

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