+ std::cout<<"RaC DRAG TABLE"<<std::endl;
+ wxString text = this->GetItemText(event.GetIndex());
+ wxListItem info;
+ info.m_itemId = event.m_itemIndex;
+ info.m_col = 0;
+ info.m_mask = wxLIST_MASK_DATA;
+ if ( GetItem(info) )
+ {
+ // TO DO : STORE SMART PTR ?
+ BlackBoxDescriptor* d = (BlackBoxDescriptor*)(info.GetData());
+ if (d!=0)
+ {
+ //mUser->WxGUIBlackBoxListUserOnSelected(d);
+ text = d->GetAuthor();
+ }
+ }
+ else
+ {
+ wxFAIL_MSG(wxT("wxListCtrl::GetItem() failed"));
+ }
+
+
+ wxTextDataObject tdo(wxString::Format("%s %d",text,123456));
+ wxDropSource tds(tdo, this);
+ tds.DoDragDrop();