MyGUI::DDContainer Class Reference

#include <MyGUI_DDContainer.h>

Inheritance diagram for MyGUI::DDContainer:
Inheritance graph
[legend]

Public Member Functions

 DDContainer ()
void setNeedDragDrop (bool _value)
bool getNeedDragDrop ()
virtual void setProperty (const std::string &_key, const std::string &_value)
virtual void _setContainerItemInfo (size_t _index, bool _set, bool _accept)
virtual void _initialise (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, WidgetPtr _parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name)

Data Fields

delegates::CDelegate3
< DDContainerPtr, const
DDItemInfo &, bool & > 
eventStartDrag
delegates::CDelegate3
< DDContainerPtr, const
DDItemInfo &, bool & > 
eventRequestDrop
delegates::CDelegate3
< DDContainerPtr, const
DDItemInfo &, bool > 
eventDropResult
delegates::CDelegate2
< DDContainerPtr, DDItemState
eventChangeDDState
delegates::CDelegate3
< DDContainerPtr, WidgetPtr
&, IntCoord & > 
requestDragWidgetInfo
EventPair
< EventHandle_WidgetVoid,
delegates::CDelegate1
< DDContainerPtr > > 
_eventInvalideContainer
delegates::CDelegate3
< DDContainerPtr, WidgetPtr,
const DDWidgetState & > 
eventUpdateDropState

Protected Member Functions

virtual ~DDContainer ()
void baseChangeWidgetSkin (ResourceSkin *_info)
virtual void onMouseButtonPressed (int _left, int _top, MouseButton _id)
virtual void onMouseButtonReleased (int _left, int _top, MouseButton _id)
virtual void onMouseDrag (int _left, int _top)
virtual void notifyInvalideDrop (DDContainerPtr _sender)
virtual void _getContainer (WidgetPtr &_container, size_t &_index)
virtual void removeDropItems ()
virtual void updateDropItems ()
virtual void updateDropItemsState (const DDWidgetState &_state)
void mouseDrag ()
void mouseButtonReleased (MouseButton _id)
void mouseButtonPressed (MouseButton _id)
void endDrop (bool _reset)

Protected Attributes

bool mDropResult
bool mNeedDrop
bool mStartDrop
WidgetPtr mOldDrop
WidgetPtr mCurrentSender
DDItemInfo mDropInfo
size_t mDropSenderIndex
WidgetPtr mDropItem
IntCoord mDropDimension
IntPoint mClickInWidget
bool mNeedDragDrop
DDContainerPtr mReseiverContainer

Detailed Description

Definition at line 34 of file MyGUI_DDContainer.h.


Constructor & Destructor Documentation

MyGUI::DDContainer::DDContainer (  ) 

Definition at line 31 of file MyGUI_DDContainer.cpp.

MyGUI::DDContainer::~DDContainer (  )  [protected, virtual]

Definition at line 51 of file MyGUI_DDContainer.cpp.


Member Function Documentation

void MyGUI::DDContainer::_getContainer ( WidgetPtr _container,
size_t &  _index 
) [protected, virtual]

Definition at line 277 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::_initialise ( WidgetStyle  _style,
const IntCoord _coord,
Align  _align,
ResourceSkin _info,
WidgetPtr  _parent,
ICroppedRectangle _croppedParent,
IWidgetCreator _creator,
const std::string &  _name 
) [virtual]

Reimplemented in MyGUI::ItemBox, MyGUI::ListBox, and MyGUI::ListCtrl.

Definition at line 44 of file MyGUI_DDContainer.cpp.

virtual void MyGUI::DDContainer::_setContainerItemInfo ( size_t  _index,
bool  _set,
bool  _accept 
) [inline, virtual]

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 100 of file MyGUI_DDContainer.h.

void MyGUI::DDContainer::baseChangeWidgetSkin ( ResourceSkin _info  )  [protected, virtual]

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox, MyGUI::ListBox, and MyGUI::ListCtrl.

Definition at line 56 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::endDrop ( bool  _reset  )  [protected]

Definition at line 223 of file MyGUI_DDContainer.cpp.

bool MyGUI::DDContainer::getNeedDragDrop (  )  [inline]

Get drag'n'drop mode flag

Definition at line 47 of file MyGUI_DDContainer.h.

void MyGUI::DDContainer::mouseButtonPressed ( MouseButton  _id  )  [protected]

Definition at line 95 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::mouseButtonReleased ( MouseButton  _id  )  [protected]

Definition at line 115 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::mouseDrag (  )  [protected]

Definition at line 122 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::notifyInvalideDrop ( DDContainerPtr  _sender  )  [protected, virtual]

Definition at line 272 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::onMouseButtonPressed ( int  _left,
int  _top,
MouseButton  _id 
) [protected, virtual]

Reimplemented from MyGUI::WidgetEvent.

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 71 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::onMouseButtonReleased ( int  _left,
int  _top,
MouseButton  _id 
) [protected, virtual]

Reimplemented from MyGUI::WidgetEvent.

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 81 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::onMouseDrag ( int  _left,
int  _top 
) [protected, virtual]

Reimplemented from MyGUI::WidgetEvent.

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 88 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::removeDropItems (  )  [protected, virtual]

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 246 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::setNeedDragDrop ( bool  _value  )  [inline]

Set drag'n'drop mode flag. Disabled (false) by default.

Definition at line 45 of file MyGUI_DDContainer.h.

void MyGUI::DDContainer::setProperty ( const std::string &  _key,
const std::string &  _value 
) [virtual]

Reimplemented from MyGUI::Widget.

Definition at line 283 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::updateDropItems (  )  [protected, virtual]

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 251 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::updateDropItemsState ( const DDWidgetState _state  )  [protected, virtual]

Reimplemented in MyGUI::ItemBox, and MyGUI::ListCtrl.

Definition at line 267 of file MyGUI_DDContainer.cpp.


Field Documentation

Event : внутреннее событие, невалидна информация для контейнера signature : void method(MyGUI::DDContainerPtr _sender)

Parameters:
_sender widget that called this event

Definition at line 109 of file MyGUI_DDContainer.h.

Event : drag'n'drop state changed signature : void method(MyGUI::DDContainerPtr _sender, MyGUI::DDItemState _state)

Parameters:
_sender widget that called this event
_state new state

Definition at line 86 of file MyGUI_DDContainer.h.

Event : end drag (drop) signature : void method(MyGUI::DDContainerPtr _sender, const MyGUI::DDItemInfo& _info, bool _result)

Parameters:
_sender widget that called this event
_info information about DDContainers
_result if true then drop was successfull

Definition at line 78 of file MyGUI_DDContainer.h.

Event : request for start drag (moving mouse over container, but not dropped yet) signature : void method(MyGUI::DDContainerPtr _sender, const MyGUI::DDItemInfo& _info, bool& _result)

Parameters:
_sender widget that called this event
_info information about DDContainers
_result write here true if container accept dragged widget or false if it isn't

Definition at line 69 of file MyGUI_DDContainer.h.

Event : request for start drag signature : void method(MyGUI::DDContainerPtr _sender, const MyGUI::DDItemInfo& _info, bool& _result)

Parameters:
_sender widget that called this event
_info information about DDContainers
_result write here true if container can be draggedor false if it can't

Definition at line 60 of file MyGUI_DDContainer.h.

Event : !!обновить виджеты дропа DD_FIXME наверное internal signature : void method(MyGUI::DDContainerPtr _sender, MyGUI::WidgetPtr _item, const MyGUI::DDWidgetState& _state)

Parameters:
_sender widget that called this event
_items 
_state 

Definition at line 118 of file MyGUI_DDContainer.h.

Definition at line 164 of file MyGUI_DDContainer.h.

Definition at line 154 of file MyGUI_DDContainer.h.

Definition at line 162 of file MyGUI_DDContainer.h.

Definition at line 156 of file MyGUI_DDContainer.h.

Definition at line 161 of file MyGUI_DDContainer.h.

Definition at line 149 of file MyGUI_DDContainer.h.

Definition at line 158 of file MyGUI_DDContainer.h.

Definition at line 167 of file MyGUI_DDContainer.h.

Definition at line 150 of file MyGUI_DDContainer.h.

Definition at line 153 of file MyGUI_DDContainer.h.

Definition at line 169 of file MyGUI_DDContainer.h.

Definition at line 151 of file MyGUI_DDContainer.h.

Event : [not used] request widget for dragging signature : void method(MyGUI::DDContainerPtr _sender, MyGUI::WidgetPtr& _item, MyGUI::IntCoord& _dimension)

Parameters:
_sender widget that called this event
_item write widget pointer here
_dimension write widget coordinate here

Definition at line 95 of file MyGUI_DDContainer.h.


The documentation for this class was generated from the following files:

Generated on 3 Dec 2009 for MyGUI by  doxygen 1.6.1