19#ifndef _TM_EXPORTMANAGER_H_
20#define _TM_EXPORTMANAGER_H_
30#include <wx/busyinfo.h>
31#include <wx/progdlg.h>
32#include <wx/wupdlock.h>
34#include "../database/database_tm.h"
36#include "tmexportdatashp.h"
38const int tmFILENAME_MAX_SEARCH = 500;
39const int ID_EXPORTDLG_ALLBTN = 10375;
40const int ID_EXPORTDLG_NONEBTN = 10376;
41const int ID_EXPORTDLG_INVERTBTN = 10377;
42const int ID_EXPORTDLG_REPLACELAYERCHECK = 10378;
52 wxFileName m_ExportPath;
55 bool m_ExportAttributeCode;
56 bool m_OverwriteFiles;
62 void InitMemberValues();
65 bool ExportLayers(PrjMemLayersArray* layers);
75 wxRealPoint* GetFrame(
int& nbvertex);
78 bool IsExportPathValid();
83 void _CorrectIntegrity(PrjMemLayersArray* layers);
89 wxProgressDialog* m_ProgressDlg;
90 wxBusyInfo* m_ProgressBusy;
91 wxString m_ProgressText;
93 void CreateProgress(
int iNbLayers,
const wxString& layername);
95 bool UpdateProgress(
int iActualLayer,
const wxString& layername);
97 void DeleteProgress();
114 bool ExportConcatenated(
PrjDefMemManage* localprojdef, PRJDEF_LAYERS_TYPE type,
bool useProgressDlg =
true);
124 wxCheckListBox* m_ListLayersCtrl;
125 wxCheckBox* m_OverwriteFilesCtrl;
126 wxCheckBox* m_LayersAddCtrl;
127 wxCheckBox* m_LayersReplaceCtrl;
128 wxCheckBox* m_FastPolyExportCtrl;
129 wxCheckBox* m_ExportEmptyLayersCtrl;
130 wxRadioButton* m_ExportAttribDescCtrl;
131 wxRadioButton* m_ExportAttribCodeCtrl;
133 void OnBtnAll(wxCommandEvent& event);
135 void OnBtnNone(wxCommandEvent& event);
137 void OnBtnInvert(wxCommandEvent& event);
139 void OnUpdateUIBtnNone(wxUpdateUIEvent& event);
141 void OnUpdateUICheckReplace(wxUpdateUIEvent& event);
143 void OnUpdateUIOK(wxUpdateUIEvent& event);
145 void _CreateControls(
const wxArrayString& layers);
147 void _SelectLastExported(
const wxArrayString& selected);
149 DECLARE_EVENT_TABLE();
152 tmExportSelected_DLG(wxWindow* parent,
const wxArrayString& layers,
const wxArrayString& selected,
153 wxWindowID
id = wxID_ANY,
const wxString& caption = _(
"Export Layer"),
154 const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
155 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
159 wxArrayInt GetSelectedLayersID();
161 bool DoOverwriteFiles();
165 bool DoLayerReplace();
167 bool DoExportEmptyLayers();
169 bool UseFastExport();
171 bool DoExportAttributeCode();
Definition database_tm.h:80
Definition prjdefmemmanage.h:54
Storing layers properties in memory.
Definition projectdefmemory.h:246
Parent class for exporting data.
Definition tmexportdata.h:48
Definition tmexportmanager.h:46
tmExportManager()
Default constructor.
Definition tmexportmanager.cpp:54
void Create(wxWindow *parent, DataBaseTM *database, tmGISScale *scale)
Create function for two step initialization.
Definition tmexportmanager.cpp:76
bool ExportSelected(PrjDefMemManage *localprojdef, tmLayerManager *layermanager)
Ask user which layer to export.
Definition tmexportmanager.cpp:103
~tmExportManager()
Destructor.
Definition tmexportmanager.cpp:63
Export selected layer Dialog.
Definition tmexportmanager.h:122
Definition tmgisscale.h:100
GIS class for dealing with layers.
Definition tmlayermanager.h:57
Storing project properties in memory.
PRJDEF_EXPORT_TYPE
Type of export we want.
Definition projectdefmemory.h:46