BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Concentration_GUI.h
1
2// Name: BT_MatML_Concentration_GUI.h
3// Purpose: Classes of Concentration_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 Concentration_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 bool IsShown() { return m_GUI->IsShown(); };
49 wxNotebook* get() { return m_GUI; };
50
51 void Update( Concentration* element);
52 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
53 const wxTreeItemId& ParentId,
55 const wxTreeItemId& PreviousId
56 );
57
58 void SetConnect() {};
59
60 virtual void OnInsertValue(wxCommandEvent& event) { event.Skip(); }
61 virtual void OnInsertUnits(wxCommandEvent& event) { event.Skip(); }
62 virtual void OnInsertQualifier(wxCommandEvent& event) { event.Skip(); }
63 virtual void OnInsertUncertainty(wxCommandEvent& event) { event.Skip(); }
64 virtual void OnInsertNotes(wxCommandEvent& event) { event.Skip(); }
65
66 virtual void OnDeleteQualifier(wxCommandEvent& event) { event.Skip(); }
67 virtual void OnDeleteNotes(wxCommandEvent& event) { event.Skip(); }
68 virtual void OnDeleteUncertainty(wxCommandEvent& event) { event.Skip(); }
69 virtual void OnDeleteUnits(wxCommandEvent& event) { event.Skip(); }
70 virtual void OnDeleteValue(wxCommandEvent& event) { event.Skip(); }
71
72 virtual void OnPasteValue(wxCommandEvent& event){ event.Skip(); }
73 virtual void OnPasteUnits(wxCommandEvent& event){ event.Skip(); }
74 virtual void OnPasteQualifier(wxCommandEvent& event){ event.Skip(); }
75 virtual void OnPasteUncertainty(wxCommandEvent& event){ event.Skip(); }
76 virtual void OnPasteNotes(wxCommandEvent& event){ event.Skip(); }
77
78 private:
79 };
80
82 {
83 public:
84 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
85 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
86
88 Concentration_GUI(wxWindow* parent);
89
90 virtual ~Concentration_GUI();
91
92 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
93 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
94 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
95
96 //Overwrites the base class functions
97 void OnInsertValue(wxCommandEvent& event);
98 void OnInsertUnits(wxCommandEvent& event);
99 void OnInsertQualifier(wxCommandEvent& event);
100 void OnInsertUncertainty(wxCommandEvent& event);
101 void OnInsertNotes(wxCommandEvent& event);
102
103 void OnDeleteQualifier(wxCommandEvent& event);
104 void OnDeleteNotes(wxCommandEvent& event);
105 void OnDeleteUncertainty(wxCommandEvent& event);
106 void OnDeleteUnits(wxCommandEvent& event);
107 void OnDeleteValue(wxCommandEvent& event);
108
109 void OnPasteValue(wxCommandEvent& event);
110 void OnPasteUnits(wxCommandEvent& event);
111 void OnPasteQualifier(wxCommandEvent& event);
112 void OnPasteUncertainty(wxCommandEvent& event);
113 void OnPasteNotes(wxCommandEvent& event);
114
115 private:
116 };
117
118}; //namespace bellshire end
119#pragma once
Definition: matml31.hxx:1356
Definition: matml31.hxx:1705
Definition: BT_MatML_Concentration_GUI.h:38
static wxNotebook * Create(wxWindow *parent)
Create the GUI for the Concentration MatML Data and Info
Definition: BT_MatML_Concentration_GUI.cpp:29
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Concentration &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_Concentration_GUI.cpp:73
Definition: BT_MatML_Concentration_GUI.h:82
virtual ~Concentration_GUI()
Destructor for the derived class
Definition: BT_MatML_Concentration_GUI.cpp:152
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Concentration_GUI.cpp:161
Concentration_GUI()
Constructor for the derived class
Definition: BT_MatML_Concentration_GUI.cpp:130
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Concentration_GUI.cpp:171
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