NCBI C++ ToolKit
|
Search Toolkit Book for CQueryParsePanel
#include <gui/widgets/data/query_parse_panel.hpp>
Classes | |
class | CQueryJob |
Job class used to run query on separate thread. More... | |
Public Types | |
enum | ECommands { eCmdStartQuery =eBaseCmdLast + 2750 , eCmdStopQuery , eCmdSelQuery , eCmdNext , eCmdPrevious , eCmdCaseSensitive , eCmdHelp , eCmdFilter , eCmdStringMatchType , eCmdLast } |
typedef vector< pair< string, string > > | TNamedQueries |
Public Types inherited from CEventHandler | |
enum | EDispatch { eDispatch_SelfOnly , eDispatch_AllHandlers , eDispatch_FirstHandler , eDispatch_Default = eDispatch_AllHandlers } |
enum controlling dispatching strategies More... | |
enum | EPoolName { ePool_Default = 0 , ePool_Parent , ePool_Child , ePool_Sibling , ePool_NextAvailable } |
Identifiers for standard pools. More... | |
typedef vector< CEventHandler * > | TListeners |
typedef map< int, TListeners > | TPools |
typedef list< AutoPtr< SPostRequest > > | TPostRequests |
typedef std::map< CEventHandler *, int > | THandlerToCount |
typedef void(* | FOnPostCallback) () |
Public Member Functions | |
CQueryParsePanel (IQueryWidget *w, IQueryDataSource *ds=NULL) | |
Ctor requires a data source derived from IQueryDataSource and a view of that data source derived from IQueryWidget. More... | |
virtual | ~CQueryParsePanel () |
virtual void | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) |
Create window. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | SetDataSource (IQueryDataSource *ds) |
Set or update data source. More... | |
void | AddQueryText (const string &query_mod) |
Add given string to currently displayed query text. More... | |
void | CompleteQuery (CMacroQueryExec *qexec, const string &status) |
bool | IsSelectAll () |
Return true if select all checkbox is checked. More... | |
void | HideSelectAll (void) |
Hide the Select All checkbox. More... | |
void | SetDefaultQueries (const TNamedQueries &q) |
Set the set of default queries for the current data source. More... | |
TNamedQueries | GetDefaultQueries () const |
Retrieve the current defualt queries for the data source. More... | |
string | GetLastQuery () const |
Get the text for the most recently executed query. More... | |
void | OnIdle (wxIdleEvent &event) |
IRegSettings interface implementation | |
virtual void | SetRegistryPath (const string ®_path) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Command handlers | |
void | OnSearchctrlTextEnter (wxCommandEvent &evt) |
void | OnQuerySel (wxCommandEvent &evt) |
void | OnButtonNext (wxCommandEvent &evt) |
void | OnButtonPrevious (wxCommandEvent &evt) |
void | OnSearchctrlSearchButtonClick (wxCommandEvent &evt) |
void | OnCtrlKillFocus (wxFocusEvent &evt) |
void | OnSearchctrlSearchStop (wxCommandEvent &evt) |
void | OnSearchHelp (wxCommandEvent &evt) |
void | OnToggleSelectAll (wxCommandEvent &evt) |
void | OnToggleHideUnselected (wxCommandEvent &evt) |
void | OnContextMenu (wxContextMenuEvent &) |
void | OnRecentQuery (wxCommandEvent &evt) |
void | OnStringMatchTypeBtn (wxCommandEvent &evt) |
void | OnStringMatchTypeSelected (wxCommandEvent &evt) |
Public Member Functions inherited from CEventHandler | |
CEventHandler () | |
CEventHandler. More... | |
virtual | ~CEventHandler () |
virtual void | AddListener (CEventHandler *listener, int pool_name=ePool_Default) |
Add a listener. More... | |
virtual void | RemoveListener (CEventHandler *listener) |
Remove a listener. More... | |
virtual void | RemoveAllListeners (void) |
virtual bool | HasListener (CEventHandler *listener, int pool_name=ePool_Default) const |
returns "true" if the given listener belongs to the specified pool More... | |
virtual const TListeners * | GetListeners (int pool_name=ePool_Default) const |
returns a set of listeners fro the specified pool More... | |
virtual bool | OnEvent (CEvent *evt) |
Processes en event. Returns "true" if event has been processed. More... | |
virtual bool | Dispatch (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default) |
Dispatches an event to the listeners (but does not handle it). More... | |
virtual bool | Send (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default) |
Sends an event synchronously. More... | |
virtual bool | Send (CEvent *evt, int pool_name) |
void | Post (CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default) |
Handles an event asynchronously (process and/or dispatch). More... | |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Protected Member Functions | |
bool | x_IsValidQuery (string query, bool casesensitive, vector< std::pair< size_t, size_t > > &fields) |
Return true if query parses correctly, putting field names in 'fields'. More... | |
void | x_StartQueryJob (CRef< CMacroQueryExec > qexec, CQueryParseTree *qtree, macro::CMacroRep *macro_rep, bool casesensitive, const string &query) |
Submit query job for asynch execution. More... | |
void | x_ExecuteQuery (int search_dir) |
Parse query and determine how to execute. More... | |
void | x_CancelQueryInProgress () |
If user presses cancel button, cancel running job. More... | |
void | x_AddRecentQuery (const std::string &q) |
Add a query to the list of recently used queries, if it is unique. More... | |
Protected Member Functions inherited from CEventHandler | |
virtual const SEvtMap * | GetEventMap () const |
void | x_DeclareDead () |
Removes itself unavailable for async event delivery. More... | |
void | x_AddListenerToPool (CEventHandler *listener, int pool_name) |
Protected Attributes | |
CRichTextCtrl * | m_pSearch |
Widgets. More... | |
wxAnimationCtrl * | m_Animation |
wxToolBar * | m_ToolBar |
wxChoice * | m_StringSearch |
wxButton * | m_StopQuery |
wxCheckBox * | m_pSelectAll |
wxStaticText * | m_SearchType |
std::vector< std::pair< size_t, size_t > > | m_SearchStringFields |
positions of dictionary fields in current search string More... | |
std::string | m_SearchString |
current search string (as of previous update to m_pSearch) More... | |
vector< pair< string, string > > | m_RecentQueries |
Set of recent queries. More... | |
vector< pair< string, string > > | m_DefaultQueries |
Set of default queries. More... | |
IQueryWidget * | m_QueryWidget |
Interface to widget which will display query results. More... | |
CIRef< IQueryDataSource > | m_QueryDataSource |
Interface to data source that is being queried. More... | |
string | m_PrevQuery |
String of query last time query was executed. More... | |
bool | m_CaseSensitive |
Current value for case-sensitive. More... | |
bool | m_PrevCaseSensitive |
Value of case-sensitive button last time query was executed. More... | |
CStringMatching::EStringMatching | m_StringCompare |
How to compare strings in query - wildcards, exact match, etc. More... | |
CStringMatching::EStringMatching | m_PrevStringCompare |
Value of string-matching selection last time query was executed. More... | |
CIRef< CQueryJob > | m_Job |
Current tree-query job. More... | |
job_future< void > | m_Future |
string | m_RegPath |
Registry path for query panel. More... | |
string | m_RegSection |
Registry section for specific current data source (derived from columns) More... | |
Protected Attributes inherited from CEventHandler | |
TPools | m_Pools |
Static Protected Attributes | |
static bool | m_IconsInitialized = false |
Only need to load icons into art provider once per run. More... | |
static const int | m_MaxRecentQueries = 5 |
Max number of recent queries to include in list. More... | |
static const int | m_MaxDefaultQueries = 10 |
Static Protected Attributes inherited from CEventHandler | |
static const SEvtMap | sm_EvtMap |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Additional Inherited Members | |
Static Public Member Functions inherited from CEventHandler | |
static bool | HandlePostRequest () |
static void | ClearPostQueue () |
erases all events from the queue More... | |
static void | DestroyPostQueue () |
This class represents a toolbar that allows the user to query against a data source and then to visualize the query results as selected elements within the attached view. In order to support the query toolbar, the developer must have a data source that is derived from IQueryDataSource which supports execution of the parsed query against the data. The developer must also provide a pointer to a widget (the view for the data source) which must implement the interface IQueryWidget.
The queries themselves are run as background jobs since they could take significant time in cases where network access is needed. At job completion a CQueryEvent event is sent to the IQueryWidget-derived widget.
Definition at line 83 of file query_parse_panel.hpp.
typedef vector<pair<string,string> > CQueryParsePanel::TNamedQueries |
Definition at line 105 of file query_parse_panel.hpp.
Enumerator | |
---|---|
eCmdStartQuery | |
eCmdStopQuery | |
eCmdSelQuery | |
eCmdNext | |
eCmdPrevious | |
eCmdCaseSensitive | |
eCmdHelp | |
eCmdFilter | |
eCmdStringMatchType | |
eCmdLast |
Definition at line 91 of file query_parse_panel.hpp.
CQueryParsePanel::OnStringMatchTypeSelected CQueryParsePanel::CQueryParsePanel | ( | IQueryWidget * | w, |
IQueryDataSource * | ds = NULL |
||
) |
Ctor requires a data source derived from IQueryDataSource and a view of that data source derived from IQueryWidget.
Definition at line 210 of file query_parse_panel.cpp.
References Init(), and SetDataSource().
|
virtual |
Definition at line 226 of file query_parse_panel.cpp.
References job_future_base::cancel(), GUI_AsyncJoinFuture(), job_future_base::IsRunning(), and m_Future.
Add given string to currently displayed query text.
Definition at line 565 of file query_parse_panel.cpp.
References arr, NStr::CompareNocase(), CRichTextCtrl::GetUtf8(), m_pSearch, NStr::Split(), str(), ToWxString(), and NStr::TruncateSpacesInPlace().
Referenced by CGridWidget::OnSearchExcludeCellValue(), and CGridWidget::OnSearchIncludeCellValue().
void CQueryParsePanel::CompleteQuery | ( | CMacroQueryExec * | qexec, |
const string & | status | ||
) |
Definition at line 1034 of file query_parse_panel.cpp.
References eCmdFilter, eCmdNext, eCmdPrevious, eCmdStartQuery, eCmdStopQuery, eCmdStringMatchType, CEventHandler::ePool_Parent, m_Animation, m_pSearch, m_pSelectAll, m_QueryWidget, m_ToolBar, NULL, OnSearchctrlTextEnter(), IQueryWidget::QueryEnd(), and CEventHandler::Send().
Referenced by OnIdle(), and x_ExecuteQuery().
|
virtual |
Create window.
Definition at line 238 of file query_parse_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CPhyTreeView::CreateViewWindow(), and CGridWidget::x_InitGrid().
void CQueryParsePanel::CreateControls | ( | ) |
Creates the controls and sizers.
Definition at line 277 of file query_parse_panel.cpp.
References _, eCmdFilter, eCmdHelp, eCmdNext, eCmdPrevious, eCmdSelQuery, eCmdStartQuery, eCmdStopQuery, eCmdStringMatchType, IQueryWidget::GetSearchHelpAddr(), ID_QUERY_ANIMATIONCTRL, ID_SEARCHCTRL, ID_SELECT_ALL, ID_TOOLBAR, m_Animation, m_pSearch, m_pSelectAll, m_QueryWidget, m_SearchType, m_ToolBar, NULL, OnCtrlKillFocus(), CSysPath::ResolvePath(), wxID_ANY, and wxT.
Referenced by Create().
|
private |
|
inline |
Retrieve the current defualt queries for the data source.
Definition at line 144 of file query_parse_panel.hpp.
References m_DefaultQueries.
string CQueryParsePanel::GetLastQuery | ( | ) | const |
Get the text for the most recently executed query.
Definition at line 515 of file query_parse_panel.cpp.
References m_RecentQueries.
Referenced by CPhyloTreeWidget::OnAddSelectionSet().
void CQueryParsePanel::HideSelectAll | ( | void | ) |
Hide the Select All checkbox.
Definition at line 803 of file query_parse_panel.cpp.
References m_pSelectAll.
Referenced by CGridWidget::x_InitGrid().
void CQueryParsePanel::Init | ( | void | ) |
Initialises member variables.
Definition at line 253 of file query_parse_panel.cpp.
References GetDefaultFileArtProvider(), m_Animation, m_IconsInitialized, m_pSearch, m_pSelectAll, m_ToolBar, NULL, wxFileArtProvider::RegisterFileAlias(), and wxT.
Referenced by CQueryParsePanel().
bool CQueryParsePanel::IsSelectAll | ( | ) |
Return true if select all checkbox is checked.
Definition at line 798 of file query_parse_panel.cpp.
References m_pSelectAll.
Referenced by CGridWidget::IterateSelection(), CPhyloTreeWidget::IterateSelection(), CPhyloTreeWidget::QueryEnd(), SetDataSource(), and CGridWidget::x_CompleteQuery().
|
virtual |
Implements IRegSettings.
Definition at line 528 of file query_parse_panel.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), CRegistryReadView::GetStringVec(), i, kRecentQueries, m_MaxRecentQueries, m_RecentQueries, m_RegPath, and m_RegSection.
Referenced by CPhyloTreeWidget::LoadSettings(), SetDataSource(), CGridWidget::SetRegistryPath(), and CGridWidget::x_InitGrid().
void CQueryParsePanel::OnButtonNext | ( | wxCommandEvent & | evt | ) |
Definition at line 784 of file query_parse_panel.cpp.
References IQueryWidget::IterateSelection(), and m_QueryWidget.
void CQueryParsePanel::OnButtonPrevious | ( | wxCommandEvent & | evt | ) |
Definition at line 791 of file query_parse_panel.cpp.
References IQueryWidget::IterateSelection(), and m_QueryWidget.
void CQueryParsePanel::OnContextMenu | ( | wxContextMenuEvent & | evt | ) |
Definition at line 604 of file query_parse_panel.cpp.
void CQueryParsePanel::OnCtrlKillFocus | ( | wxFocusEvent & | evt | ) |
Definition at line 632 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), and m_QueryWidget.
Referenced by CreateControls().
void CQueryParsePanel::OnIdle | ( | wxIdleEvent & | event | ) |
Definition at line 1298 of file query_parse_panel.cpp.
References CompleteQuery(), NStr::DoubleToString(), Info(), NStr::IntToString(), job_future_base::IsCanceled(), job_future_base::IsComplete(), LOG_POST, m_Future, m_Job, m_QueryDataSource, NCBI_CATCH, NULL, NStr::NumericToString(), job_future_base::reset(), and string.
void CQueryParsePanel::OnQuerySel | ( | wxCommandEvent & | evt | ) |
Definition at line 758 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), first(), i, ID_MRU1, m_DefaultQueries, m_QueryWidget, m_RecentQueries, m_ToolBar, ToWxString(), and wxT.
void CQueryParsePanel::OnRecentQuery | ( | wxCommandEvent & | evt | ) |
Definition at line 608 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), ID_MRU1, m_DefaultQueries, m_pSearch, m_QueryWidget, m_RecentQueries, OnSearchctrlTextEnter(), query, ToWxString(), and x_ExecuteQuery().
void CQueryParsePanel::OnSearchctrlSearchButtonClick | ( | wxCommandEvent & | evt | ) |
Definition at line 626 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), m_QueryWidget, and x_ExecuteQuery().
Referenced by OnSearchctrlTextEnter().
void CQueryParsePanel::OnSearchctrlSearchStop | ( | wxCommandEvent & | evt | ) |
Definition at line 638 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), m_QueryWidget, and x_CancelQueryInProgress().
void CQueryParsePanel::OnSearchctrlTextEnter | ( | wxCommandEvent & | evt | ) |
Definition at line 652 of file query_parse_panel.cpp.
References eCmdStartQuery, NStr::eTrunc_Begin, f, first(), CRichTextCtrl::GetUtf8(), i, m_CaseSensitive, m_pSearch, m_SearchString, m_SearchStringFields, m_ToolBar, max(), min(), OnSearchctrlSearchButtonClick(), ncbi::grid::netcache::search::fields::size, str(), NStr::TruncateSpaces(), wxT, and x_IsValidQuery().
Referenced by CompleteQuery(), and OnRecentQuery().
void CQueryParsePanel::OnSearchHelp | ( | wxCommandEvent & | evt | ) |
Definition at line 644 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), IQueryWidget::GetSearchHelpAddr(), m_QueryWidget, and ToWxString().
void CQueryParsePanel::OnStringMatchTypeBtn | ( | wxCommandEvent & | evt | ) |
Definition at line 840 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), i, ID_STRING_MATCH_TYPE1, kStringMatchTypes, kStringMatchTypesCount, m_CaseSensitive, m_QueryWidget, m_ToolBar, ToWxString(), and wxT.
void CQueryParsePanel::OnStringMatchTypeSelected | ( | wxCommandEvent & | evt | ) |
Definition at line 859 of file query_parse_panel.cpp.
References IQueryWidget::DlgOverlayFix(), ID_STRING_MATCH_TYPE1, kStringMatchEnumTypes, kStringMatchTypes, kStringMatchTypesCount, kStringMatchTypesToolbar, m_CaseSensitive, m_QueryWidget, m_SearchType, m_StringCompare, m_ToolBar, and ToWxString().
void CQueryParsePanel::OnToggleHideUnselected | ( | wxCommandEvent & | evt | ) |
Definition at line 822 of file query_parse_panel.cpp.
References eCmdFilter, CRichTextCtrl::GetUtf8(), m_CaseSensitive, m_PrevCaseSensitive, m_PrevQuery, m_PrevStringCompare, m_pSearch, m_QueryWidget, m_StringCompare, m_ToolBar, query, IQueryWidget::SetHideUnselected(), and x_ExecuteQuery().
void CQueryParsePanel::OnToggleSelectAll | ( | wxCommandEvent & | evt | ) |
Definition at line 809 of file query_parse_panel.cpp.
References eCmdNext, eCmdPrevious, m_pSelectAll, m_QueryWidget, m_ToolBar, and IQueryWidget::SetSelectAll().
|
virtual |
Implements IRegSettings.
Definition at line 544 of file query_parse_panel.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kRecentQueries, m_MaxRecentQueries, m_RecentQueries, m_RegPath, m_RegSection, and CRegistryWriteView::Set().
Referenced by CGridWidget::SaveSettings(), and CPhyloTreeWidget::SaveSettings().
void CQueryParsePanel::SetDataSource | ( | IQueryDataSource * | ds | ) |
Set or update data source.
Definition at line 472 of file query_parse_panel.cpp.
References CChecksum::AddLine(), CChecksum::eMD5, GetMD5Digest(), i, IsSelectAll(), LoadSettings(), m_PrevQuery, m_pSelectAll, m_QueryDataSource, m_QueryWidget, m_RegSection, NULL, CRef< C, Locker >::Reset(), and IQueryWidget::SetSelectAll().
Referenced by CQueryParsePanel(), CPhyloTreeWidget::RemoveCurrentDataSource(), CPhyloTreeWidget::SetDataSource(), and CPhyloTreeWidget::SetDataSourceNoUpdate().
void CQueryParsePanel::SetDefaultQueries | ( | const TNamedQueries & | q | ) |
Set the set of default queries for the current data source.
Definition at line 505 of file query_parse_panel.cpp.
References m_DefaultQueries, and m_MaxDefaultQueries.
Referenced by CGridWidget::x_InitGrid().
Implements IRegSettings.
Definition at line 523 of file query_parse_panel.cpp.
References kQueryPanel, and m_RegPath.
Referenced by CPhyloTreeWidget::LoadSettings(), CGridWidget::SetRegistryPath(), and CGridWidget::x_InitGrid().
|
protected |
Add a query to the list of recently used queries, if it is unique.
Definition at line 1373 of file query_parse_panel.cpp.
References m_MaxRecentQueries, and m_RecentQueries.
Referenced by x_ExecuteQuery().
|
protected |
If user presses cancel button, cancel running job.
Definition at line 1361 of file query_parse_panel.cpp.
References job_future_base::cancel(), job_future_base::IsRunning(), m_Future, and m_PrevQuery.
Referenced by OnSearchctrlSearchStop().
|
protected |
Parse query and determine how to execute.
Definition at line 1149 of file query_parse_panel.cpp.
References arr, NStr::CompareNocase(), CompleteQuery(), CTreeNode< TValue, TKeyGetterP >::CountNodes(), CQueryParseTree::eCaseInsensitive, eCmdFilter, eCmdNext, eCmdPrevious, eCmdStartQuery, eCmdStopQuery, eCmdStringMatchType, Error(), CQueryParseTree::eSyntaxCheck, Flatten_ParseTree(), CMacroQueryExec::GetFunctionNames(), CException::GetMsg(), CRef< C, Locker >::GetPointer(), CQueryParseTree::GetQueryTree(), CRichTextCtrl::GetUtf8(), CTreeNode< TValue, TKeyGetterP >::GetValue(), i, Info(), LOG_POST, m_Animation, m_CaseSensitive, m_PrevCaseSensitive, m_PrevQuery, m_PrevStringCompare, m_pSearch, m_pSelectAll, m_QueryDataSource, m_QueryWidget, m_StringCompare, m_ToolBar, NULL, CQueryParseTree::Parse(), CQueryParseTree::Print(), query, IQueryWidget::QueryStart(), NStr::Split(), string, x_AddRecentQuery(), and x_StartQueryJob().
Referenced by OnRecentQuery(), OnSearchctrlSearchButtonClick(), and OnToggleHideUnselected().
|
protected |
Return true if query parses correctly, putting field names in 'fields'.
Definition at line 921 of file query_parse_panel.cpp.
References NStr::CompareNocase(), CTreeNode< TValue, TKeyGetterP >::CountNodes(), CQueryParseTree::eCaseInsensitive, CQueryParseTree::eCaseSensitiveUpper, CQueryParseTree::eSyntaxCheck, CQueryHighlightFunction::GetFieldPositions(), CMacroQueryExec::GetFunctionNames(), CException::GetMsg(), CRef< C, Locker >::GetPointerOrNull(), CQueryParseTree::GetQueryTree(), CTreeNode< TValue, TKeyGetterP >::GetValue(), Info(), LOG_POST, m_QueryDataSource, m_StringCompare, NULL, CQueryParseTree::Parse(), query, simple_string(), and TreeDepthFirstTraverse().
Referenced by OnSearchctrlTextEnter().
|
protected |
Submit query job for asynch execution.
Definition at line 1077 of file query_parse_panel.cpp.
References _TRACE, job_future_base::cancel(), CException::GetMsg(), CRef< C, Locker >::GetPointerOrNull(), CQueryParseTree::GetQueryTree(), GUI_AsyncJoinFuture(), Info(), job_future_base::IsRunning(), job_async(), LOG_POST, m_Future, m_Job, m_QueryDataSource, m_StringCompare, query, and TreeDepthFirstTraverse().
Referenced by x_ExecuteQuery().
|
protected |
Definition at line 288 of file query_parse_panel.hpp.
Referenced by CompleteQuery(), CreateControls(), Init(), and x_ExecuteQuery().
|
protected |
Current value for case-sensitive.
Definition at line 317 of file query_parse_panel.hpp.
Referenced by OnSearchctrlTextEnter(), OnStringMatchTypeBtn(), OnStringMatchTypeSelected(), OnToggleHideUnselected(), and x_ExecuteQuery().
Set of default queries.
Definition at line 306 of file query_parse_panel.hpp.
Referenced by GetDefaultQueries(), OnQuerySel(), OnRecentQuery(), and SetDefaultQueries().
|
protected |
Definition at line 328 of file query_parse_panel.hpp.
Referenced by OnIdle(), x_CancelQueryInProgress(), x_StartQueryJob(), and ~CQueryParsePanel().
Only need to load icons into art provider once per run.
Definition at line 283 of file query_parse_panel.hpp.
Referenced by Init().
Current tree-query job.
Definition at line 327 of file query_parse_panel.hpp.
Referenced by OnIdle(), and x_StartQueryJob().
Definition at line 307 of file query_parse_panel.hpp.
Referenced by SetDefaultQueries().
Max number of recent queries to include in list.
Definition at line 304 of file query_parse_panel.hpp.
Referenced by LoadSettings(), SaveSettings(), and x_AddRecentQuery().
|
protected |
Value of case-sensitive button last time query was executed.
Definition at line 319 of file query_parse_panel.hpp.
Referenced by OnToggleHideUnselected(), and x_ExecuteQuery().
|
protected |
String of query last time query was executed.
Definition at line 315 of file query_parse_panel.hpp.
Referenced by OnToggleHideUnselected(), SetDataSource(), x_CancelQueryInProgress(), and x_ExecuteQuery().
|
protected |
Value of string-matching selection last time query was executed.
Definition at line 324 of file query_parse_panel.hpp.
Referenced by OnToggleHideUnselected(), and x_ExecuteQuery().
|
protected |
Widgets.
Definition at line 287 of file query_parse_panel.hpp.
Referenced by AddQueryText(), CompleteQuery(), CreateControls(), Init(), OnRecentQuery(), OnSearchctrlTextEnter(), OnToggleHideUnselected(), and x_ExecuteQuery().
|
protected |
Definition at line 292 of file query_parse_panel.hpp.
Referenced by CompleteQuery(), CreateControls(), HideSelectAll(), Init(), IsSelectAll(), OnToggleSelectAll(), SetDataSource(), and x_ExecuteQuery().
|
protected |
Interface to data source that is being queried.
Definition at line 312 of file query_parse_panel.hpp.
Referenced by OnIdle(), SetDataSource(), x_ExecuteQuery(), x_IsValidQuery(), and x_StartQueryJob().
|
protected |
Interface to widget which will display query results.
Definition at line 310 of file query_parse_panel.hpp.
Referenced by CompleteQuery(), CreateControls(), OnButtonNext(), OnButtonPrevious(), OnCtrlKillFocus(), OnQuerySel(), OnRecentQuery(), OnSearchctrlSearchButtonClick(), OnSearchctrlSearchStop(), OnSearchHelp(), OnStringMatchTypeBtn(), OnStringMatchTypeSelected(), OnToggleHideUnselected(), OnToggleSelectAll(), SetDataSource(), and x_ExecuteQuery().
Set of recent queries.
Definition at line 302 of file query_parse_panel.hpp.
Referenced by GetLastQuery(), LoadSettings(), OnQuerySel(), OnRecentQuery(), SaveSettings(), and x_AddRecentQuery().
|
protected |
Registry path for query panel.
Definition at line 331 of file query_parse_panel.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().
|
protected |
Registry section for specific current data source (derived from columns)
Definition at line 333 of file query_parse_panel.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetDataSource().
|
protected |
current search string (as of previous update to m_pSearch)
Definition at line 299 of file query_parse_panel.hpp.
Referenced by OnSearchctrlTextEnter().
|
protected |
positions of dictionary fields in current search string
Definition at line 296 of file query_parse_panel.hpp.
Referenced by OnSearchctrlTextEnter().
|
protected |
Definition at line 293 of file query_parse_panel.hpp.
Referenced by CreateControls(), and OnStringMatchTypeSelected().
|
protected |
Definition at line 291 of file query_parse_panel.hpp.
|
protected |
How to compare strings in query - wildcards, exact match, etc.
Definition at line 322 of file query_parse_panel.hpp.
Referenced by OnStringMatchTypeSelected(), OnToggleHideUnselected(), x_ExecuteQuery(), x_IsValidQuery(), and x_StartQueryJob().
|
protected |
Definition at line 290 of file query_parse_panel.hpp.
|
protected |
Definition at line 289 of file query_parse_panel.hpp.
Referenced by CompleteQuery(), CreateControls(), Init(), OnQuerySel(), OnSearchctrlTextEnter(), OnStringMatchTypeBtn(), OnStringMatchTypeSelected(), OnToggleHideUnselected(), OnToggleSelectAll(), and x_ExecuteQuery().