diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/tools/GUIEditor/CGUITextureCacheBrowser.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-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/CGUITextureCacheBrowser.h | 176 |
1 files changed, 88 insertions, 88 deletions
diff --git a/libraries/irrlicht-1.8/tools/GUIEditor/CGUITextureCacheBrowser.h b/libraries/irrlicht-1.8/tools/GUIEditor/CGUITextureCacheBrowser.h index 108d4d6..afe84f1 100644 --- a/libraries/irrlicht-1.8/tools/GUIEditor/CGUITextureCacheBrowser.h +++ b/libraries/irrlicht-1.8/tools/GUIEditor/CGUITextureCacheBrowser.h | |||
@@ -1,88 +1,88 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt / Gaz Davidson | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt / Gaz Davidson |
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_TEXTURE_CACHE_BROWSER_H_INCLUDED__ | 5 | #ifndef __C_GUI_TEXTURE_CACHE_BROWSER_H_INCLUDED__ |
6 | #define __C_GUI_TEXTURE_CACHE_BROWSER_H_INCLUDED__ | 6 | #define __C_GUI_TEXTURE_CACHE_BROWSER_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IGUIWindow.h" | 8 | #include "IGUIWindow.h" |
9 | #include "CGUIPanel.h" | 9 | #include "CGUIPanel.h" |
10 | #include "IGUIImage.h" | 10 | #include "IGUIImage.h" |
11 | #include "EGUIEditTypes.h" | 11 | #include "EGUIEditTypes.h" |
12 | 12 | ||
13 | namespace irr | 13 | namespace irr |
14 | { | 14 | { |
15 | namespace gui | 15 | namespace gui |
16 | { | 16 | { |
17 | 17 | ||
18 | //! Texture cache browser | 18 | //! Texture cache browser |
19 | 19 | ||
20 | const u32 TEXTURE_BROWSER_TEXTURE_SELECTED = 0x5E1EC7ED; // custom event number for texture selected | 20 | const u32 TEXTURE_BROWSER_TEXTURE_SELECTED = 0x5E1EC7ED; // custom event number for texture selected |
21 | 21 | ||
22 | class CGUITextureCacheBrowser : public IGUIWindow | 22 | class CGUITextureCacheBrowser : public IGUIWindow |
23 | { | 23 | { |
24 | public: | 24 | public: |
25 | 25 | ||
26 | //! constructor | 26 | //! constructor |
27 | CGUITextureCacheBrowser(IGUIEnvironment* environment, s32 id=-1, IGUIElement *parent=0); | 27 | CGUITextureCacheBrowser(IGUIEnvironment* environment, s32 id=-1, IGUIElement *parent=0); |
28 | 28 | ||
29 | //! destructor | 29 | //! destructor |
30 | ~CGUITextureCacheBrowser(); | 30 | ~CGUITextureCacheBrowser(); |
31 | 31 | ||
32 | //! event handler | 32 | //! event handler |
33 | virtual bool OnEvent(const SEvent &event); | 33 | virtual bool OnEvent(const SEvent &event); |
34 | 34 | ||
35 | //! draws the element | 35 | //! draws the element |
36 | virtual void draw(); | 36 | virtual void draw(); |
37 | 37 | ||
38 | //! update absolute position | 38 | //! update absolute position |
39 | virtual void updateAbsolutePosition(); | 39 | virtual void updateAbsolutePosition(); |
40 | 40 | ||
41 | //! this shoudln't be serialized, but this is included as it's an example | 41 | //! this shoudln't be serialized, but this is included as it's an example |
42 | virtual const c8* getTypeName() const { return "textureCacheBrowser"; } | 42 | virtual const c8* getTypeName() const { return "textureCacheBrowser"; } |
43 | 43 | ||
44 | //! Returns pointer to the close button | 44 | //! Returns pointer to the close button |
45 | virtual IGUIButton* getCloseButton() const { return CloseButton; } | 45 | virtual IGUIButton* getCloseButton() const { return CloseButton; } |
46 | 46 | ||
47 | //! Returns pointer to the minimize button | 47 | //! Returns pointer to the minimize button |
48 | virtual IGUIButton* getMinimizeButton() const { return 0;} | 48 | virtual IGUIButton* getMinimizeButton() const { return 0;} |
49 | 49 | ||
50 | //! Returns pointer to the maximize button | 50 | //! Returns pointer to the maximize button |
51 | virtual IGUIButton* getMaximizeButton() const { return 0;} | 51 | virtual IGUIButton* getMaximizeButton() const { return 0;} |
52 | 52 | ||
53 | //! get draggable | 53 | //! get draggable |
54 | virtual bool isDraggable() const; | 54 | virtual bool isDraggable() const; |
55 | 55 | ||
56 | //! get draggable | 56 | //! get draggable |
57 | virtual void setDraggable(bool draggable); | 57 | virtual void setDraggable(bool draggable); |
58 | 58 | ||
59 | //! not used | 59 | //! not used |
60 | virtual core::rect<s32> getClientRect() const; | 60 | virtual core::rect<s32> getClientRect() const; |
61 | virtual void setDrawBackground(bool draw) { } | 61 | virtual void setDrawBackground(bool draw) { } |
62 | virtual bool getDrawBackground() const { return true; } | 62 | virtual bool getDrawBackground() const { return true; } |
63 | virtual void setDrawTitlebar(bool draw) { } | 63 | virtual void setDrawTitlebar(bool draw) { } |
64 | virtual bool getDrawTitlebar() const { return true; } | 64 | virtual bool getDrawTitlebar() const { return true; } |
65 | 65 | ||
66 | 66 | ||
67 | void setSelected(s32 index=-1); | 67 | void setSelected(s32 index=-1); |
68 | 68 | ||
69 | private: | 69 | private: |
70 | 70 | ||
71 | void updateImageList(); | 71 | void updateImageList(); |
72 | 72 | ||
73 | core::array<IGUIImage*> Images; | 73 | core::array<IGUIImage*> Images; |
74 | core::position2d<s32> DragStart; | 74 | core::position2d<s32> DragStart; |
75 | 75 | ||
76 | IGUIButton* CloseButton; | 76 | IGUIButton* CloseButton; |
77 | CGUIPanel* Panel; | 77 | CGUIPanel* Panel; |
78 | s32 SelectedTexture; | 78 | s32 SelectedTexture; |
79 | bool Dragging; | 79 | bool Dragging; |
80 | bool IsDraggable; | 80 | bool IsDraggable; |
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 | 87 | #endif |
88 | 88 | ||