BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_ComponentDetails_GUI.h
1
2// Name: BT_MatML_ComponentDetails_GUI.h
3// Purpose: Classes of ComponentDetails_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
13// For compilers that support precompilation, includes "wx/wx.h".
14#include "wx/wxprec.h"
15
16
17#ifndef WX_PRECOMP
18#include "wx/wx.h"
19#endif
20
21#include "wx/dcsvg.h"
22#include "wx/notebook.h"
23
24#include <math.h>
25
26#include "matml31.hxx"
27
28#include "BT_MatML_Base_GUI.h"
29#include "BT_MatML_ID_GUI.h"
30#include "BT_MatML_MatMLInfo_GUI.h"
31
32#include "BT_MatML_GUI.h"
33#include "BT_MatML_MatMLTreeItemData.h"
34#include "BT_MatML_TreeCtrlSorted.h"
35
36
37
38namespace bellshire {
39
40 class ID_GUI;
41
43 {
44 public:
45 ID_GUI* m_ComponentDetails_ID_GUI;
46 wxNotebook* m_GUI;
47
49 ComponentDetails_GUI_Base(wxWindow* parent);
50 static wxNotebook* Create(wxWindow* parent, ID_GUI*& ComponentDetails_ID_GUI);
52
53 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
54 bool IsShown() { return m_GUI->IsShown(); };
55 wxNotebook* get() { return m_GUI; };
56
57 void Update( ComponentDetails* element);
58 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
59 const wxTreeItemId& ParentId,
61 const wxTreeItemId& PreviousId
62 );
63
64 void SetConnect();
65 virtual void OnInsertName(wxCommandEvent& event) { event.Skip(); }
66 virtual void OnInsertClass(wxCommandEvent& event) { event.Skip(); }
67 virtual void OnInsertSubclass1(wxCommandEvent& event) { event.Skip(); }
68 virtual void OnInsertSpecification(wxCommandEvent& event) { event.Skip(); }
69 virtual void OnInsertSource(wxCommandEvent& event) { event.Skip(); }
70 virtual void OnInsertForm(wxCommandEvent& event) { event.Skip(); }
71 virtual void OnInsertProcessingDetails(wxCommandEvent& event) { event.Skip(); }
72 virtual void OnInsertCharacterization(wxCommandEvent& event) { event.Skip(); }
73 virtual void OnInsertPropertyData(wxCommandEvent& event) { event.Skip(); }
74 virtual void OnInsertAssociationDetails(wxCommandEvent& event) { event.Skip(); }
75 virtual void OnInsertComponentDetails(wxCommandEvent& event) { event.Skip(); }
76
77 virtual void OnDeleteName(wxCommandEvent& event) { event.Skip(); }
78 virtual void OnDeleteClass(wxCommandEvent& event) { event.Skip(); }
79 virtual void OnDeleteSubclass1(wxCommandEvent& event) { event.Skip(); }
80 virtual void OnDeleteAssociationDetails(wxCommandEvent& event) { event.Skip(); }
81 virtual void OnDeleteCharacterization(wxCommandEvent& event) { event.Skip(); }
82 //virtual void OnDeleteComponentDetails(wxCommandEvent& event) { event.Skip(); }
83 virtual void OnDeleteForm(wxCommandEvent& event) { event.Skip(); }
84 virtual void OnDeleteProcessingDetails(wxCommandEvent& event) { event.Skip(); }
85 virtual void OnDeletePropertyData(wxCommandEvent& event) { event.Skip(); }
86 virtual void OnDeleteSpecification(wxCommandEvent& event) { event.Skip(); }
87 virtual void OnDeleteSource(wxCommandEvent& event) { event.Skip(); }
88
89 virtual void OnPasteName(wxCommandEvent& event) { event.Skip(); }
90 virtual void OnPasteClass(wxCommandEvent& event) { event.Skip(); }
91 virtual void OnPasteSubclass1(wxCommandEvent& event) { event.Skip(); }
92 virtual void OnPasteSpecification(wxCommandEvent& event) { event.Skip(); }
93 virtual void OnPasteSource(wxCommandEvent& event) { event.Skip(); }
94 virtual void OnPasteForm(wxCommandEvent& event) { event.Skip(); }
95 virtual void OnPasteProcessingDetails(wxCommandEvent& event) { event.Skip(); }
96 virtual void OnPasteCharacterization(wxCommandEvent& event) { event.Skip(); }
97 virtual void OnPastePropertyData(wxCommandEvent& event) { event.Skip(); }
98 virtual void OnPasteAssociationDetails(wxCommandEvent& event) { event.Skip(); }
99 virtual void OnPasteComponentDetails(wxCommandEvent& event) { event.Skip(); }
100
101 virtual void OnBumpUp(wxCommandEvent& event){ event.Skip(); }
102 virtual void OnBumpDown(wxCommandEvent& event){ event.Skip(); }
103
104 private:
105 };
106
107
109 {
110 public:
111
112 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
113 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
114
116 ComponentDetails_GUI(wxWindow* parent);
117
118 virtual ~ComponentDetails_GUI();
119
120 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl, ::boost::shared_ptr<MatML_Doc>& MatMLDoc);//Required before Event Handling.
121 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
122 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
123
124
125 //Overwrites the base class Event handler functions
126 void OnInsertName(wxCommandEvent& event);
127 void OnInsertClass(wxCommandEvent& event);
128 void OnInsertSubclass1(wxCommandEvent& event);
129 void OnInsertSpecification(wxCommandEvent& event);
130 void OnInsertSource(wxCommandEvent& event);
131 void OnInsertForm(wxCommandEvent& event);
132 void OnInsertProcessingDetails(wxCommandEvent& event);
133 void OnInsertCharacterization(wxCommandEvent& event);
134 void OnInsertPropertyData(wxCommandEvent& event);
135 void OnInsertAssociationDetails(wxCommandEvent& event);
136 void OnInsertComponentDetails(wxCommandEvent& event);
137
138 void OnDeleteName(wxCommandEvent& event);
139 void OnDeleteClass(wxCommandEvent& event);
140 void OnDeleteSubclass1(wxCommandEvent& event);
141 void OnDeleteAssociationDetails(wxCommandEvent& event);
142 void OnDeleteCharacterization(wxCommandEvent& event);
143 //void OnDeleteComponentDetails(wxCommandEvent& event);
144 void OnDeleteForm(wxCommandEvent& event);
145 void OnDeleteProcessingDetails(wxCommandEvent& event);
146 void OnDeletePropertyData(wxCommandEvent& event);
147 void OnDeleteSpecification(wxCommandEvent& event);
148 void OnDeleteSource(wxCommandEvent& event);
149
150 void OnPasteName(wxCommandEvent& event);
151 void OnPasteClass(wxCommandEvent& event);
152 void OnPasteSubclass(wxCommandEvent& event);
153 void OnPasteSpecification(wxCommandEvent& event);
154 void OnPasteSource(wxCommandEvent& event);
155 void OnPasteForm(wxCommandEvent& event);
156 void OnPasteProcessingDetails(wxCommandEvent& event);
157 void OnPasteCharacterization(wxCommandEvent& event);
158 void OnPastePropertyData(wxCommandEvent& event);
159 void OnPasteAssociationDetails(wxCommandEvent& event);
160 void OnPasteComponentDetails(wxCommandEvent& event);
161
162 void OnBumpUp(wxCommandEvent& event);
163 void OnBumpDown(wxCommandEvent& event);
164
165
166 private:
167 };
168
169}; //namespace bellshire end
Definition: matml31.hxx:990
Definition: matml31.hxx:1705
Definition: BT_MatML_ComponentDetails_GUI.h:43
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, ComponentDetails &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_ComponentDetails_GUI.cpp:81
static wxNotebook * Create(wxWindow *parent, ID_GUI *&ComponentDetails_ID_GUI)
Create the GUI for the ComponentDetails MatML Data and Info
Definition: BT_MatML_ComponentDetails_GUI.cpp:34
Definition: BT_MatML_ComponentDetails_GUI.h:109
virtual ~ComponentDetails_GUI()
Destructor for the derived class
Definition: BT_MatML_ComponentDetails_GUI.cpp:222
ComponentDetails_GUI()
Constructor for the derived class
Definition: BT_MatML_ComponentDetails_GUI.cpp:203
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_ComponentDetails_GUI.cpp:242
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl, ::boost::shared_ptr< MatML_Doc > &MatMLDoc)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_ComponentDetails_GUI.cpp:231
Definition: BT_MatML_ID_GUI.h:78
Definition: BT_MatML_Base_GUI.h:163
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