19#ifndef _TM_ATTIBUTION_MANAGER_H_
20#define _TM_ATTIBUTION_MANAGER_H_
30#include "../core/tmshortcutmemory.h"
31#include "../gui/attribution_obj_type.h"
32#include "tmaattribwindow.h"
33#include "tmattributiondatalabel.h"
34#include "tmattributiondataline.h"
35#include "tmattributiondatapoint.h"
36#include "tmmanagerevent.h"
37#include "tmselecteddatamemory.h"
44DECLARE_EVENT_TYPE(tmEVT_SHORTCUT_ATTRIBUTION_DONE, -1);
65 bool m_ShortcutLoaded;
73 void OnSelection(wxCommandEvent& event);
76 void OnAddBtn(wxCommandEvent& event);
78 void OnRemoveBtn(wxCommandEvent& event);
80 void OnInfoBtn(wxCommandEvent& event);
83 void OnLayerChanged(wxCommandEvent& event);
85 void OnSelectionChanged(wxCommandEvent& event);
88 void OnRefreshShortcut(wxCommandEvent& event);
90 int LoadShortcutIntoMemory();
92 void ConnectShortcutEvent();
94 void DisconnectShortcutEvent();
96 void OnShortcutPressed(wxCommandEvent& event);
98 bool ShortcutAttributionChecking(
int iCount,
int shortcutlayer_type);
101 void OnRunQuery(wxCommandEvent& event);
104 void OnCopyAttribution(wxCommandEvent& event);
107 int DisplayAAttributionWindow(wxArrayString* values, PrjMemLayersArray* layers,
108 const tmLayerValueArray& arrayidname);
111 bool IsAttributionManagerReady();
113 bool IsOnlyOneObjSelected();
115 DECLARE_EVENT_TABLE()
130 int GetSelectionCount() {
137 void AAttributionBatchShow();
Definition attribution_obj_type.h:71
Definition database_tm.h:80
Definition prjdefmemmanage.h:54
Class for attributing data.
Definition tmattributiondata.h:43
Central point for object attribution.
Definition tmattributionmanager.h:57
void DisplayInformationsWnd()
Show the information dialog if not visible.
Definition tmattributionmanager.cpp:769
void UnInitAttributionManager()
Uninit attribution manager.
Definition tmattributionmanager.cpp:234
~tmAttributionManager()
Destructor.
Definition tmattributionmanager.cpp:190
bool InitAttributionManager(DataBaseTM *pDb, PrjDefMemManage *memprojdef)
Init attribution manager.
Definition tmattributionmanager.cpp:204
bool AAttributionButtonShow()
Advanced Attribution button is pressed.
Definition tmattributionmanager.cpp:680
static tmAttributionData * CreateAttributionData(int type)
Create an object of tmAttributionData type.
Definition tmattributionmanager.cpp:518
Storing object of layer type.
Definition tmlayerproperties.h:47
Store ID of selected data into memory.
Definition tmselecteddatamemory.h:43
unsigned int GetCount()
Count the number of selected features.
Definition tmselecteddatamemory.cpp:172
Store shortcuts for attribution in memory.
Definition tmshortcutmemory.h:65