wxPoint& pos,
constwxSize&
size,
60 longstyle,
constwxValidator& validator,
64, m_bDoSelectAll(
false)
65, m_bIgnoreNextTextEdit(
false)
74 constwxValidator& validator,
78, m_bDoSelectAll(
false)
79, m_bIgnoreNextTextEdit(
false)
113 if(GetCount()) Delete(0);
127: m_ActiveContext(
NULL),
128m_Controller(
NULL),
138 intfeat_type = item.
GetType();
195vector<string> context_names;
209vector<IDataMiningContext*> all_contexts;
212 for(
size_t i= 0;
i< all_contexts.size();
i++ ) {
226 boolbEnable =
false;
245combo->Append(
wxT(
"All Searchable Contexts (") +
247 wxT(
" available)"));
252 stringcname =
m_Contexts[
i]->GetDMContextName();
253 if(cname.length() > 40) {
254cname = cname.substr(0, 40) +
"...";
259combo->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)
virtual CIRef< IDMSearchQuery > ConstructQuery()
virtual wxSizer * GetWidget(wxWindow *parent)
return a widget associated with the form; the form controls the lifetime of the widget (do not delete...
virtual IDMSearchTool * x_GetTool()=0
virtual void x_SaveSettings(CRegistryWriteView) const =0
virtual void x_LoadSettings(const CRegistryReadView &)=0
virtual void SetController(IDMSearchFormController *controller)
virtual void SaveSettings() const
IDMSearchFormController * m_Controller
virtual void UpdateContexts()
updates m_ContextCombo
virtual void SetDictionary(list< string > *ddd)
virtual void SetRegistryPath(const string ®_path)
IDataMiningContext * m_ActiveContext
void UpdateContextCombo(wxChoice *combo)
TFeatTypeItemSet m_FeatTypesSet
virtual string GetMainValue()
get/set main search value, this is separate from settings
virtual ~CSearchFormBase()
vector< IDataMiningContext * > TContexts
virtual void SetRangeLimit(bool bLimit)
virtual void SetMainValue(string val)
virtual void PopupADialog(TDialogType dt)
TODO this function should be here - it should be move the the form that needs this dialog.
virtual void LoadSettings()
CSearchFormBase()
CSearchFormBase.
A variant of IDMSearchQuery with a dummy search string (not advised for real use)
static const CFeatList * GetFeatList()
IDMSearchFormController - interface representing an entity that controls the lifecycle of search Form...
virtual CDataMiningService * GetDataMiningService()=0
virtual void OnSearchEnabled(bool)
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
#define DICTIONARY_MAX_SIZE
CSearchFormBase.
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4