BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Abbreviation_GUI.h
1
2// Name: BT_MatML_Abbreviation_GUI.h
3// Purpose: Classes of Abbreviation_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#include <wx/string.h>
23
24#include <math.h>
25#include <string.h>
26#include "StringStream.h"
27
28#include "matml31.hxx"
29#include "matml31_strongtypedef.h"
30
31#include "BT_MatML_Base_GUI.h"
32#include "BT_MatML_MatMLInfo_GUI.h"
33
34#include "BT_MatML_MatMLTreeItemData.h"
35#include "BT_MatML_TreeCtrlSorted.h"
36
37
38namespace bellshire {
39
41 {
42 public:
43 wxNotebook* m_GUI;
44 wxTextCtrl* m_AbbreviationTextCtrl;
45
47 Abbreviation_GUI_Base(wxWindow* parent);
48 static wxNotebook* Create(wxWindow* parent, wxTextCtrl*& AbbreviationTextCtrl);
49 virtual ~Abbreviation_GUI_Base();
50
51 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
52 bool IsShown() { return m_GUI->IsShown(); };
53 wxNotebook* get() { return m_GUI; };
54
55 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
56 const wxTreeItemId& ParentId,
57 GlossaryTerm::Abbreviation_type& Element,
58 const wxTreeItemId& PreviousId
59 );
60 void Update( Abbreviation* element);
61
62 void SetConnect();
63 virtual void OnAbbreviationTextCtrl(wxCommandEvent& event) { event.Skip(); }
64
65 virtual void OnBumpDown(wxCommandEvent& event) { event.Skip(); }
66 virtual void OnBumpUp(wxCommandEvent& event) { event.Skip(); }
67
68
69 private:
70 };
71
73 {
74 public:
75
76 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
77
79 Abbreviation_GUI(wxWindow* parent);
80
81 virtual ~Abbreviation_GUI();
82
83 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
84 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
85
86 //Overwrites the base class functions
87 void OnAbbreviationTextCtrl(wxCommandEvent& event); //todo
88
89 void OnBumpDown(wxCommandEvent& event);
90 void OnBumpUp(wxCommandEvent& event);
91
92 private:
93 };
94
95}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: BT_MatML_Abbreviation_GUI.h:41
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, GlossaryTerm::Abbreviation_type &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_Abbreviation_GUI.cpp:92
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&AbbreviationTextCtrl)
Create the GUI for the Abbreviation MatML Data and Info
Definition: BT_MatML_Abbreviation_GUI.cpp:32
Definition: BT_MatML_Abbreviation_GUI.h:73
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Abbreviation_GUI.cpp:154
virtual ~Abbreviation_GUI()
Destructor for the derived class
Definition: BT_MatML_Abbreviation_GUI.cpp:145
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Abbreviation_GUI.cpp:164
Abbreviation_GUI()
Constructor for the derived class
Definition: BT_MatML_Abbreviation_GUI.cpp:126
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