BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Relationship_GUI.h
1
2// Name: BT_MatML_Relationship_GUI.h
3// Purpose: Classes of Relationship_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 "StringStream.h"
26#include "matml31.hxx"
27
28#include "BT_MatML_Base_GUI.h"
29#include "BT_MatML_MatMLInfo_GUI.h"
30
31#include "BT_MatML_GUI.h"
32#include "BT_MatML_MatMLTreeItemData.h"
33#include "BT_MatML_TreeCtrlSorted.h"
34
35namespace bellshire {
36
38 {
39 public:
40 wxNotebook* m_GUI;
41 wxTextCtrl* m_RelationshipTextCtrl;
42
44 Relationship_GUI_Base(wxWindow* parent);
45 static wxNotebook* Create(wxWindow* parent, wxTextCtrl*& RelationshipTextCtrl);
46 virtual ~Relationship_GUI_Base();
47
48 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
49 wxNotebook* get() { return m_GUI; };
50
51 void Update( Relationship* element);
52 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
53 const wxTreeItemId& ParentId,
55 const wxTreeItemId& PreviousId
56 );
57
58 void SetConnect();
59 virtual void OnRelationshipTextCtrl(wxCommandEvent& event) { event.Skip(); }
60
61 private:
62 };
63
65 {
66 public:
67
68 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
69
71 Relationship_GUI(wxWindow* parent);
72 virtual ~Relationship_GUI();
73
74 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
75 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
76
77 //Overwrites the base class functions
78 void OnRelationshipTextCtrl(wxCommandEvent& event);
79
80
81 private:
82 };
83
84}; //namespace bellshire end
85
Definition: matml31.hxx:1705
Definition: matml31.hxx:3467
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_Relationship_GUI.h:38
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Relationship &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_Relationship_GUI.cpp:91
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&RelationshipTextCtrl)
Create the GUI for the Relationship MatML Data and Info
Definition: BT_MatML_Relationship_GUI.cpp:31
Definition: BT_MatML_Relationship_GUI.h:65
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Relationship_GUI.cpp:154
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Relationship_GUI.cpp:165
Relationship_GUI()
Constructor for the derived class
Definition: BT_MatML_Relationship_GUI.cpp:126
virtual ~Relationship_GUI()
Destructor for the derived class
Definition: BT_MatML_Relationship_GUI.cpp:145
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