~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Common/Tools/OpenSaveFileDialog.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           09/2008
5
 
*/
6
 
#ifndef __OPEN_SAVE_FILE_DIALOG_H__
7
 
#define __OPEN_SAVE_FILE_DIALOG_H__
8
 
 
9
 
#include <MyGUI.h>
10
 
#include "Dialog.h"
11
 
 
12
 
namespace tools
13
 
{
14
 
        class OpenSaveFileDialog :
15
 
                public Dialog
16
 
        {
17
 
        public:
18
 
                OpenSaveFileDialog();
19
 
 
20
 
                void setDialogInfo(const MyGUI::UString& _caption, const MyGUI::UString& _button, bool _folderMode = false);
21
 
 
22
 
                void setCurrentFolder(const MyGUI::UString& _value);
23
 
                const MyGUI::UString& getCurrentFolder() const;
24
 
 
25
 
                void setFileName(const MyGUI::UString& _value);
26
 
                const MyGUI::UString& getFileName() const;
27
 
 
28
 
                const MyGUI::UString& getMode() const;
29
 
                void setMode(const MyGUI::UString& _value);
30
 
 
31
 
                typedef std::vector<MyGUI::UString> VectorUString;
32
 
                void setRecentFolders(const VectorUString& _listFolders);
33
 
 
34
 
                void setFileMask(const MyGUI::UString& _value);
35
 
                const MyGUI::UString& getFileMask() const;
36
 
 
37
 
        protected:
38
 
                virtual void onDoModal();
39
 
                virtual void onEndModal();
40
 
 
41
 
        private:
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);
50
 
 
51
 
                void update();
52
 
                void accept();
53
 
 
54
 
                void upFolder();
55
 
 
56
 
        private:
57
 
                MyGUI::Window* mWindow;
58
 
                MyGUI::ListBox* mListFiles;
59
 
                MyGUI::EditBox* mEditFileName;
60
 
                MyGUI::Button* mButtonUp;
61
 
                MyGUI::ComboBox* mCurrentFolderField;
62
 
                MyGUI::Button* mButtonOpenSave;
63
 
 
64
 
                MyGUI::UString mCurrentFolder;
65
 
                MyGUI::UString mFileName;
66
 
                MyGUI::UString mFileMask;
67
 
 
68
 
                MyGUI::UString mMode;
69
 
                bool mFolderMode;
70
 
        };
71
 
 
72
 
} // namespace tools
73
 
 
74
 
#endif // __OPEN_SAVE_FILE_DIALOG_H__