aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.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/source/Irrlicht/CGUIColorSelectDialog.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 'libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.h148
1 files changed, 74 insertions, 74 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.h
index 7f5cada..d9b0952 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUIColorSelectDialog.h
@@ -1,74 +1,74 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt 1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine". 2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h 3// For conditions of distribution and use, see copyright notice in irrlicht.h
4 4
5#ifndef __C_GUI_COLOR_SELECT_DIALOG_H_INCLUDED__ 5#ifndef __C_GUI_COLOR_SELECT_DIALOG_H_INCLUDED__
6#define __C_GUI_COLOR_SELECT_DIALOG_H_INCLUDED__ 6#define __C_GUI_COLOR_SELECT_DIALOG_H_INCLUDED__
7 7
8#include "IrrCompileConfig.h" 8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_ 9#ifdef _IRR_COMPILE_WITH_GUI_
10 10
11#include "IGUIColorSelectDialog.h" 11#include "IGUIColorSelectDialog.h"
12#include "IGUIButton.h" 12#include "IGUIButton.h"
13#include "IGUISpinBox.h" 13#include "IGUISpinBox.h"
14#include "IGUIImage.h" 14#include "IGUIImage.h"
15#include "irrArray.h" 15#include "irrArray.h"
16 16
17 17
18namespace irr 18namespace irr
19{ 19{
20namespace gui 20namespace gui
21{ 21{
22 22
23 class CGUIColorSelectDialog : public IGUIColorSelectDialog 23 class CGUIColorSelectDialog : public IGUIColorSelectDialog
24 { 24 {
25 public: 25 public:
26 26
27 //! constructor 27 //! constructor
28 CGUIColorSelectDialog(const wchar_t* title, IGUIEnvironment* environment, IGUIElement* parent, s32 id); 28 CGUIColorSelectDialog(const wchar_t* title, IGUIEnvironment* environment, IGUIElement* parent, s32 id);
29 29
30 //! destructor 30 //! destructor
31 virtual ~CGUIColorSelectDialog(); 31 virtual ~CGUIColorSelectDialog();
32 32
33 //! called if an event happened. 33 //! called if an event happened.
34 virtual bool OnEvent(const SEvent& event); 34 virtual bool OnEvent(const SEvent& event);
35 35
36 //! draws the element and its children 36 //! draws the element and its children
37 virtual void draw(); 37 virtual void draw();
38 38
39 virtual video::SColor getColor(); 39 virtual video::SColor getColor();
40 virtual video::SColorHSL getColorHSL(); 40 virtual video::SColorHSL getColorHSL();
41 41
42 private: 42 private:
43 43
44 //! sends the event that the file has been selected. 44 //! sends the event that the file has been selected.
45 void sendSelectedEvent(); 45 void sendSelectedEvent();
46 46
47 //! sends the event that the file choose process has been canceld 47 //! sends the event that the file choose process has been canceld
48 void sendCancelEvent(); 48 void sendCancelEvent();
49 49
50 core::position2d<s32> DragStart; 50 core::position2d<s32> DragStart;
51 bool Dragging; 51 bool Dragging;
52 IGUIButton* CloseButton; 52 IGUIButton* CloseButton;
53 IGUIButton* OKButton; 53 IGUIButton* OKButton;
54 IGUIButton* CancelButton; 54 IGUIButton* CancelButton;
55 55
56 core::array<IGUISpinBox*> Battery; 56 core::array<IGUISpinBox*> Battery;
57 57
58 struct SColorCircle 58 struct SColorCircle
59 { 59 {
60 IGUIImage * Control; 60 IGUIImage * Control;
61 video::ITexture * Texture; 61 video::ITexture * Texture;
62 }; 62 };
63 SColorCircle ColorRing; 63 SColorCircle ColorRing;
64 64
65 void buildColorRing( const core::dimension2d<u32> & dim, s32 supersample, const video::SColor& borderColor ); 65 void buildColorRing( const core::dimension2d<u32> & dim, s32 supersample, const video::SColor& borderColor );
66 }; 66 };
67 67
68 68
69} // end namespace gui 69} // end namespace gui
70} // end namespace irr 70} // end namespace irr
71 71
72#endif // _IRR_COMPILE_WITH_GUI_ 72#endif // _IRR_COMPILE_WITH_GUI_
73 73
74#endif // __C_GUI_COLOR_SELECT_DIALOG_H_INCLUDED__ 74#endif // __C_GUI_COLOR_SELECT_DIALOG_H_INCLUDED__