BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
Public Member Functions | Public Attributes | List of all members
bellshire::PropertyData_GUI Class Reference
Inheritance diagram for bellshire::PropertyData_GUI:
bellshire::PropertyData_GUI_Base bellshire::MatML_Base_GUI bellshire::Utilities

Public Member Functions

 PropertyData_GUI ()
 Constructor for the derived class
 
 PropertyData_GUI (wxWindow *parent)
 Constructor for the derived class More...
 
virtual ~PropertyData_GUI ()
 Destructor for the derived class
 
void SetEvtHandlerVar (TreeCtrlSorted *&MatMLTreeCtrl)
 Function used to set up this objects member variables which is used in the EventHandler's functions. Required before using the derived class's event handler functions. More...
 
void SetMatMLTreeCtrl (TreeCtrlSorted *&MatMLTreeCtrl)
 Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's event handler functions. More...
 
void SetMatMLItemToCopy (const ::boost::any &MatMLItemToCopy)
 
void OnPropertyDataPropertiesChoice (wxCommandEvent &event)
 
void OnPropertyDataTechniqueChoice (wxCommandEvent &event)
 
void OnPropertyDataSourceChoice (wxCommandEvent &event)
 
void OnPropertyDataSpecimenChoice (wxCommandEvent &event)
 
void OnPropertyDataTestChoice (wxCommandEvent &event)
 
void OnPropertyDataDelimiterTextCtrl (wxCommandEvent &event)
 
void OnPropertyDataQuoteTextCtrl (wxCommandEvent &event)
 
void OnInsertData (wxCommandEvent &event)
 
void OnInsertUncertainty (wxCommandEvent &event)
 
void OnInsertQualifier (wxCommandEvent &event)
 
void OnInsertParameterValue (wxCommandEvent &event)
 
void OnInsertNotes (wxCommandEvent &event)
 
void OnDeleteNotes (wxCommandEvent &event)
 
void OnDeleteParameterValue (wxCommandEvent &event)
 
void OnDeleteQualifier (wxCommandEvent &event)
 
void OnDeleteUncertainty (wxCommandEvent &event)
 
void OnPasteData (wxCommandEvent &event)
 
void OnPasteUncertainty (wxCommandEvent &event)
 
void OnPasteQualifier (wxCommandEvent &event)
 
void OnPasteParameterValue (wxCommandEvent &event)
 
void OnPasteNotes (wxCommandEvent &event)
 
void OnBumpUp (wxCommandEvent &event)
 
void OnBumpDown (wxCommandEvent &event)
 
- Public Member Functions inherited from bellshire::PropertyData_GUI_Base
 PropertyData_GUI_Base (wxWindow *parent)
 
void Show (bool show=true)
 
bool IsShown ()
 
wxNotebook * get ()
 
void Update (PropertyData *element, const ::boost::shared_ptr< MatML_Doc > doc)
 
void SetConnect ()
 
virtual void OnPropertyDataPropertiesChoice (wxCommandEvent &event)
 
virtual void OnPropertyDataTechniqueChoice (wxCommandEvent &event)
 
virtual void OnPropertyDataSourceChoice (wxCommandEvent &event)
 
virtual void OnPropertyDataSpecimenChoice (wxCommandEvent &event)
 
virtual void OnPropertyDataTestChoice (wxCommandEvent &event)
 
virtual void OnPropertyDataDelimiterTextCtrl (wxCommandEvent &event)
 
virtual void OnPropertyDataQuoteTextCtrl (wxCommandEvent &event)
 
virtual void OnInsertData (wxCommandEvent &event)
 
virtual void OnInsertUncertainty (wxCommandEvent &event)
 
virtual void OnInsertQualifier (wxCommandEvent &event)
 
virtual void OnInsertParameterValue (wxCommandEvent &event)
 
virtual void OnInsertNotes (wxCommandEvent &event)
 
virtual void OnDeleteNotes (wxCommandEvent &event)
 
virtual void OnDeleteParameterValue (wxCommandEvent &event)
 
virtual void OnDeleteQualifier (wxCommandEvent &event)
 
virtual void OnDeleteUncertainty (wxCommandEvent &event)
 
virtual void OnPasteData (wxCommandEvent &event)
 
virtual void OnPasteUncertainty (wxCommandEvent &event)
 
virtual void OnPasteQualifier (wxCommandEvent &event)
 
virtual void OnPasteParameterValue (wxCommandEvent &event)
 
virtual void OnPasteNotes (wxCommandEvent &event)
 
virtual void OnBumpUp (wxCommandEvent &event)
 
virtual void OnBumpDown (wxCommandEvent &event)
 
- Public Member Functions inherited from bellshire::MatML_Base_GUI
bool Warning (::std::string msg)
 
template<class MatML_Class >
MatML_Class * GetSelMatML (TreeCtrlSorted *MatMLTreeCtrl)
 
template<class MatML_Class >
MatML_Class * GetSelParentMatML (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupSel (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupStrongTypeSel (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupSelParent (TreeCtrlSorted *MatMLTreeCtrl)
 
template<class InputIterator , class T >
InputIterator find (InputIterator first, InputIterator last, const T &val)
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertChild (MatML_ContClass &MatML_Cont)
 Does Nothing. Child are required in the MatML structure and are inserted automatically through the Default classes. More...
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertContChild (MatML_ContClass &MatML_Cont)
 Inserts the MatML Data into the MatML container element More...
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertSeqContChild (MatML_ContClass &MatML_Cont)
 Inserts the MatML Data into the MatML sequence container element More...
 
template<typename MatML_ContClass >
void DeleteChild (MatML_ContClass &MatML)
 Does Nothing. Child are REQUIRED in the MatML structure and are inserted automatically through the Default classes. More...
 
template<typename MatML_ContClass >
void DeleteContChild (MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void DeleteSeqContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteSeqContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<class MatML_Class >
void SwapHavingId (MatML_Class *matml0, MatML_Class *matml1)
 Swap function with MatML Classes that have required Id. This has the added complication that the id's can not be duplicated during the swap. More...
 
template<class MatML_Class >
void SwapHavingOptionalId (MatML_Class *matml0, MatML_Class *matml1)
 Swap function with MatML Classes that have Optional Id. This has the added complication that the id's can not be duplicated during the swap. More...
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDown (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownStrongtype (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownHavingId (MatML_Class *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpDown with the added complication that the Required Id's cannot be duplicated during the swap. More...
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownHavingOptionalId (MatML_Class *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpDown with the added complication that the optional Id's cannot be duplicated during the swap. More...
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpDown (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &itemId, MatML *first, wxTreeItemId &nextitemId, MatML *second)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpUp (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpUpStrongtype (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > MatMLFindAndBumpUpHavingId (typename MatML_ContClass::value_type *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpUp with the added complication that the Required Id's cannot be duplicated during the swap. More...
 
template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > MatMLFindAndBumpUpHavingOptionalId (typename MatML_ContClass::value_type *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpUp with the added complication that the optional Id's cannot be duplicated during the swap. More...
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpUp (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &previtemId, MatML *first, wxTreeItemId &itemId, MatML *second)
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpUpStrongtype (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &previtemId, MatML *first, wxTreeItemId &itemId, MatML *second)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUp (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpStrongtype (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpHavingId (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpHavingOptionalId (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDown (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownStrongtype (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownHavingId (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownHavingOptionalId (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
- Public Member Functions inherited from bellshire::Utilities
void CollectBranchMaterials (boost::shared_ptr< MatML_Doc > doc, Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials More...
 
void CollectBranchMaterialsBackwards (Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials in the Backwards direction More...
 
void CollectBranchMaterialsForewards (boost::shared_ptr< MatML_Doc > doc, Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials in the Forwards direction More...
 

Public Attributes

TreeCtrlSortedm_MatMLTreeCtrl
 
::boost::any m_MatMLItemToCopy
 
- Public Attributes inherited from bellshire::PropertyData_GUI_Base
wxNotebook * m_GUI
 
wxChoice * m_PropertyDataPropertiesChoice
 
wxChoice * m_PropertyDataTechniqueChoice
 
wxChoice * m_PropertyDataSourceChoice
 
wxChoice * m_PropertyDataSpecimenChoice
 
wxChoice * m_PropertyDataTestChoice
 
wxTextCtrl * m_PropertyDataDelimiterTextCtrl
 
wxTextCtrl * m_PropertyDataQuoteTextCtrl
 
PropertyDetails_Display_GUIm_PropertyDataPropertyDetails_Display_GUI
 
MeasurementTechniqueDetails_Display_GUIm_PropertyDataMeasurementTechniqueDetails_Display_GUI
 
DataSourceDetails_Display_GUIm_PropertyDataDataSourceDetails_Display_GUI
 
SpecimenDetails_Display_GUIm_PropertyDataSpecimenDetails_Display_GUI
 
TestConditionDetails_Display_GUIm_PropertyDataTestConditionDetails_Display_GUI
 

Additional Inherited Members

- Static Public Member Functions inherited from bellshire::PropertyData_GUI_Base
static wxNotebook * Create (wxWindow *parent, wxChoice *&PropertyDataPropertiesChoice, wxChoice *&PropertyDataTechniqueChoice, wxChoice *&PropertyDataSourceChoice, wxChoice *&PropertyDataSpecimenChoice, wxChoice *&PropertyDataTestChoice, wxTextCtrl *&PropertyDataDelimiterTextCtrl, wxTextCtrl *&PropertyDataQuoteTextCtrl, PropertyDetails_Display_GUI *&PropertyDataPropertyDetails_Display_GUI, MeasurementTechniqueDetails_Display_GUI *&PropertyDataMeasurementTechniqueDetails_Display_GUI, DataSourceDetails_Display_GUI *&PropertyDataDataSourceDetails_Display_GUI, SpecimenDetails_Display_GUI *&PropertyDataSpecimenDetails_Display_GUI, TestConditionDetails_Display_GUI *&PropertyTestConditionDetails_Display_GUI)
 Create the GUI for the PropertyData MatML Data and Info.
 
::std::string Label (::std::string name, ::std::string id)
 
::std::string LabelToId (::std::string label)
 
static wxTreeItemId SetupMatMLTreeCtrl (TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, PropertyData &Element, const wxTreeItemId &PreviousId)
 This set-up the Parent MatML Data into a wxTreeCtrl element and then call on the Children to do the same. More...
 
- Static Public Member Functions inherited from bellshire::Utilities
static wxTreeItemId MatMLtoTreeCtrl (TreeCtrlSorted *MatMLTreeCtrl, Material *MatMLMaterial)
 Searches the TreeCtrl to find the MatML Element More...
 
static std::list< std::pair< Material *, xml_schema::string > > GetMaterialIDPair (::boost::shared_ptr< MatML_Doc > MatMLDoc, std::list< xml_schema::string > ClassFilters=std::list< xml_schema::string >())
 Gather Material* and Material->ID paired together in a list. More...
 
static bool InFilter (Material *material, std::list< xml_schema::string > Filter)
 Determines if the Material has a Class->Name for each of the ClassFilter strings If the filter is empty then the default is true. More...
 
static bool InFilter (Material *material, xml_schema::string *Filter)
 Determines if the Material has a Class->Name that matches the ClassFilter string More...
 
static std::list< Name * > GetMatMLDocClassNames (::boost::shared_ptr< MatML_Doc > MatMLDoc)
 Gathers within the MatMLDoc all of the materials->BulkDetails->Class->Name More...
 
static std::list< Name * > GetBulkDetailsClassNames (Material *material)
 Get the Materials BulkDetails->Class->Names More...
 
static bool CompareName (Name *&first, Name *&second)
 Comparision of the First Name to the Second Name More...
 
static bool SameName (Name *&first, Name *&second)
 Compare if the First Name and Second Name are the same a binary predicate implemented as a function More...
 
::std::string Label (::std::string name, ::std::string id)
 Creates a string of the Labels used in wxWidgets displays More...
 
::std::string LabelToId (::std::string label)
 
static std::list< xml_schema::string > wx2std (const wxArrayString &wxstr)
 Converts wxArrayString to std::list of xml_schema::string More...
 
static wxArrayString std2wx (const std::list< xml_schema::string > &stdstr)
 Converts list of xml_schema::string to wxArrayString More...
 

Constructor & Destructor Documentation

◆ PropertyData_GUI()

PropertyData_GUI::PropertyData_GUI ( wxWindow *  parent)

Constructor for the derived class

Parameters
parent
MatMLTreeCtrl

Member Function Documentation

◆ OnBumpDown()

void PropertyData_GUI::OnBumpDown ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnBumpUp()

void PropertyData_GUI::OnBumpUp ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnDeleteNotes()

void PropertyData_GUI::OnDeleteNotes ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnDeleteParameterValue()

void PropertyData_GUI::OnDeleteParameterValue ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnDeleteQualifier()

void PropertyData_GUI::OnDeleteQualifier ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnDeleteUncertainty()

void PropertyData_GUI::OnDeleteUncertainty ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnInsertData()

void PropertyData_GUI::OnInsertData ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnInsertNotes()

void PropertyData_GUI::OnInsertNotes ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnInsertParameterValue()

void PropertyData_GUI::OnInsertParameterValue ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnInsertQualifier()

void PropertyData_GUI::OnInsertQualifier ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnInsertUncertainty()

void PropertyData_GUI::OnInsertUncertainty ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPasteData()

void PropertyData_GUI::OnPasteData ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPasteNotes()

void PropertyData_GUI::OnPasteNotes ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPasteParameterValue()

void PropertyData_GUI::OnPasteParameterValue ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPasteQualifier()

void PropertyData_GUI::OnPasteQualifier ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPasteUncertainty()

void PropertyData_GUI::OnPasteUncertainty ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataDelimiterTextCtrl()

void PropertyData_GUI::OnPropertyDataDelimiterTextCtrl ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataPropertiesChoice()

void PropertyData_GUI::OnPropertyDataPropertiesChoice ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataQuoteTextCtrl()

void PropertyData_GUI::OnPropertyDataQuoteTextCtrl ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataSourceChoice()

void PropertyData_GUI::OnPropertyDataSourceChoice ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataSpecimenChoice()

void PropertyData_GUI::OnPropertyDataSpecimenChoice ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataTechniqueChoice()

void PropertyData_GUI::OnPropertyDataTechniqueChoice ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ OnPropertyDataTestChoice()

void PropertyData_GUI::OnPropertyDataTestChoice ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::PropertyData_GUI_Base.

◆ SetEvtHandlerVar()

void PropertyData_GUI::SetEvtHandlerVar ( TreeCtrlSorted *&  MatMLTreeCtrl)

Function used to set up this objects member variables which is used in the EventHandler's functions. Required before using the derived class's event handler functions.

Parameters
MatMLTreeCtrl

◆ SetMatMLTreeCtrl()

void PropertyData_GUI::SetMatMLTreeCtrl ( TreeCtrlSorted *&  MatMLTreeCtrl)

Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's event handler functions.

Parameters
MatMLTreeCtrl

The documentation for this class was generated from the following files: