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/source/Irrlicht/CGUISpinBox.h | 216 ++++++++++----------- 1 file changed, 108 insertions(+), 108 deletions(-) (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CGUISpinBox.h') diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUISpinBox.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUISpinBox.h index e487c0b..0f4d0c0 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CGUISpinBox.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUISpinBox.h @@ -1,108 +1,108 @@ -// Copyright (C) 2006-2012 Michael Zeilfelder -// This file is part of the "Irrlicht Engine". -// For conditions of distribution and use, see copyright notice in irrlicht.h - -#ifndef __C_GUI_SPIN_BOX_H_INCLUDED__ -#define __C_GUI_SPIN_BOX_H_INCLUDED__ - -#include "IrrCompileConfig.h" -#ifdef _IRR_COMPILE_WITH_GUI_ - -#include "IGUISpinBox.h" - -namespace irr -{ -namespace gui -{ - class IGUIEditBox; - class IGUIButton; - - class CGUISpinBox : public IGUISpinBox - { - public: - - //! constructor - CGUISpinBox(const wchar_t* text, bool border, IGUIEnvironment* environment, - IGUIElement* parent, s32 id, const core::rect& rectangle); - - //! destructor - virtual ~CGUISpinBox(); - - //! Access the edit box used in the spin control - /** \param enable: If set to true, the override color, which can be set - with IGUIEditBox::setOverrideColor is used, otherwise the - EGDC_BUTTON_TEXT color of the skin. */ - virtual IGUIEditBox* getEditBox() const; - - //! set the current value of the spinbox - /** \param val: value to be set in the spinbox */ - virtual void setValue(f32 val); - - //! Get the current value of the spinbox - virtual f32 getValue() const; - - //! set the range of values which can be used in the spinbox - /** \param min: minimum value - \param max: maximum value */ - virtual void setRange(f32 min, f32 max); - - //! get the minimum value which can be used in the spinbox - virtual f32 getMin() const; - - //! get the maximum value which can be used in the spinbox - virtual f32 getMax() const; - - //! step size by which values are changed when pressing the spin buttons - /** \param step: stepsize used for value changes when pressing spin buttons */ - virtual void setStepSize(f32 step=1.f); - - //! returns the step size - virtual f32 getStepSize() const; - - //! called if an event happened. - virtual bool OnEvent(const SEvent& event); - - //! Draws the element and its children. - virtual void draw(); - - //! Sets the new caption of the element - virtual void setText(const wchar_t* text); - - //! Returns caption of this element. - virtual const wchar_t* getText() const; - - //! Sets the number of decimal places to display. - //! Note that this also rounds the range to the same number of decimal places. - /** \param places: The number of decimal places to display, use -1 to reset */ - virtual void setDecimalPlaces(s32 places); - - //! Writes attributes of the element. - virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; - - //! Reads attributes of the element - virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); - - protected: - virtual void verifyValueRange(); - void refreshSprites(); - - IGUIEditBox * EditBox; - IGUIButton * ButtonSpinUp; - IGUIButton * ButtonSpinDown; - video::SColor CurrentIconColor; - f32 StepSize; - f32 RangeMin; - f32 RangeMax; - - core::stringw FormatString; - s32 DecimalPlaces; - }; - - -} // end namespace gui -} // end namespace irr - -#endif // _IRR_COMPILE_WITH_GUI_ - -#endif // __C_GUI_SPIN_BOX_H_INCLUDED__ - +// Copyright (C) 2006-2012 Michael Zeilfelder +// This file is part of the "Irrlicht Engine". +// For conditions of distribution and use, see copyright notice in irrlicht.h + +#ifndef __C_GUI_SPIN_BOX_H_INCLUDED__ +#define __C_GUI_SPIN_BOX_H_INCLUDED__ + +#include "IrrCompileConfig.h" +#ifdef _IRR_COMPILE_WITH_GUI_ + +#include "IGUISpinBox.h" + +namespace irr +{ +namespace gui +{ + class IGUIEditBox; + class IGUIButton; + + class CGUISpinBox : public IGUISpinBox + { + public: + + //! constructor + CGUISpinBox(const wchar_t* text, bool border, IGUIEnvironment* environment, + IGUIElement* parent, s32 id, const core::rect& rectangle); + + //! destructor + virtual ~CGUISpinBox(); + + //! Access the edit box used in the spin control + /** \param enable: If set to true, the override color, which can be set + with IGUIEditBox::setOverrideColor is used, otherwise the + EGDC_BUTTON_TEXT color of the skin. */ + virtual IGUIEditBox* getEditBox() const; + + //! set the current value of the spinbox + /** \param val: value to be set in the spinbox */ + virtual void setValue(f32 val); + + //! Get the current value of the spinbox + virtual f32 getValue() const; + + //! set the range of values which can be used in the spinbox + /** \param min: minimum value + \param max: maximum value */ + virtual void setRange(f32 min, f32 max); + + //! get the minimum value which can be used in the spinbox + virtual f32 getMin() const; + + //! get the maximum value which can be used in the spinbox + virtual f32 getMax() const; + + //! step size by which values are changed when pressing the spin buttons + /** \param step: stepsize used for value changes when pressing spin buttons */ + virtual void setStepSize(f32 step=1.f); + + //! returns the step size + virtual f32 getStepSize() const; + + //! called if an event happened. + virtual bool OnEvent(const SEvent& event); + + //! Draws the element and its children. + virtual void draw(); + + //! Sets the new caption of the element + virtual void setText(const wchar_t* text); + + //! Returns caption of this element. + virtual const wchar_t* getText() const; + + //! Sets the number of decimal places to display. + //! Note that this also rounds the range to the same number of decimal places. + /** \param places: The number of decimal places to display, use -1 to reset */ + virtual void setDecimalPlaces(s32 places); + + //! Writes attributes of the element. + virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; + + //! Reads attributes of the element + virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); + + protected: + virtual void verifyValueRange(); + void refreshSprites(); + + IGUIEditBox * EditBox; + IGUIButton * ButtonSpinUp; + IGUIButton * ButtonSpinDown; + video::SColor CurrentIconColor; + f32 StepSize; + f32 RangeMin; + f32 RangeMax; + + core::stringw FormatString; + s32 DecimalPlaces; + }; + + +} // end namespace gui +} // end namespace irr + +#endif // _IRR_COMPILE_WITH_GUI_ + +#endif // __C_GUI_SPIN_BOX_H_INCLUDED__ + -- cgit v1.1