BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
bellshire::TreeCtrlSorted Class Reference
Inheritance diagram for bellshire::TreeCtrlSorted:

Public Member Functions

 TreeCtrlSorted (wxWindow *parent=NULL, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTR_HAS_BUTTONS, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxString(wxT("treeCtrl")))
 
wxArrayString GetSortClasses ()
 
int ClassOrder (Class &item)
 
int PositionOrder (Material *material)
 
int PositionOrder (BulkDetails *parent, Class *element)
 

Public Attributes

wxArrayString ClassOrderIndex
 

Protected Member Functions

virtual int OnCompareItems (const wxTreeItemId &item1, const wxTreeItemId &item2)
 

Member Function Documentation

◆ ClassOrder()

int TreeCtrlSorted::ClassOrder ( Class item)

Implementation ClassOrder

Returns int value based on the hardcoding of the class order.

◆ OnCompareItems()

int TreeCtrlSorted::OnCompareItems ( const wxTreeItemId &  item1,
const wxTreeItemId &  item2 
)
protectedvirtual

Implementation OnCompareItems

Comparison test for ordering of the TreeCtrl

Sorts the Metadata to the end of the list Sorts the Material as per its Class->Name Sorts the Material as per its position


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