//--------------------------------------------------------- void CGrid_Filler::Parameters_Add(CSG_Parameters &Parameters) { Parameters.Add_Grid("", "GRID" , _TL("Grid"), _TL(""), PARAMETER_INPUT ); Parameters.Add_Grid("", "GRID_OUT" , _TL("Changed Grid"), _TL(""), PARAMETER_OUTPUT_OPTIONAL ); Parameters.Add_Choice("", "REPLACE" , _TL("Value to be replaced"), _TL(""), CSG_String::Format("%s|%s|", _TL("value at mouse position"), _TL("fixed value") ), 0 ); Parameters.Add_Double("REPLACE", "REPLACE_VALUE" , _TL("Fixed value to be replaced"), _TL("Replace only this value with respect to the specified tolerance."), 0.0 ); Parameters.Add_Double("REPLACE", "TOLERANCE" , _TL("Tolerance"), _TL(""), 1.0, 0.0, true ); Parameters.Add_Bool("REPLACE", "IGNORE_NODATA" , _TL("Ignore No-Data"), _TL("Do not fill areas representing no-data."), true ); Parameters.Add_Bool("", "FILL_NODATA" , _TL("Fill with No-Data"), _TL(""), false ); Parameters.Add_Double("FILL_NODATA", "FILL_VALUE" , _TL("Fill Value"), _TL(""), 0.0 ); }
//--------------------------------------------------------- void CTable_Query_GUI::On_Connection_Changed(CSG_Parameters *pParameters) { CSG_Parameters *pTables = pParameters->Get_Parameter("TABLES")->asParameters(); pTables->Del_Parameters(); CSG_Strings Tables; if( Get_Connection()->Get_Tables(Tables) > 0 ) { for(int i=0; i<Tables.Get_Count(); i++) { pTables->Add_Bool("", Tables[i], Tables[i], ""); } } pParameters->Get_Parameter("FIELDS")->asParameters()->Del_Parameters(); pParameters->Get_Parameter("GROUP" )->asParameters()->Del_Parameters(); On_Parameter_Changed(pParameters, pParameters->Get_Parameter("TABLES")); }