Skip to content

Commit cbc940c

Browse files
authored
Merge pull request #2240 from lixun910/v1.18
V1.16.0.12
2 parents 7d6578c + 1a3569b commit cbc940c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+5611
-5527
lines changed

BuildTools/windows/GeoDa.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
107107
<ClCompile>
108108
<Optimization>Disabled</Optimization>
109-
<AdditionalIncludeDirectories>C:\Intel\OpenCL\sdk\include;C:\OSGeo4W\include;temp\boost_1_57_0;temp\wxWidgets-3.1.0\include;temp\wxWidgets-3.1.0\lib\vc_dll\mswud;temp\json_spirit_v4.08;temp\eigen3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
109+
<AdditionalIncludeDirectories>C:\Intel\OpenCL\sdk\include;C:\OSGeo4W\include;temp\boost_1_57_0;temp\wxWidgets-3.1.0\include;temp\wxWidgets-3.1.0\lib\vc_dll\mswud;temp\json_spirit_v4.08;temp\eigen3;temp\spectra\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
110110
<PreprocessorDefinitions>WIN32;DEBUG;_DEBUG;_WINDOWS;__WXMSW__;__WXDEBUG__;WXUSINGDLL;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111111
<MinimalRebuild>false</MinimalRebuild>
112112
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
@@ -243,7 +243,7 @@
243243
</ItemDefinitionGroup>
244244
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
245245
<ClCompile>
246-
<AdditionalIncludeDirectories>C:\Intel\OpenCL\sdk\include;C:\OSGeo4W\include;temp\boost_1_57_0;temp\wxWidgets-3.1.0\include;temp\wxWidgets-3.1.0\lib\vc_dll\mswu;temp\json_spirit_v4.08;temp\eigen3;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
246+
<AdditionalIncludeDirectories>C:\Intel\OpenCL\sdk\include;C:\OSGeo4W\include;temp\boost_1_57_0;temp\wxWidgets-3.1.0\include;temp\wxWidgets-3.1.0\lib\vc_dll\mswu;temp\json_spirit_v4.08;temp\eigen3;temp\spectra\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
247247
<PreprocessorDefinitions>WIN32;_WINDOWS;__WXMSW__;__NO_VC_CRTDBG__;WXUSINGDLL;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
248248
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
249249
<PrecompiledHeader>

BuildTools/windows/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ if %GDA_BUILD% == BUILD_32 (
11091109
%MSBUILD_EXE% GeoDa.vs2017.sln /t:GeoDa /property:Configuration="Debug2017" /p:Platform="x64"
11101110
) else (
11111111
%MSBUILD_EXE% GeoDa.vs2010.sln /t:GeoDa /property:Configuration="Release" /p:Platform="x64"
1112-
%MSBUILD_EXE% GeoDa.vs2010.sln /t:GeoDa /property:Configuration="Debug" /p:Platform="x64"
1112+
REM %MSBUILD_EXE% GeoDa.vs2010.sln /t:GeoDa /property:Configuration="Debug" /p:Platform="x64"
11131113
)
11141114
)
11151115
set CHK_LIB=%BUILD_HOME%\Release\GeoDa.lib

DataViewer/DataViewerDeleteColDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void DataViewerDeleteColDlg::OnDelete( wxCommandEvent& ev )
106106
int idx = selections[i];
107107
wxString nm = name_to_nm[m_field->GetString(idx)];
108108
int col = table_int->FindColId(nm);
109-
wxLogMessage(nm);
109+
wxLogMessage("%s", nm);
110110

111111
try{
112112
table_int->DeleteCol(col);

DataViewer/DataViewerEditFieldPropertiesDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void DataViewerEditFieldPropertiesDlg::OnCellChanging( wxGridEvent& ev )
362362
wxString msg;
363363
msg << "changing row " << row << ", col " << col << " from ";
364364
msg << cur_str << " to " << new_str;
365-
wxLogMessage(msg);
365+
wxLogMessage("%s", msg);
366366

367367
GdaConst::FieldType type = GdaConst::unknown_type;
368368
wxString type_str = field_grid->GetCellValue(row, COL_T);

DialogTools/AZPDlg.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ void AZPDlg::OnClickClose(wxCommandEvent& event )
375375

376376
event.Skip();
377377
EndDialog(wxID_CANCEL);
378-
Destroy();
379378
}
380379

381380
void AZPDlg::OnClose(wxCloseEvent& ev)

DialogTools/AbstractClusterDlg.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ void AbstractClusterDlg::AddSimpleInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
249249
}
250250

251251
void AbstractClusterDlg::AddInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
252-
bool show_auto_button, bool show_spatial_weights,
252+
bool show_auto_button, bool integer_only,
253+
bool show_spatial_weights,
253254
bool single_variable, bool add_centroids)
254255
{
255256
wxString ttl = single_variable ? _("Select a Variable") : _("Select Variables");
@@ -260,7 +261,7 @@ void AbstractClusterDlg::AddInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
260261

261262
combo_var = new wxListBox(panel, wxID_ANY, wxDefaultPosition,
262263
wxSize(250,250), 0, NULL, style);
263-
InitVariableCombobox(combo_var, add_centroids);
264+
InitVariableCombobox(combo_var, integer_only, add_centroids);
264265

265266
m_use_centroids = new wxCheckBox(panel, wxID_ANY, _("Use geometric centroids"));
266267
auto_btn = new wxButton(panel, wxID_OK, _("Auto Weighting"));

DialogTools/AbstractClusterDlg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class AbstractClusterDlg : public wxDialog, public FramesManagerObserver,
136136
// -- functions
137137
virtual void AddInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
138138
bool show_auto_button = false,
139+
bool integer_only = false,
139140
bool show_spatial_weights = true,
140141
bool single_variable = false,
141142
bool add_centroids = true);

DialogTools/AddIdVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void AddIdVariable::OnOkClick( wxCommandEvent& event )
9292
return;
9393
}
9494

95-
wxLogMessage(wxString::Format("Try to insert unique id (integer, %s) column in table.", new_id_var_name));
95+
wxLogMessage("%s", wxString::Format("Try to insert unique id (integer, %s) column in table.", new_id_var_name));
9696

9797
int col_insert_pos = 0;
9898
int add_pos = table_int->InsertCol(GdaConst::long64_type,new_id_var_name, col_insert_pos);

DialogTools/CatClassifDlg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,8 @@ CatClassifState* CatClassifPanel::PromptNew(const CatClassifDef& ccd,
949949
}
950950

951951
wxLogMessage("In CatClassifPanel::PromptNew");
952-
wxLogMessage(_("suggested title:") + suggested_title);
953-
wxLogMessage(_("field name:") + field_name);
952+
wxLogMessage("%s", _("suggested title:") + suggested_title);
953+
wxLogMessage("%s", _("field name:") + field_name);
954954

955955
if (success || (prompt_title_dlg == false && !new_title.IsEmpty()) ) {
956956
cc_data = ccd;
@@ -1205,7 +1205,7 @@ void CatClassifPanel::OnAssocVarChoice(wxCommandEvent& ev)
12051205

12061206
wxString cur_fc_str = assoc_var_choice->GetStringSelection();
12071207

1208-
wxLogMessage(cur_fc_str);
1208+
wxLogMessage("%s", cur_fc_str);
12091209

12101210
bool is_tm_var = table_int->IsColTimeVariant(cur_fc_str);
12111211
if (is_tm_var)

DialogTools/ConnectDatasourceDlg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ void ConnectDatasourceDlg::OnOkClick( wxCommandEvent& event )
773773
GdaFrame* gda_frame = GdaFrame::GetGdaFrame();
774774
if (gda_frame) {
775775
gda_frame->OpenProject(ds_file_path.GetFullPath());
776-
wxLogMessage(_("Open project file:") + ds_file_path.GetFullPath());
776+
wxLogMessage("%s", _("Open project file:") + ds_file_path.GetFullPath());
777777
try {
778778
Project* project = gda_frame->GetProject();
779779
wxString layer_name;
@@ -847,8 +847,8 @@ void ConnectDatasourceDlg::OnOkClick( wxCommandEvent& event )
847847
if (layer_name.IsEmpty())
848848
layer_name = layername;
849849

850-
wxLogMessage(_("Open Datasource:") + datasource->ToString());
851-
wxLogMessage(_("Open Layer:") + layername);
850+
wxLogMessage("%s", _("Open Datasource:") + datasource->ToString());
851+
wxLogMessage("%s", _("Open Layer:") + layername);
852852

853853
SaveRecentDataSource(datasource, layer_name);
854854

0 commit comments

Comments
 (0)