Game Develop Core: FileProperty.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
FileProperty.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef GDCORE_FILEPROPERTY_H
7 #define GDCORE_FILEPROPERTY_H
8 #include <wx/control.h>
9 #include <wx/propgrid/propgrid.h>
10 #include <wx/propgrid/props.h>
11 #include <wx/propgrid/property.h>
12
13 namespace gd
14 {
15
28 class GD_CORE_API FileProperty : public wxLongStringProperty
29 {
30 public:
31 FileProperty(const wxString& label = wxPG_LABEL,
32 const wxString& name = wxPG_LABEL,
33 const wxString& value = wxEmptyString )
34 : wxLongStringProperty(label, name, value)
35 {};
36 virtual ~FileProperty() {};
37
38 virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
39 virtual bool OnButtonClick( wxPropertyGrid* propGrid, wxString& value );
40
41 private:
42 wxString basePath;
43 wxString initialPath;
44 wxString wildcard;
45 wxString dialogTitle;
46 };
47
48 }
49
50 #endif // GDCORE_FILEPROPERTY_H
51 #endif