7
#ifndef _31513eda_9f1b_4986_a5a5_466942db581b_
8
#define _31513eda_9f1b_4986_a5a5_466942db581b_
10
#include "TextureToolControl.h"
16
class MYGUI_EXPORT_DLL ScopeTextureControl :
17
public TextureToolControl
20
ScopeTextureControl();
21
virtual ~ScopeTextureControl();
23
enum SelectorType { SelectorNone, SelectorCoord, SelectorPosition, SelectorPositionReadOnly, SelectorOffsetH, SelectorOffsetV };
25
void setCoordValue(const MyGUI::IntCoord& _value, SelectorType _type);
26
void clearCoordValue();
28
typedef std::pair<MyGUI::IntCoord, SelectorType> PairCoordType;
29
typedef std::vector<PairCoordType> VectorCoord;
30
void setViewSelectors(const VectorCoord& _selectors);
31
void clearViewSelectors();
35
sigslot::signal1<const std::string&> eventChangeValue;
38
virtual void OnInitialise(Control* _parent, MyGUI::Widget* _place, const std::string& _layoutName);
40
virtual void onMouseButtonClick(const MyGUI::IntPoint& _point);
42
virtual void onChangeScale();
45
void notifyChangeSelection();
46
void notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index);
47
void notifyChangePosition(SelectorControl* _sender);
49
void updateFromCoordValue();
51
void CommandMoveLeft(const MyGUI::UString& _commandName, bool& _result);
52
void CommandMoveRight(const MyGUI::UString& _commandName, bool& _result);
53
void CommandMoveTop(const MyGUI::UString& _commandName, bool& _result);
54
void CommandMoveBottom(const MyGUI::UString& _commandName, bool& _result);
55
void CommandGridMoveLeft(const MyGUI::UString& _commandName, bool& _result);
56
void CommandGridMoveRight(const MyGUI::UString& _commandName, bool& _result);
57
void CommandGridMoveTop(const MyGUI::UString& _commandName, bool& _result);
58
void CommandGridMoveBottom(const MyGUI::UString& _commandName, bool& _result);
60
void CommandSizeLeft(const MyGUI::UString& _commandName, bool& _result);
61
void CommandSizeRight(const MyGUI::UString& _commandName, bool& _result);
62
void CommandSizeTop(const MyGUI::UString& _commandName, bool& _result);
63
void CommandSizeBottom(const MyGUI::UString& _commandName, bool& _result);
64
void CommandGridSizeLeft(const MyGUI::UString& _commandName, bool& _result);
65
void CommandGridSizeRight(const MyGUI::UString& _commandName, bool& _result);
66
void CommandGridSizeTop(const MyGUI::UString& _commandName, bool& _result);
67
void CommandGridSizeBottom(const MyGUI::UString& _commandName, bool& _result);
71
void setValue(const std::string& _value);
73
typedef std::pair<SelectorControl*, SelectorType> PairSelectorType;
74
typedef std::vector<PairSelectorType> VectorSelector;
75
SelectorControl* getFreeSelector(VectorSelector& _selectors, bool _backType, SelectorType _type, bool& _changes);
78
SelectorControl* mCurrentSelectorControl;
79
SelectorType mCurrentSelectorType;
81
MyGUI::IntCoord mCoordValue;
83
VectorSelector mBlackSelectors;
84
VectorSelector mSelectors;