KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DIALOG_NET_INSPECTOR::DATA_MODEL Class Reference
Inheritance diagram for DIALOG_NET_INSPECTOR::DATA_MODEL:

Public Member Functions

 DATA_MODEL (DIALOG_NET_INSPECTOR &parent)
 
unsigned int columnCount () const
 
unsigned int itemCount () const
 
wxVariant valueAt (unsigned int aCol, unsigned int aRow) const
 
const LIST_ITEMitemAt (unsigned int aRow) const
 
std::optional< LIST_ITEM_ITERfindItem (int aNetCode)
 
std::optional< LIST_ITEM_ITERfindItem (NETINFO_ITEM *aNet)
 
std::optional< LIST_ITEM_ITERaddItem (std::unique_ptr< LIST_ITEM > aItem)
 
void addItems (std::vector< std::unique_ptr< LIST_ITEM > > &&aItems)
 
std::unique_ptr< LIST_ITEMdeleteItem (const std::optional< LIST_ITEM_ITER > &aRow)
 
void deleteAllItems ()
 
void updateItem (const std::optional< LIST_ITEM_ITER > &aRow)
 
void updateAllItems ()
 
void resortIfChanged (LIST_ITEM *aItem)
 
bool itemColumnChanged (const LIST_ITEM *aItem, unsigned int aCol) const
 

Protected Member Functions

unsigned int GetColumnCount () const override
 
void GetValue (wxVariant &aOutValue, const wxDataViewItem &aItem, unsigned int aCol) const override
 
int Compare (const wxDataViewItem &aItem1, const wxDataViewItem &aItem2, unsigned int aCol, bool aAsc) const override
 
bool SetValue (const wxVariant &aInValue, const wxDataViewItem &aItem, unsigned int aCol) override
 
wxDataViewItem GetParent (const wxDataViewItem &aItem) const override
 
bool IsContainer (const wxDataViewItem &aItem) const override
 
bool HasContainerColumns (const wxDataViewItem &aItem) const override
 
unsigned int GetChildren (const wxDataViewItem &aParent, wxDataViewItemArray &aChildren) const override
 
wxString GetColumnType (unsigned int) const override
 

Static Protected Member Functions

static int compareUInt (uint64_t aValue1, uint64_t aValue2, bool aAsc)
 

Private Attributes

DIALOG_NET_INSPECTORm_parent
 
std::vector< std::unique_ptr< LIST_ITEM > > m_items
 

Detailed Description

Definition at line 457 of file dialog_net_inspector.cpp.

Constructor & Destructor Documentation

◆ DATA_MODEL()

DIALOG_NET_INSPECTOR::DATA_MODEL::DATA_MODEL ( DIALOG_NET_INSPECTOR parent)
inline

Definition at line 461 of file dialog_net_inspector.cpp.

Member Function Documentation

◆ addItem()

◆ addItems()

void DIALOG_NET_INSPECTOR::DATA_MODEL::addItems ( std::vector< std::unique_ptr< LIST_ITEM > > &&  aItems)
inline

◆ columnCount()

unsigned int DIALOG_NET_INSPECTOR::DATA_MODEL::columnCount ( ) const
inline

Definition at line 465 of file dialog_net_inspector.cpp.

References DIALOG_NET_INSPECTOR::m_columns, and m_parent.

Referenced by GetColumnCount().

◆ Compare()

◆ compareUInt()

static int DIALOG_NET_INSPECTOR::DATA_MODEL::compareUInt ( uint64_t  aValue1,
uint64_t  aValue2,
bool  aAsc 
)
inlinestaticprotected

Definition at line 831 of file dialog_net_inspector.cpp.

Referenced by Compare().

◆ deleteAllItems()

void DIALOG_NET_INSPECTOR::DATA_MODEL::deleteAllItems ( )
inline

Definition at line 706 of file dialog_net_inspector.cpp.

References m_items.

◆ deleteItem()

std::unique_ptr< LIST_ITEM > DIALOG_NET_INSPECTOR::DATA_MODEL::deleteItem ( const std::optional< LIST_ITEM_ITER > &  aRow)
inline

◆ findItem() [1/2]

std::optional< LIST_ITEM_ITER > DIALOG_NET_INSPECTOR::DATA_MODEL::findItem ( int  aNetCode)
inline

Definition at line 487 of file dialog_net_inspector.cpp.

References m_items.

Referenced by findItem().

◆ findItem() [2/2]

std::optional< LIST_ITEM_ITER > DIALOG_NET_INSPECTOR::DATA_MODEL::findItem ( NETINFO_ITEM aNet)
inline

Definition at line 498 of file dialog_net_inspector.cpp.

References findItem(), and NETINFO_ITEM::GetNetCode().

◆ GetChildren()

unsigned int DIALOG_NET_INSPECTOR::DATA_MODEL::GetChildren ( const wxDataViewItem &  aParent,
wxDataViewItemArray &  aChildren 
) const
inlineoverrideprotected

◆ GetColumnCount()

unsigned int DIALOG_NET_INSPECTOR::DATA_MODEL::GetColumnCount ( ) const
inlineoverrideprotected

Definition at line 786 of file dialog_net_inspector.cpp.

References columnCount().

◆ GetColumnType()

wxString DIALOG_NET_INSPECTOR::DATA_MODEL::GetColumnType ( unsigned int  ) const
inlineoverrideprotected

Definition at line 963 of file dialog_net_inspector.cpp.

◆ GetParent()

wxDataViewItem DIALOG_NET_INSPECTOR::DATA_MODEL::GetParent ( const wxDataViewItem &  aItem) const
inlineoverrideprotected

◆ GetValue()

void DIALOG_NET_INSPECTOR::DATA_MODEL::GetValue ( wxVariant &  aOutValue,
const wxDataViewItem &  aItem,
unsigned int  aCol 
) const
inlineoverrideprotected

◆ HasContainerColumns()

bool DIALOG_NET_INSPECTOR::DATA_MODEL::HasContainerColumns ( const wxDataViewItem &  aItem) const
inlineoverrideprotected

Definition at line 923 of file dialog_net_inspector.cpp.

References IsContainer().

◆ IsContainer()

bool DIALOG_NET_INSPECTOR::DATA_MODEL::IsContainer ( const wxDataViewItem &  aItem) const
inlineoverrideprotected

Definition at line 915 of file dialog_net_inspector.cpp.

Referenced by HasContainerColumns().

◆ itemAt()

const LIST_ITEM & DIALOG_NET_INSPECTOR::DATA_MODEL::itemAt ( unsigned int  aRow) const
inline

Definition at line 482 of file dialog_net_inspector.cpp.

References m_items.

◆ itemColumnChanged()

◆ itemCount()

unsigned int DIALOG_NET_INSPECTOR::DATA_MODEL::itemCount ( ) const
inline

Definition at line 470 of file dialog_net_inspector.cpp.

References m_items.

◆ resortIfChanged()

void DIALOG_NET_INSPECTOR::DATA_MODEL::resortIfChanged ( LIST_ITEM aItem)
inline

◆ SetValue()

bool DIALOG_NET_INSPECTOR::DATA_MODEL::SetValue ( const wxVariant &  aInValue,
const wxDataViewItem &  aItem,
unsigned int  aCol 
)
inlineoverrideprotected

Definition at line 901 of file dialog_net_inspector.cpp.

◆ updateAllItems()

void DIALOG_NET_INSPECTOR::DATA_MODEL::updateAllItems ( )
inline

Definition at line 727 of file dialog_net_inspector.cpp.

References m_items.

◆ updateItem()

void DIALOG_NET_INSPECTOR::DATA_MODEL::updateItem ( const std::optional< LIST_ITEM_ITER > &  aRow)
inline

Definition at line 713 of file dialog_net_inspector.cpp.

References resortIfChanged().

◆ valueAt()

wxVariant DIALOG_NET_INSPECTOR::DATA_MODEL::valueAt ( unsigned int  aCol,
unsigned int  aRow 
) const
inline

Definition at line 475 of file dialog_net_inspector.cpp.

References GetValue(), and m_items.

Member Data Documentation

◆ m_items

std::vector<std::unique_ptr<LIST_ITEM> > DIALOG_NET_INSPECTOR::DATA_MODEL::m_items
private

◆ m_parent

DIALOG_NET_INSPECTOR& DIALOG_NET_INSPECTOR::DATA_MODEL::m_parent
private

The documentation for this class was generated from the following file: