21#include "wx/notebook.h"
22#include <wx/statline.h>
23#include <wx/checkbox.h>
25#include <boost/shared_ptr.hpp>
26#include <boost/lexical_cast.hpp>
27#include <boost/algorithm/string.hpp>
28#include <boost/algorithm/string/classification.hpp>
31#include "StringStream.h"
34#include "BT_MatML_Base_GUI.h"
35#include "BT_MatML_MatMLInfo_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"
49 wxTextCtrl* m_Data1TextCtrl;
50 wxChoice* m_FormatChoice;
51 wxButton* m_ValidationButton;
52 wxCheckBox* m_ValidationNewLineRemovalCheckBox;
58 static wxNotebook*
Create(wxWindow* parent,
59 wxTextCtrl*& DataTextCtrl,
60 wxChoice*& FormatChoice,
61 wxButton*& ValidationButton,
62 wxCheckBox*& ValidationNewLineRemovalCheckBox
65 void Show(
bool show =
true) {
if (m_GUI !=
nullptr) m_GUI->Show(show); };
66 bool IsShown() {
return m_GUI->IsShown(); };
67 wxNotebook* get() {
return m_GUI; };
69 void Update(
Data1* element);
71 const wxTreeItemId& ParentId,
73 const wxTreeItemId& PreviousId
77 virtual void OnData1TextCtrlKillFocus(wxCommandEvent& event) {
event.Skip(); }
78 virtual void OnFormatChoiceKillFocus(wxCommandEvent& event) {
event.Skip(); }
79 virtual void OnValidationButtonButton(wxCommandEvent& event) {
event.Skip(); }
96 void OnData1TextCtrlKillFocus(wxCommandEvent& event);
97 void OnFormatChoiceKillFocus(wxCommandEvent& event);
98 void OnValidationButtonButton(wxCommandEvent& event);
105 wxCheckBox* m_ValidationNewLineRemovalCheckBox;
108 wxCheckBox* ValidationNewLineRemovalCheckBox
109 ) : m_MatMLTreeCtrl(MatMLTreeCtrl),
110 m_ValidationNewLineRemovalCheckBox(ValidationNewLineRemovalCheckBox)
113 virtual bool Validate(wxWindow* parent) wxOVERRIDE;
117 virtual bool TransferToWindow() wxOVERRIDE;
120 virtual bool TransferFromWindow() wxOVERRIDE;
134 virtual bool Validate(wxWindow* parent) wxOVERRIDE;
138 virtual bool TransferToWindow() wxOVERRIDE;
141 virtual bool TransferFromWindow() wxOVERRIDE;
Definition: matml31.hxx:5863
Definition: matml31.hxx:1705
Definition: BT_MatML_Data1_GUI.h:102
Definition: BT_MatML_Data1_GUI.h:46
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Data1 &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_Data1_GUI.cpp:144
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&DataTextCtrl, wxChoice *&FormatChoice, wxButton *&ValidationButton, wxCheckBox *&ValidationNewLineRemovalCheckBox)
Create the GUI for the Data MatML Data and Info
Definition: BT_MatML_Data1_GUI.cpp:56
Definition: BT_MatML_Data1_GUI.h:85
Data1_GUI()
Constructor for the derived class
Definition: BT_MatML_Data1_GUI.cpp:182
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Data1_GUI.cpp:219
virtual ~Data1_GUI()
Destructor for the derived class
Definition: BT_MatML_Data1_GUI.cpp:207
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