6
#ifndef __TEXTURE_BROWSE_CONTROL_H__
7
#define __TEXTURE_BROWSE_CONTROL_H__
10
#include "Tools/Dialog.h"
11
#include "ItemBox/BaseItemBox.h"
12
#include "TextureBrowseCell.h"
16
ATTRIBUTE_CLASS_LAYOUT(TextureBrowseControl, "TextureBrowseControl.layout");
17
class TextureBrowseControl :
21
TextureBrowseControl();
22
virtual ~TextureBrowseControl();
24
const std::string& getTextureName() const;
25
void setTextureName(const std::string& _value);
27
void setTextures(const MyGUI::VectorString& _textures);
30
virtual void onDoModal();
31
virtual void onEndModal();
34
void notifyMouseButtonClickOk(MyGUI::Widget* _sender);
35
void notifyMouseButtonClickCancel(MyGUI::Widget* _sender);
36
void notifyWindowButtonPressed(MyGUI::Window* _sender, const std::string& _name);
37
void notifyChangeItemPosition(MyGUI::ItemBox* _sender, size_t _index);
40
ATTRIBUTE_FIELD_WIDGET_NAME(TextureBrowseControl, mOk, "OK");
43
ATTRIBUTE_FIELD_WIDGET_NAME(TextureBrowseControl, mCancel, "Cancel");
44
MyGUI::Button* mCancel;
46
wraps::BaseItemBox<TextureBrowseCell>* mTextures;
48
std::string mCurrentTextureName;
53
#endif // __TEXTURE_BROWSE_CONTROL_H__