BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_DataFormat_GUI.h
1
2// Name: BT_MatML_DataFormat_GUI.h
3// Purpose: Classes of DataFormat_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
14// For compilers that support precompilation, includes "wx/wx.h".
15#include "wx/wxprec.h"
16
17
18#ifndef WX_PRECOMP
19#include "wx/wx.h"
20#endif
21
22#include "wx/dcsvg.h"
23#include "wx/notebook.h"
24
25#include <math.h>
26#include "matml31.hxx"
27
28#include "BT_MatML_Base_GUI.h"
29#include "BT_MatML_MatMLInfo_GUI.h"
30
31#include "BT_MatML_GUI.h"
32#include "BT_MatML_MatMLTreeItemData.h"
33#include "BT_MatML_TreeCtrlSorted.h"
34
35namespace bellshire {
36
37 //Utility for std:string and wxString
38#define _std2wx(var) wxString (var.c_str(),wxConvUTF8)
39#define _wx2std(var) std::string(var.mb_str())
40
42 {
43 public:
44 wxNotebook* m_GUI;
45
47 DataFormat_GUI(wxWindow* parent);
48 static wxNotebook* Create(wxWindow* parent);
49 virtual ~DataFormat_GUI();
50
51 void Show(bool show = true) { if (m_GUI != nullptr) m_GUI->Show(show); };
52 wxNotebook* get() { return m_GUI; };
53
54 static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted*& MatMLTreeCtrl,
55 const wxTreeItemId& ParentId,
57 const wxTreeItemId& PreviousId
58 );
59 void Update( DataFormat* element);
60 private:
61 };
62
63
64}; //namespace bellshire end
Definition: matml31.hxx:1489
Definition: matml31.hxx:1705
Definition: BT_MatML_DataFormat_GUI.h:42
static wxTreeItemId SetupMatMLTreeCtrl(TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, DataFormat &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_DataFormat_GUI.cpp:82
static wxNotebook * Create(wxWindow *parent)
Create the GUI for the DataFormat MatML Data and Info
Definition: BT_MatML_DataFormat_GUI.cpp:32
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