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

« back to all changes in this revision

Viewing changes to Tools/SkinEditor/StateTextureControl.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 __STATE_TEXTURE_CONTROL_H__
7
 
#define __STATE_TEXTURE_CONTROL_H__
8
 
 
9
 
#include "TextureToolControl.h"
10
 
#include "Property.h"
11
 
#include "SkinItem.h"
12
 
#include "PositionSelectorControl.h"
13
 
#include "PropertyAdvisor.h"
14
 
#include "PositionSelectorBlackControl.h"
15
 
 
16
 
namespace tools
17
 
{
18
 
        class StateTextureControl :
19
 
                public TextureToolControl,
20
 
                public PropertyAdvisor
21
 
        {
22
 
        public:
23
 
                StateTextureControl(MyGUI::Widget* _parent);
24
 
                virtual ~StateTextureControl();
25
 
 
26
 
        protected:
27
 
                void onMouseButtonClick(const MyGUI::IntPoint& _point);
28
 
 
29
 
                virtual void onChangeScale();
30
 
                virtual void onChangeActivate();
31
 
 
32
 
        private:
33
 
                void notifyChangePosition();
34
 
                void notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index);
35
 
 
36
 
                virtual void updateSkinProperties();
37
 
                virtual void updateStateProperties();
38
 
 
39
 
                virtual void updateSkinProperty(Property* _sender, const MyGUI::UString& _owner);
40
 
                virtual void updateStateProperty(Property* _sender, const MyGUI::UString& _owner);
41
 
 
42
 
                void updateTexture();
43
 
                void updateCoord();
44
 
 
45
 
                void updateVisible();
46
 
                void updatePosition();
47
 
 
48
 
                void updateSelectorsSize();
49
 
 
50
 
                void updateUnselectedStates();
51
 
                void addCoord(std::vector<MyGUI::IntCoord>& _coords, const MyGUI::UString& _coord, const MyGUI::UString& _position);
52
 
                void drawUnselectedStates(std::vector<MyGUI::IntCoord>& _coords);
53
 
 
54
 
                void updateFromPointValue();
55
 
 
56
 
                void CommandMoveLeft(const MyGUI::UString& _commandName, bool& _result);
57
 
                void CommandMoveRight(const MyGUI::UString& _commandName, bool& _result);
58
 
                void CommandMoveTop(const MyGUI::UString& _commandName, bool& _result);
59
 
                void CommandMoveBottom(const MyGUI::UString& _commandName, bool& _result);
60
 
                void CommandGridMoveLeft(const MyGUI::UString& _commandName, bool& _result);
61
 
                void CommandGridMoveRight(const MyGUI::UString& _commandName, bool& _result);
62
 
                void CommandGridMoveTop(const MyGUI::UString& _commandName, bool& _result);
63
 
                void CommandGridMoveBottom(const MyGUI::UString& _commandName, bool& _result);
64
 
 
65
 
                void updateCaption();
66
 
 
67
 
        private:
68
 
                PositionSelectorControl* mAreaSelectorControl;
69
 
 
70
 
                MyGUI::UString mTypeName;
71
 
                MyGUI::IntSize mSizeValue;
72
 
 
73
 
                std::vector<PositionSelectorBlackControl*> mBlackSelectors;
74
 
                MyGUI::IntPoint mPointValue;
75
 
        };
76
 
 
77
 
} // namespace tools
78
 
 
79
 
#endif // __STATE_TEXTURE_CONTROL_H__