47 #include <wx/srchctrl.h>
48 #include <wx/choice.h>
56 #define DICTIONARY_MAX_SIZE 50
59 const wxPoint& pos,
const wxSize&
size,
60 long style,
const wxValidator& validator,
64 , m_bDoSelectAll(
false)
65 , m_bIgnoreNextTextEdit(
false)
74 const wxValidator& validator,
78 , m_bDoSelectAll(
false)
79 , m_bIgnoreNextTextEdit(
false)
113 if (GetCount()) Delete(0);
127 : m_ActiveContext(
NULL),
138 int feat_type = item.
GetType();
195 vector<string> context_names;
209 vector<IDataMiningContext*> all_contexts;
212 for(
size_t i = 0;
i < all_contexts.size();
i++ ) {
226 bool bEnable =
false;
245 combo->Append(
wxT(
"All Searchable Contexts (") +
253 if (cname.length() > 40) {
254 cname = cname.substr(0, 40) +
"...";
259 combo->Select((
int)(
i+1));
320 if (wVal !=
m_Text->GetValue())
void SetBaseItems(const wxArrayString &choices)
virtual IDataMiningContext * GetLastActiveContext()
virtual void GetContexts(TContexts &contexts)
CFeatListItem - basic configuration data for one "feature" type.
string GetDescription() const
CConfigurableItems - a static list of items that can be configured.
void SetRegistryPath(const string &rpath)
void GetSelected(TFeatTypeItemSet &feat_types)
void SetSelected(TFeatTypeItemSet &feat_types)
static CGuiRegistry & GetInstance()
access the application-wide singleton
void SetDictionary(list< string > *dict)
CSearchControl(wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxSearchCtrlNameStr)
A variant of IDMSearchQuery with a dummy search string (not advised for real use)
static const CFeatList * GetFeatList()
IDataMiningContext IDataMiningContext represents an abstract context for a Search.
virtual string GetDMContextName()=0
returns Name of the context to be used in UI
virtual CRef< objects::CSeq_loc > GetSearchLoc()=0
bool operator()(string str)
iterator_bool insert(const value_type &val)
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
bool Empty(void) const THROWS_NONE
Check if CRef is empty – not pointing to any object, which means having a null value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string SizetToString(size_t value, TNumToStringFlags flags=0, int base=10)
Convert size_t to string.
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)