• R/O
  • SSH
  • HTTPS

gpx2shp: 提交


Commit MetaInfo

修订版2 (tree)
时间2013-07-03 17:09:46
作者pagong

Log Message

* Removed unused directories.

更改概述

  • delete: gpx2shp-gui/title2.bmp
  • delete: gpx2shp-gui/d_properties.cpp
  • delete: gpx2shp-gui/g2sgui.cpp
  • delete: gpx2shp-gui/gpx2shp-gui.wxg
  • delete: gpx2shp-gui/d_about.h
  • delete: gpx2shp-gui/main.cpp
  • delete: gpx2shp-gui/d_properties.h
  • delete: gpx2shp-gui/g2sgui.h
  • delete: gpx2shp-gui/d_about.cpp
  • delete: gpx2shp-gui
  • delete: CVSROOT/verifymsg
  • delete: CVSROOT/loginfo
  • delete: CVSROOT/cvswrappers
  • delete: CVSROOT/checkoutlist
  • delete: CVSROOT/rcsinfo
  • delete: CVSROOT/commitinfo
  • delete: CVSROOT/config
  • delete: CVSROOT/taginfo
  • delete: CVSROOT/modules
  • delete: CVSROOT/notify
  • delete: CVSROOT

差异

--- gpx2shp-gui/main.cpp (revision 1)
+++ gpx2shp-gui/main.cpp (nonexistent)
@@ -1,22 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Sun Feb 27 02:25:31 2005
2-
3-#include <wx/wx.h>
4-#include <wx/image.h>
5-#include "g2sgui.h"
6-
7-
8-
9-class g2pgui:public wxApp {
10-public:
11- bool OnInit();
12-};
13-
14-IMPLEMENT_APP(g2pgui)
15-
16-bool g2pgui::OnInit() {
17- wxInitAllImageHandlers();
18- g2sgui *gpx2shp = new g2sgui(0, -1, "");
19- SetTopWindow(gpx2shp);
20- gpx2shp->Show();
21- return true;
22-}
Deleted: svn:executable
--- gpx2shp-gui/d_properties.h (revision 1)
+++ gpx2shp-gui/d_properties.h (nonexistent)
@@ -1,47 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Thu Mar 03 01:03:34 2005
2-
3-#include <wx/wx.h>
4-#include <wx/image.h>
5-
6-#ifndef D_PROPERTIES_H
7-#define D_PROPERTIES_H
8-
9-// begin wxGlade: dependencies
10-#include <wx/statline.h>
11-// end wxGlade
12-
13-
14-class d_properties: public wxDialog {
15-public:
16- // begin wxGlade: d_properties::ids
17- // end wxGlade
18-
19- d_properties(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE);
20-
21- // TH
22- void d_properties::onCancel(wxCommandEvent &event);
23- void d_properties::onPath(wxCommandEvent &event);
24- void d_properties::onOK(wxCommandEvent &event);
25- // end TH
26-
27-private:
28- // begin wxGlade: d_properties::methods
29- void set_properties();
30- void do_layout();
31- // end wxGlade
32-
33-protected:
34- // begin wxGlade: d_properties::attributes
35- wxStaticText* label_14;
36- wxTextCtrl* t_gpx2shp_path;
37- wxButton* button_1;
38- wxCheckBox* c_as_default;
39- wxStaticLine* static_line_3;
40- wxButton* b_cancel;
41- wxButton* b_ok;
42- // end wxGlade
43- DECLARE_EVENT_TABLE(); //TH
44-};
45-
46-
47-#endif // D_PROPERTIES_H
Deleted: svn:executable
--- gpx2shp-gui/g2sgui.h (revision 1)
+++ gpx2shp-gui/g2sgui.h (nonexistent)
@@ -1,102 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Thu Mar 03 01:03:34 2005
2-
3-#include <wx/wx.h>
4-#include <wx/image.h>
5-
6-// TH
7-#include "d_about.h"
8-#include "d_properties.h"
9-// end TH
10-
11-#ifndef G2SGUI_H
12-#define G2SGUI_H
13-
14-// begin wxGlade: dependencies
15-#include <wx/statline.h>
16-// end wxGlade
17-
18-
19-class g2sgui: public wxFrame {
20-public:
21- // begin wxGlade: g2sgui::ids
22- // end wxGlade
23-
24- g2sgui(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);
25-
26- // TH
27- void onExit (wxCommandEvent & event);
28- void openFileDiag (wxCommandEvent & event);
29- void checkAll (wxCommandEvent & event);
30- void g2sgui::onAbout(wxCommandEvent & event);
31- void g2sgui::onProperties(wxCommandEvent & event);
32- void g2sgui::onConvert(wxCommandEvent & event);
33- // end TH
34-
35-private:
36- // begin wxGlade: g2sgui::methods
37- void set_properties();
38- void do_layout();
39- // end wxGlade
40-
41- // TH
42- wxString sourcefile;
43- wxString outputfile;
44- wxString gpx2shp_command;
45- // end TH
46-
47-protected:
48- // begin wxGlade: g2sgui::attributes
49- wxStaticBox* sizer_17_staticbox;
50- wxStaticBox* sizer_15_staticbox;
51- wxStaticBox* sizer_5_staticbox;
52- wxStaticBox* sizer_13_staticbox;
53- wxStaticBox* sizer_12_staticbox;
54- wxMenuBar* menubar;
55- wxStatusBar* gpx2shp_statusbar;
56- wxStaticLine* static_line_2;
57- wxStaticText* label_1;
58- wxTextCtrl* t_input_file;
59- wxButton* b_input;
60- wxStaticText* label_2;
61- wxTextCtrl* t_output_file;
62- wxButton* b_ouput;
63- wxCheckBox* c_all;
64- wxCheckBox* c_waypoint;
65- wxCheckBox* c_route;
66- wxCheckBox* c_trackpoint;
67- wxCheckBox* c_3d;
68- wxCheckBox* c_edge;
69- wxCheckBox* c_point;
70- wxCheckBox* c_no_speed;
71- wxCheckBox* c_no_length;
72- wxCheckBox* c_no_time;
73- wxStaticText* label_3;
74- wxComboBox* cb_length;
75- wxStaticText* label_4;
76- wxComboBox* cb_time;
77- wxStaticText* label_6;
78- wxComboBox* cb_speed_length;
79- wxStaticText* label_7;
80- wxComboBox* cb_speed_time;
81- wxStaticText* label_5;
82- wxComboBox* cb_ellipsoid;
83- wxStaticText* label_8;
84- wxTextCtrl* t_min_points;
85- wxStaticText* label_9;
86- wxTextCtrl* t_min_length;
87- wxStaticText* label_11;
88- wxStaticText* label_10;
89- wxTextCtrl* t_min_time;
90- wxStaticText* label_12;
91- wxStaticLine* static_line_1;
92- wxButton* b_cancel;
93- wxButton* b_convert;
94- // end wxGlade
95-
96- // TH
97- DECLARE_EVENT_TABLE ();
98- // end TH
99-};
100-
101-
102-#endif // G2SGUI_H
Deleted: svn:executable
--- gpx2shp-gui/d_about.cpp (revision 1)
+++ gpx2shp-gui/d_about.cpp (nonexistent)
@@ -1,59 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Thu Mar 03 01:03:34 2005
2-
3-#include "d_about.h"
4-
5-// TH
6-enum {
7- button_close = 1
8-};
9-// end TH
10-
11-d_about::d_about(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
12- wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE)
13-{
14- // begin wxGlade: d_about::d_about
15- bitmap_2 = new wxStaticBitmap(this, -1, wxBitmap(wxT("G:\\gis\\gpx2shp-gui\\wxglade\\title2.bmp"), wxBITMAP_TYPE_ANY));
16- label_13 = new wxStaticText(this, -1, wxT("\ngpx2shp-gui 0.8\n\n(c) Toshihiro Hiraoka, 2005\nkogame at gmail.com"));
17- b_about_close = new wxButton(this, -1, wxT("Close"));
18-
19- set_properties();
20- do_layout();
21- // end wxGlade
22-}
23-
24-
25-void d_about::set_properties()
26-{
27- // begin wxGlade: d_about::set_properties
28- SetTitle(wxT("dialog_1"));
29- b_about_close->SetDefault();
30- // end wxGlade
31-}
32-
33-
34-void d_about::do_layout()
35-{
36- // begin wxGlade: d_about::do_layout
37- wxBoxSizer* sizer_2 = new wxBoxSizer(wxVERTICAL);
38- sizer_2->Add(bitmap_2, 0, wxFIXED_MINSIZE, 0);
39- sizer_2->Add(label_13, 1, wxALIGN_CENTER_HORIZONTAL|wxFIXED_MINSIZE, 0);
40- sizer_2->Add(b_about_close, 0, wxALIGN_RIGHT|wxFIXED_MINSIZE, 0);
41- SetAutoLayout(true);
42- SetSizer(sizer_2);
43- sizer_2->Fit(this);
44- sizer_2->SetSizeHints(this);
45- Layout();
46- // end wxGlade
47-}
48-
49-// TH
50-
51-BEGIN_EVENT_TABLE(d_about, wxDialog)
52- EVT_BUTTON(button_close, d_about::onClose)
53-END_EVENT_TABLE()
54-
55-void d_about::onClose(wxCommandEvent & WXUNUSED(event)) {
56- Close(TRUE);
57-}
58-
59-// end TH
Deleted: svn:executable
--- gpx2shp-gui/d_properties.cpp (revision 1)
+++ gpx2shp-gui/d_properties.cpp (nonexistent)
@@ -1,91 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Thu Mar 03 01:03:34 2005
2-
3-#include "d_properties.h"
4-
5-// TH
6-enum {
7- button_openfile = 1,
8- button_cancel,
9- button_ok
10-};
11-// end TH
12-
13-d_properties::d_properties(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
14- wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxTHICK_FRAME)
15-{
16- // begin wxGlade: d_properties::d_properties
17- label_14 = new wxStaticText(this, -1, wxT(" gp2shp path"));
18- t_gpx2shp_path = new wxTextCtrl(this, -1, wxT(""));
19- button_1 = new wxButton(this, button_openfile, wxT("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
20- c_as_default = new wxCheckBox(this, -1, wxT("set attributes as default"));
21- static_line_3 = new wxStaticLine(this, -1);
22- b_cancel = new wxButton(this, button_cancel, wxT("Cancel"));
23- b_ok = new wxButton(this, button_ok, wxT("OK"));
24-
25- set_properties();
26- do_layout();
27- // end wxGlade
28-}
29-
30-
31-void d_properties::set_properties()
32-{
33- // begin wxGlade: d_properties::set_properties
34- SetTitle(wxT("dialog_2"));
35- c_as_default->Enable(false);
36- // end wxGlade
37-}
38-
39-
40-void d_properties::do_layout()
41-{
42- // begin wxGlade: d_properties::do_layout
43- wxBoxSizer* sizer_9 = new wxBoxSizer(wxVERTICAL);
44- wxBoxSizer* sizer_27 = new wxBoxSizer(wxHORIZONTAL);
45- wxBoxSizer* sizer_16 = new wxBoxSizer(wxHORIZONTAL);
46- wxBoxSizer* sizer_11 = new wxBoxSizer(wxHORIZONTAL);
47- sizer_9->Add(20, 5, 0, wxFIXED_MINSIZE, 0);
48- sizer_9->Add(label_14, 0, wxFIXED_MINSIZE, 0);
49- sizer_11->Add(5, 20, 0, wxFIXED_MINSIZE, 0);
50- sizer_11->Add(t_gpx2shp_path, 1, wxFIXED_MINSIZE, 0);
51- sizer_11->Add(5, 20, 0, wxFIXED_MINSIZE, 0);
52- sizer_11->Add(button_1, 0, 0, 0);
53- sizer_9->Add(sizer_11, 0, wxEXPAND, 0);
54- sizer_9->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
55- sizer_16->Add(5, 20, 0, wxFIXED_MINSIZE, 0);
56- sizer_16->Add(c_as_default, 0, wxFIXED_MINSIZE, 0);
57- sizer_9->Add(sizer_16, 0, wxEXPAND, 0);
58- sizer_9->Add(20, 5, 0, wxFIXED_MINSIZE, 0);
59- sizer_9->Add(static_line_3, 0, wxEXPAND, 0);
60- sizer_9->Add(20, 5, 0, wxFIXED_MINSIZE, 0);
61- sizer_27->Add(b_cancel, 0, wxFIXED_MINSIZE, 0);
62- sizer_27->Add(10, 20, 0, wxFIXED_MINSIZE, 0);
63- sizer_27->Add(b_ok, 0, wxFIXED_MINSIZE, 0);
64- sizer_9->Add(sizer_27, 0, wxALIGN_RIGHT, 0);
65- SetAutoLayout(true);
66- SetSizer(sizer_9);
67- sizer_9->Fit(this);
68- sizer_9->SetSizeHints(this);
69- Layout();
70- // end wxGlade
71-}
72-
73-// TH
74-
75-BEGIN_EVENT_TABLE(d_properties, wxDialog)
76- EVT_BUTTON(button_cancel, d_properties::onCancel)
77- EVT_BUTTON(button_openfile, d_properties::onPath)
78- EVT_BUTTON(button_ok, d_properties::onOK)
79-END_EVENT_TABLE()
80-
81-void d_properties::onCancel(wxCommandEvent & WXUNUSED(event)) {
82- Close(TRUE);
83-}
84-
85-void d_properties::onPath(wxCommandEvent & WXUNUSED(event)) {
86-}
87-
88-void d_properties::onOK(wxCommandEvent & WXUNUSED(event)) {
89-}
90-
91-// end TH
Deleted: svn:executable
--- gpx2shp-gui/g2sgui.cpp (revision 1)
+++ gpx2shp-gui/g2sgui.cpp (nonexistent)
@@ -1,454 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Thu Mar 03 01:03:34 2005
2-
3-#include "g2sgui.h"
4-
5-// TH
6-enum {
7- menu_quit = 1,
8- menu_about,
9- menu_properties,
10- button_openfile = 10,
11- button_convert,
12- button_outputfile,
13- check_all
14-};
15-// end TH
16-
17-g2sgui::g2sgui(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
18- wxFrame(parent, id, title, pos, size, wxDEFAULT_FRAME_STYLE)
19-{
20- // begin wxGlade: g2sgui::g2sgui
21- sizer_13_staticbox = new wxStaticBox(this, -1, wxT("Convert Options"));
22- sizer_5_staticbox = new wxStaticBox(this, -1, wxT("Column Options"));
23- sizer_15_staticbox = new wxStaticBox(this, -1, wxT("Units"));
24- sizer_17_staticbox = new wxStaticBox(this, -1, wxT("Convert Limits"));
25- sizer_12_staticbox = new wxStaticBox(this, -1, wxT("Convert Objects"));
26- menubar = new wxMenuBar();
27- SetMenuBar(menubar);
28- wxMenu* File = new wxMenu();
29- File->Append(menu_quit, wxT("Quit"), wxT(""), wxITEM_NORMAL);
30- menubar->Append(File, wxT("File"));
31- wxMenu* wxglade_tmp_menu_1 = new wxMenu();
32- wxglade_tmp_menu_1->Append(menu_properties, wxT("Properties"), wxT(""), wxITEM_NORMAL);
33- menubar->Append(wxglade_tmp_menu_1, wxT("Edit"));
34- wxMenu* Help = new wxMenu();
35- Help->Append(menu_about, wxT("About"), wxT(""), wxITEM_NORMAL);
36- menubar->Append(Help, wxT("Help"));
37- gpx2shp_statusbar = CreateStatusBar(1, wxST_SIZEGRIP);
38- static_line_2 = new wxStaticLine(this, -1, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL);
39- label_1 = new wxStaticText(this, -1, wxT("input file "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
40- t_input_file = new wxTextCtrl(this, -1, wxT(""));
41- b_input = new wxButton(this, button_openfile, wxT("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
42- label_2 = new wxStaticText(this, -1, wxT("output file "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
43- t_output_file = new wxTextCtrl(this, -1, wxT(""));
44- b_ouput = new wxButton(this, button_outputfile, wxT("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
45- c_all = new wxCheckBox(this, check_all, wxT("all"));
46- c_waypoint = new wxCheckBox(this, -1, wxT("waypoint"));
47- c_route = new wxCheckBox(this, -1, wxT("route"));
48- c_trackpoint = new wxCheckBox(this, -1, wxT("trackpoint"));
49- c_3d = new wxCheckBox(this, -1, wxT("as 3D"));
50- c_edge = new wxCheckBox(this, -1, wxT("as edge"));
51- c_point = new wxCheckBox(this, -1, wxT("as point"));
52- c_no_speed = new wxCheckBox(this, -1, wxT("no speed column"));
53- c_no_length = new wxCheckBox(this, -1, wxT("no length column"));
54- c_no_time = new wxCheckBox(this, -1, wxT("no time column"));
55- label_3 = new wxStaticText(this, -1, wxT("length unit "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
56- const wxString cb_length_choices[] = {
57- wxT("m"),
58- wxT("km"),
59- wxT("kmi"),
60- wxT("ft"),
61- wxT("yd"),
62- wxT("mi"),
63- wxT("ch"),
64- wxT("fath"),
65- wxT("us-ft"),
66- wxT("us-yd"),
67- wxT("us-ch"),
68- wxT("us-mi"),
69- wxT("ind-yd"),
70- wxT("ind-ft"),
71- wxT("ind-ch")
72- };
73- cb_length = new wxComboBox(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 15, cb_length_choices, wxCB_DROPDOWN|wxCB_READONLY);
74- label_4 = new wxStaticText(this, -1, wxT("time unit "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
75- const wxString cb_time_choices[] = {
76- wxT("sec"),
77- wxT("min"),
78- wxT("hour"),
79- wxT("day")
80- };
81- cb_time = new wxComboBox(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 4, cb_time_choices, wxCB_DROPDOWN|wxCB_READONLY);
82- label_6 = new wxStaticText(this, -1, wxT("speed length "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
83- const wxString cb_speed_length_choices[] = {
84- wxT("m"),
85- wxT("km"),
86- wxT("kmi"),
87- wxT("ft"),
88- wxT("yd"),
89- wxT("mi"),
90- wxT("ch"),
91- wxT("fath"),
92- wxT("us-ft"),
93- wxT("us-yd"),
94- wxT("us-ch"),
95- wxT("us-mi"),
96- wxT("ind-yd"),
97- wxT("ind-ft"),
98- wxT("ind-ch")
99- };
100- cb_speed_length = new wxComboBox(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 15, cb_speed_length_choices, wxCB_DROPDOWN|wxCB_READONLY);
101- label_7 = new wxStaticText(this, -1, wxT("speed time "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
102- const wxString cb_speed_time_choices[] = {
103- wxT("sec"),
104- wxT("min"),
105- wxT("hour"),
106- wxT("day")
107- };
108- cb_speed_time = new wxComboBox(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 4, cb_speed_time_choices, wxCB_DROPDOWN|wxCB_READONLY);
109- label_5 = new wxStaticText(this, -1, wxT("ellipsoid "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
110- const wxString cb_ellipsoid_choices[] = {
111- wxT("WGS84"),
112- wxT("MERIT"),
113- wxT("SGS85"),
114- wxT("GRS80"),
115- wxT("IAU76"),
116- wxT("airy"),
117- wxT("APL4.9"),
118- wxT("NWL9D"),
119- wxT("mod_airy"),
120- wxT("andrae"),
121- wxT("aust_SA"),
122- wxT("GRS67"),
123- wxT("bessel"),
124- wxT("bess_nam"),
125- wxT("clrk66"),
126- wxT("clrk80"),
127- wxT("CPM"),
128- wxT("delmbr"),
129- wxT("engelis"),
130- wxT("evrst30"),
131- wxT("evrst48"),
132- wxT("evrst56"),
133- wxT("evrst69"),
134- wxT("evrstSS"),
135- wxT("fschr60"),
136- wxT("fschr60m"),
137- wxT("fschr68"),
138- wxT("helmert"),
139- wxT("hough"),
140- wxT("intl"),
141- wxT("krass"),
142- wxT("kaula"),
143- wxT("lerch"),
144- wxT("mprts"),
145- wxT("new_intl"),
146- wxT("plessis"),
147- wxT("SEasia"),
148- wxT("walbeck"),
149- wxT("WGS60"),
150- wxT("WGS66"),
151- wxT("WGS72")
152- };
153- cb_ellipsoid = new wxComboBox(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, 41, cb_ellipsoid_choices, wxCB_DROPDOWN|wxCB_READONLY);
154- label_8 = new wxStaticText(this, -1, wxT("minimum points "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
155- t_min_points = new wxTextCtrl(this, -1, wxT("2"), wxDefaultPosition, wxDefaultSize, wxTE_RIGHT);
156- label_9 = new wxStaticText(this, -1, wxT("minimum length "));
157- t_min_length = new wxTextCtrl(this, -1, wxT("0"), wxDefaultPosition, wxDefaultSize, wxTE_RIGHT);
158- label_11 = new wxStaticText(this, -1, wxT("(m)"));
159- label_10 = new wxStaticText(this, -1, wxT("minimum time "), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
160- t_min_time = new wxTextCtrl(this, -1, wxT("0"), wxDefaultPosition, wxDefaultSize, wxTE_RIGHT);
161- label_12 = new wxStaticText(this, -1, wxT("(sec)"));
162- static_line_1 = new wxStaticLine(this, -1, wxDefaultPosition, wxDefaultSize, wxLI_VERTICAL);
163- b_cancel = new wxButton(this, -1, wxT("Cancel"));
164- b_convert = new wxButton(this, button_convert, wxT("Convert"));
165-
166- set_properties();
167- do_layout();
168- // end wxGlade
169-}
170-
171-
172-void g2sgui::set_properties()
173-{
174- // begin wxGlade: g2sgui::set_properties
175- SetTitle(wxT("gpx2shp"));
176- SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
177- int gpx2shp_statusbar_widths[] = { -1 };
178- gpx2shp_statusbar->SetStatusWidths(1, gpx2shp_statusbar_widths);
179- const wxString gpx2shp_statusbar_fields[] = {
180- wxT("gpx2shp_statusbar")
181- };
182- for(int i = 0; i < gpx2shp_statusbar->GetFieldsCount(); ++i) {
183- gpx2shp_statusbar->SetStatusText(gpx2shp_statusbar_fields[i], i);
184- }
185- label_1->SetSize(wxSize(60, -1));
186- label_1->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
187- t_input_file->SetSize(wxSize(-1,-1));
188- label_2->SetSize(wxSize(60, -1));
189- label_2->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
190- t_output_file->SetSize(wxSize(-1, -1));
191- c_all->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
192- c_all->SetValue(1);
193- c_waypoint->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
194- c_waypoint->Enable(false);
195- c_route->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
196- c_route->Enable(false);
197- c_trackpoint->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
198- c_trackpoint->Enable(false);
199- c_3d->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
200- c_edge->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
201- c_point->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
202- c_no_speed->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
203- c_no_length->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
204- label_3->SetSize(wxSize(80, -1));
205- label_3->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
206- cb_length->SetSelection(0);
207- label_4->SetSize(wxSize(80, -1));
208- label_4->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
209- cb_time->SetSelection(0);
210- label_6->SetSize(wxSize(80, -1));
211- label_6->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
212- cb_speed_length->SetSelection(0);
213- label_7->SetSize(wxSize(80, -1));
214- label_7->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
215- cb_speed_time->SetSelection(0);
216- label_5->SetSize(wxSize(80, -1));
217- label_5->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
218- cb_ellipsoid->SetSelection(0);
219- label_8->SetSize(wxSize(84, -1));
220- label_8->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
221- label_9->SetSize(wxSize(84, -1));
222- label_9->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
223- label_11->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
224- label_10->SetSize(wxSize(84, -1));
225- label_10->SetBackgroundColour(wxColour(212, 208, 200));
226- label_12->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE));
227- // end wxGlade
228-}
229-
230-
231-void g2sgui::do_layout()
232-{
233- // begin wxGlade: g2sgui::do_layout
234- wxBoxSizer* sizer_1 = new wxBoxSizer(wxVERTICAL);
235- wxBoxSizer* sizer_4 = new wxBoxSizer(wxVERTICAL);
236- wxBoxSizer* sizer_18 = new wxBoxSizer(wxHORIZONTAL);
237- wxBoxSizer* sizer_14 = new wxBoxSizer(wxHORIZONTAL);
238- wxStaticBoxSizer* sizer_17 = new wxStaticBoxSizer(sizer_17_staticbox, wxVERTICAL);
239- wxBoxSizer* sizer_26 = new wxBoxSizer(wxHORIZONTAL);
240- wxBoxSizer* sizer_25 = new wxBoxSizer(wxHORIZONTAL);
241- wxBoxSizer* sizer_24 = new wxBoxSizer(wxHORIZONTAL);
242- wxStaticBoxSizer* sizer_15 = new wxStaticBoxSizer(sizer_15_staticbox, wxVERTICAL);
243- wxBoxSizer* sizer_21 = new wxBoxSizer(wxHORIZONTAL);
244- wxBoxSizer* sizer_23 = new wxBoxSizer(wxHORIZONTAL);
245- wxBoxSizer* sizer_22 = new wxBoxSizer(wxHORIZONTAL);
246- wxBoxSizer* sizer_20 = new wxBoxSizer(wxHORIZONTAL);
247- wxBoxSizer* sizer_19 = new wxBoxSizer(wxHORIZONTAL);
248- wxBoxSizer* sizer_10 = new wxBoxSizer(wxVERTICAL);
249- wxStaticBoxSizer* sizer_5 = new wxStaticBoxSizer(sizer_5_staticbox, wxHORIZONTAL);
250- wxStaticBoxSizer* sizer_13 = new wxStaticBoxSizer(sizer_13_staticbox, wxHORIZONTAL);
251- wxStaticBoxSizer* sizer_12 = new wxStaticBoxSizer(sizer_12_staticbox, wxHORIZONTAL);
252- wxBoxSizer* sizer_6 = new wxBoxSizer(wxVERTICAL);
253- wxBoxSizer* sizer_8 = new wxBoxSizer(wxHORIZONTAL);
254- wxBoxSizer* sizer_7 = new wxBoxSizer(wxHORIZONTAL);
255- sizer_1->Add(static_line_2, 0, wxEXPAND, 0);
256- sizer_4->Add(20, 5, 0, wxFIXED_MINSIZE, 0);
257- sizer_4->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
258- sizer_7->Add(label_1, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
259- sizer_7->Add(t_input_file, 1, wxEXPAND, 0);
260- sizer_7->Add(5, -1, 0, wxFIXED_MINSIZE, 0);
261- sizer_7->Add(b_input, 0, 0, 0);
262- sizer_6->Add(sizer_7, 0, wxEXPAND, 0);
263- sizer_8->Add(label_2, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
264- sizer_8->Add(t_output_file, 1, wxEXPAND, 0);
265- sizer_8->Add(5, -1, 0, wxFIXED_MINSIZE, 0);
266- sizer_8->Add(b_ouput, 0, 0, 0);
267- sizer_6->Add(sizer_8, 0, wxEXPAND, 0);
268- sizer_4->Add(sizer_6, 0, wxEXPAND, 0);
269- sizer_4->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
270- sizer_12->Add(c_all, 0, wxFIXED_MINSIZE, 0);
271- sizer_12->Add(c_waypoint, 0, wxFIXED_MINSIZE, 0);
272- sizer_12->Add(c_route, 0, wxFIXED_MINSIZE, 0);
273- sizer_12->Add(c_trackpoint, 0, wxFIXED_MINSIZE, 0);
274- sizer_10->Add(sizer_12, 0, wxEXPAND, 0);
275- sizer_10->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
276- sizer_13->Add(c_3d, 0, wxFIXED_MINSIZE, 0);
277- sizer_13->Add(c_edge, 0, wxFIXED_MINSIZE, 0);
278- sizer_13->Add(c_point, 0, wxFIXED_MINSIZE, 0);
279- sizer_10->Add(sizer_13, 0, wxEXPAND, 0);
280- sizer_10->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
281- sizer_5->Add(c_no_speed, 0, wxFIXED_MINSIZE, 0);
282- sizer_5->Add(c_no_length, 0, wxFIXED_MINSIZE, 0);
283- sizer_5->Add(c_no_time, 0, wxFIXED_MINSIZE, 0);
284- sizer_10->Add(sizer_5, 1, 0, 0);
285- sizer_4->Add(sizer_10, 0, wxEXPAND, 0);
286- sizer_4->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
287- sizer_19->Add(label_3, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
288- sizer_19->Add(cb_length, 1, wxEXPAND, 0);
289- sizer_15->Add(sizer_19, 1, wxEXPAND, 0);
290- sizer_20->Add(label_4, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
291- sizer_20->Add(cb_time, 1, wxFIXED_MINSIZE, 0);
292- sizer_15->Add(sizer_20, 1, wxEXPAND, 0);
293- sizer_22->Add(label_6, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
294- sizer_22->Add(cb_speed_length, 1, wxFIXED_MINSIZE, 0);
295- sizer_15->Add(sizer_22, 1, wxEXPAND, 0);
296- sizer_23->Add(label_7, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
297- sizer_23->Add(cb_speed_time, 1, wxFIXED_MINSIZE, 0);
298- sizer_15->Add(sizer_23, 1, wxEXPAND, 0);
299- sizer_21->Add(label_5, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 0);
300- sizer_21->Add(cb_ellipsoid, 1, wxFIXED_MINSIZE, 0);
301- sizer_15->Add(sizer_21, 1, wxEXPAND, 0);
302- sizer_14->Add(sizer_15, 1, 0, 0);
303- sizer_14->Add(10, 20, 0, wxFIXED_MINSIZE, 0);
304- sizer_24->Add(label_8, 0, wxFIXED_MINSIZE, 0);
305- sizer_24->Add(t_min_points, 0, wxFIXED_MINSIZE, 0);
306- sizer_17->Add(sizer_24, 1, wxEXPAND, 0);
307- sizer_25->Add(label_9, 0, wxALIGN_RIGHT|wxFIXED_MINSIZE, 0);
308- sizer_25->Add(t_min_length, 0, wxFIXED_MINSIZE, 0);
309- sizer_25->Add(label_11, 0, wxFIXED_MINSIZE, 0);
310- sizer_17->Add(sizer_25, 1, wxEXPAND, 0);
311- sizer_26->Add(label_10, 0, wxFIXED_MINSIZE, 0);
312- sizer_26->Add(t_min_time, 0, wxFIXED_MINSIZE, 0);
313- sizer_26->Add(label_12, 0, wxFIXED_MINSIZE, 0);
314- sizer_17->Add(sizer_26, 1, wxEXPAND, 0);
315- sizer_14->Add(sizer_17, 1, 0, 0);
316- sizer_4->Add(sizer_14, 0, 0, 0);
317- sizer_4->Add(20, 10, 0, wxFIXED_MINSIZE, 0);
318- sizer_4->Add(static_line_1, 0, wxEXPAND, 20);
319- sizer_4->Add(20, 5, 0, wxFIXED_MINSIZE, 0);
320- sizer_18->Add(b_cancel, 0, wxFIXED_MINSIZE, 0);
321- sizer_18->Add(20, 0, 0, 0, 0);
322- sizer_18->Add(b_convert, 0, wxFIXED_MINSIZE, 0);
323- sizer_4->Add(sizer_18, 0, wxALIGN_RIGHT, 0);
324- sizer_4->Add(20, 5, 0, wxFIXED_MINSIZE, 0);
325- sizer_1->Add(sizer_4, 1, wxEXPAND, 0);
326- SetAutoLayout(true);
327- SetSizer(sizer_1);
328- sizer_1->Fit(this);
329- sizer_1->SetSizeHints(this);
330- Layout();
331- // end wxGlade
332-}
333-
334-// TH
335-BEGIN_EVENT_TABLE(g2sgui, wxFrame)
336- EVT_MENU(menu_quit, g2sgui::onExit)
337- EVT_MENU(menu_about, g2sgui::onAbout)
338- EVT_MENU(menu_properties, g2sgui::onProperties)
339- EVT_BUTTON(button_openfile, g2sgui::openFileDiag)
340- EVT_BUTTON(button_convert, g2sgui::onConvert)
341- EVT_CHECKBOX(check_all, g2sgui::checkAll)
342-END_EVENT_TABLE()
343-
344-void g2sgui::onExit(wxCommandEvent & WXUNUSED(event)) {
345- Close(TRUE);
346-}
347-
348-void g2sgui::openFileDiag(wxCommandEvent & WXUNUSED(event)) {
349- wxFileDialog fdlg(this, wxT("Choose a source gpx file"), wxEmptyString, wxEmptyString, wxT("GPX file (*.gpx)|*.gpx"), wxOPEN);
350- fdlg.ShowModal();
351- sourcefile = fdlg.GetPath();
352- t_input_file->SetValue(sourcefile);
353- outputfile = sourcefile;
354- outputfile.Replace(wxT(".gpx"), wxEmptyString);
355- t_output_file->SetValue(outputfile);
356-}
357-
358-void g2sgui::checkAll(wxCommandEvent & WXUNUSED(event)) {
359- if(c_all->GetValue()) {
360- c_waypoint->SetValue(true);
361- c_waypoint->Enable(false);
362- c_route->SetValue(true);
363- c_route->Enable(false);
364- c_trackpoint->SetValue(true);
365- c_trackpoint->Enable(false);
366- } else {
367- c_waypoint->Enable(true);
368- c_route->Enable(true);
369- c_trackpoint->Enable(true);
370- }
371-}
372-
373-void g2sgui::onAbout(wxCommandEvent & WXUNUSED(event)) {
374- d_about *dlgAbout = new d_about::d_about((wxWindow*)this, -1, wxT("About gpx2shp"), wxPoint(-1, -1), wxSize(-1, -1), wxDEFAULT_DIALOG_STYLE);
375- dlgAbout->ShowModal();
376-}
377-
378-void g2sgui::onProperties(wxCommandEvent & WXUNUSED(event)) {
379- d_properties *dlgProp = new d_properties::d_properties((wxWindow*)this, -1, wxT("Properties"), wxPoint(-1, -1), wxSize(-1, -1), wxDEFAULT_DIALOG_STYLE);
380- dlgProp->ShowModal();
381-}
382-
383-void g2sgui::onConvert(wxCommandEvent & WXUNUSED(event)) {
384- wxString command;
385- //command.Append(gpx2shp_command);
386- command.Append("gpx2shp ");
387- if (t_output_file->GetValue()) {
388- command.Append("-o ");
389- command.Append(t_output_file->GetValue());
390- command.Append(" ");
391- }
392- if (c_all->GetValue()) {
393- command.Append("-a ");
394- } else {
395- if (c_waypoint->GetValue())
396- command.Append("-w ");
397- if (c_route->GetValue())
398- command.Append("-r ");
399- if (c_trackpoint->GetValue())
400- command.Append("-t ");
401- }
402- if (c_3d->GetValue())
403- command.Append("-3 ");
404- if (c_edge->GetValue())
405- command.Append("-e ");
406- if (c_point->GetValue())
407- command.Append("-p ");
408- if (c_no_length->GetValue())
409- command.Append("-L ");
410- if (c_no_speed->GetValue())
411- command.Append("-S ");
412- if (c_no_time->GetValue())
413- command.Append("-T ");
414- if (!cb_length->GetValue().IsEmpty()) {
415- command.Append("--length-unit ");
416- command.Append(cb_length->GetValue());
417- }
418- if (!cb_time->GetValue().IsEmpty()) {
419- command.Append(" --time-unit ");
420- command.Append(cb_time->GetValue());
421- }
422- if (!cb_speed_length->GetValue().IsEmpty()) {
423- command.Append(" --speed-length-unit ");
424- command.Append(cb_speed_length->GetValue());
425- }
426- if (!cb_speed_time->GetValue().IsEmpty()) {
427- command.Append(" --speed-time-unit ");
428- command.Append(cb_speed_time->GetValue());
429- }
430- if (!t_min_points->GetValue().IsEmpty()) {
431- command.Append(" --min-points ");
432- command.Append(t_min_points->GetValue());
433- }
434- if (!t_min_length->GetValue().IsEmpty()) {
435- command.Append(" --min-length ");
436- command.Append(t_min_length->GetValue());
437- }
438- if (!t_min_time->GetValue().IsEmpty()) {
439- command.Append(" --min-time ");
440- command.Append(t_min_time->GetValue());
441- }
442- if (!cb_ellipsoid->GetValue().IsEmpty()) {
443- command.Append(" --length-ellipsoid ");
444- command.Append(cb_ellipsoid->GetValue());
445- }
446- if (!t_input_file->GetValue().IsEmpty()) {
447- command.Append(" ");
448- command.Append(t_input_file->GetValue());
449- }
450- wxMessageDialog dlg(this, command, wxT("command"));
451- dlg.ShowModal();
452-
453-}
454-//end TH
Deleted: svn:executable
--- gpx2shp-gui/d_about.h (revision 1)
+++ gpx2shp-gui/d_about.h (nonexistent)
@@ -1,39 +0,0 @@
1-// -*- C++ -*- generated by wxGlade 0.3.5.1 on Thu Mar 03 01:03:34 2005
2-
3-#include <wx/wx.h>
4-#include <wx/image.h>
5-
6-#ifndef D_ABOUT_H
7-#define D_ABOUT_H
8-
9-// begin wxGlade: dependencies
10-// end wxGlade
11-
12-
13-class d_about: public wxDialog {
14-public:
15- // begin wxGlade: d_about::ids
16- // end wxGlade
17-
18- d_about(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE);
19-
20- void onClose(wxCommandEvent &event); //TH
21-
22-private:
23- // begin wxGlade: d_about::methods
24- void set_properties();
25- void do_layout();
26- // end wxGlade
27-
28-protected:
29- // begin wxGlade: d_about::attributes
30- wxStaticBitmap* bitmap_2;
31- wxStaticText* label_13;
32- wxButton* b_about_close;
33- // end wxGlade
34-
35- DECLARE_EVENT_TABLE(); //TH
36-};
37-
38-
39-#endif // D_ABOUT_H
Deleted: svn:executable
Show on old repository browser