Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser2.cxx,v $
Language: C++
- Date: $Date: 2010/04/28 22:19:59 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2010/05/03 12:39:44 $
+ Version: $Revision: 1.21 $
=========================================================================*/
/* ---------------------------------------------------------------------
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
-
/* \brief Short description in one line
*
* Long description which
//#include "wx/grid.h"
//#include <wx/statline.h>
+#include "creaWx.h"
+
#define LIST_CTRL 1000
EVT_RIGHT_DOWN(WxGUIBlackBoxList::OnRightClick)
END_EVENT_TABLE()
- int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData))
+ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData))
{
// inverse the order
if (item1 < item2)
return 0;
}
-
+
// WxGUIBlackBoxList
WxGUIBlackBoxList::WxGUIBlackBoxList(wxWindow *parent,
const wxWindowID id,
EnableContextMenu();
#endif
}
-
+
void WxGUIBlackBoxList::Insert(BlackBoxDescriptor::Pointer d)
{
if (GetColumnCount()!=3)
kNewItem.SetBackgroundColour(wxColour(192,192,192));
this->SetItem(kNewItem);
}
- */
-
+ */
}
{
std::cout<<"RaC DRAG TABLE"<<std::endl;
- wxString text(wxT(this->GetItemText(event.GetIndex())));
+ wxString text(this->GetItemText(event.GetIndex()));
wxListItem info;
info.m_itemId = event.m_itemIndex;
info.m_col = 0;
info.m_mask = wxLIST_MASK_DATA;
- wxString sendtext(wxT(""));
+ wxString sendtext(_T(""));
if ( GetItem(info) )
{
// TO DO : STORE SMART PTR ?
BlackBoxDescriptor* d = (BlackBoxDescriptor*)(info.GetData());
if (d!=0)
{
- sendtext += wxT(d->GetFullTypeName());
+ sendtext += crea::std2wx(d->GetFullTypeName());
}
}
else
wxFAIL_MSG(wxT("wxListCtrl::GetItem() failed"));
}
-
- wxTextDataObject tdo(wxT(sendtext));
+ wxTextDataObject tdo(sendtext);
wxDropSource tds(tdo, this);
tds.DoDragDrop();
-
// const wxPoint& pt = event.m_pointDrag;
//wxLogMessage( wxT("OnBeginDrag at (%d, %d), item %ld."),