ToolMap
|
Public Member Functions | |
AttribObjType_PANEL (wxWindow *parent, wxAuiManager *AuiManager) | |
bool | UpdateObjectPointList (DataBaseTM *pDB) |
Update items in the object point list. | |
bool | UpdateObjectPolyList (DataBaseTM *pDB) |
Update items in the object polygon list. | |
bool | UpdateObjectLineList (DataBaseTM *pDB) |
Update items in the object line list. | |
void | SetDataBaseToList (DataBaseTM *pDB) |
Pass database to check box list. | |
void | SetAttributeBtn (int nbfeatures, bool editmode) |
Set the text for the button. | |
void | SetInfoBtn (int nbfeatures) |
Enable or disable the Info button. | |
void | SetVisibleNotebook (TOC_GENERIC_NAME notebooktype) |
Set visible notebook. | |
TOC_GENERIC_NAME | GetVisibleNotebook () |
Get visible notebook page. | |
int | GetSelectedValues (TOC_GENERIC_NAME panel_name, wxArrayLong &values, bool panel_freq=false) |
Get checked values from lists. | |
void | SetSelectedValues (TOC_GENERIC_NAME panel_name, const wxArrayLong &values, bool panel_freq=false) |
Set checked values to the lists. | |
bool | IsAutoDisplayAttributeChecked () |
Get Status of Auto display attributes checkbox. | |
bool | IsEmptyListValuesRequired () |
bool | IsFullAttributionEnabled () |
void | EmptyListValues () |
Clear all attributes set when called. | |
void | ResetFilterFields () |
void | OnDisplayAttributesAuto (wxCommandEvent &event) |
Called when Auto Display Attributes is enabled. | |
void | OnEmptyListAffterAttributes (wxCommandEvent &event) |
Switch status of cleaning attribution each time called. | |
void | OnFullAttribution (wxCommandEvent &event) |
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 () |
Public Attributes | |
tmCheckListBoxRank * | m_pObjList_PT_Freq |
tmCheckListBoxRank * | m_pObjList_PT_NoFreq |
tmCheckListBoxRank * | m_pObjList_PLG_Freq |
tmCheckListBoxRank * | m_pObjList_PLG_NoFreq |
tmCheckListBoxRank * | m_pObjList_L_Freq |
tmCheckListBoxRank * | m_pObjList_L_NoFreq |
Additional Inherited Members | |
Protected Member Functions inherited from ManagedAuiWnd | |
void | InitValues () |
Protected Attributes inherited from ManagedAuiWnd | |
wxAuiManager * | m_AuiMgr |
wxString | m_AuiPanelName |
void AttribObjType_PANEL::EmptyListValues | ( | ) |
Clear all attributes set when called.
int AttribObjType_PANEL::GetSelectedValues | ( | TOC_GENERIC_NAME | panel_name, |
wxArrayLong & | values, | ||
bool | panel_freq = false |
||
) |
Get checked values from lists.
panel_name | one of the TOC_GENERIC_NAME. Allowed values are :
|
values | return all ids of checked values |
panel_freq | if true, get values for Frequent lines. Usefull only if panel_name = TOC_NAME_LINES |
TOC_GENERIC_NAME AttribObjType_PANEL::GetVisibleNotebook | ( | ) |
Get visible notebook page.
Return the selected notebook page.
bool AttribObjType_PANEL::IsAutoDisplayAttributeChecked | ( | ) |
Get Status of Auto display attributes checkbox.
void AttribObjType_PANEL::OnDisplayAttributesAuto | ( | wxCommandEvent & | event | ) |
Called when Auto Display Attributes is enabled.
Switch state of Auto dispaly attributes each time this is called
void AttribObjType_PANEL::OnEmptyListAffterAttributes | ( | wxCommandEvent & | event | ) |
Switch status of cleaning attribution each time called.
void AttribObjType_PANEL::SetAttributeBtn | ( | int | nbfeatures, |
bool | editmode | ||
) |
Set the text for the button.
This function allows a visual indication about the numer of item selected. Bellow are the possible case based on the number of selected features :
nbfeatures | Number of features selected |
editmode | set to true if we are in edit mode |
void AttribObjType_PANEL::SetDataBaseToList | ( | DataBaseTM * | pDB | ) |
Pass database to check box list.
pDB | pointer to a valid database instance |
void AttribObjType_PANEL::SetInfoBtn | ( | int | nbfeatures | ) |
Enable or disable the Info button.
Based on the number of features passed, this function enable or not the info button :
nbfeatures | Number of selected features |
void AttribObjType_PANEL::SetSelectedValues | ( | TOC_GENERIC_NAME | panel_name, |
const wxArrayLong & | values, | ||
bool | panel_freq = false |
||
) |
Set checked values to the lists.
panel_name | one of the TOC_GENERIC_NAME. Allowed values are :
|
values | contain all values to check |
panel_freq | if true, set values for Frequent lines. Usefull only if panel_name = TOC_NAME_LINES |
void AttribObjType_PANEL::SetVisibleNotebook | ( | TOC_GENERIC_NAME | notebooktype | ) |
Set visible notebook.
Activate the correct notebook depending on the selected object type. Case supported are :
notebooktype | one of the TOC_GENERIC_NAME values |
bool AttribObjType_PANEL::UpdateObjectLineList | ( | DataBaseTM * | pDB | ) |
Update items in the object line list.
This functions delete all items in the list and add items directly from the database
pDB | object of DataBaseTM |
bool AttribObjType_PANEL::UpdateObjectPointList | ( | DataBaseTM * | pDB | ) |
Update items in the object point list.
This functions delete all items in the list and add items directly from the database
pDB | object of DataBaseTM |
bool AttribObjType_PANEL::UpdateObjectPolyList | ( | DataBaseTM * | pDB | ) |
Update items in the object polygon list.
This functions delete all items in the list and add items directly from the database
pDB | object of DataBaseTM |