| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- $#include "FileSelector.h"
- struct FileSelectorEntry
- {
- String name_ @ name;
- bool directory_ @ directory;
- };
- class FileSelector : public Object
- {
- FileSelector(Context* context);
- virtual ~FileSelector();
- void SetDefaultStyle(XMLFile* style);
-
- void SetTitle(const String& text);
- void SetTitle(const char* text);
-
- void SetButtonTexts(const String& okText, const String& cancelText);
- void SetButtonTexts(const char* okText, const char* cancelText);
-
- void SetPath(const String& path);
- void SetPath(const char* path);
-
- void SetFileName(const String& fileName);
- void SetFileName(const char* fileName);
-
- void SetFilters(const Vector<String>& filters, unsigned defaultIndex);
- void SetDirectoryMode(bool enable);
- void UpdateElements();
- XMLFile* GetDefaultStyle() const;
- Window* GetWindow() const;
- Text* GetTitleText() const;
- ListView* GetFileList() const;
- LineEdit* GetPathEdit() const;
- LineEdit* GetFileNameEdit() const;
- DropDownList* GetFilterList() const;
- Button* GetOKButton() const;
- Button* GetCancelButton() const;
- Button* GetCloseButton() const;
- const String& GetTitle() const;
- const String& GetPath() const;
- const String& GetFileName() const;
- const String& GetFilter() const;
- unsigned GetFilterIndex() const;
- bool GetDirectoryMode() const;
-
- tolua_property__get_set XMLFile* defaultStyle;
- tolua_readonly tolua_property__get_set Window* window;
- tolua_readonly tolua_property__get_set Text* titleText;
- tolua_readonly tolua_property__get_set ListView* fileList;
- tolua_readonly tolua_property__get_set LineEdit* pathEdit;
- tolua_readonly tolua_property__get_set LineEdit* fileNameEdit;
- tolua_readonly tolua_property__get_set DropDownList* filterList;
- tolua_readonly tolua_property__get_set Button* OKButton;
- tolua_readonly tolua_property__get_set Button* cancelButton;
- tolua_readonly tolua_property__get_set Button* closeButton;
- tolua_property__get_set String& title;
- tolua_property__get_set String& path;
- tolua_property__get_set String& fileName;
- tolua_readonly tolua_property__get_set String& filter;
- tolua_readonly tolua_property__get_set unsigned filterIndex;
- tolua_property__get_set bool directoryMode;
- };
|