KiCad PCB EDA Suite
eda_list_dialog.cpp File Reference
#include <eda_list_dialog.h>
#include <eda_draw_frame.h>
#include <string_utils.h>
#include <macros.h>
#include "lib_tree_model_adapter.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_SINGLE_COL_WIDTH = 260
 
static int DEFAULT_COL_WIDTHS [] = { 200, 300 }
 

Function Documentation

◆ myCompareFunction()

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

Definition at line 264 of file eda_list_dialog.cpp.

266{
267 wxString* component1Name = (wxString*) aItem1;
268 wxString* component2Name = (wxString*) aItem2;
269
270 return StrNumCmp( *component1Name, *component2Name, true );
271}
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.

References StrNumCmp().

Referenced by EDA_LIST_DIALOG::sortList().

Variable Documentation

◆ DEFAULT_COL_WIDTHS

int DEFAULT_COL_WIDTHS[] = { 200, 300 }
static

◆ DEFAULT_SINGLE_COL_WIDTH

int DEFAULT_SINGLE_COL_WIDTH = 260
static

Definition at line 35 of file eda_list_dialog.cpp.

Referenced by EDA_LIST_DIALOG::initDialog().