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

« back to all changes in this revision

Viewing changes to Tools/SkinEditor/RecentFilesManager.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           08/2010
5
 
*/
6
 
#ifndef __RECENT_FILES_MANAGER_H__
7
 
#define __RECENT_FILES_MANAGER_H__
8
 
 
9
 
#include <MyGUI.h>
10
 
 
11
 
namespace tools
12
 
{
13
 
        class RecentFilesManager :
14
 
                public MyGUI::Singleton<RecentFilesManager>
15
 
        {
16
 
        public:
17
 
                typedef std::vector<MyGUI::UString> VectorUString;
18
 
 
19
 
                RecentFilesManager();
20
 
                virtual ~RecentFilesManager();
21
 
 
22
 
                void initialise();
23
 
                void shutdown();
24
 
 
25
 
                void addRecentFolder(const MyGUI::UString& _folder);
26
 
                const VectorUString& getRecentFolders() const;
27
 
 
28
 
                void setRecentFolder(const MyGUI::UString& _value);
29
 
                const MyGUI::UString& getRecentFolder() const;
30
 
 
31
 
                void addRecentFile(const MyGUI::UString& _fileName);
32
 
                const VectorUString& getRecentFiles() const;
33
 
 
34
 
        private:
35
 
                void checkArray(VectorUString& _array, size_t _maxElements);
36
 
 
37
 
        private:
38
 
                MyGUI::UString mRecentFolder;
39
 
                VectorUString mRecentFolders;
40
 
                size_t mMaxRecentFolders;
41
 
                VectorUString mRecentFiles;
42
 
                size_t mMaxRecentFiles;
43
 
        };
44
 
 
45
 
} // namespace tools
46
 
 
47
 
#endif // __RECENT_FILES_MANAGER_H__