BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_AuthorityDetails_GUI.h
1
2// Name: BT_MatML_AuthorityDetails_GUI.h
3// Purpose: Classes of AuthorityDetails_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
14// For compilers that support precompilation, includes "wx/wx.h".
15#include "wx/wxprec.h"
16
17
18#ifndef WX_PRECOMP
19#include "wx/wx.h"
20#endif
21
22#include "wx/dcsvg.h"
23#include "wx/notebook.h"
24
25#include <math.h>
26#include "matml31.hxx"
27
28#include "BT_MatML_Base_GUI.h"
29#include "BT_MatML_ID_GUI.h"
30#include "BT_MatML_MatMLInfo_GUI.h"
31
32#include "BT_MatML_GUI.h"
33#include "BT_MatML_MatMLTreeItemData.h"
34#include "BT_MatML_TreeCtrlSorted.h"
35
36
37
38namespace bellshire {
39
40 class ID_GUI;
41
43 {
44 public:
45 wxNotebook* m_GUI;
46 ID_GUI* m_AuthorityDetails_ID_GUI;
47
49 AuthorityDetails_GUI_Base(wxWindow* parent);
51
52 static wxNotebook* Create(wxWindow* parent,
53 ID_GUI*& AuthorityDetails_ID_GUI
54 );
55 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
56 wxNotebook* get() { return m_GUI; };
57
58 void Update( AuthorityDetails* element);
59
60 static ::std::string Label(::std::string name, ::std::string id);
61
62 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
63 const wxTreeItemId& ParentId,
65 const wxTreeItemId& PreviousId
66 );
67
68 void SetConnect();
69
70 virtual void OnInsertName(wxCommandEvent& event) { event.Skip(); }
71 virtual void OnInsertNotes(wxCommandEvent& event) { event.Skip(); }
72
73 virtual void OnDeleteName(wxCommandEvent& event) { event.Skip(); }
74 virtual void OnDeleteNotes(wxCommandEvent& event) { event.Skip(); }
75
76 virtual void OnPasteName(wxCommandEvent& event){ event.Skip(); }
77 virtual void OnPasteNotes(wxCommandEvent& event){ event.Skip(); }
78
79 virtual void OnBumpDown(wxCommandEvent& event) { event.Skip(); }
80 virtual void OnBumpUp(wxCommandEvent& event) { event.Skip(); }
81
82 private:
83 };
84
85
87 {
88 public:
89
90 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
91 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
92
94 AuthorityDetails_GUI(wxWindow* parent);
95
96 virtual ~AuthorityDetails_GUI();
97
98 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl, ::boost::shared_ptr<MatML_Doc>& MatMLDoc);//Required before Event Handling.
99 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
100 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);
101
102 //Overwrites the base class functions
103 void OnInsertName(wxCommandEvent& event);
104 void OnInsertNotes(wxCommandEvent& event);
105
106 void OnDeleteName(wxCommandEvent& event);
107 void OnDeleteNotes(wxCommandEvent& event);
108
109 void OnPasteName(wxCommandEvent& event);
110 void OnPasteNotes(wxCommandEvent& event);
111
112 void OnBumpDown(wxCommandEvent& event);
113 void OnBumpUp(wxCommandEvent& event);
114
115 typedef Metadata::AuthorityDetails_sequence& (Metadata::* Cont_Func)();
116
117 private:
118 };
119}; //namespace bellshire end
120
121 // Template include
122 #include "BT_MatML_AuthorityDetails_GUI.inl"
Definition: matml31.hxx:4202
Definition: matml31.hxx:1705
Definition: matml31.hxx:2479
Definition: BT_MatML_AuthorityDetails_GUI.h:43
void SetConnect()
Set up the connect between the MatML_GUI and the functions
Definition: BT_MatML_AuthorityDetails_GUI.cpp:127
static wxNotebook * Create(wxWindow *parent, ID_GUI *&AuthorityDetails_ID_GUI)
Create the GUI for the AuthorityDetails MatML Data and Info
Definition: BT_MatML_AuthorityDetails_GUI.cpp:34
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, AuthorityDetails &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_AuthorityDetails_GUI.cpp:90
Definition: BT_MatML_AuthorityDetails_GUI.h:87
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_AuthorityDetails_GUI.cpp:161
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl, ::boost::shared_ptr< MatML_Doc > &MatMLDoc)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_AuthorityDetails_GUI.cpp:150
Definition: BT_MatML_ID_GUI.h:78
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