22#include "wx/notebook.h"
23#include <wx/checkbox.h>
25#include <boost/lexical_cast.hpp>
26#include <boost/algorithm/string.hpp>
27#include <boost/algorithm/string/classification.hpp>
30#include "StringStream.h"
33#include "BT_MatML_Base_GUI.h"
34#include "BT_MatML_MatMLInfo_GUI.h"
35#include "BT_MatML_ID_GUI.h"
37#include "BT_MatML_GUI.h"
38#include "BT_MatML_MatMLTreeItemData.h"
39#include "BT_MatML_TreeCtrlSorted.h"
41#include "BT_MatML_StringValidator.h"
50 wxTextCtrl* m_DataTextCtrl;
51 wxButton* m_ValidationButton;
52 wxCheckBox* m_ValidationNewLineRemovalCheckBox;
59 static wxNotebook*
Create(wxWindow* parent,
60 wxTextCtrl*& DataTextCtrl,
61 wxButton*& ValidationButton,
62 wxCheckBox*& ValidationNewLineRemovalCheckBox
65 void Show(
bool show =
true) {
if (m_GUI !=
nullptr) m_GUI->Show(show); };
66 wxNotebook* get() {
return m_GUI; };
68 void Update(
Data* element);
70 const wxTreeItemId& ParentId,
72 const wxTreeItemId& PreviousId
76 virtual void OnDataTextCtrlKillFocus(wxCommandEvent& event) {
event.Skip(); }
77 virtual void OnValidationButtonButton(wxCommandEvent& event) {
event.Skip(); }
96 void OnDataTextCtrlKillFocus(wxCommandEvent& event);
97 void OnValidationButtonButton(wxCommandEvent& event);
104 wxCheckBox* m_ValidationNewLineRemovalCheckBox;
107 wxCheckBox* ValidationNewLineRemovalCheckBox
108 ) : m_MatMLTreeCtrl(MatMLTreeCtrl),
109 m_ValidationNewLineRemovalCheckBox(ValidationNewLineRemovalCheckBox)
112 virtual bool Validate(wxWindow* parent) wxOVERRIDE;
125 virtual bool TransferToWindow() wxOVERRIDE;
128 virtual bool TransferFromWindow() wxOVERRIDE;
Definition: matml31.hxx:5800
Definition: matml31.hxx:1705
Definition: BT_MatML_Data_GUI.h:101
Definition: BT_MatML_Data_GUI.h:47
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Data &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_Data_GUI.cpp:116
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&DataTextCtrl, wxButton *&ValidationButton, wxCheckBox *&ValidationNewLineRemovalCheckBox)
Create the GUI for the Data MatML Data and Info
Definition: BT_MatML_Data_GUI.cpp:39
Definition: BT_MatML_Data_GUI.h:83
virtual ~Data_GUI()
Destructor for the derived class
Definition: BT_MatML_Data_GUI.cpp:174
Data_GUI()
Constructor for the derived class
Definition: BT_MatML_Data_GUI.cpp:151
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Data_GUI.cpp:184
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_StringValidator.h:23
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