ToolMap
|
Display the Queries Panel. More...
#include <queries_panel.h>
Public Member Functions | |
Queries_PANEL (wxWindow *parent, wxWindowID id, wxAuiManager *auimanager) | |
Constructors. | |
void | OnAddQueries (wxCommandEvent &event) |
User press the Add queries button. | |
void | OnRemoveQueries (wxCommandEvent &event) |
User press the remove queries. | |
void | OnRunQueries (wxCommandEvent &event) |
User press the run query. | |
void | OnQueryApplySymbology (wxCommandEvent &event) |
~Queries_PANEL () | |
Destructor. | |
wxSizer * | CreateControls (wxWindow *parent, bool call_fit=true, bool set_sizer=true) |
Creates the controls and sizers. | |
void | SetDataBase (DataBaseTM *database) |
Set the database object. | |
void | SetSelectedData (tmSelectedDataMemory *selected) |
void | SetTOCCtrl (TocCtrl *toc) |
bool | LoadQueries (DataBaseTM *database) |
Load the queries from the database. | |
void | EnableQueriesPanel (bool projectopen=true) |
Indicate if a project is open or not. | |
bool | IsQuerySelected () |
Public Member Functions inherited from ManagedAuiWnd | |
ManagedAuiWnd (wxAuiManager *AuiManager) | |
void | AddManagedPane (wxWindow *window, const wxAuiPaneInfo &paneinfo, bool bShow=FALSE) |
void | ShowPanel () |
void | HidePanel () |
bool | IsPanelShown () |
Additional Inherited Members | |
Protected Member Functions inherited from ManagedAuiWnd | |
void | InitValues () |
Protected Attributes inherited from ManagedAuiWnd | |
wxAuiManager * | m_AuiMgr |
wxString | m_AuiPanelName |
Display the Queries Panel.
Queries are immediatly added or removed from the database.
Queries_PANEL::Queries_PANEL | ( | wxWindow * | parent, |
wxWindowID | id, | ||
wxAuiManager * | auimanager | ||
) |
Constructors.
Creating.
For two step creation
Queries_PANEL::~Queries_PANEL | ( | ) |
Destructor.
wxSizer * Queries_PANEL::CreateControls | ( | wxWindow * | parent, |
bool | call_fit = true , |
||
bool | set_sizer = true |
||
) |
Creates the controls and sizers.
Control creation.
void Queries_PANEL::EnableQueriesPanel | ( | bool | projectopen = true | ) |
Indicate if a project is open or not.
If a project is open, controls are accessible otherwise not.
projectopen | Status of project : is a project open (default is true) |
bool Queries_PANEL::LoadQueries | ( | DataBaseTM * | database | ) |
Load the queries from the database.
Don't need to callQueries_PANEL::SetDataBase(), call is done internaly
void Queries_PANEL::OnAddQueries | ( | wxCommandEvent & | event | ) |
User press the Add queries button.
void Queries_PANEL::OnRemoveQueries | ( | wxCommandEvent & | event | ) |
User press the remove queries.
void Queries_PANEL::OnRunQueries | ( | wxCommandEvent & | event | ) |
User press the run query.
This function get data about the selected query and send a message tmEVT_QUERY_RUN to the tmAttributionManager
void Queries_PANEL::SetDataBase | ( | DataBaseTM * | database | ) |
Set the database object.
Set the database object for the Queries_PANEL but also for the QueriesList.
database | Object of type DataBaseTM. Validity is checked in debug mode |