BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_MeasurementTechniqueDetails_GUI.h
1
2// Name: BT_MatML_MeasurementTechniqueDetails_GUI.h
3// Purpose: Classes of MeasurementTechniqueDetails_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
43 class ID_GUI;
44
46 {
47 public:
48 wxNotebook* m_GUI;
49 ID_GUI* m_MeasurementTechniqueDetails_ID_GUI;
50
53
55
56 static wxNotebook* Create(wxWindow* parent,
57 ID_GUI*& MeasurementTechniqueDetails_ID_GUI
58 );
59
60 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
61 bool IsShown() { return m_GUI->IsShown(); };
62 wxNotebook* get() { return m_GUI; };
63
64 void Update( MeasurementTechniqueDetails* element);
65
66 static ::std::string Label(::std::string name, ::std::string id);
67
68 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
69 const wxTreeItemId& ParentId,
71 const wxTreeItemId& PreviousId
72 );
73
74 void SetConnect();
75 virtual void OnInsertName(wxCommandEvent& event) { event.Skip(); }
76 virtual void OnInsertNotes(wxCommandEvent& event) { event.Skip(); }
77
78 virtual void OnDeleteName(wxCommandEvent& event) { event.Skip(); }
79 virtual void OnDeleteNotes(wxCommandEvent& event) { event.Skip(); }
80
81 virtual void OnPasteName(wxCommandEvent& event) { event.Skip(); }
82 virtual void OnPasteNotes(wxCommandEvent& event) { event.Skip(); }
83
84 virtual void OnBumpDown(wxCommandEvent& event) { event.Skip(); }
85 virtual void OnBumpUp(wxCommandEvent& event) { event.Skip(); }
86
87 private:
88 };
89
91 {
92 public:
93
94 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
95 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
96
98 MeasurementTechniqueDetails_GUI(wxWindow* parent);
99
101
102 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl, ::boost::shared_ptr<MatML_Doc>& MatMLDoc);//Required before Event Handling.
103 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
104 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
105
106 //Overwrites the base class event handler functions
107 void OnInsertName(wxCommandEvent& event);
108 void OnInsertNotes(wxCommandEvent& event);
109
110 void OnDeleteName(wxCommandEvent& event);
111 void OnDeleteNotes(wxCommandEvent& event);
112
113 void OnPasteName(wxCommandEvent& event);
114 void OnPasteNotes(wxCommandEvent& event);
115
116 void OnBumpDown(wxCommandEvent& event);
117 void OnBumpUp(wxCommandEvent& event);
118
119 private:
120 };
121}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: matml31.hxx:4418
Definition: BT_MatML_ID_GUI.h:78
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_MeasurementTechniqueDetails_GUI.h:46
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, MeasurementTechniqueDetails &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_MeasurementTechniqueDetails_GUI.cpp:86
static wxNotebook * Create(wxWindow *parent, ID_GUI *&MeasurementTechniqueDetails_ID_GUI)
Create the GUI for the MeasurementTechniqueDetails MatML Data and Info
Definition: BT_MatML_MeasurementTechniqueDetails_GUI.cpp:33
Definition: BT_MatML_MeasurementTechniqueDetails_GUI.h:91
MeasurementTechniqueDetails_GUI()
Constructor for the derived class
Definition: BT_MatML_MeasurementTechniqueDetails_GUI.cpp:127
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_MeasurementTechniqueDetails_GUI.cpp:156
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_MeasurementTechniqueDetails_GUI.cpp:167
virtual ~MeasurementTechniqueDetails_GUI()
Destructor for the derived class
Definition: BT_MatML_MeasurementTechniqueDetails_GUI.cpp:146
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