6
#ifndef __OPEN_SAVE_FILE_DIALOG_H__
7
#define __OPEN_SAVE_FILE_DIALOG_H__
14
class OpenSaveFileDialog :
20
void setDialogInfo(const MyGUI::UString& _caption, const MyGUI::UString& _button, bool _folderMode = false);
22
void setCurrentFolder(const MyGUI::UString& _value);
23
const MyGUI::UString& getCurrentFolder() const;
25
void setFileName(const MyGUI::UString& _value);
26
const MyGUI::UString& getFileName() const;
28
const MyGUI::UString& getMode() const;
29
void setMode(const MyGUI::UString& _value);
31
typedef std::vector<MyGUI::UString> VectorUString;
32
void setRecentFolders(const VectorUString& _listFolders);
34
void setFileMask(const MyGUI::UString& _value);
35
const MyGUI::UString& getFileMask() const;
38
virtual void onDoModal();
39
virtual void onEndModal();
42
void notifyWindowButtonPressed(MyGUI::Window* _sender, const std::string& _name);
43
void notifyDirectoryComboAccept(MyGUI::ComboBox* _sender, size_t _index);
44
void notifyDirectoryComboChangePosition(MyGUI::ComboBox* _sender, size_t _index);
45
void notifyListChangePosition(MyGUI::ListBox* _sender, size_t _index);
46
void notifyListSelectAccept(MyGUI::ListBox* _sender, size_t _index);
47
void notifyEditSelectAccept(MyGUI::EditBox* _sender);
48
void notifyMouseButtonClick(MyGUI::Widget* _sender);
49
void notifyUpButtonClick(MyGUI::Widget* _sender);
57
MyGUI::Window* mWindow;
58
MyGUI::ListBox* mListFiles;
59
MyGUI::EditBox* mEditFileName;
60
MyGUI::Button* mButtonUp;
61
MyGUI::ComboBox* mCurrentFolderField;
62
MyGUI::Button* mButtonOpenSave;
64
MyGUI::UString mCurrentFolder;
65
MyGUI::UString mFileName;
66
MyGUI::UString mFileMask;
74
#endif // __OPEN_SAVE_FILE_DIALOG_H__