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

« back to all changes in this revision

Viewing changes to Tools/LayoutEditor/CommandManager.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 __COMMAND_MANAGER_H__
7
 
#define __COMMAND_MANAGER_H__
8
 
 
9
 
#include <MyGUI.h>
10
 
 
11
 
namespace tools
12
 
{
13
 
        typedef MyGUI::delegates::CMultiDelegate2<const MyGUI::UString&, bool&> CommandDelegate;
14
 
 
15
 
        class CommandManager :
16
 
                public MyGUI::Singleton<CommandManager>
17
 
        {
18
 
        public:
19
 
                CommandManager();
20
 
                virtual ~CommandManager();
21
 
 
22
 
                void initialise();
23
 
                void shutdown();
24
 
 
25
 
                void registerCommand(const MyGUI::UString& _command, CommandDelegate::IDelegate* _delegate);
26
 
                void unregisterCommand(const MyGUI::UString& _command, CommandDelegate::IDelegate* _delegate);
27
 
 
28
 
                bool executeCommand(const MyGUI::UString& _command);
29
 
 
30
 
                void setCommandData(const MyGUI::UString& _data);
31
 
                const MyGUI::UString& getCommandData() const;
32
 
 
33
 
        private:
34
 
                typedef std::map<MyGUI::UString, CommandDelegate> MapDelegate;
35
 
                MapDelegate mDelegates;
36
 
                MyGUI::UString mData;
37
 
        };
38
 
 
39
 
} // namespace tools
40
 
 
41
 
#endif // __COMMAND_MANAGER_H__