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

« back to all changes in this revision

Viewing changes to Tools/LayoutEditor/WidgetTypes.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
 
#ifndef __WIDGET_TYPES_H__
2
 
#define __WIDGET_TYPES_H__
3
 
 
4
 
#include "SkinInfo.h"
5
 
#include "WidgetStyle.h"
6
 
#include "PossibleValue.h"
7
 
 
8
 
namespace tools
9
 
{
10
 
        class WidgetTypes :
11
 
                public MyGUI::Singleton<WidgetTypes>
12
 
        {
13
 
        public:
14
 
                void initialise();
15
 
                void shutdown();
16
 
 
17
 
                WidgetStyle* findWidgetStyle(const std::string& _type);
18
 
                WidgetStyle* findWidgetStyleBySkin(const std::string& _skinName);
19
 
                typedef std::vector<std::string> VectorString;
20
 
                VectorString findPossibleValues(const std::string& _name);
21
 
 
22
 
                void clearAllSkins();
23
 
 
24
 
                void addWidgetSkinType(const std::string& _type, const std::string& _skin, const std::string& _group, const std::string& _button_name);
25
 
 
26
 
                const SkinGroups& getSkinGroups() const;
27
 
 
28
 
                VectorWidgetType getWidgetTypes() const;
29
 
 
30
 
        private:
31
 
                void loadWidgets(MyGUI::xml::ElementPtr _node, const std::string& _file, MyGUI::Version _version);
32
 
                void loadValues(MyGUI::xml::ElementPtr _node, const std::string& _file, MyGUI::Version _version);
33
 
 
34
 
                WidgetStyle* getWidgetType(const std::string& _name);
35
 
 
36
 
                PossibleValue* getPossibleValue(const std::string& _name);
37
 
 
38
 
                void updateDeep();
39
 
                size_t updateDeep(WidgetStyle* _style);
40
 
 
41
 
        private:
42
 
                VectorWidgetType mWidgetTypes;
43
 
                SkinGroups mSkinGroups;
44
 
                VectorPossibleValue mPossibleValues;
45
 
        };
46
 
 
47
 
} // namespace tools
48
 
 
49
 
#endif // __WIDGET_TYPES_H__
 
1
#ifndef _65c6bab3_d7e3_4691_999e_653b8974ff23_
 
2
#define _65c6bab3_d7e3_4691_999e_653b8974ff23_
 
3
 
 
4
#include "SkinInfo.h"
 
5
#include "WidgetStyle.h"
 
6
#include "PossibleValue.h"
 
7
 
 
8
namespace tools
 
9
{
 
10
 
 
11
        class WidgetTypes :
 
12
                public MyGUI::Singleton<WidgetTypes>
 
13
        {
 
14
        public:
 
15
                void initialise();
 
16
                void shutdown();
 
17
 
 
18
                WidgetStyle* findWidgetStyle(const std::string& _type);
 
19
                WidgetStyle* findWidgetStyleBySkin(const std::string& _skinName);
 
20
                typedef std::vector<std::string> VectorString;
 
21
                VectorString findPossibleValues(const std::string& _name);
 
22
 
 
23
                void clearAllSkins();
 
24
 
 
25
                void addWidgetSkinType(const std::string& _type, const std::string& _skin, const std::string& _group, const std::string& _button_name);
 
26
 
 
27
                const SkinGroups& getSkinGroups() const;
 
28
 
 
29
                VectorWidgetType getWidgetTypes() const;
 
30
 
 
31
        private:
 
32
                void loadWidgets(MyGUI::xml::ElementPtr _node, const std::string& _file, MyGUI::Version _version);
 
33
                void loadValues(MyGUI::xml::ElementPtr _node, const std::string& _file, MyGUI::Version _version);
 
34
 
 
35
                WidgetStyle* getWidgetType(const std::string& _name);
 
36
 
 
37
                PossibleValue* getPossibleValue(const std::string& _name);
 
38
 
 
39
                void updateDepth();
 
40
                size_t updateDepth(WidgetStyle* _style);
 
41
 
 
42
        private:
 
43
                VectorWidgetType mWidgetTypes;
 
44
                SkinGroups mSkinGroups;
 
45
                VectorPossibleValue mPossibleValues;
 
46
        };
 
47
 
 
48
}
 
49
 
 
50
#endif