22#include "wx/notebook.h"
23#include <wx/statline.h>
25#include <boost/shared_ptr.hpp>
27#include "StringStream.h"
30#include "BT_MatML_Base_GUI.h"
31#include "BT_MatML_MatMLInfo_GUI.h"
32#include "BT_MatML_ID_GUI.h"
34#include "BT_MatML_GUI.h"
35#include "BT_MatML_MatMLTreeItemData.h"
36#include "BT_MatML_TreeCtrlSorted.h"
44 wxTextCtrl* m_UnitNameTextCtrl;
45 wxCheckBox* m_UnitCurrencyCheckBox;
46 wxChoice* m_UnitCurrencyChoice;
47 wxTextCtrl* m_UnitPowerTextCtrl;
48 wxTextCtrl* m_UnitDescriptionTextCtrl;
52 static wxNotebook*
Create(wxWindow* parent, wxTextCtrl*& UnitNameTextCtrl, wxCheckBox*& UnitCurrencyCheckBox, wxChoice*& UnitCurrencyChoice, wxTextCtrl*& UnitPowerTextCtrl, wxTextCtrl*& UnitDescriptionTextCtrl);
55 void Show(
bool show =
true) {
if (m_GUI !=
nullptr) m_GUI->Show(show); };
56 bool IsShown() {
return m_GUI->IsShown(); };
57 wxNotebook* get() {
return m_GUI; };
59 void Update(
Unit* element);
61 const wxTreeItemId& ParentId,
63 const wxTreeItemId& PreviousId
67 virtual void OnUnitNotebook(wxNotebookEvent& event) {
event.Skip(); }
68 virtual void OnUnitNameTextCtrl(wxCommandEvent& event) {
event.Skip(); }
69 virtual void OnUnitCurrencyCheckBox(wxCommandEvent& event) {
event.Skip(); }
70 virtual void OnUnitCurrencyChoice(wxCommandEvent& event) {
event.Skip(); }
71 virtual void OnUnitPowerTextCtrl(wxCommandEvent& event) {
event.Skip(); }
72 virtual void OnUnitDescriptionTextCtrl(wxCommandEvent& event) {
event.Skip(); }
74 virtual void OnInsertName(wxCommandEvent& event) {
event.Skip(); }
75 virtual void OnInsertCurrency(wxCommandEvent& event) {
event.Skip(); }
77 virtual void OnDeleteName(wxCommandEvent& event) {
event.Skip(); }
79 virtual void OnPasteName(wxCommandEvent& event){
event.Skip(); }
80 virtual void OnPasteCurrencyCode(wxCommandEvent& event){
event.Skip(); }
82 virtual void OnBumpDown(wxCommandEvent& event) {
event.Skip(); }
83 virtual void OnBumpUp(wxCommandEvent& event) {
event.Skip(); }
93 ::boost::any m_MatMLItemToCopy;
102 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);
105 void OnUnitNameTextCtrl(wxCommandEvent& event);
106 void OnUnitCurrencyCheckBox(wxCommandEvent& event);
107 void OnUnitCurrencyChoice(wxCommandEvent& event);
108 void OnUnitPowerTextCtrl(wxCommandEvent& event);
109 void OnUnitDescriptionTextCtrl(wxCommandEvent& event);
111 void OnInsertName(wxCommandEvent& event);
112 void OnInsertCurrency(wxCommandEvent& event);
114 void OnDeleteName(wxCommandEvent& event);
116 void OnPasteName(wxCommandEvent& event);
117 void OnPasteCurrencyCode(wxCommandEvent& event);
119 void OnBumpDown(wxCommandEvent& event);
120 void OnBumpUp(wxCommandEvent& event);
Definition: matml31.hxx:1705
Definition: matml31.hxx:3850
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_TreeCtrlSorted.h:19
Definition: BT_MatML_Unit_GUI.h:41
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Unit &Element, const wxTreeItemId &PreviousId)
This set-up the Parent MatML Data into a wxTreeCtrl element and then call on the Children to do the s...
Definition: BT_MatML_Unit_GUI.cpp:193
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&UnitNameTextCtrl, wxCheckBox *&UnitCurrencyCheckBox, wxChoice *&UnitCurrencyChoice, wxTextCtrl *&UnitPowerTextCtrl, wxTextCtrl *&UnitDescriptionTextCtrl)
Create the GUI for the Unit MatML Data and Info
Definition: BT_MatML_Unit_GUI.cpp:47
Definition: BT_MatML_Unit_GUI.h:89
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Unit_GUI.cpp:267
virtual ~Unit_GUI()
Destructor for the derived class
Definition: BT_MatML_Unit_GUI.cpp:258
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Unit_GUI.cpp:278
Unit_GUI()
Constructor for the derived class
Definition: BT_MatML_Unit_GUI.cpp:239
Contains the GUI and GUI associated classes. OnInit() calls the creation of the MaterialFrame GUI
Definition: BT_MatML_App.h:39