22#include "wx/notebook.h"
23#include <wx/statline.h>
25#include <boost/shared_ptr.hpp>
27#include "StringStream.h"
30#include "BT_MatML_Base_GUI.h"
31#include "BT_MatML_MatMLInfo_GUI.h"
33#include "BT_MatML_GUI.h"
34#include "BT_MatML_MatMLTreeItemData.h"
35#include "BT_MatML_TreeCtrlSorted.h"
37#include "BT_MatML_StringValidator.h"
47 wxTextCtrl* m_TextCtrl;
48 wxChoice* m_FormatChoice;
49 wxButton* m_ValidationButton;
50 wxCheckBox* m_ValidationNewLineRemovalCheckBox;
57 static wxNotebook*
Create(wxWindow* parent,
58 wxTextCtrl*& TextCtrl,
59 wxChoice*& FormatChoice,
60 wxButton*& ValidationButton,
61 wxCheckBox*& ValidationNewLineRemovalCheckBox
64 void Show(
bool show =
true) {
if (m_GUI !=
nullptr) m_GUI->Show(show); };
65 bool IsShown() {
return m_GUI->IsShown(); };
66 wxNotebook* get() {
return m_GUI; };
68 void Update(
Value* element);
70 const wxTreeItemId& ParentId,
72 const wxTreeItemId& PreviousId
76 virtual void OnTextCtrlKillFocus(wxCommandEvent& event) {
event.Skip(); }
77 virtual void OnFormatChoiceKillFocus(wxCommandEvent& event) {
event.Skip(); }
78 virtual void OnValidationButtonButton(wxCommandEvent& event) {
event.Skip(); }
97 void OnTextCtrlKillFocus(wxCommandEvent& event);
98 void OnFormatChoiceKillFocus(wxCommandEvent& event);
99 void OnValidationButtonButton(wxCommandEvent& event);
106 wxCheckBox* m_ValidationNewLineRemovalCheckBox;
109 wxCheckBox* ValidationNewLineRemovalCheckBox
110 ) : m_MatMLTreeCtrl(MatMLTreeCtrl),
111 m_ValidationNewLineRemovalCheckBox(ValidationNewLineRemovalCheckBox)
114 virtual bool Validate(wxWindow* parent) wxOVERRIDE;
115 virtual wxObject* Clone()
const wxOVERRIDE {
return new TextCtrlValidator(*
this); }
118 virtual bool TransferToWindow() wxOVERRIDE;
121 virtual bool TransferFromWindow() wxOVERRIDE;
135 virtual bool Validate(wxWindow* parent) wxOVERRIDE;
139 virtual bool TransferToWindow() wxOVERRIDE;
142 virtual bool TransferFromWindow() wxOVERRIDE;
Definition: matml31.hxx:1705
Definition: matml31.hxx:4140
Definition: BT_MatML_Base_GUI.h:163
Definition: BT_MatML_StringValidator.h:23
Definition: BT_MatML_TreeCtrlSorted.h:19
Definition: BT_MatML_Value_GUI.h:103
Definition: BT_MatML_Value_GUI.h:44
static wxNotebook * Create(wxWindow *parent, wxTextCtrl *&TextCtrl, wxChoice *&FormatChoice, wxButton *&ValidationButton, wxCheckBox *&ValidationNewLineRemovalCheckBox)
Create the GUI for the Value MatML Data and Info
Definition: BT_MatML_Value_GUI.cpp:43
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Value &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_Value_GUI.cpp:129
Definition: BT_MatML_Value_GUI.h:84
virtual ~Value_GUI()
Destructor for the derived class
Definition: BT_MatML_Value_GUI.cpp:188
Value_GUI()
Constructor for the derived class
Definition: BT_MatML_Value_GUI.cpp:162
void SetEvtHandlerVar(TreeCtrlSorted *&MatMLTreeCtrl)
Function used to set up this objects member variables which is used in the EventHandler's functions....
Definition: BT_MatML_Value_GUI.cpp:199
Contains the GUI and GUI associated classes. OnInit() calls the creation of the MaterialFrame GUI
Definition: BT_MatML_App.h:39