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

Public Types

enum  COLUMN { COL_CHECK = 0 , COL_NAME , COL_STATUS , COL_COUNT }
 

Public Member Functions

void SetEntries (const std::vector< FILE_CHECKLIST_ENTRY > &aEntries)
 
void SetAllChecked (bool aChecked)
 
std::vector< wxString > CheckedPaths () const
 
wxString PathFor (const wxDataViewItem &aItem) const
 
unsigned int GetColumnCount () const override
 
wxString GetColumnType (unsigned int aCol) const override
 
void GetValue (wxVariant &aVariant, const wxDataViewItem &aItem, unsigned int aCol) const override
 
bool GetAttr (const wxDataViewItem &aItem, unsigned int aCol, wxDataViewItemAttr &aAttr) const override
 
bool SetValue (const wxVariant &aVariant, 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 &aItem, wxDataViewItemArray &aChildren) const override
 

Private Member Functions

CHECKLIST_NODE * toNode (const wxDataViewItem &aItem) const
 
void rebuildNodes ()
 

Private Attributes

FILE_CHECKLIST_DATA m_data
 
std::vector< std::unique_ptr< CHECKLIST_NODE > > m_sectionNodes
 

Detailed Description

Definition at line 128 of file file_checklist_ctrl.cpp.

Member Enumeration Documentation

◆ COLUMN

Enumerator
COL_CHECK 
COL_NAME 
COL_STATUS 
COL_COUNT 

Definition at line 131 of file file_checklist_ctrl.cpp.

Member Function Documentation

◆ CheckedPaths()

std::vector< wxString > FILE_CHECKLIST_MODEL::CheckedPaths ( ) const
inline

Definition at line 161 of file file_checklist_ctrl.cpp.

References m_data.

◆ GetAttr()

bool FILE_CHECKLIST_MODEL::GetAttr ( const wxDataViewItem & aItem,
unsigned int aCol,
wxDataViewItemAttr & aAttr ) const
inlineoverride

◆ GetChildren()

unsigned int FILE_CHECKLIST_MODEL::GetChildren ( const wxDataViewItem & aItem,
wxDataViewItemArray & aChildren ) const
inlineoverride

◆ GetColumnCount()

unsigned int FILE_CHECKLIST_MODEL::GetColumnCount ( ) const
inlineoverride

Definition at line 173 of file file_checklist_ctrl.cpp.

References COL_COUNT.

◆ GetColumnType()

wxString FILE_CHECKLIST_MODEL::GetColumnType ( unsigned int aCol) const
inlineoverride

Definition at line 175 of file file_checklist_ctrl.cpp.

References COL_CHECK, and COL_NAME.

◆ GetParent()

wxDataViewItem FILE_CHECKLIST_MODEL::GetParent ( const wxDataViewItem & aItem) const
inlineoverride

Definition at line 260 of file file_checklist_ctrl.cpp.

References CHECKLIST_NODE::parent, and toNode().

◆ GetValue()

void FILE_CHECKLIST_MODEL::GetValue ( wxVariant & aVariant,
const wxDataViewItem & aItem,
unsigned int aCol ) const
inlineoverride

◆ HasContainerColumns()

bool FILE_CHECKLIST_MODEL::HasContainerColumns ( const wxDataViewItem & aItem) const
inlineoverride

Definition at line 275 of file file_checklist_ctrl.cpp.

◆ IsContainer()

bool FILE_CHECKLIST_MODEL::IsContainer ( const wxDataViewItem & aItem) const
inlineoverride

Definition at line 266 of file file_checklist_ctrl.cpp.

References CHECKLIST_NODE::isSection, and toNode().

◆ PathFor()

wxString FILE_CHECKLIST_MODEL::PathFor ( const wxDataViewItem & aItem) const
inline

◆ rebuildNodes()

void FILE_CHECKLIST_MODEL::rebuildNodes ( )
inlineprivate

Definition at line 304 of file file_checklist_ctrl.cpp.

References m_data, and m_sectionNodes.

Referenced by SetEntries().

◆ SetAllChecked()

void FILE_CHECKLIST_MODEL::SetAllChecked ( bool aChecked)
inline

Definition at line 146 of file file_checklist_ctrl.cpp.

References COL_CHECK, m_data, and m_sectionNodes.

◆ SetEntries()

void FILE_CHECKLIST_MODEL::SetEntries ( const std::vector< FILE_CHECKLIST_ENTRY > & aEntries)
inline

Definition at line 139 of file file_checklist_ctrl.cpp.

References m_data, and rebuildNodes().

◆ SetValue()

bool FILE_CHECKLIST_MODEL::SetValue ( const wxVariant & aVariant,
const wxDataViewItem & aItem,
unsigned int aCol )
inlineoverride

◆ toNode()

CHECKLIST_NODE * FILE_CHECKLIST_MODEL::toNode ( const wxDataViewItem & aItem) const
inlineprivate

Member Data Documentation

◆ m_data

FILE_CHECKLIST_DATA FILE_CHECKLIST_MODEL::m_data
private

◆ m_sectionNodes

std::vector<std::unique_ptr<CHECKLIST_NODE> > FILE_CHECKLIST_MODEL::m_sectionNodes
private

Definition at line 328 of file file_checklist_ctrl.cpp.

Referenced by GetChildren(), rebuildNodes(), and SetAllChecked().


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