TBTK
Need a break? Support the development by playing Polarity Puzzles
PropertyFrame.h
1 /* Copyright 2017 Kristofer Björnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
17 
24 #ifndef COM_DAFER45_TBTK_PROPERTY_FRAME
25 #define COM_DAFER45_TBTK_PROPERTY_FRAME
26 
27 #include "TBTK/ImagePanel.h"
28 #include "TBTK/Property/AbstractProperty.h"
29 #include "TBTK/Property/DOS.h"
30 #include "TBTK/Property/LDOS.h"
31 
32 #include <wx/wx.h>
33 #include <wx/sizer.h>
34 
35 namespace TBTK{
36 
37 class PropertyFrame : public wxFrame{
38 public:
40  PropertyFrame(wxWindow *parent);
41 
43  ~PropertyFrame();
44 
46  void setProperty(const Property::DOS &dos);
47 
49  void setProperty(const Property::LDOS &ldos);
50 
52  void onPaintEvent(wxPaintEvent &event);
53 
55  void onSizeEvent(wxSizeEvent &event);
56 
58  void onMenuFileOpen(wxCommandEvent &event);
59 
61  void onMenuFileQuit(wxCommandEvent &event);
62 
64  void onMenuHelpAbout(wxCommandEvent &event);
65 protected:
66  DECLARE_EVENT_TABLE();
67 private:
69 // void *property;
70 
72  wxPanel *currentPanel;
73 
76  enum class PropertyType {
77  None,
78  DOS,
79  LDOS
80  };
81 
83  void setPropertyPanel(PropertyType propertyType);
84 
86  PropertyType currentPropertyType;
87 };
88 
89 }; //End namespace TBTK
90 
91 #endif
92 
Property container for local density of states (LDOS).
Definition: Boolean.h:32
Property container for density of states (DOS).