model_server/DIS_cm/src/ui_cm_get.cxx
// Do whatever to get more info.
Do whatever to get more info.
Do whatever to get more info .
bool ui_cm_get::GetMoreInfo(projModulePtr mod)
{
	bool status = true;
	if (needs_comment_string_) {
		genString prompt = "Please enter a brief explanation of why you are checking out\n";
		prompt += realOSPATH(mod->get_name());
		if (modules_.size() > 0 ) 
			status = dis_prompt_string("CM Check Out", "OK",
				"OK For All", "Cancel", prompt,
				comment_string_);
		else
			status = dis_prompt_string("CM Check Out", "OK",
				"Cancel", prompt, comment_string_);
		if (status == 1) { 
			module_has_been_confirmed_ = true;
		} else if (status == 2) { 
			has_comment_string_ = true;
			module_has_been_confirmed_ = true;
		}
	}
	return (status);
}
bool ui_cm_get :: GetMoreInfo ( projModulePtr mod ) { bool status = true ; if ( needs_comment_string_ ) { genString prompt = " \n " ; prompt += realOSPATH ( mod -> get_name ( ) ) ; if ( modules_ . size ( ) > 0 ) status = dis_prompt_string ( " " , " " , " " , " " , prompt , comment_string_ ) ; else status = dis_prompt_string ( " " , " " , " " , prompt , comment_string_ ) ; if ( status == 1 ) { module_has_been_confirmed_ = true ; } else if ( status == 2 ) { has_comment_string_ = true ; module_has_been_confirmed_ = true ; } } return ( status ) ; }
Do whatever to get more info.
Do whatever to get more info .
// If any modules are left in the module array, // Give the user the option to apply this comment // to all remaining modules. // OK button selected. // OK-For-All button selected.