We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d6578c + 1a3569b commit cbc940cCopy full SHA for cbc940c
BuildTools/windows/GeoDa.vcxproj
@@ -106,7 +106,7 @@
106
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
107
<ClCompile>
108
<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>
+ <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>
110
<PreprocessorDefinitions>WIN32;DEBUG;_DEBUG;_WINDOWS;__WXMSW__;__WXDEBUG__;WXUSINGDLL;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111
<MinimalRebuild>false</MinimalRebuild>
112
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
@@ -243,7 +243,7 @@
243
</ItemDefinitionGroup>
244
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
245
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>
+ <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>
247
<PreprocessorDefinitions>WIN32;_WINDOWS;__WXMSW__;__NO_VC_CRTDBG__;WXUSINGDLL;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
248
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
249
<PrecompiledHeader>
BuildTools/windows/build.bat
@@ -1109,7 +1109,7 @@ if %GDA_BUILD% == BUILD_32 (
1109
%MSBUILD_EXE% GeoDa.vs2017.sln /t:GeoDa /property:Configuration="Debug2017" /p:Platform="x64"
1110
) else (
1111
%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"
+ REM %MSBUILD_EXE% GeoDa.vs2010.sln /t:GeoDa /property:Configuration="Debug" /p:Platform="x64"
1113
)
1114
1115
set CHK_LIB=%BUILD_HOME%\Release\GeoDa.lib
DataViewer/DataViewerDeleteColDlg.cpp
@@ -106,7 +106,7 @@ void DataViewerDeleteColDlg::OnDelete( wxCommandEvent& ev )
int idx = selections[i];
wxString nm = name_to_nm[m_field->GetString(idx)];
int col = table_int->FindColId(nm);
- wxLogMessage(nm);
+ wxLogMessage("%s", nm);
try{
table_int->DeleteCol(col);
DataViewer/DataViewerEditFieldPropertiesDlg.cpp
@@ -362,7 +362,7 @@ void DataViewerEditFieldPropertiesDlg::OnCellChanging( wxGridEvent& ev )
362
wxString msg;
363
msg << "changing row " << row << ", col " << col << " from ";
364
msg << cur_str << " to " << new_str;
365
- wxLogMessage(msg);
+ wxLogMessage("%s", msg);
366
367
GdaConst::FieldType type = GdaConst::unknown_type;
368
wxString type_str = field_grid->GetCellValue(row, COL_T);
DialogTools/AZPDlg.cpp
@@ -375,7 +375,6 @@ void AZPDlg::OnClickClose(wxCommandEvent& event )
375
376
event.Skip();
377
EndDialog(wxID_CANCEL);
378
- Destroy();
379
}
380
381
void AZPDlg::OnClose(wxCloseEvent& ev)
DialogTools/AbstractClusterDlg.cpp
@@ -249,7 +249,8 @@ void AbstractClusterDlg::AddSimpleInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
250
251
void AbstractClusterDlg::AddInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
252
- bool show_auto_button, bool show_spatial_weights,
+ bool show_auto_button, bool integer_only,
253
+ bool show_spatial_weights,
254
bool single_variable, bool add_centroids)
255
{
256
wxString ttl = single_variable ? _("Select a Variable") : _("Select Variables");
@@ -260,7 +261,7 @@ void AbstractClusterDlg::AddInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
260
261
262
combo_var = new wxListBox(panel, wxID_ANY, wxDefaultPosition,
263
wxSize(250,250), 0, NULL, style);
- InitVariableCombobox(combo_var, add_centroids);
264
+ InitVariableCombobox(combo_var, integer_only, add_centroids);
265
266
m_use_centroids = new wxCheckBox(panel, wxID_ANY, _("Use geometric centroids"));
267
auto_btn = new wxButton(panel, wxID_OK, _("Auto Weighting"));
DialogTools/AbstractClusterDlg.h
@@ -136,6 +136,7 @@ class AbstractClusterDlg : public wxDialog, public FramesManagerObserver,
136
// -- functions
137
virtual void AddInputCtrls(wxPanel *panel, wxBoxSizer* vbox,
138
bool show_auto_button = false,
139
+ bool integer_only = false,
140
bool show_spatial_weights = true,
141
bool single_variable = false,
142
bool add_centroids = true);
DialogTools/AddIdVariable.cpp
@@ -92,7 +92,7 @@ void AddIdVariable::OnOkClick( wxCommandEvent& event )
92
return;
93
94
95
- wxLogMessage(wxString::Format("Try to insert unique id (integer, %s) column in table.", new_id_var_name));
+ wxLogMessage("%s", wxString::Format("Try to insert unique id (integer, %s) column in table.", new_id_var_name));
96
97
int col_insert_pos = 0;
98
int add_pos = table_int->InsertCol(GdaConst::long64_type,new_id_var_name, col_insert_pos);
DialogTools/CatClassifDlg.cpp
@@ -949,8 +949,8 @@ CatClassifState* CatClassifPanel::PromptNew(const CatClassifDef& ccd,
949
950
951
wxLogMessage("In CatClassifPanel::PromptNew");
952
- wxLogMessage(_("suggested title:") + suggested_title);
953
- wxLogMessage(_("field name:") + field_name);
+ wxLogMessage("%s", _("suggested title:") + suggested_title);
+ wxLogMessage("%s", _("field name:") + field_name);
954
955
if (success || (prompt_title_dlg == false && !new_title.IsEmpty()) ) {
956
cc_data = ccd;
@@ -1205,7 +1205,7 @@ void CatClassifPanel::OnAssocVarChoice(wxCommandEvent& ev)
1205
1206
wxString cur_fc_str = assoc_var_choice->GetStringSelection();
1207
1208
- wxLogMessage(cur_fc_str);
+ wxLogMessage("%s", cur_fc_str);
1209
1210
bool is_tm_var = table_int->IsColTimeVariant(cur_fc_str);
1211
if (is_tm_var)
DialogTools/ConnectDatasourceDlg.cpp
@@ -773,7 +773,7 @@ void ConnectDatasourceDlg::OnOkClick( wxCommandEvent& event )
773
GdaFrame* gda_frame = GdaFrame::GetGdaFrame();
774
if (gda_frame) {
775
gda_frame->OpenProject(ds_file_path.GetFullPath());
776
- wxLogMessage(_("Open project file:") + ds_file_path.GetFullPath());
+ wxLogMessage("%s", _("Open project file:") + ds_file_path.GetFullPath());
777
try {
778
Project* project = gda_frame->GetProject();
779
wxString layer_name;
@@ -847,8 +847,8 @@ void ConnectDatasourceDlg::OnOkClick( wxCommandEvent& event )
847
if (layer_name.IsEmpty())
848
layer_name = layername;
849
850
- wxLogMessage(_("Open Datasource:") + datasource->ToString());
851
- wxLogMessage(_("Open Layer:") + layername);
+ wxLogMessage("%s", _("Open Datasource:") + datasource->ToString());
+ wxLogMessage("%s", _("Open Layer:") + layername);
852
853
SaveRecentDataSource(datasource, layer_name);
854
0 commit comments