From 959831f4ef5a3e797f576c3de08cd65032c997ad Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 18:54:10 +1000 Subject: Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard. --- .../irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h | 176 ++++++++++----------- 1 file changed, 88 insertions(+), 88 deletions(-) (limited to 'libraries/irrlicht-1.8/tools/GUIEditor/CGUIEditWindow.h') 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 @@ -#ifndef __C_GUI_EDITOR_H_INCLUDED__ -#define __C_GUI_EDITOR_H_INCLUDED__ - - -#include "IGUIWindow.h" -#include "CGUIAttributeEditor.h" -//#include "IGUIStaticText.h" -#include "IGUIButton.h" -#include "IGUITreeView.h" -#include "irrArray.h" -#include "IAttributes.h" -#include "EGUIEditTypes.h" - -namespace irr -{ -namespace gui -{ - class CGUIEditWindow : public IGUIWindow - { - public: - - //! constructor - CGUIEditWindow(IGUIEnvironment* environment, core::rect rectangle, IGUIElement *parent); - - //! destructor - ~CGUIEditWindow(); - - //! this part draws the window - virtual void draw(); - //! handles events - virtual bool OnEvent(const SEvent &event); - - //! change selection - virtual void setSelectedElement(IGUIElement *sel); - - //! get draggable - virtual bool isDraggable() const; - - //! get draggable - virtual void setDraggable(bool draggable); - - // not used - virtual core::rect getClientRect() const; - virtual IGUIButton* getCloseButton() const; - virtual IGUIButton* getMinimizeButton() const; - virtual IGUIButton* getMaximizeButton() const; - virtual void setDrawBackground(bool draw) { } - virtual bool getDrawBackground() const { return true; } - virtual void setDrawTitlebar(bool draw) { } - virtual bool getDrawTitlebar() const { return true; } - - IGUITreeView* getTreeView() const; - CGUIAttributeEditor* getAttributeEditor() const; - CGUIAttributeEditor* getOptionEditor() const; - CGUIAttributeEditor* getEnvironmentEditor() const; - - //! Returns the type name of the gui element. - virtual const c8* getTypeName() const - { - return GUIEditElementTypeNames[EGUIEDIT_GUIEDITWINDOW]; - } - - void updateTree(); - private: - - void addChildrenToTree(IGUIElement* parentElement, IGUITreeViewNode* treenode); - IGUITreeViewNode* getTreeNode(IGUIElement* element, IGUITreeViewNode* searchnode); - // for dragging the window - bool Dragging; - bool IsDraggable; - bool Resizing; - core::position2d DragStart; - - IGUIElement* SelectedElement; // current selected element - - CGUIAttributeEditor* AttribEditor; // edits the current attribute - CGUIAttributeEditor* OptionEditor; // edits the options for the window - CGUIAttributeEditor* EnvEditor; // edits attributes for the environment - IGUITreeView* TreeView; // tree view of all elements in scene - IGUIButton* ResizeButton; - - }; - -} // end namespace gui -} // end namespace irr - -#endif // __C_GUI_EDITOR_H_INCLUDED__ - +#ifndef __C_GUI_EDITOR_H_INCLUDED__ +#define __C_GUI_EDITOR_H_INCLUDED__ + + +#include "IGUIWindow.h" +#include "CGUIAttributeEditor.h" +//#include "IGUIStaticText.h" +#include "IGUIButton.h" +#include "IGUITreeView.h" +#include "irrArray.h" +#include "IAttributes.h" +#include "EGUIEditTypes.h" + +namespace irr +{ +namespace gui +{ + class CGUIEditWindow : public IGUIWindow + { + public: + + //! constructor + CGUIEditWindow(IGUIEnvironment* environment, core::rect rectangle, IGUIElement *parent); + + //! destructor + ~CGUIEditWindow(); + + //! this part draws the window + virtual void draw(); + //! handles events + virtual bool OnEvent(const SEvent &event); + + //! change selection + virtual void setSelectedElement(IGUIElement *sel); + + //! get draggable + virtual bool isDraggable() const; + + //! get draggable + virtual void setDraggable(bool draggable); + + // not used + virtual core::rect getClientRect() const; + virtual IGUIButton* getCloseButton() const; + virtual IGUIButton* getMinimizeButton() const; + virtual IGUIButton* getMaximizeButton() const; + virtual void setDrawBackground(bool draw) { } + virtual bool getDrawBackground() const { return true; } + virtual void setDrawTitlebar(bool draw) { } + virtual bool getDrawTitlebar() const { return true; } + + IGUITreeView* getTreeView() const; + CGUIAttributeEditor* getAttributeEditor() const; + CGUIAttributeEditor* getOptionEditor() const; + CGUIAttributeEditor* getEnvironmentEditor() const; + + //! Returns the type name of the gui element. + virtual const c8* getTypeName() const + { + return GUIEditElementTypeNames[EGUIEDIT_GUIEDITWINDOW]; + } + + void updateTree(); + private: + + void addChildrenToTree(IGUIElement* parentElement, IGUITreeViewNode* treenode); + IGUITreeViewNode* getTreeNode(IGUIElement* element, IGUITreeViewNode* searchnode); + // for dragging the window + bool Dragging; + bool IsDraggable; + bool Resizing; + core::position2d DragStart; + + IGUIElement* SelectedElement; // current selected element + + CGUIAttributeEditor* AttribEditor; // edits the current attribute + CGUIAttributeEditor* OptionEditor; // edits the options for the window + CGUIAttributeEditor* EnvEditor; // edits attributes for the environment + IGUITreeView* TreeView; // tree view of all elements in scene + IGUIButton* ResizeButton; + + }; + +} // end namespace gui +} // end namespace irr + +#endif // __C_GUI_EDITOR_H_INCLUDED__ + -- cgit v1.1