diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CGUIMessageBox.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CGUIMessageBox.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIMessageBox.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIMessageBox.h index 6f632c5..62e7c51 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIMessageBox.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUIMessageBox.h | |||
@@ -1,64 +1,64 @@ | |||
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_MESSAGE_BOX_H_INCLUDED__ | 5 | #ifndef __C_GUI_MESSAGE_BOX_H_INCLUDED__ |
6 | #define __C_GUI_MESSAGE_BOX_H_INCLUDED__ | 6 | #define __C_GUI_MESSAGE_BOX_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 "CGUIWindow.h" | 11 | #include "CGUIWindow.h" |
12 | #include "IGUIStaticText.h" | 12 | #include "IGUIStaticText.h" |
13 | #include "IGUIImage.h" | 13 | #include "IGUIImage.h" |
14 | #include "irrArray.h" | 14 | #include "irrArray.h" |
15 | 15 | ||
16 | namespace irr | 16 | namespace irr |
17 | { | 17 | { |
18 | namespace gui | 18 | namespace gui |
19 | { | 19 | { |
20 | class CGUIMessageBox : public CGUIWindow | 20 | class CGUIMessageBox : public CGUIWindow |
21 | { | 21 | { |
22 | public: | 22 | public: |
23 | 23 | ||
24 | //! constructor | 24 | //! constructor |
25 | CGUIMessageBox(IGUIEnvironment* environment, const wchar_t* caption, | 25 | CGUIMessageBox(IGUIEnvironment* environment, const wchar_t* caption, |
26 | const wchar_t* text, s32 flag, | 26 | const wchar_t* text, s32 flag, |
27 | IGUIElement* parent, s32 id, core::rect<s32> rectangle, video::ITexture* image=0); | 27 | IGUIElement* parent, s32 id, core::rect<s32> rectangle, video::ITexture* image=0); |
28 | 28 | ||
29 | //! destructor | 29 | //! destructor |
30 | virtual ~CGUIMessageBox(); | 30 | virtual ~CGUIMessageBox(); |
31 | 31 | ||
32 | //! called if an event happened. | 32 | //! called if an event happened. |
33 | virtual bool OnEvent(const SEvent& event); | 33 | virtual bool OnEvent(const SEvent& event); |
34 | 34 | ||
35 | //! Writes attributes of the element. | 35 | //! Writes attributes of the element. |
36 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | 36 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; |
37 | 37 | ||
38 | //! Reads attributes of the element | 38 | //! Reads attributes of the element |
39 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | 39 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); |
40 | 40 | ||
41 | private: | 41 | private: |
42 | 42 | ||
43 | void refreshControls(); | 43 | void refreshControls(); |
44 | void setButton(IGUIButton*& button, bool isAvailable, const core::rect<s32> & btnRect, const wchar_t * text, IGUIElement*& focusMe); | 44 | void setButton(IGUIButton*& button, bool isAvailable, const core::rect<s32> & btnRect, const wchar_t * text, IGUIElement*& focusMe); |
45 | 45 | ||
46 | IGUIButton* OkButton; | 46 | IGUIButton* OkButton; |
47 | IGUIButton* CancelButton; | 47 | IGUIButton* CancelButton; |
48 | IGUIButton* YesButton; | 48 | IGUIButton* YesButton; |
49 | IGUIButton* NoButton; | 49 | IGUIButton* NoButton; |
50 | IGUIStaticText* StaticText; | 50 | IGUIStaticText* StaticText; |
51 | IGUIImage * Icon; | 51 | IGUIImage * Icon; |
52 | video::ITexture * IconTexture; | 52 | video::ITexture * IconTexture; |
53 | 53 | ||
54 | s32 Flags; | 54 | s32 Flags; |
55 | core::stringw MessageText; | 55 | core::stringw MessageText; |
56 | bool Pressed; | 56 | bool Pressed; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | } // end namespace gui | 59 | } // end namespace gui |
60 | } // end namespace irr | 60 | } // end namespace irr |
61 | 61 | ||
62 | #endif // _IRR_COMPILE_WITH_GUI_ | 62 | #endif // _IRR_COMPILE_WITH_GUI_ |
63 | 63 | ||
64 | #endif | 64 | #endif |