diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/tools/GUIEditor/CGUIAttributeEditor.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIAttributeEditor.h b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIAttributeEditor.h index 0bcdab5..551fdfd 100644 --- a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIAttributeEditor.h +++ b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIAttributeEditor.h | |||
@@ -1,54 +1,54 @@ | |||
1 | #ifndef __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ | 1 | #ifndef __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ |
2 | #define __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ | 2 | #define __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ |
3 | 3 | ||
4 | #include "IGUIElement.h" | 4 | #include "IGUIElement.h" |
5 | #include "CGUIPanel.h" | 5 | #include "CGUIPanel.h" |
6 | #include "irrArray.h" | 6 | #include "irrArray.h" |
7 | #include "IAttributes.h" | 7 | #include "IAttributes.h" |
8 | #include "EGUIEditTypes.h" | 8 | #include "EGUIEditTypes.h" |
9 | 9 | ||
10 | namespace irr | 10 | namespace irr |
11 | { | 11 | { |
12 | namespace gui | 12 | namespace gui |
13 | { | 13 | { |
14 | 14 | ||
15 | class CGUIAttribute; | 15 | class CGUIAttribute; |
16 | 16 | ||
17 | 17 | ||
18 | class CGUIAttributeEditor : public CGUIPanel | 18 | class CGUIAttributeEditor : public CGUIPanel |
19 | { | 19 | { |
20 | public: | 20 | public: |
21 | 21 | ||
22 | //! constructor | 22 | //! constructor |
23 | CGUIAttributeEditor(IGUIEnvironment* environment, s32 id, IGUIElement *parent=0); | 23 | CGUIAttributeEditor(IGUIEnvironment* environment, s32 id, IGUIElement *parent=0); |
24 | 24 | ||
25 | //! destructor | 25 | //! destructor |
26 | ~CGUIAttributeEditor(); | 26 | ~CGUIAttributeEditor(); |
27 | 27 | ||
28 | // gets the current attributes list | 28 | // gets the current attributes list |
29 | virtual io::IAttributes* getAttribs(); | 29 | virtual io::IAttributes* getAttribs(); |
30 | 30 | ||
31 | // update the attribute list after making a change | 31 | // update the attribute list after making a change |
32 | void refreshAttribs(); | 32 | void refreshAttribs(); |
33 | 33 | ||
34 | // save the attributes | 34 | // save the attributes |
35 | void updateAttribs(); | 35 | void updateAttribs(); |
36 | 36 | ||
37 | //! Returns the type name of the gui element. | 37 | //! Returns the type name of the gui element. |
38 | virtual const c8* getTypeName() const | 38 | virtual const c8* getTypeName() const |
39 | { | 39 | { |
40 | return GUIEditElementTypeNames[EGUIEDIT_ATTRIBUTEEDITOR]; | 40 | return GUIEditElementTypeNames[EGUIEDIT_ATTRIBUTEEDITOR]; |
41 | } | 41 | } |
42 | 42 | ||
43 | private: | 43 | private: |
44 | 44 | ||
45 | core::array<CGUIAttribute*> AttribList; // attributes editing controls | 45 | core::array<CGUIAttribute*> AttribList; // attributes editing controls |
46 | io::IAttributes* Attribs; // current attributes | 46 | io::IAttributes* Attribs; // current attributes |
47 | CGUIPanel* Panel; | 47 | CGUIPanel* Panel; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | } // end namespace gui | 50 | } // end namespace gui |
51 | } // end namespace irr | 51 | } // end namespace irr |
52 | 52 | ||
53 | #endif // __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ | 53 | #endif // __C_GUI_ATTRIBUTE_EDITOR_H_INCLUDED__ |
54 | 54 | ||