BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_ParameterDetails_GUI.h
1
2// Name: BT_MatML_ParameterDetails_GUI.h
3// Purpose: Classes of ParameterDetails_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#include "matml31.hxx"
26
27#include "BT_MatML_Base_GUI.h"
28#include "BT_MatML_MatMLInfo_GUI.h"
29#include "BT_MatML_ID_GUI.h"
30
31#include "BT_MatML_GUI.h"
32#include "BT_MatML_MatMLTreeItemData.h"
33#include "BT_MatML_TreeCtrlSorted.h"
34
35
36
37namespace bellshire {
38
39 class ID_GUI;
40
42 {
43 public:
44 wxNotebook* m_GUI;
45 ID_GUI* m_ParameterDetails_ID_GUI;
46
48 ParameterDetails_GUI_Base(wxWindow* parent);
49
51
52 static wxNotebook* Create(wxWindow* parent,
53 ID_GUI*& ParameterDetails_ID_GUI
54 );
55
56
57
58 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
59 wxNotebook* get() { return m_GUI; };
60
61 void Update( ParameterDetails* element);
62
63 static ::std::string Label(::std::string name, ::std::string id);
64
65 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
66 const wxTreeItemId& ParentId,
68 const wxTreeItemId& PreviousId
69 );
70
71 void SetConnect();
72 virtual void OnInsertName(wxCommandEvent& event) { event.Skip(); }
73 virtual void OnInsertUnits(wxCommandEvent& event) { event.Skip(); }
74 virtual void OnInsertUnitless(wxCommandEvent& event) { event.Skip(); }
75 virtual void OnInsertNotes(wxCommandEvent& event) { event.Skip(); }
76
77 virtual void OnDeleteName(wxCommandEvent& event) { event.Skip(); }
78 virtual void OnDeleteUnitless(wxCommandEvent& event) { event.Skip(); }
79 virtual void OnDeleteUnits(wxCommandEvent& event) { event.Skip(); }
80 virtual void OnDeleteNotes(wxCommandEvent& event) { event.Skip(); }
81
82 virtual void OnPasteName(wxCommandEvent& event){ event.Skip(); }
83 virtual void OnPasteUnits(wxCommandEvent& event){ event.Skip(); }
84 virtual void OnPasteUnitless(wxCommandEvent& event){ event.Skip(); }
85 virtual void OnPasteNotes(wxCommandEvent& event){ event.Skip(); }
86
87 virtual void OnBumpDown(wxCommandEvent& event) { event.Skip(); }
88 virtual void OnBumpUp(wxCommandEvent& event) { event.Skip(); }
89
90 private:
91 };
92
93
95 {
96 public:
97
98 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
99 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
100
102 ParameterDetails_GUI(wxWindow* parent);
103
104 virtual ~ParameterDetails_GUI();
105
106 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl, ::boost::shared_ptr<MatML_Doc>& MatMLDoc);//Required before Event Handling.
107 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
108 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
109
110 //Overwrites the base class functions
111 void OnInsertName(wxCommandEvent& event);
112 void OnInsertUnits(wxCommandEvent& event);
113 void OnInsertUnitless(wxCommandEvent& event);
114 void OnInsertNotes(wxCommandEvent& event);
115
116 void OnDeleteName(wxCommandEvent& event);
117 void OnDeleteUnitless(wxCommandEvent& event);
118 void OnDeleteUnits(wxCommandEvent& event);
119 void OnDeleteNotes(wxCommandEvent& event);
120
121 void OnPasteName(wxCommandEvent& event);
122 void OnPasteUnits(wxCommandEvent& event);
123 void OnPasteUnitless(wxCommandEvent& event);
124 void OnPasteNotes(wxCommandEvent& event);
125
126 void OnBumpDown(wxCommandEvent& event);
127 void OnBumpUp(wxCommandEvent& event);
128
129 private:
130 };
131
132
133}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: matml31.hxx:4515
Definition: BT_MatML_ID_GUI.h:78
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_ParameterDetails_GUI.h:42
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, ParameterDetails &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_ParameterDetails_GUI.cpp:87
static wxNotebook * Create(wxWindow *parent, ID_GUI *&ParameterDetails_ID_GUI)
Create the GUI for the ParameterDetails MatML Data and Info
Definition: BT_MatML_ParameterDetails_GUI.cpp:33
Definition: BT_MatML_ParameterDetails_GUI.h:95
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_ParameterDetails_GUI.cpp:171
ParameterDetails_GUI()
Constructor for the derived class
Definition: BT_MatML_ParameterDetails_GUI.cpp:143
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_ParameterDetails_GUI.cpp:182
virtual ~ParameterDetails_GUI()
Destructor for the derived class
Definition: BT_MatML_ParameterDetails_GUI.cpp:162
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