BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_Graphs_GUI.h
1
2// Name: BT_MatML_Graphs_GUI.h
3// Purpose: Classes of Graphs_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#include <wx/string.h>
24
25#include <math.h>
26#include <string.h>
27#include "StringStream.h"
28
29#include "matml31.hxx"
30#include "matml31_strongtypedef.h"
31
32#include "BT_MatML_Base_GUI.h"
33#include "BT_MatML_MatMLInfo_GUI.h"
34
35#include "BT_MatML_GUI.h"
36#include "BT_MatML_MatMLTreeItemData.h"
37#include "BT_MatML_TreeCtrlSorted.h"
38
39namespace bellshire {
40
42 {
43 public:
44 wxNotebook* m_GUI;
45
47 Graphs_GUI_Base(wxWindow* parent);
48 static wxNotebook* Create(wxWindow* parent);
49 virtual ~Graphs_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 void Update( Graphs* element);
56 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
57 const wxTreeItemId& ParentId,
59 const wxTreeItemId& PreviousId
60 );
61
62 void SetConnect() {};
63
64 virtual void OnInsertGraph(wxCommandEvent& event) { event.Skip(); }
65 virtual void OnDeleteGraph(wxCommandEvent& event) { event.Skip(); }
66 virtual void OnPasteGraph(wxCommandEvent& event) { event.Skip(); }
67 private:
68 };
69
71 {
72 public:
73 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
74 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
75
76 Graphs_GUI();
77 Graphs_GUI(wxWindow* parent);
78
79 virtual ~Graphs_GUI();
80
81 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl);//Required before Event Handling.
82 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
83 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
84
85 //Overwrites the base class functions
86 void OnInsertGraph(wxCommandEvent& event);
87 void OnDeleteGraph(wxCommandEvent& event);
88 void OnPasteGraph(wxCommandEvent& event);
89
90 private:
91 };
92
93}; //namespace bellshire end
Definition: matml31.hxx:1705
Definition: matml31.hxx:2246
Definition: BT_MatML_Graphs_GUI.h:42
static wxNotebook * Create(wxWindow *parent)
Create the GUI for the Graphs MatML Data and Info
Definition: BT_MatML_Graphs_GUI.cpp:28
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Graphs &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_Graphs_GUI.cpp:73
Definition: BT_MatML_Graphs_GUI.h:71
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_Graphs_GUI.cpp:146
Graphs_GUI()
Constructor for the derived class
Definition: BT_MatML_Graphs_GUI.cpp:106
virtual ~Graphs_GUI()
Destructor for the derived class
Definition: BT_MatML_Graphs_GUI.cpp:127
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Graphs_GUI.cpp:136
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