KiCad PCB EDA Suite
dialog_edit_libentry_fields_in_lib.cpp File Reference
#include <algorithm>
#include <fctsys.h>
#include <pgm_base.h>
#include <kiway.h>
#include <confirm.h>
#include <class_drawpanel.h>
#include <schframe.h>
#include <id.h>
#include <base_units.h>
#include <general.h>
#include <libeditframe.h>
#include <class_library.h>
#include <sch_component.h>
#include <sch_field.h>
#include <template_fieldnames.h>
#include <dialog_helpers.h>
#include <sch_validators.h>
#include <dialog_edit_libentry_fields_in_lib_base.h>

Go to the source code of this file.

Classes

class  DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB
 

Macros

#define COLUMN_FIELD_NAME   0
 
#define COLUMN_TEXT   1
 

Functions

static LIB_FIELDfindfield (const LIB_FIELDS &aList, const wxString &aFieldName)
 Function findfield searches a LIB_FIELD_LIST for aFieldName. More...
 

Variables

static int s_SelectedRow
 

Macro Definition Documentation

Function Documentation

static LIB_FIELD* findfield ( const LIB_FIELDS aList,
const wxString &  aFieldName 
)
static

Function findfield searches a LIB_FIELD_LIST for aFieldName.

Definition at line 506 of file dialog_edit_libentry_fields_in_lib.cpp.

Referenced by DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers().

507 {
508  const LIB_FIELD* field = NULL;
509 
510  for( unsigned i=0; i<aList.size(); ++i )
511  {
512  if( aFieldName == aList[i].GetName() )
513  {
514  field = &aList[i]; // best to avoid casting here.
515  break;
516  }
517  }
518  return (LIB_FIELD*) field; // remove const-ness last
519 }
Class LIB_FIELD is used in symbol libraries.
Definition: lib_field.h:60

Variable Documentation