BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Notes_GUI.h
1
2// Name: BT_MatML_Notes_GUI.h
3// Purpose: Classes of Notes_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_MatMLInfo_GUI.h"
28
29#include "BT_MatML_GUI.h"
30#include "BT_MatML_MatMLTreeItemData.h"
31#include "BT_MatML_TreeCtrlSorted.h"
32
33namespace bellshire {
34
36 {
37 public:
38 wxNotebook* m_GUI;
39 wxTextCtrl* m_NotesTextCtrl;
40
42 Notes_GUI_Base(wxWindow* parent);
43 static wxNotebook* Create(wxWindow* parent, wxTextCtrl*& NotesTextCtrl);
44 virtual ~Notes_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 void Update( Notes* element);
50 static wxTreeItemId SetupMatMLTreeCtrl(
51 TreeCtrlSorted*& MatMLTreeCtrl,
52 const wxTreeItemId& ParentId,
53 Notes& Element,
54 const wxTreeItemId& PreviousId
55 );
56
57 void SetConnect();
58 virtual void OnNotesTextCtrl(wxCommandEvent& event) { event.Skip(); }
59
60 private:
61 };
62
64 {
65 public:
66
67 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
68
69 Notes_GUI();
70 Notes_GUI(wxWindow* parent);
71
72 virtual ~Notes_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 OnNotesTextCtrl(wxCommandEvent& event);
79
80 private:
81 };
82
83}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: matml31.hxx:2721
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_Notes_GUI.h:36
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&NotesTextCtrl)
Create the GUI for the Notes MatML Data and Info
Definition: BT_MatML_Notes_GUI.cpp:30
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Notes &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_Notes_GUI.cpp:90
Definition: BT_MatML_Notes_GUI.h:64
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Notes_GUI.cpp:165
virtual ~Notes_GUI()
Destructor for the derived class
Definition: BT_MatML_Notes_GUI.cpp:145
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Notes_GUI.cpp:155
Notes_GUI()
Constructor for the derived class
Definition: BT_MatML_Notes_GUI.cpp:126
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