BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_CurrencyCode_GUI.h
1
2// Name: BT_MatML_CurrencyCode_GUI.h
3// Purpose: Classes of CurrencyCode_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 "matml31.hxx"
26
27#include "BT_MatML_Base_GUI.h"
28#include "BT_MatML_MatMLInfo_GUI.h"
29
30#include "BT_MatML_GUI.h"
31#include "BT_MatML_MatMLTreeItemData.h"
32#include "BT_MatML_TreeCtrlSorted.h"
33
34namespace bellshire {
35
37 {
38 public:
39 wxChoice* m_CurrencyCodeChoice;
40 wxNotebook* m_GUI;
41
43 CurrencyCode_GUI_Base(wxWindow* parent);
44 virtual ~CurrencyCode_GUI_Base();
45
46 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
47 bool IsShown() { return m_GUI->IsShown(); };
48 wxNotebook* get() { return m_GUI; };
49
50 static wxNotebook* Create(wxWindow* parent, wxChoice*& CurrencyCodeChoice);
51 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
52 const wxTreeItemId& ParentId,
54 const wxTreeItemId& PreviousId
55 );
56
57 void Update( CurrencyCode* element);
58
59 void SetConnect();
60 virtual void OnCurrencyCodeChoice(wxCommandEvent& event) { event.Skip(); }
61
62 private:
63 };
64
66 {
67 public:
68
69 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
70
72 CurrencyCode_GUI(wxWindow* parent);
73
74 virtual ~CurrencyCode_GUI();
75
76 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
77 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
78
79 //Overwrites the base class functions
80 void OnCurrencyCodeChoice(wxCommandEvent& event);
81
82 private:
83 };
84
85}; //namespace bellshire end
86#pragma once
Definition: matml31.hxx:5341
Definition: matml31.hxx:1705
Definition: BT_MatML_CurrencyCode_GUI.h:37
static wxNotebook * Create(wxWindow *parent, wxChoice *&CurrencyCodeChoice)
Create the GUI for the CurrencyCode MatML Data and Info
Definition: BT_MatML_CurrencyCode_GUI.cpp:33
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, CurrencyCode &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_CurrencyCode_GUI.cpp:96
Definition: BT_MatML_CurrencyCode_GUI.h:66
CurrencyCode_GUI()
Constructor for the derived class
Definition: BT_MatML_CurrencyCode_GUI.cpp:129
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_CurrencyCode_GUI.cpp:168
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_CurrencyCode_GUI.cpp:157
virtual ~CurrencyCode_GUI()
Destructor for the derived class
Definition: BT_MatML_CurrencyCode_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