model_server/DIS_cm/src/ui_cm_put.cxx
// Do whatever to get more info.
Do whatever to get more info.
Do whatever to get more info .
bool ui_cm_put::GetMoreInfo(projModulePtr mod)
{
	bool status = true;
	if (needs_comment_string_) {
		mod->get_module_comment(comment_string_);
		genString prompt = "Please enter a brief explanation of why you are checking in\n";
		prompt += realOSPATH(mod->get_name());
		if (modules_.size() > 0)
			status = dis_prompt_string("CM Check In", "OK",
				"OK For All", "Cancel", prompt,
				comment_string_);
		else
			status = dis_prompt_string("CM Check In", "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_put :: GetMoreInfo ( projModulePtr mod ) { bool status = true ; if ( needs_comment_string_ ) { mod -> get_module_comment ( 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 the module already has a comment, use it. // Get the message to display in the prompt. // If any modules are left if the global array,  // allow the user to apply this comment to all // remaining files. // OK Button was selected. // OK-For-All Button was selected. // Use this comment for any remaining files.