BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Subclass_GUI.h
1
2// Name: BT_MatML_Subclass_GUI.h
3// Purpose: Classes of Subclass_GUI Base and Derived.
4// Author: Paul McGrath
5// Modified by:
6// Created:
7// Copyright: (c) Paul McGrath
8// Licence: CC licence
10#pragma once
11
12// For compilers that support precompilation, includes "wx/wx.h".
13#include "wx/wxprec.h"
14
15
16#ifndef WX_PRECOMP
17#include "wx/wx.h"
18#endif
19
20#include "wx/dcsvg.h"
21#include "wx/notebook.h"
22
23#include <math.h>
24#include "matml31.hxx"
25
26#include "BT_MatML_Base_GUI.h"
27#include "BT_MatML_MatMLInfo_GUI.h"
28
29#include "BT_MatML_GUI.h"
30#include "BT_MatML_MatMLTreeItemData.h"
31#include "BT_MatML_TreeCtrlSorted.h"
32
33namespace bellshire {
38 {
39 public:
40 wxNotebook* m_GUI;
41
43 Subclass_GUI_Base(wxWindow* parent);
44 static wxNotebook* Create(wxWindow* parent);
45 virtual ~Subclass_GUI_Base();
46
47 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
48 wxNotebook* get() { return m_GUI; };
49
50 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
51 const wxTreeItemId& ParentId,
53 const wxTreeItemId& PreviousId
54 );
55 void Update( Subclass* element);
56
57 void SetConnect() {};
58 virtual void OnInsertName(wxCommandEvent& event) { event.Skip(); }
59 virtual void OnInsertParentMaterial(wxCommandEvent& event){ event.Skip(); }
60 virtual void OnInsertParentSubClass(wxCommandEvent& event){ event.Skip(); }
61
62 virtual void OnDeleteName(wxCommandEvent& event) { event.Skip(); }
63 virtual void OnDeleteParentMaterial(wxCommandEvent& event) { event.Skip(); }
64 virtual void OnDeleteParentSubClass(wxCommandEvent& event) { event.Skip(); }
65
66 virtual void OnPasteName(wxCommandEvent& event){ event.Skip(); }
67 virtual void OnPasteParentMaterial(wxCommandEvent& event){ event.Skip(); }
68 virtual void OnPasteParentSubClass(wxCommandEvent& event){ event.Skip(); }
69
70 virtual void OnBumpUp(wxCommandEvent& event){ event.Skip(); }
71 virtual void OnBumpDown(wxCommandEvent& event){ event.Skip(); }
72
73 private:
74 };
75
77 {
78 public:
79 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
80 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
81
83 Subclass_GUI(wxWindow* parent);
84
85 virtual ~Subclass_GUI();
86
87 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
88 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
89 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
90
91 //Overwrites the base Subclass functions
92 void OnInsertName(wxCommandEvent& event);
93 void OnInsertParentMaterial(wxCommandEvent& event);
94 void OnInsertParentSubClass(wxCommandEvent& event);
95
96 void OnDeleteName(wxCommandEvent& event);
97 void OnDeleteParentMaterial(wxCommandEvent& event);
98 void OnDeleteParentSubClass(wxCommandEvent& event);
99
100 void OnPasteName(wxCommandEvent& event);
101 void OnPasteParentMaterial(wxCommandEvent& event);
102 void OnPasteParentSubClass(wxCommandEvent& event);
103
104 void OnBumpUp(wxCommandEvent& event);
105 void OnBumpDown(wxCommandEvent& event);
106
107 private:
108 };
109
110}; //namespace bellshire end
Definition: matml31.hxx:897
Definition: matml31.hxx:1705
Definition: BT_MatML_Base_GUI.h:163
In Subclass is used MatML's BulkDetails class.
Definition: BT_MatML_Subclass_GUI.h:38
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, BulkDetails::Subclass_type &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_Subclass_GUI.cpp:82
static wxNotebook * Create(wxWindow *parent)
Create the GUI for the Subclass MatML Data and Info
Definition: BT_MatML_Subclass_GUI.cpp:32
Definition: BT_MatML_Subclass_GUI.h:77
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Subclass_GUI.cpp:175
Subclass_GUI()
Constructor for the derived Subclass
Definition: BT_MatML_Subclass_GUI.cpp:145
virtual ~Subclass_GUI()
Destructor for the derived Subclass
Definition: BT_MatML_Subclass_GUI.cpp:166
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived Subclass...
Definition: BT_MatML_Subclass_GUI.cpp:185
Definition: BT_MatML_TreeCtrlSorted.h:19
Contains the GUI and GUI associated classes. OnInit() calls the creation of the MaterialFrame GUI
Definition: BT_MatML_App.h:39