library/src/blockclass/subclasses/BP_ApplicationHelpGenerator.cc
// Build app name/description table.
Build app name/description table.
Build app name / description table .
BP_ERROR_T  BP_ApplicationHelpGenerator::buildApplicationNameAndDescriptionTable()
{
	if(!this->sfsc)
		return ERR_FAILURE;
	char *str_stack_to_join[12];
	BP_ZERO_STACK(str_stack_to_join);
	BP_COLOR_CODE_SET_T tmp_version_table_colors;
	tmp_version_table_colors.fg = BP_COLOR_CODE_FG_RED;
	tmp_version_table_colors.bg = BP_COLOR_CODE_BG_BLACK;
	sfsc->addRowGroup();
	sfsc->addRow        ();
	sfsc->addColumnGroup();
	sfsc->addColumn     ();
	sfsc->addStringEntry
	(
			"app name",
			this->app_name,
			bpstrlen(this->app_name),
			bpstrlen(this->app_name),
			&tmp_version_table_colors,
			BP_FALSE,
			0,
			0,
			&BP_STSBS_border_set_onlypadding_no_bottom_border_1
	);
	tmp_version_table_colors.fg = BP_COLOR_CODE_FG_NONE;
	tmp_version_table_colors.bg = BP_COLOR_CODE_BG_NONE;
	sfsc->addRowGroup   ();
	sfsc->addRow        ();
	sfsc->addColumnGroup();
	sfsc->addColumn     ();
	sfsc->addStringEntry
	(
			"version table",
			this->app_description,
			bpstrlen(this->app_description),
			100,
			&tmp_version_table_colors,
			BP_FALSE,
			1,
			0,
			&BP_STSBS_border_set_onlypadding_no_bottom_border_3
	);
	return ERR_SUCCESS;
}
BP_ERROR_T BP_ApplicationHelpGenerator :: buildApplicationNameAndDescriptionTable ( ) { if ( ! this -> sfsc ) return ERR_FAILURE ; char * str_stack_to_join [ 12 ] ; BP_ZERO_STACK ( str_stack_to_join ) ; BP_COLOR_CODE_SET_T tmp_version_table_colors ; tmp_version_table_colors . fg = BP_COLOR_CODE_FG_RED ; tmp_version_table_colors . bg = BP_COLOR_CODE_BG_BLACK ; sfsc -> addRowGroup ( ) ; sfsc -> addRow ( ) ; sfsc -> addColumnGroup ( ) ; sfsc -> addColumn ( ) ; sfsc -> addStringEntry ( " " , this -> app_name , bpstrlen ( this -> app_name ) , bpstrlen ( this -> app_name ) , & tmp_version_table_colors , BP_FALSE , 0 , 0 , & BP_STSBS_border_set_onlypadding_no_bottom_border_1 ) ; tmp_version_table_colors . fg = BP_COLOR_CODE_FG_NONE ; tmp_version_table_colors . bg = BP_COLOR_CODE_BG_NONE ; sfsc -> addRowGroup ( ) ; sfsc -> addRow ( ) ; sfsc -> addColumnGroup ( ) ; sfsc -> addColumn ( ) ; sfsc -> addStringEntry ( " " , this -> app_description , bpstrlen ( this -> app_description ) , 100 , & tmp_version_table_colors , BP_FALSE , 1 , 0 , & BP_STSBS_border_set_onlypadding_no_bottom_border_3 ) ; return ERR_SUCCESS ; }
Build app name/description table.
Build app name / description table .
// create a string stack we can join up easily // add description as a new row // return indicating success