Irrlicht 3D Engine
IGUIFileOpenDialog.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_GUI_FILE_OPEN_DIALOG_H_INCLUDED__
6 #define __I_GUI_FILE_OPEN_DIALOG_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 #include "path.h"
10 
11 namespace irr
12 {
13 namespace gui
14 {
15 
17 
25  {
26  public:
27 
29  IGUIFileOpenDialog(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
30  : IGUIElement(EGUIET_FILE_OPEN_DIALOG, environment, parent, id, rectangle) {}
31 
33  virtual const wchar_t* getFileName() const = 0;
34 
36  virtual const io::path& getDirectoryName() = 0;
37  };
38 
39 
40 } // end namespace gui
41 } // end namespace irr
42 
43 #endif
44 
path.h
irr::gui::IGUIFileOpenDialog::getDirectoryName
virtual const io::path & getDirectoryName()=0
Returns the directory of the selected file. Returns NULL, if no directory was selected.
irr::gui::IGUIFileOpenDialog
Standard file chooser dialog.
Definition: IGUIFileOpenDialog.h:24
irr::gui::IGUIFileOpenDialog::IGUIFileOpenDialog
IGUIFileOpenDialog(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition: IGUIFileOpenDialog.h:29
irr::s32
signed int s32
32 bit signed variable.
Definition: irrTypes.h:66
IGUIElement.h
irr::core::string< fschar_t >
irr::gui::EGUIET_FILE_OPEN_DIALOG
@ EGUIET_FILE_OPEN_DIALOG
A file open dialog (IGUIFileOpenDialog)
Definition: EGUIElementTypes.h:38
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
irr::core::rect< s32 >
irr::gui::IGUIFileOpenDialog::getFileName
virtual const wchar_t * getFileName() const =0
Returns the filename of the selected file. Returns NULL, if no file was selected.
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition: IGUIEnvironment.h:70
irr::gui::IGUIElement
Base class of all GUI elements.
Definition: IGUIElement.h:25