KiCad PCB EDA Suite
displlst.cpp File Reference
#include <fctsys.h>
#include <macros.h>
#include <eda_draw_frame.h>
#include <kicad_string.h>
#include <dialog_helpers.h>

Go to the source code of this file.


static int wxCALLBACK myCompareFunction (wxIntPtr aItem1, wxIntPtr aItem2, wxIntPtr WXUNUSED(aSortData))


static int DEFAULT_COL_WIDTHS [] = { 200, 600 }

Function Documentation

◆ myCompareFunction()

static int wxCALLBACK myCompareFunction ( wxIntPtr  aItem1,
wxIntPtr  aItem2,
wxIntPtr   WXUNUSEDaSortData 

Definition at line 247 of file displlst.cpp.

249 {
250  wxString* component1Name = (wxString*) aItem1;
251  wxString* component2Name = (wxString*) aItem2;
253  return StrNumCmp( *component1Name, *component2Name, true );
254 }
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.
Definition: string.cpp:354

References StrNumCmp().

Referenced by EDA_LIST_DIALOG::sortList().

Variable Documentation


int DEFAULT_COL_WIDTHS[] = { 200, 600 }

Definition at line 40 of file displlst.cpp.

Referenced by EDA_LIST_DIALOG::initDialog(), and EDA_LIST_DIALOG::InsertItems().