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.


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


static int DEFAULT_COL_WIDTHS [] = { 200, 600 }

Function Documentation

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

Definition at line 247 of file displlst.cpp.

References StrNumCmp().

Referenced by EDA_LIST_DIALOG::sortList().

249 {
250  wxString* component1Name = (wxString*) aItem1;
251  wxString* component2Name = (wxString*) aItem2;
253  return StrNumCmp( *component1Name, *component2Name, INT_MAX, true );
254 }
int StrNumCmp(const wxString &aString1, const wxString &aString2, int aLength, bool aIgnoreCase)
Function StrNumCmp is a routine compatible with qsort() to sort by alphabetical order.
Definition: string.cpp:315

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().