]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIPackageBrowser2.cxx
#3517 Transform box with manual matrix
[bbtk.git] / kernel / src / bbtkWxGUIPackageBrowser2.cxx
index 0193bb3a55ec8145d9d18a2f6618b2e255c2b12a..29b5b83819e7f79827322495b23527c5f85a77ef 100644 (file)
@@ -261,7 +261,7 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
          info.m_itemId = event.m_itemIndex;
          info.m_col = 0;
          info.m_mask = wxLIST_MASK_DATA;
-         wxString sendtext(_T(""));
+      wxString sendtext(_T(""));
          if ( GetItem(info) )
          {
                  // TO DO : STORE SMART PTR ?
@@ -271,16 +271,19 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
                      //DFGO -> To identify it is a box
                      sendtext += crea::std2wx("box:");
                      sendtext += crea::std2wx(d->GetFullTypeName());
+                     sendtext += _T("<EndEED>");
+//              printf("EED WxGUIBlackBoxList::OnBeginDrag <%s>%d  <%s>%d\n",  (const char*)sendtext.mb_str(),sendtext.Len() ,  d->GetFullTypeName().c_str() , d->GetFullTypeName().length() );
                  }
-         }
-         else
-         {
+
+      } else {
                  wxFAIL_MSG(wxT("wxListCtrl::GetItem() failed"));
          }
 
          wxTextDataObject tdo(sendtext);
+//      printf("EED WxGUIBlackBoxList::OnBeginDrag <%s>\n",(const char*) tdo.GetText().mb_str() );
+
          wxDropSource tds(tdo, this);
-         tds.DoDragDrop();
+         tds.DoDragDrop( );
 
     //    const wxPoint& pt = event.m_pointDrag;
 
@@ -1096,8 +1099,8 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
 
     bool ok=false;
     int i,size;
-    std::string strAA=strA;
-    std::string strBB=strB;
+    std::string strAA = strA;
+    std::string strBB = strB;
 
 
     size=strAA.length();
@@ -1278,6 +1281,15 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
   }
   //========================================================================
 
+
+std::string WxGUIPackageBrowser2::GetNameFilter()
+{
+    std::string s = wx2std( mNameFilter->GetValue() );
+    return s;
+}
+
+
+
   //========================================================================
   BEGIN_EVENT_TABLE(WxGUIPackageBrowser2, wxPanel)
 //EED    EVT_TEXT_ENTER(id_f1, WxGUIPackageBrowser2::OnFilter )
@@ -1339,6 +1351,7 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
   }
   //================================================================
 
+
 } // namespace bbtk