From 0d2a41be6bba99d0d60681b51d29a24d8edfcfc6 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 23 Nov 2022 09:13:44 +0100 Subject: [PATCH] #3491 GetNameFilter --- kernel/src/bbtkWxGUIPackageBrowser2.cxx | 14 ++++++++++++-- kernel/src/bbtkWxGUIPackageBrowser2.h | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/kernel/src/bbtkWxGUIPackageBrowser2.cxx b/kernel/src/bbtkWxGUIPackageBrowser2.cxx index 67b4685..29b5b83 100644 --- a/kernel/src/bbtkWxGUIPackageBrowser2.cxx +++ b/kernel/src/bbtkWxGUIPackageBrowser2.cxx @@ -1099,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(); @@ -1281,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 ) @@ -1342,6 +1351,7 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData) } //================================================================ + } // namespace bbtk diff --git a/kernel/src/bbtkWxGUIPackageBrowser2.h b/kernel/src/bbtkWxGUIPackageBrowser2.h index 762f78b..d35753f 100644 --- a/kernel/src/bbtkWxGUIPackageBrowser2.h +++ b/kernel/src/bbtkWxGUIPackageBrowser2.h @@ -224,6 +224,9 @@ private: BlackBoxDescriptor* GetActualSelected(); Factory::Pointer GetFactory(); + //EED 2022-10-28 + std::string GetNameFilter(); + private: wxAuiManager m_mgr; WxGUIPackageBrowser2User* mUser; -- 2.47.1