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

« back to all changes in this revision

Viewing changes to Plugins/Plugin_StrangeButton/Plugin.cpp

  • 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         Denis Koronchik
4
 
        @date           09/2007
5
 
*/
6
 
 
7
 
#include "Plugin.h"
8
 
#include "MyGUI_LogManager.h"
9
 
#include "MyGUI_FactoryManager.h"
10
 
#include "StrangeButton.h"
11
 
 
12
 
namespace plugin
13
 
{
14
 
 
15
 
        const std::string Plugin::LogSection = "Plugin";
16
 
 
17
 
        Plugin::Plugin()
18
 
        {
19
 
        }
20
 
 
21
 
        Plugin::~Plugin()
22
 
        {
23
 
        }
24
 
 
25
 
        void Plugin::install()
26
 
        {
27
 
        }
28
 
 
29
 
        void Plugin::uninstall()
30
 
        {
31
 
        }
32
 
 
33
 
        void Plugin::initialize()
34
 
        {
35
 
                MYGUI_LOGGING(LogSection, Info, "initialize");
36
 
 
37
 
                // создаем фабрики
38
 
                MyGUI::FactoryManager::getInstance().registerFactory<StrangeButton>("Widget");
39
 
        }
40
 
 
41
 
        void Plugin::shutdown()
42
 
        {
43
 
                MYGUI_LOGGING(LogSection, Info, "shutdown");
44
 
 
45
 
                // удаляем фабрику
46
 
                MyGUI::FactoryManager::getInstance().unregisterFactory<StrangeButton>("Widget");
47
 
        }
48
 
 
49
 
        const std::string& Plugin::getName() const
50
 
        {
51
 
                static std::string type("Plugin");
52
 
                return type;
53
 
        }
54
 
 
55
 
} // namespace plugin
 
1
/*!
 
2
        @file
 
3
        @author         Denis Koronchik
 
4
        @date           09/2007
 
5
*/
 
6
 
 
7
#include "Plugin.h"
 
8
#include "MyGUI_LogManager.h"
 
9
#include "MyGUI_FactoryManager.h"
 
10
#include "StrangeButton.h"
 
11
 
 
12
namespace plugin
 
13
{
 
14
 
 
15
        const std::string Plugin::LogSection = "Plugin";
 
16
 
 
17
        Plugin::Plugin()
 
18
        {
 
19
        }
 
20
 
 
21
        Plugin::~Plugin()
 
22
        {
 
23
        }
 
24
 
 
25
        void Plugin::install()
 
26
        {
 
27
        }
 
28
 
 
29
        void Plugin::uninstall()
 
30
        {
 
31
        }
 
32
 
 
33
        void Plugin::initialize()
 
34
        {
 
35
                MYGUI_LOGGING(LogSection, Info, "initialize");
 
36
 
 
37
                // создаем фабрики
 
38
                MyGUI::FactoryManager::getInstance().registerFactory<StrangeButton>("Widget");
 
39
        }
 
40
 
 
41
        void Plugin::shutdown()
 
42
        {
 
43
                MYGUI_LOGGING(LogSection, Info, "shutdown");
 
44
 
 
45
                // удаляем фабрику
 
46
                MyGUI::FactoryManager::getInstance().unregisterFactory<StrangeButton>("Widget");
 
47
        }
 
48
 
 
49
        const std::string& Plugin::getName() const
 
50
        {
 
51
                static std::string type("Plugin");
 
52
                return type;
 
53
        }
 
54
 
 
55
} // namespace plugin