KiCad PCB EDA Suite
Loading...
Searching...
No Matches
UP_DOWN_TREE Class Reference

#include <up_down_tree.h>

Inheritance diagram for UP_DOWN_TREE:

Public Member Functions

 UP_DOWN_TREE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTR_DEFAULT_STYLE)
 
int OnCompareItems (const wxTreeItemId &item1, const wxTreeItemId &item2) override
 
void MoveItemUp (const wxTreeItemId &aItem)
 
void MoveItemDown (const wxTreeItemId &aItem)
 

Private Member Functions

void prepareForSort (const wxTreeItemId &aItem)
 
 wxDECLARE_ABSTRACT_CLASS (UP_DOWN_TREE)
 

Private Attributes

std::map< wxTreeItemId, int > m_sortMap
 

Detailed Description

Definition at line 31 of file up_down_tree.h.

Constructor & Destructor Documentation

◆ UP_DOWN_TREE()

UP_DOWN_TREE::UP_DOWN_TREE ( wxWindow * parent,
wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = wxTR_DEFAULT_STYLE )
inline

Definition at line 34 of file up_down_tree.h.

Referenced by wxDECLARE_ABSTRACT_CLASS().

Member Function Documentation

◆ MoveItemDown()

void UP_DOWN_TREE::MoveItemDown ( const wxTreeItemId & aItem)

Definition at line 74 of file up_down_tree.cpp.

References m_sortMap, and prepareForSort().

◆ MoveItemUp()

void UP_DOWN_TREE::MoveItemUp ( const wxTreeItemId & aItem)

Definition at line 66 of file up_down_tree.cpp.

References m_sortMap, and prepareForSort().

◆ OnCompareItems()

int UP_DOWN_TREE::OnCompareItems ( const wxTreeItemId & item1,
const wxTreeItemId & item2 )
override

Definition at line 31 of file up_down_tree.cpp.

References m_sortMap.

◆ prepareForSort()

void UP_DOWN_TREE::prepareForSort ( const wxTreeItemId & aItem)
private

Definition at line 42 of file up_down_tree.cpp.

References m_sortMap.

Referenced by MoveItemDown(), and MoveItemUp().

◆ wxDECLARE_ABSTRACT_CLASS()

UP_DOWN_TREE::wxDECLARE_ABSTRACT_CLASS ( UP_DOWN_TREE )
private

References UP_DOWN_TREE().

Member Data Documentation

◆ m_sortMap

std::map<wxTreeItemId, int> UP_DOWN_TREE::m_sortMap
private

Definition at line 49 of file up_down_tree.h.

Referenced by MoveItemDown(), MoveItemUp(), OnCompareItems(), and prepareForSort().


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