aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CGUIFileOpenDialog.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/CGUIFileOpenDialog.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/CGUIFileOpenDialog.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CGUIFileOpenDialog.h168
1 files changed, 84 insertions, 84 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIFileOpenDialog.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIFileOpenDialog.h
index 075935a..62ce63b 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIFileOpenDialog.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUIFileOpenDialog.h
@@ -1,84 +1,84 @@
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_FILE_OPEN_DIALOG_H_INCLUDED__ 5#ifndef __C_GUI_FILE_OPEN_DIALOG_H_INCLUDED__
6#define __C_GUI_FILE_OPEN_DIALOG_H_INCLUDED__ 6#define __C_GUI_FILE_OPEN_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 "IGUIFileOpenDialog.h" 11#include "IGUIFileOpenDialog.h"
12#include "IGUIButton.h" 12#include "IGUIButton.h"
13#include "IGUIListBox.h" 13#include "IGUIListBox.h"
14#include "IGUIEditBox.h" 14#include "IGUIEditBox.h"
15#include "IFileSystem.h" 15#include "IFileSystem.h"
16 16
17namespace irr 17namespace irr
18{ 18{
19namespace gui 19namespace gui
20{ 20{
21 21
22 class CGUIFileOpenDialog : public IGUIFileOpenDialog 22 class CGUIFileOpenDialog : public IGUIFileOpenDialog
23 { 23 {
24 public: 24 public:
25 25
26 //! constructor 26 //! constructor
27 CGUIFileOpenDialog(const wchar_t* title, IGUIEnvironment* environment, 27 CGUIFileOpenDialog(const wchar_t* title, IGUIEnvironment* environment,
28 IGUIElement* parent, s32 id, bool restoreCWD=false, 28 IGUIElement* parent, s32 id, bool restoreCWD=false,
29 io::path::char_type* startDir=0); 29 io::path::char_type* startDir=0);
30 30
31 //! destructor 31 //! destructor
32 virtual ~CGUIFileOpenDialog(); 32 virtual ~CGUIFileOpenDialog();
33 33
34 //! returns the filename of the selected file. Returns NULL, if no file was selected. 34 //! returns the filename of the selected file. Returns NULL, if no file was selected.
35 virtual const wchar_t* getFileName() const; 35 virtual const wchar_t* getFileName() const;
36 36
37 //! Returns the directory of the selected file. Returns NULL, if no directory was selected. 37 //! Returns the directory of the selected file. Returns NULL, if no directory was selected.
38 virtual const io::path& getDirectoryName(); 38 virtual const io::path& getDirectoryName();
39 39
40 //! called if an event happened. 40 //! called if an event happened.
41 virtual bool OnEvent(const SEvent& event); 41 virtual bool OnEvent(const SEvent& event);
42 42
43 //! draws the element and its children 43 //! draws the element and its children
44 virtual void draw(); 44 virtual void draw();
45 45
46 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; 46 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
47 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); 47 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
48 48
49 protected: 49 protected:
50 50
51 //! fills the listbox with files. 51 //! fills the listbox with files.
52 void fillListBox(); 52 void fillListBox();
53 53
54 //! sends the event that the file has been selected. 54 //! sends the event that the file has been selected.
55 void sendSelectedEvent( EGUI_EVENT_TYPE type ); 55 void sendSelectedEvent( EGUI_EVENT_TYPE type );
56 56
57 //! sends the event that the file choose process has been canceld 57 //! sends the event that the file choose process has been canceld
58 void sendCancelEvent(); 58 void sendCancelEvent();
59 59
60 core::position2d<s32> DragStart; 60 core::position2d<s32> DragStart;
61 core::stringw FileName; 61 core::stringw FileName;
62 io::path FileDirectory; 62 io::path FileDirectory;
63 io::path RestoreDirectory; 63 io::path RestoreDirectory;
64 io::path StartDirectory; 64 io::path StartDirectory;
65 65
66 IGUIButton* CloseButton; 66 IGUIButton* CloseButton;
67 IGUIButton* OKButton; 67 IGUIButton* OKButton;
68 IGUIButton* CancelButton; 68 IGUIButton* CancelButton;
69 IGUIListBox* FileBox; 69 IGUIListBox* FileBox;
70 IGUIEditBox* FileNameText; 70 IGUIEditBox* FileNameText;
71 IGUIElement* EventParent; 71 IGUIElement* EventParent;
72 io::IFileSystem* FileSystem; 72 io::IFileSystem* FileSystem;
73 io::IFileList* FileList; 73 io::IFileList* FileList;
74 bool Dragging; 74 bool Dragging;
75 }; 75 };
76 76
77 77
78} // end namespace gui 78} // end namespace gui
79} // end namespace irr 79} // end namespace irr
80 80
81#endif // _IRR_COMPILE_WITH_GUI_ 81#endif // _IRR_COMPILE_WITH_GUI_
82 82
83#endif // __C_GUI_FILE_OPEN_DIALOG_H_INCLUDED__ 83#endif // __C_GUI_FILE_OPEN_DIALOG_H_INCLUDED__
84 84