model_server/DIS_cm/src/ui_cm_oper.cxx
// Do whatever to get more info.
Do whatever to get more info.
Do whatever to get more info .
bool ui_cm_oper::GetMoreInfo(projModulePtr mod)
{
	bool status = true;
	if (module_must_be_confirmed_) {
		genString msg;
		msg.printf("Are you sure you want to %s module '%s'?",
			(char*)name_, realOSPATH(mod->get_name()) );
		if (modules_.size() > 0) {
			int answer = dis_question3(NULL, name_,
					"Yes", "Yes To All", "No", msg);
			if (answer == 1)
				module_has_been_confirmed_ = true;
			else if (answer == 2) {
				module_must_be_confirmed_ = false;
				module_has_been_confirmed_ = true;
			}
		} else {
			int answer = dis_question(name_, "Yes", "No", msg);
			if (answer == 1)
				module_has_been_confirmed_ = true;
			else
				module_must_be_confirmed_ = false;
		}
	}
	return (status);
}
bool ui_cm_oper :: GetMoreInfo ( projModulePtr mod ) { bool status = true ; if ( module_must_be_confirmed_ ) { genString msg ; msg . printf ( " " , ( char * ) name_ , realOSPATH ( mod -> get_name ( ) ) ) ; if ( modules_ . size ( ) > 0 ) { int answer = dis_question3 ( NULL , name_ , " " , " " , " " , msg ) ; if ( answer == 1 ) module_has_been_confirmed_ = true ; else if ( answer == 2 ) { module_must_be_confirmed_ = false ; module_has_been_confirmed_ = true ; } } else { int answer = dis_question ( name_ , " " , " " , msg ) ; if ( answer == 1 ) module_has_been_confirmed_ = true ; else module_must_be_confirmed_ = false ; } } return ( status ) ; }
Do whatever to get more info.
Do whatever to get more info .
// Need to check for >0 because the // module was already removed.