BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Associate_GUI.h
1
2// Name: BT_MatML_Associate_GUI.h
3// Purpose: Classes of Associate_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
23#include <math.h>
24#include "matml31.hxx"
25
26#include "BT_MatML_Base_GUI.h"
27#include "BT_MatML_ID_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
36 {
37 public:
38 wxTextCtrl* m_AssociateTextCtrl;
39 wxNotebook* m_GUI;
40
42 Associate_GUI_Base(wxWindow* parent);
43 static wxNotebook* Create(wxWindow* parent, wxTextCtrl*& AssociateTextCtrl);
44 virtual ~Associate_GUI_Base();
45
46 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
47 wxNotebook* get() { return m_GUI; };
48
49 static void SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
50 const wxTreeItemId& ParentId,
52 const wxTreeItemId& PreviousId
53 );
54 void Update( Associate* element);
55
56 void SetConnect();
57 virtual void OnAssociateTextCtrl(wxCommandEvent& event) { event.Skip(); }
58
59 private:
60 };
61
63 {
64 public:
65
66 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
67
69 Associate_GUI(wxWindow* parent);
70
71 virtual ~Associate_GUI();
72
73 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
74 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
75
76 //Overwrites the base class functions
77 void OnAssociateTextCtrl(wxCommandEvent& event);
78
79 private:
80 };
81}; //namespace bellshire end
Definition: matml31.hxx:321
Definition: matml31.hxx:1705
Definition: BT_MatML_Associate_GUI.h:36
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&AssociateTextCtrl)
Create the GUI for the Associate MatML Data and Info
Definition: BT_MatML_Associate_GUI.cpp:31
void SetConnect()
Set up the connect between the MatML_GUI and the functions
Definition: BT_MatML_Associate_GUI.cpp:117
static void SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Associate &Element, const wxTreeItemId &PreviousId)
Definition: BT_MatML_Associate_GUI.cpp:92
Definition: BT_MatML_Associate_GUI.h:63
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Associate_GUI.cpp:158
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Associate_GUI.cpp:148
Definition: BT_MatML_Base_GUI.h:163
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