ToolMap
Loading...
Searching...
No Matches
tmimportdatawiz.h
1/***************************************************************************
2 tmimportdatawiz.h
3 -------------------
4 copyright : (C) 2018 TERRANUM Pascal Horton
5 email : pascal.horton at terranum dot ch
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef _TMIMPORTDATAWIZ_H
18#define _TMIMPORTDATAWIZ_H
19
20#include <wx/wxprec.h>
21
22#ifndef WX_PRECOMP
23#include <wx/wx.h>
24#endif
25
26#include "wizard_import_data.h"
27
28class tmImport;
29class ProjectManager;
30
32 private:
33 tmImport* m_Import;
34 ProjectManager* m_PrjManager;
35 wxString m_IgnoreLabel;
36 wxString m_ImportButIgnoreValueLabel;
37 wxString m_DoNotImportLabel;
38 wxString m_AllObjectsLabel;
39
40 void ResetFilePicker(const wxWizardPageSimple* page);
41
42 void SetXYFieldsOptions() const;
43
44 void GetXYFieldsSelection() const;
45
46 void SetTargetsOptions() const;
47
48 void GetTargetSelection() const;
49
50 void SetLayerOptions() const;
51
52 void GetLayerSelection() const;
53
54 void SetKindFieldOptions() const;
55
56 void GetKindFieldSelection() const;
57
58 void SetKindOptions() const;
59
60 void GetKindSelection() const;
61
62 void SetAttributeOptions() const;
63
64 void GetAttributeSelection() const;
65
66 void SetEnumerationOptions() const;
67
68 void GetEnumerationSelection() const;
69
70 protected:
71 int GetPageIndex(wxWizardPage* page);
72
73 void OnWizardBeforePageChanged(wxWizardEvent& event);
74
75 void OnWizardFinished(wxWizardEvent& event);
76
77 void EnableNextButton(bool state = true);
78
79 void EnableBackButton(bool state = true);
80
81 inline void SetControlEnable(int id, bool state);
82
83 void OnFileChanged(wxFileDirPickerEvent& event);
84
85 virtual void ToggleKindFieldSelection(wxCommandEvent& event);
86
87 public:
88 ImportDataWizard(wxWindow* window, wxWindowID id, ProjectManager* prjManager);
89
90 virtual ~ImportDataWizard();
91
92 wxWizardPage* GetFirstPage() const {
93 return m_pages.Item(0);
94 }
95
96 tmImport* GetImport() const {
97 return m_Import;
98 }
99};
100
101#endif
Definition tmimportdatawiz.h:31
Project operations (new, open,...)
Definition projectmanager.h:68
Definition tmimport.h:39
Class tmWizardImport.
Definition wizard_import_data.h:38