BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Metadata_GUI.h
1
2// Name: BT_MatML_Metadata_GUI.h
3// Purpose: Classes of Metadata_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#include <wx/string.h>
23
24#include <math.h>
25#include <string.h>
26#include "StringStream.h"
27
28#include "matml31.hxx"
29#include "matml31_strongtypedef.h"
30
31#include "BT_MatML_Base_GUI.h"
32#include "BT_MatML_MatMLInfo_GUI.h"
33#include "BT_MatML_ID_GUI.h"
34
35#include "BT_MatML_GUI.h"
36#include "BT_MatML_MatMLTreeItemData.h"
37#include "BT_MatML_TreeCtrlSorted.h"
38
39
40
41namespace bellshire {
42
44 {
45 public:
46 wxNotebook* m_GUI;
47
49 Metadata_GUI_Base(wxWindow* parent);
50 static wxNotebook* Create(wxWindow* parent);
51 virtual ~Metadata_GUI_Base();
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( Metadata* element);
58 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
59 const wxTreeItemId& ParentId,
61 const wxTreeItemId& PreviousId
62 );
63
64 void SetConnect() {};
65
66 virtual void OnInsertAuthorityDetails(wxCommandEvent& event) { event.Skip(); }
67 virtual void OnInsertDataSourceDetails(wxCommandEvent& event) { event.Skip(); }
68 virtual void OnInsertMeasurementTechniqueDetails(wxCommandEvent& event) { event.Skip(); }
69 virtual void OnInsertParameterDetails(wxCommandEvent& event) { event.Skip(); }
70 virtual void OnInsertPropertyDetails(wxCommandEvent& event) { event.Skip(); }
71 virtual void OnInsertSourceDetails(wxCommandEvent& event) { event.Skip(); }
72 virtual void OnInsertSpecimenDetails(wxCommandEvent& event) { event.Skip(); }
73 virtual void OnInsertTestConditionDetails(wxCommandEvent& event) { event.Skip(); }
74
75 virtual void OnDeleteAuthorityDetails(wxCommandEvent& event) { event.Skip(); }
76 virtual void OnDeleteDataSourceDetails(wxCommandEvent& event) { event.Skip(); }
77 virtual void OnDeleteMeasurementTechniqueDetails(wxCommandEvent& event) { event.Skip(); }
78 virtual void OnDeleteParameterDetails(wxCommandEvent& event) { event.Skip(); }
79 virtual void OnDeletePropertyDetails(wxCommandEvent& event) { event.Skip(); }
80 virtual void OnDeleteSpecimenDetails(wxCommandEvent& event) { event.Skip(); }
81 virtual void OnDeleteSourceDetails(wxCommandEvent& event) { event.Skip(); }
82 virtual void OnDeleteTestConditionDetails(wxCommandEvent& event) { event.Skip(); }
83
84 virtual void OnPasteAuthorityDetails(wxCommandEvent& event){ event.Skip(); }
85 virtual void OnPasteDataSourceDetails(wxCommandEvent& event){ event.Skip(); }
86 virtual void OnPasteMeasurementTechniqueDetails(wxCommandEvent& event){ event.Skip(); }
87 virtual void OnPasteParameterDetails(wxCommandEvent& event){ event.Skip(); }
88 virtual void OnPastePropertyDetails(wxCommandEvent& event){ event.Skip(); }
89 virtual void OnPasteSourceDetails(wxCommandEvent& event){ event.Skip(); }
90 virtual void OnPasteSpecimenDetails(wxCommandEvent& event){ event.Skip(); }
91 virtual void OnPasteTestConditionDetails(wxCommandEvent& event){ event.Skip(); }
92
93 private:
94 };
95
97 {
98 public:
99 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
100 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
101
102 Metadata_GUI();
103 Metadata_GUI(wxWindow* parent);
104
105 virtual ~Metadata_GUI();
106
107 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
108 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
109 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
110
111 //Overwrites the base class functions
112 void OnInsertAuthorityDetails(wxCommandEvent& event);
113 void OnInsertDataSourceDetails(wxCommandEvent& event);
114 void OnInsertMeasurementTechniqueDetails(wxCommandEvent& event);
115 void OnInsertParameterDetails(wxCommandEvent& event);
116 void OnInsertPropertyDetails(wxCommandEvent& event);
117 void OnInsertSourceDetails(wxCommandEvent& event);
118 void OnInsertSpecimenDetails(wxCommandEvent& event);
119 void OnInsertTestConditionDetails(wxCommandEvent& event);
120
121 void OnDeleteAuthorityDetails(wxCommandEvent& event);
122 void OnDeleteDataSourceDetails(wxCommandEvent& event);
123 void OnDeleteMeasurementTechniqueDetails(wxCommandEvent& event);
124 void OnDeleteParameterDetails(wxCommandEvent& event);
125 void OnDeletePropertyDetails(wxCommandEvent& event);
126 void OnDeleteSpecimenDetails(wxCommandEvent& event);
127 void OnDeleteSourceDetails(wxCommandEvent& event);
128 void OnDeleteTestConditionDetails(wxCommandEvent& event);
129
130 void OnPasteAuthorityDetails(wxCommandEvent& event);
131 void OnPasteDataSourceDetails(wxCommandEvent& event);
132 void OnPasteMeasurementTechniqueDetails(wxCommandEvent& event);
133 void OnPasteParameterDetails(wxCommandEvent& event);
134 void OnPastePropertyDetails(wxCommandEvent& event);
135 void OnPasteSourceDetails(wxCommandEvent& event);
136 void OnPasteSpecimenDetails(wxCommandEvent& event);
137 void OnPasteTestConditionDetails(wxCommandEvent& event);
138
139
140 private:
141 };
142
143}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: matml31.hxx:2479
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_Metadata_GUI.h:44
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Metadata &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_Metadata_GUI.cpp:73
static wxNotebook * Create(wxWindow *parent)
Create the GUI for the Metadata MatML Data and Info
Definition: BT_MatML_Metadata_GUI.cpp:28
Definition: BT_MatML_Metadata_GUI.h:97
virtual ~Metadata_GUI()
Destructor for the derived class
Definition: BT_MatML_Metadata_GUI.cpp:192
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Metadata_GUI.cpp:201
Metadata_GUI()
Constructor for the derived class
Definition: BT_MatML_Metadata_GUI.cpp:172
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Metadata_GUI.cpp:211
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