ToolMap
Loading...
Searching...
No Matches
Queries_PANEL Class Reference

Display the Queries Panel. More...

#include <queries_panel.h>

Inheritance diagram for Queries_PANEL:
ManagedAuiWnd

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
 

Detailed Description

Display the Queries Panel.

Queries are immediatly added or removed from the database.

Author
Lucien Schreiber (c) CREALP 2008
Date
09 November 2008

Constructor & Destructor Documentation

◆ Queries_PANEL()

Queries_PANEL::Queries_PANEL ( wxWindow *  parent,
wxWindowID  id,
wxAuiManager *  auimanager 
)

Constructors.

Creating.

For two step creation

Author
Lucien Schreiber (c) CREALP 2008
Date
08 November 2008

◆ ~Queries_PANEL()

Queries_PANEL::~Queries_PANEL ( )

Destructor.

Author
Lucien Schreiber (c) CREALP 2008
Date
08 November 2008

Member Function Documentation

◆ CreateControls()

wxSizer * Queries_PANEL::CreateControls ( wxWindow *  parent,
bool  call_fit = true,
bool  set_sizer = true 
)

Creates the controls and sizers.

Control creation.

Author
Lucien Schreiber (c) CREALP 2008
Date
08 November 2008

◆ EnableQueriesPanel()

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.

Parameters
projectopenStatus of project : is a project open (default is true)
Author
Lucien Schreiber (c) CREALP 2008
Date
09 November 2008

◆ LoadQueries()

bool Queries_PANEL::LoadQueries ( DataBaseTM database)

Load the queries from the database.

Don't need to callQueries_PANEL::SetDataBase(), call is done internaly

Returns
true if the queries where loaded succesfully
Author
Lucien Schreiber (c) CREALP 2008
Date
09 November 2008

◆ OnAddQueries()

void Queries_PANEL::OnAddQueries ( wxCommandEvent &  event)

User press the Add queries button.

Author
Lucien Schreiber (c) CREALP 2008
Date
09 November 2008

◆ OnRemoveQueries()

void Queries_PANEL::OnRemoveQueries ( wxCommandEvent &  event)

User press the remove queries.

Author
Lucien Schreiber (c) CREALP 2008
Date
10 November 2008

◆ OnRunQueries()

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

Author
Lucien Schreiber (c) CREALP 2008
Date
10 November 2008

◆ SetDataBase()

void Queries_PANEL::SetDataBase ( DataBaseTM database)

Set the database object.

Set the database object for the Queries_PANEL but also for the QueriesList.

Parameters
databaseObject of type DataBaseTM. Validity is checked in debug mode
Author
Lucien Schreiber (c) CREALP 2008
Date
09 November 2008

The documentation for this class was generated from the following files: