BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Specification_GUI.h
1
2// Name: BT_MatML_Specification_GUI.h
3// Purpose: Classes of Specification_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#include <wx/statline.h>
24
25#include <boost/shared_ptr.hpp>
26#include <math.h>
27#include "StringStream.h"
28#include "matml31.hxx"
29
30#include "BT_MatML_Base_GUI.h"
31#include "BT_MatML_MatMLInfo_GUI.h"
32#include "BT_MatML_ID_GUI.h"
33
34#include "BT_MatML_GUI.h"
35#include "BT_MatML_MatMLTreeItemData.h"
36#include "BT_MatML_TreeCtrlSorted.h"
37
38namespace bellshire {
39
41
43 {
44 public:
45 wxNotebook* m_GUI;
46 wxTextCtrl* m_SpecificationTextCtrl;
47 wxChoice* m_AuthorityChoice;
48 AuthorityDetails_Display_GUI* m_SpecificationAuthorityDetails_Display_GUI;
49
51 Specification_GUI_Base(wxWindow* parent);
52 static wxNotebook* Create(wxWindow* parent, wxTextCtrl*& SpecificationTextCtrl, wxChoice*& AuthorityChoice, AuthorityDetails_Display_GUI*& SpecificationAuthorityDetails_Display_GUI);
54
55 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
56 bool IsShown() { return m_GUI->IsShown(); };
57 wxNotebook* get() { return m_GUI; };
58
59 void Update( Specification* element, const ::boost::shared_ptr<MatML_Doc> doc);
60 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
61 const wxTreeItemId& ParentId,
63 const wxTreeItemId& PreviousId
64 );
65
66 void SetConnect();
67 virtual void OnSpecificationTextCtrl(wxCommandEvent& event) { event.Skip(); }
68 virtual void OnSpecificationAuthorityChoice(wxCommandEvent& event) { event.Skip(); }
69
70
71
72
73 virtual void OnBumpDown(wxCommandEvent& event){ event.Skip(); }
74 virtual void OnBumpUp(wxCommandEvent& event){ event.Skip(); }
75
76 private:
77 };
78
80 {
81 public:
82
83 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
84
86 Specification_GUI(wxWindow* parent);
87
88 virtual ~Specification_GUI();
89
90 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
91 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
92
93 //Overwrites the base class functions
94 void OnSpecificationTextCtrl(wxCommandEvent& event);
95 void OnSpecificationAuthorityChoice(wxCommandEvent& event);
96
97 void OnBumpDown(wxCommandEvent& event);
98 void OnBumpUp(wxCommandEvent& event);
99
100 private:
101 };
102
103}; //namespace bellshire end
104
Definition: matml31.hxx:1705
Definition: matml31.hxx:3562
Definition: BT_MatML_AuthorityDetails_Display_GUI.h:39
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_Specification_GUI.h:43
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Specification &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_Specification_GUI.cpp:149
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&SpecificationTextCtrl, wxChoice *&AuthorityChoice, AuthorityDetails_Display_GUI *&SpecificationAuthorityDetails_Display_GUI)
Create the GUI for the Specification MatML Data and Info
Definition: BT_MatML_Specification_GUI.cpp:39
Definition: BT_MatML_Specification_GUI.h:80
Specification_GUI()
Constructor for the derived class
Definition: BT_MatML_Specification_GUI.cpp:185
virtual ~Specification_GUI()
Destructor for the derived class
Definition: BT_MatML_Specification_GUI.cpp:204
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Specification_GUI.cpp:213
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Specification_GUI.cpp:224
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