From 7028cbe09c688437910a25623098762bf0fa592d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 28 Mar 2016 22:28:34 +1000 Subject: Move Irrlicht to src/others. --- .../tools/GUIEditor/CGUIAttributeEditor.h | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/others/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h (limited to 'src/others/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h') diff --git a/src/others/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h b/src/others/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h new file mode 100644 index 0000000..0bcdab5 --- /dev/null +++ b/src/others/irrlicht-1.8.1/tools/GUIEditor/CGUIAttributeEditor.h @@ -0,0 +1,54 @@ +#ifndef __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ +#define __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ + +#include "IGUIElement.h" +#include "CGUIPanel.h" +#include "irrArray.h" +#include "IAttributes.h" +#include "EGUIEditTypes.h" + +namespace irr +{ +namespace gui +{ + + class CGUIAttribute; + + + class CGUIAttributeEditor : public CGUIPanel + { + public: + + //! constructor + CGUIAttributeEditor(IGUIEnvironment* environment, s32 id, IGUIElement *parent=0); + + //! destructor + ~CGUIAttributeEditor(); + + // gets the current attributes list + virtual io::IAttributes* getAttribs(); + + // update the attribute list after making a change + void refreshAttribs(); + + // save the attributes + void updateAttribs(); + + //! Returns the type name of the gui element. + virtual const c8* getTypeName() const + { + return GUIEditElementTypeNames[EGUIEDIT_ATTRIBUTEEDITOR]; + } + + private: + + core::array AttribList; // attributes editing controls + io::IAttributes* Attribs; // current attributes + CGUIPanel* Panel; + }; + +} // end namespace gui +} // end namespace irr + +#endif // __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ + -- cgit v1.1