ToolMap
Loading...
Searching...
No Matches
tmaattribbatchmanager.h
1/***************************************************************************
2 tmaattribbatchmanager.h
3 -------------------
4 copyright : (C) 2007 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _TMAATTRIBBATCHMANAGER_H_
17#define _TMAATTRIBBATCHMANAGER_H_
18
19// For compilers that support precompilation, includes "wx/wx.h".
20#include <wx/wxprec.h>
21
22// Include wxWidgets' headers
23#ifndef WX_PRECOMP
24#include <wx/wx.h>
25#endif
26
27#include "projectdefmemory.h"
28
29class PrjDefMemManage;
30
31class DataBaseTM;
32
34
35class tmAAttribCtrl;
36
38 private:
39 PrjDefMemManage* m_Project;
40 DataBaseTM* m_DB;
41 tmSelectedDataMemory* m_Selected;
42 PRJDEF_LAYERS_TYPE m_SelLayerType;
43
44 bool _GetSelectionSubset(long layerid, wxArrayLong& subselected);
45
46 wxString _CreateListOfIds(const wxArrayLong* ids);
47
48 public:
50 PRJDEF_LAYERS_TYPE sellayertype);
51
52 virtual ~tmAAttribBatchManager();
53
54 bool GetTypes(PrjMemObjectsArray& objects, wxArrayInt& number, wxArrayLong& layerid);
55
56 bool GetFields(long layerid, PrjMemFieldArray& fields);
57
58 tmAAttribCtrl* GetValueControl(const ProjectDefMemoryFields& field, wxWindow* wnd);
59
60 bool IsOk();
61
62 int Attribute(long layerid, const ProjectDefMemoryFields& field, const wxString& value);
63};
64
65#endif
Definition database_tm.h:80
Definition prjdefmemmanage.h:54
Storing Fields property in memory.
Definition projectdefmemory.h:198
Definition tmaattribbatchmanager.h:37
Abstract class for tmAAttribTree Items.
Definition tmaattribctrls.h:50
Store ID of selected data into memory.
Definition tmselecteddatamemory.h:43
Storing project properties in memory.