Exemple #1
0
void SaveSelectionDlg::OnSaveFieldChoice( wxCommandEvent& event )
{
    wxLogMessage("Click SaveSelectionDlg::OnSaveFieldChoice");
    
	EnableTimeField();
	CheckApplySaveSettings();
}
void SaveSelectionDlg::OnAddField( wxCommandEvent& event )
{	
	DataViewerAddColDlg dlg(grid_base, this, false, true, "SELECT");
	if (dlg.ShowModal() != wxID_OK) return;
	int col = dlg.GetColId();
	if (grid_base->GetColType(col) != GeoDaConst::long64_type &&
		grid_base->GetColType(col) != GeoDaConst::double_type) return;

	FillColIdMap();
	InitField();
	
	for (int i=0; i<col_id_map.size(); i++) {
		if (col == col_id_map[i]) {
			m_save_field_choice->SetSelection(i);
		}
	}
	
	EnableTimeField();
	CheckApplySaveSettings();
}
void SaveSelectionDlg::OnSaveFieldChoice( wxCommandEvent& event )
{
	EnableTimeField();
	CheckApplySaveSettings();
}