6
#ifndef __STATE_TEXTURE_CONTROL_H__
7
#define __STATE_TEXTURE_CONTROL_H__
9
#include "TextureToolControl.h"
12
#include "PositionSelectorControl.h"
13
#include "PropertyAdvisor.h"
14
#include "PositionSelectorBlackControl.h"
18
class StateTextureControl :
19
public TextureToolControl,
20
public PropertyAdvisor
23
StateTextureControl(MyGUI::Widget* _parent);
24
virtual ~StateTextureControl();
27
void onMouseButtonClick(const MyGUI::IntPoint& _point);
29
virtual void onChangeScale();
30
virtual void onChangeActivate();
33
void notifyChangePosition();
34
void notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index);
36
virtual void updateSkinProperties();
37
virtual void updateStateProperties();
39
virtual void updateSkinProperty(Property* _sender, const MyGUI::UString& _owner);
40
virtual void updateStateProperty(Property* _sender, const MyGUI::UString& _owner);
46
void updatePosition();
48
void updateSelectorsSize();
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);
54
void updateFromPointValue();
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);
68
PositionSelectorControl* mAreaSelectorControl;
70
MyGUI::UString mTypeName;
71
MyGUI::IntSize mSizeValue;
73
std::vector<PositionSelectorBlackControl*> mBlackSelectors;
74
MyGUI::IntPoint mPointValue;
79
#endif // __STATE_TEXTURE_CONTROL_H__