aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/tools/GUIEditor/CGUIDummyEditorStub.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/CGUIDummyEditorStub.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/CGUIDummyEditorStub.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIDummyEditorStub.h b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIDummyEditorStub.h
index 635501a..b373b2d 100644
--- a/libraries/irrlicht-1.8/tools/GUIEditor/CGUIDummyEditorStub.h
+++ b/libraries/irrlicht-1.8/tools/GUIEditor/CGUIDummyEditorStub.h
@@ -1,59 +1,59 @@
1/* 1/*
2 This is a custom editor for stubbing problematic elements out, 2 This is a custom editor for stubbing problematic elements out,
3 for example elements which include modal screens 3 for example elements which include modal screens
4*/ 4*/
5 5
6#ifndef __C_GUI_DUMMY_EDITOR_STUB_H_INCLUDED__ 6#ifndef __C_GUI_DUMMY_EDITOR_STUB_H_INCLUDED__
7#define __C_GUI_DUMMY_EDITOR_STUB_H_INCLUDED__ 7#define __C_GUI_DUMMY_EDITOR_STUB_H_INCLUDED__
8 8
9#include "IGUIElement.h" 9#include "IGUIElement.h"
10#include "IGUIEnvironment.h" 10#include "IGUIEnvironment.h"
11#include "IGUIStaticText.h" 11#include "IGUIStaticText.h"
12 12
13namespace irr 13namespace irr
14{ 14{
15 15
16namespace gui 16namespace gui
17{ 17{
18 class CGUIDummyEditorStub : public IGUIElement 18 class CGUIDummyEditorStub : public IGUIElement
19 { 19 {
20 public: 20 public:
21 //! constructor 21 //! constructor
22 CGUIDummyEditorStub(IGUIEnvironment* environment, IGUIElement *parent, const char *text) : 22 CGUIDummyEditorStub(IGUIEnvironment* environment, IGUIElement *parent, const char *text) :
23 IGUIElement(EGUIET_ELEMENT, environment, parent, -1, core::rect<s32>(0, 0, 100, 100) ), 23 IGUIElement(EGUIET_ELEMENT, environment, parent, -1, core::rect<s32>(0, 0, 100, 100) ),
24 TextBox(0), TypeName(text) 24 TextBox(0), TypeName(text)
25 { 25 {
26 26
27 #ifdef _DEBUG 27 #ifdef _DEBUG
28 setDebugName("CGUIDummyEditorStub"); 28 setDebugName("CGUIDummyEditorStub");
29 #endif 29 #endif
30 30
31 core::dimension2du d = Environment->getSkin()->getFont()->getDimension(L"A"); 31 core::dimension2du d = Environment->getSkin()->getFont()->getDimension(L"A");
32 s32 h = d.Height / 2; 32 s32 h = d.Height / 2;
33 s32 w = d.Width / 2; 33 s32 w = d.Width / 2;
34 34
35 TextBox = environment->addStaticText(core::stringw(text).c_str(), 35 TextBox = environment->addStaticText(core::stringw(text).c_str(),
36 core::rect<s32>(50-w, 50-h, 50+w, 50+h), 36 core::rect<s32>(50-w, 50-h, 50+w, 50+h),
37 false, false, this, -1, false); 37 false, false, this, -1, false);
38 TextBox->grab(); 38 TextBox->grab();
39 TextBox->setSubElement(true); 39 TextBox->setSubElement(true);
40 TextBox->setAlignment(EGUIA_CENTER, EGUIA_CENTER, EGUIA_CENTER, EGUIA_CENTER); 40 TextBox->setAlignment(EGUIA_CENTER, EGUIA_CENTER, EGUIA_CENTER, EGUIA_CENTER);
41 } 41 }
42 42
43 virtual ~CGUIDummyEditorStub() 43 virtual ~CGUIDummyEditorStub()
44 { 44 {
45 if (TextBox) 45 if (TextBox)
46 TextBox->drop(); 46 TextBox->drop();
47 } 47 }
48 virtual const c8* getTypeName() const { return TypeName.c_str(); } 48 virtual const c8* getTypeName() const { return TypeName.c_str(); }
49 49
50 protected: 50 protected:
51 IGUIStaticText* TextBox; 51 IGUIStaticText* TextBox;
52 core::stringc TypeName; 52 core::stringc TypeName;
53 53
54 }; 54 };
55 55
56} // namespace gui 56} // namespace gui
57} // namespace irr 57} // namespace irr
58 58
59#endif 59#endif