BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Characterization_GUI.h
1
2// Name: BT_MatML_Characterization_GUI.h
3// Purpose: Classes of Characterization_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
33
34
35namespace bellshire {
36
38 {
39 public:
40 wxNotebook* m_GUI;
41
43 Characterization_GUI_Base(wxWindow* parent);
44 static wxNotebook* Create(wxWindow* parent);
46
47 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
48 wxNotebook* get() { return m_GUI; };
49 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
50 const wxTreeItemId& ParentId,
52 const wxTreeItemId& PreviousId
53 );
54 void Update( Characterization* element);
55
56 void SetConnect() {};
57
58 virtual void OnInsertFormula(wxCommandEvent& event) { event.Skip(); }
59 virtual void OnInsertChemicalComposition(wxCommandEvent& event) { event.Skip(); }
60 virtual void OnInsertPhaseComposition(wxCommandEvent& event) { event.Skip(); }
61 virtual void OnInsertDimensionalDetails(wxCommandEvent& event) { event.Skip(); }
62 virtual void OnInsertNotes(wxCommandEvent& event) { event.Skip(); }
63
64 virtual void OnDeleteFormula(wxCommandEvent& event) { event.Skip(); }
65 virtual void OnDeleteChemicalComposition(wxCommandEvent& event) { event.Skip(); }
66 virtual void OnDeletePhaseComposition(wxCommandEvent& event) { event.Skip(); }
67 virtual void OnDeleteDimensionalDetails(wxCommandEvent& event) { event.Skip(); }
68 virtual void OnDeleteNotes(wxCommandEvent& event) { event.Skip(); }
69
70 virtual void OnPasteFormula(wxCommandEvent& event) { event.Skip(); }
71 virtual void OnPasteChemicalComposition(wxCommandEvent& event) { event.Skip(); }
72 virtual void OnPastePhaseComposition(wxCommandEvent& event) { event.Skip(); }
73 virtual void OnPasteDimensionalDetails(wxCommandEvent& event) { event.Skip(); }
74 virtual void OnPasteNotes(wxCommandEvent& event) { event.Skip(); }
75
76 private:
77 };
78
80 {
81 public:
82 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
83 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
84
86 Characterization_GUI(wxWindow* parent);
87
88 virtual ~Characterization_GUI();
89
90 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
91 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
92 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//required before paste Event Handling.
93
94 //Overwrites the base class functions
95 void OnInsertFormula(wxCommandEvent& event);
96 void OnInsertChemicalComposition(wxCommandEvent& event);
97 void OnInsertPhaseComposition(wxCommandEvent& event);
98 void OnInsertDimensionalDetails(wxCommandEvent& event);
99 void OnInsertNotes(wxCommandEvent& event);
100
101 void OnDeleteFormula(wxCommandEvent& event);
102 void OnDeleteChemicalComposition(wxCommandEvent& event);
103 void OnDeletePhaseComposition(wxCommandEvent& event);
104 void OnDeleteDimensionalDetails(wxCommandEvent& event);
105 void OnDeleteNotes(wxCommandEvent& event);
106
107 void OnPasteFormula(wxCommandEvent& event);
108 void OnPasteChemicalComposition(wxCommandEvent& event);
109 void OnPastePhaseComposition(wxCommandEvent& event);
110 void OnPasteDimensionalDetails(wxCommandEvent& event);
111 void OnPasteNotes(wxCommandEvent& event);
112
113 private:
114 };
115
116}; //namespace bellshire end
Definition: matml31.hxx:693
Definition: matml31.hxx:1705
Definition: BT_MatML_Characterization_GUI.h:38
static wxNotebook * Create(wxWindow *parent)
Create the GUI for the Characterization MatML Data and Info
Definition: BT_MatML_Characterization_GUI.cpp:33
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Characterization &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_Characterization_GUI.cpp:78
Definition: BT_MatML_Characterization_GUI.h:80
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Characterization_GUI.cpp:181
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Characterization_GUI.cpp:171
Characterization_GUI()
Constructor for the derived class
Definition: BT_MatML_Characterization_GUI.cpp:140
virtual ~Characterization_GUI()
Destructor for the derived class
Definition: BT_MatML_Characterization_GUI.cpp:162
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