BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_TreeCtrlSorted.h
1
2// Name: TreeCtrlSorted.h
3// Purpose: MatML Sorted Version of the wxTree.
4// Author: Paul McGrath
5// Modified by:
6// Created:
7// Copyright: (c) Paul McGrath
8// Licence: CC licence
10#ifndef __TreeCtrlSorted__
11#define __TreeCtrlSorted__
12
13#include <wx/treectrl.h>
14#include <wx/object.h>
15#include "matml31.hxx"
16
17namespace bellshire{
18class TreeCtrlSorted : public ::wxTreeCtrl
19{
20
21 public:
22 TreeCtrlSorted(wxWindow* parent=NULL, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
23 long style = wxTR_HAS_BUTTONS, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxString(wxT("treeCtrl")))
24 :wxTreeCtrl(parent, id, pos, size, style, validator, name){};
25 wxArrayString GetSortClasses();
26 int ClassOrder(Class& item);
27 int PositionOrder(Material* material);
28 int PositionOrder(BulkDetails* parent, Class* element);
29
30 protected:
31 virtual int OnCompareItems(const wxTreeItemId& item1, const wxTreeItemId& item2);
32
33
34 DECLARE_DYNAMIC_CLASS(TreeCtrlSorted)
35
36 public:
37 wxArrayString ClassOrderIndex;
38
39};
40}//namespace bellshire
41
42#endif //__TreeCtrlSorted__
Definition: matml31.hxx:460
Definition: matml31.hxx:897
Definition: matml31.hxx:2299
Definition: BT_MatML_TreeCtrlSorted.h:19
virtual int OnCompareItems(const wxTreeItemId &item1, const wxTreeItemId &item2)
Definition: BT_MatML_TreeCtrlSorted.cpp:33
int ClassOrder(Class &item)
Definition: BT_MatML_TreeCtrlSorted.cpp:168
Contains the GUI and GUI associated classes. OnInit() calls the creation of the MaterialFrame GUI
Definition: BT_MatML_App.h:39