BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_MatML_Doc_GUI.h
1
2// Name: BT_MatML_MatML_Doc_GUI.h
3// Purpose: Classes of MatML_Doc_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#include <boost/shared_ptr.hpp>
13
14// For compilers that support precompilation, includes "wx/wx.h".
15#include "wx/wxprec.h"
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
30#include "BT_MatML_MatMLTreeItemData.h"
31#include "BT_MatML_TreeCtrlSorted.h"
32
33namespace bellshire {
34
44 {
45 public:
46 wxNotebook* m_GUI;
47
49 MatML_Doc_GUI_Base(wxWindow* parent);
50 static wxNotebook* Create(wxWindow* parent);
51 virtual ~MatML_Doc_GUI_Base();
52
53 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
54 wxNotebook* get() { return m_GUI; };
55 static void SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
57 );
58 void Update();
59
60 void SetConnect() {};
61
62 virtual void OnDeleteMaterial(wxCommandEvent& event) { event.Skip(); }
63
64 private:
65 };
66
74 {
75 public:
76 //Required before Event Handling.
77 TreeCtrlSorted* m_MatMLTreeCtrl;
78 ::boost::shared_ptr<MatML_Doc> m_MatMLDoc;
79
81 MatML_Doc_GUI(wxWindow* parent);
82
83 virtual ~MatML_Doc_GUI();
84
85 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl, ::boost::shared_ptr<MatML_Doc>& MatMLDoc);//Required before Event Handling.
86 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
87 void SetMatMLDoc(::boost::shared_ptr<MatML_Doc>& MatMLDoc);
88
89 //Overwrites the base class functions
90 void OnDeleteMaterial(wxCommandEvent& event);
91
92 private:
93 };
94
95}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: matml31.hxx:5577
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_MatML_Doc_GUI.h:44
MatML_Doc_GUI_Base()
Definition: BT_MatML_MatML_Doc_GUI.cpp:17
static wxNotebook * Create(wxWindow *parent)
Definition: BT_MatML_MatML_Doc_GUI.cpp:45
static void SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, MatML_Doc &Element)
This set-up the Parent MatML data into a wxTreeCtrl element and then call on the Children to do the s...
Definition: BT_MatML_MatML_Doc_GUI.cpp:103
virtual ~MatML_Doc_GUI_Base()
Definition: BT_MatML_MatML_Doc_GUI.cpp:34
void Update()
Definition: BT_MatML_MatML_Doc_GUI.cpp:90
Definition: BT_MatML_MatML_Doc_GUI.h:74
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_MatML_Doc_GUI.cpp:179
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_MatML_Doc_GUI.cpp:168
MatML_Doc_GUI()
Constructor for the derived class
Definition: BT_MatML_MatML_Doc_GUI.cpp:137
virtual ~MatML_Doc_GUI()
Destructor for the derived class
Definition: BT_MatML_MatML_Doc_GUI.cpp:158
void OnDeleteMaterial(wxCommandEvent &event)
Overrides base class
Definition: BT_MatML_MatML_Doc_GUI.cpp:199
void SetMatMLDoc(::boost::shared_ptr< MatML_Doc > &MatMLDoc)
Set the Event Handler Variable associated with the MatML wxTreeCtrl Required before using the derived...
Definition: BT_MatML_MatML_Doc_GUI.cpp:189
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