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

Go to the source code of this file.

Functions

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

Variables

static int DEFAULT_COL_WIDTHS [] = { 400, 200 }
 

Function Documentation

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

Definition at line 255 of file displlst.cpp.

References StrNumCmp().

Referenced by EDA_LIST_DIALOG::sortList().

257 {
258  wxString* component1Name = (wxString*) aItem1;
259  wxString* component2Name = (wxString*) aItem2;
260 
261  return StrNumCmp( *component1Name, *component2Name, INT_MAX, true );
262 }
int StrNumCmp(const wxString &aString1, const wxString &aString2, int aLength, bool aIgnoreCase)
Function StrLenNumCmp is a routine compatible with qsort() to sort by alphabetical order...
Definition: string.cpp:238

Variable Documentation

int DEFAULT_COL_WIDTHS[] = { 400, 200 }
static

Definition at line 41 of file displlst.cpp.

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