aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h176
1 files changed, 88 insertions, 88 deletions
diff --git a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h
index 4b1d72f..07eb28b 100644
--- a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h
+++ b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h
@@ -1,88 +1,88 @@
1#ifndef __C_GUI_EDITOR_H_INCLUDED__ 1#ifndef __C_GUI_EDITOR_H_INCLUDED__
2#define __C_GUI_EDITOR_H_INCLUDED__ 2#define __C_GUI_EDITOR_H_INCLUDED__
3 3
4 4
5#include "IGUIWindow.h" 5#include "IGUIWindow.h"
6#include "CGUIAttributeEditor.h" 6#include "CGUIAttributeEditor.h"
7//#include "IGUIStaticText.h" 7//#include "IGUIStaticText.h"
8#include "IGUIButton.h" 8#include "IGUIButton.h"
9#include "IGUITreeView.h" 9#include "IGUITreeView.h"
10#include "irrArray.h" 10#include "irrArray.h"
11#include "IAttributes.h" 11#include "IAttributes.h"
12#include "EGUIEditTypes.h" 12#include "EGUIEditTypes.h"
13 13
14namespace irr 14namespace irr
15{ 15{
16namespace gui 16namespace gui
17{ 17{
18 class CGUIEditWindow : public IGUIWindow 18 class CGUIEditWindow : public IGUIWindow
19 { 19 {
20 public: 20 public:
21 21
22 //! constructor 22 //! constructor
23 CGUIEditWindow(IGUIEnvironment* environment, core::rect<s32> rectangle, IGUIElement *parent); 23 CGUIEditWindow(IGUIEnvironment* environment, core::rect<s32> rectangle, IGUIElement *parent);
24 24
25 //! destructor 25 //! destructor
26 ~CGUIEditWindow(); 26 ~CGUIEditWindow();
27 27
28 //! this part draws the window 28 //! this part draws the window
29 virtual void draw(); 29 virtual void draw();
30 //! handles events 30 //! handles events
31 virtual bool OnEvent(const SEvent &event); 31 virtual bool OnEvent(const SEvent &event);
32 32
33 //! change selection 33 //! change selection
34 virtual void setSelectedElement(IGUIElement *sel); 34 virtual void setSelectedElement(IGUIElement *sel);
35 35
36 //! get draggable 36 //! get draggable
37 virtual bool isDraggable() const; 37 virtual bool isDraggable() const;
38 38
39 //! get draggable 39 //! get draggable
40 virtual void setDraggable(bool draggable); 40 virtual void setDraggable(bool draggable);
41 41
42 // not used 42 // not used
43 virtual core::rect<s32> getClientRect() const; 43 virtual core::rect<s32> getClientRect() const;
44 virtual IGUIButton* getCloseButton() const; 44 virtual IGUIButton* getCloseButton() const;
45 virtual IGUIButton* getMinimizeButton() const; 45 virtual IGUIButton* getMinimizeButton() const;
46 virtual IGUIButton* getMaximizeButton() const; 46 virtual IGUIButton* getMaximizeButton() const;
47 virtual void setDrawBackground(bool draw) { } 47 virtual void setDrawBackground(bool draw) { }
48 virtual bool getDrawBackground() const { return true; } 48 virtual bool getDrawBackground() const { return true; }
49 virtual void setDrawTitlebar(bool draw) { } 49 virtual void setDrawTitlebar(bool draw) { }
50 virtual bool getDrawTitlebar() const { return true; } 50 virtual bool getDrawTitlebar() const { return true; }
51 51
52 IGUITreeView* getTreeView() const; 52 IGUITreeView* getTreeView() const;
53 CGUIAttributeEditor* getAttributeEditor() const; 53 CGUIAttributeEditor* getAttributeEditor() const;
54 CGUIAttributeEditor* getOptionEditor() const; 54 CGUIAttributeEditor* getOptionEditor() const;
55 CGUIAttributeEditor* getEnvironmentEditor() const; 55 CGUIAttributeEditor* getEnvironmentEditor() const;
56 56
57 //! Returns the type name of the gui element. 57 //! Returns the type name of the gui element.
58 virtual const c8* getTypeName() const 58 virtual const c8* getTypeName() const
59 { 59 {
60 return GUIEditElementTypeNames[EGUIEDIT_GUIEDITWINDOW]; 60 return GUIEditElementTypeNames[EGUIEDIT_GUIEDITWINDOW];
61 } 61 }
62 62
63 void updateTree(); 63 void updateTree();
64 private: 64 private:
65 65
66 void addChildrenToTree(IGUIElement* parentElement, IGUITreeViewNode* treenode); 66 void addChildrenToTree(IGUIElement* parentElement, IGUITreeViewNode* treenode);
67 IGUITreeViewNode* getTreeNode(IGUIElement* element, IGUITreeViewNode* searchnode); 67 IGUITreeViewNode* getTreeNode(IGUIElement* element, IGUITreeViewNode* searchnode);
68 // for dragging the window 68 // for dragging the window
69 bool Dragging; 69 bool Dragging;
70 bool IsDraggable; 70 bool IsDraggable;
71 bool Resizing; 71 bool Resizing;
72 core::position2d<s32> DragStart; 72 core::position2d<s32> DragStart;
73 73
74 IGUIElement* SelectedElement; // current selected element 74 IGUIElement* SelectedElement; // current selected element
75 75
76 CGUIAttributeEditor* AttribEditor; // edits the current attribute 76 CGUIAttributeEditor* AttribEditor; // edits the current attribute
77 CGUIAttributeEditor* OptionEditor; // edits the options for the window 77 CGUIAttributeEditor* OptionEditor; // edits the options for the window
78 CGUIAttributeEditor* EnvEditor; // edits attributes for the environment 78 CGUIAttributeEditor* EnvEditor; // edits attributes for the environment
79 IGUITreeView* TreeView; // tree view of all elements in scene 79 IGUITreeView* TreeView; // tree view of all elements in scene
80 IGUIButton* ResizeButton; 80 IGUIButton* ResizeButton;
81 81
82 }; 82 };
83 83
84} // end namespace gui 84} // end namespace gui
85} // end namespace irr 85} // end namespace irr
86 86
87#endif // __C_GUI_EDITOR_H_INCLUDED__ 87#endif // __C_GUI_EDITOR_H_INCLUDED__
88 88