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 <sch_edit_frame.h>
#include <id.h>
#include <base_units.h>
#include <general.h>
#include <lib_edit_frame.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 <bitmaps.h>
#include "eda_doc.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 558 of file dialog_edit_libentry_fields_in_lib.cpp.

References i.

Referenced by DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers().

559 {
560  const LIB_FIELD* field = NULL;
561 
562  for( unsigned i=0; i<aList.size(); ++i )
563  {
564  if( aFieldName == aList[i].GetName() )
565  {
566  field = &aList[i]; // best to avoid casting here.
567  break;
568  }
569  }
570  return (LIB_FIELD*) field; // remove const-ness last
571 }
Field object used in symbol libraries.
Definition: lib_field.h:59
size_t i
Definition: json11.cpp:597

Variable Documentation