BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_TestConditionDetails_GUI.h
1
2// Name: BT_MatML_TestConditionDetails_GUI.h
3// Purpose: Classes of TestConditionDetails_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/statline.h>
24
25#include <boost/shared_ptr.hpp>
26#include <math.h>
27#include "StringStream.h"
28#include "matml31.hxx"
29
30#include "BT_MatML_Base_GUI.h"
31#include "BT_MatML_MatMLInfo_GUI.h"
32#include "BT_MatML_ID_GUI.h"
33
34#include "BT_MatML_GUI.h"
35#include "BT_MatML_MatMLTreeItemData.h"
36#include "BT_MatML_TreeCtrlSorted.h"
37
38
39
40namespace bellshire {
41
42 class ID_GUI;
43
45 {
46 public:
47 wxNotebook* m_GUI;
48 ID_GUI* m_TestConditionDetails_ID_GUI;
49 wxTextCtrl* m_TestConditionDetailsTypeTextCtrl;
50
52 TestConditionDetails_GUI_Base(wxWindow* parent);
53
55
56 static wxNotebook* Create(wxWindow* parent,
57 ID_GUI*& TestConditionDetails_ID_GUI
58 );
59
60 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
61 bool IsShown() { return m_GUI->IsShown(); };
62 wxNotebook* get() { return m_GUI; };
63
64 void Update( TestConditionDetails* element);
65
66 static ::std::string Label(::std::string name, ::std::string id);
67
68 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
69 const wxTreeItemId& ParentId,
71 const wxTreeItemId& PreviousId
72 );
73
74 void SetConnect();
75 virtual void OnInsertParameterValue(wxCommandEvent& event) { event.Skip(); }
76
77 virtual void OnInsertNotes(wxCommandEvent& event) { event.Skip(); }
78
79 virtual void OnDeleteNotes(wxCommandEvent& event) { event.Skip(); }
80 virtual void OnDeleteParameterValue(wxCommandEvent& event) { event.Skip(); }
81
82 virtual void OnPasteParameterValue(wxCommandEvent& event){ event.Skip(); }
83 virtual void OnPasteNotes(wxCommandEvent& event){ event.Skip(); }
84
85 virtual void OnBumpDown(wxCommandEvent& event) { event.Skip(); }
86 virtual void OnBumpUp(wxCommandEvent& event) { event.Skip(); }
87
88 private:
89 };
90
92 {
93 public:
94
95 TreeCtrlSorted* m_MatMLTreeCtrl;//Required before Event Handling.
96 ::boost::any m_MatMLItemToCopy;//Required before Paste Event Handling.
97
99 TestConditionDetails_GUI(wxWindow* parent);
100
102
103 void SetEvtHandlerVar(TreeCtrlSorted*& MatMLTreeCtrl, ::boost::shared_ptr<MatML_Doc>& MatMLDoc);//Required before Event Handling.
104 void SetMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl);
105 void SetMatMLItemToCopy(const ::boost::any& MatMLItemToCopy);//Required before paste Event Handling.
106
107 //Overwrites the base class functions
108 void OnInsertParameterValue(wxCommandEvent& event);
109
110 void OnInsertNotes(wxCommandEvent& event);
111
112 void OnDeleteNotes(wxCommandEvent& event);
113 void OnDeleteParameterValue(wxCommandEvent& event);
114
115 void OnPasteParameterValue(wxCommandEvent& event);
116 void OnPasteNotes(wxCommandEvent& event);
117
118 void OnBumpDown(wxCommandEvent& event);
119 void OnBumpUp(wxCommandEvent& event);
120
121 private:
122 };
123
124}; //namespace bellshire end
125
Definition: matml31.hxx:1705
Definition: matml31.hxx:5079
Definition: BT_MatML_ID_GUI.h:78
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_TestConditionDetails_GUI.h:45
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, TestConditionDetails &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_TestConditionDetails_GUI.cpp:94
static wxNotebook * Create(wxWindow *parent, ID_GUI *&TestConditionDetails_ID_GUI)
Create the GUI for the TestConditionDetails MatML Data and Info
Definition: BT_MatML_TestConditionDetails_GUI.cpp:39
Definition: BT_MatML_TestConditionDetails_GUI.h:92
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_TestConditionDetails_GUI.cpp:168
void SetMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl)
Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's ...
Definition: BT_MatML_TestConditionDetails_GUI.cpp:179
TestConditionDetails_GUI()
Constructor for the derived class
Definition: BT_MatML_TestConditionDetails_GUI.cpp:140
virtual ~TestConditionDetails_GUI()
Destructor for the derived class
Definition: BT_MatML_TestConditionDetails_GUI.cpp:159
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