diff options
author | David Walter Seikel | 2014-01-13 19:47:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-01-13 19:47:58 +1000 |
commit | f9158592e1478b2013afc7041d9ed041cf2d2f4a (patch) | |
tree | b16e389d7988700e21b4c9741044cefa536dcbae /libraries/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h | |
parent | Libraries readme updated with change markers and more of the Irrlicht changes. (diff) | |
download | SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.zip SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.gz SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.bz2 SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.xz |
Update Irrlicht to 1.8.1. Include actual change markers this time. lol
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h b/libraries/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h new file mode 100644 index 0000000..0bcdab5 --- /dev/null +++ b/libraries/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h | |||
@@ -0,0 +1,54 @@ | |||
1 | #ifndef __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ | ||
2 | #define __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ | ||
3 | |||
4 | #include "IGUIElement.h" | ||
5 | #include "CGUIPanel.h" | ||
6 | #include "irrArray.h" | ||
7 | #include "IAttributes.h" | ||
8 | #include "EGUIEditTypes.h" | ||
9 | |||
10 | namespace irr | ||
11 | { | ||
12 | namespace gui | ||
13 | { | ||
14 | |||
15 | class CGUIAttribute; | ||
16 | |||
17 | |||
18 | class CGUIAttributeEditor : public CGUIPanel | ||
19 | { | ||
20 | public: | ||
21 | |||
22 | //! constructor | ||
23 | CGUIAttributeEditor(IGUIEnvironment* environment, s32 id, IGUIElement *parent=0); | ||
24 | |||
25 | //! destructor | ||
26 | ~CGUIAttributeEditor(); | ||
27 | |||
28 | // gets the current attributes list | ||
29 | virtual io::IAttributes* getAttribs(); | ||
30 | |||
31 | // update the attribute list after making a change | ||
32 | void refreshAttribs(); | ||
33 | |||
34 | // save the attributes | ||
35 | void updateAttribs(); | ||
36 | |||
37 | //! Returns the type name of the gui element. | ||
38 | virtual const c8* getTypeName() const | ||
39 | { | ||
40 | return GUIEditElementTypeNames[EGUIEDIT_ATTRIBUTEEDITOR]; | ||
41 | } | ||
42 | |||
43 | private: | ||
44 | |||
45 | core::array<CGUIAttribute*> AttribList; // attributes editing controls | ||
46 | io::IAttributes* Attribs; // current attributes | ||
47 | CGUIPanel* Panel; | ||
48 | }; | ||
49 | |||
50 | } // end namespace gui | ||
51 | } // end namespace irr | ||
52 | |||
53 | #endif // __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ | ||
54 | |||