EditTitleBar.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
/** @file
Implements titlebar interface functions.
Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include "EditTitleBar.h"
#include "UefiShellDebug1CommandsLib.h"
/**
Initialize a title bar.
@param[in] Prompt The prompt to print in the title bar.
@retval EFI_SUCCESS The initialization was successful.
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.
**/
)
{
} else {
//
// set Title
//
}
return EFI_OUT_OF_RESOURCES;
}
return EFI_SUCCESS;
}
/**
Clean up the memory used.
**/
)
{
}
typedef struct {
typedef union {
/**
Refresh function for MainTitleBar
@param[in] FileName The open file's name (or NULL).
@param[in] FileType The type fo the file.
@param[in] ReadOnly TRUE if the file is read only. FALSE otherwise.
@param[in] Modified TRUE if the file was modified. FALSE otherwise.
@param[in] LastCol The last printable column.
@param[in] LastRow The last printable row.
@retval EFI_SUCCESS The operation was successful.
**/
)
{
//
// backup the old screen attributes
//
//
// clear the title line
//
//
// print the new title bar prefix
//
0,
0,
L"%s ",
);
}
return EFI_SUCCESS;
}
//
// First Extract the FileName from fullpath
//
break;
}
}
//
// the space for file name is 20 characters
//
}
} else {
}
//
// print "..."
//
}
//
// print file type field
//
switch (FileType){
case FileTypeAscii:
case FileTypeUnicode:
if (FileType == FileTypeAscii){
}
//
// print read-only field for text files
//
if (ReadOnly) {
} else {
}
break;
case FileTypeDiskBuffer:
case FileTypeMemBuffer:
//
// Print the offset.
//
case FileTypeFileBuffer:
break;
default:
break;
}
//
// print modified field
//
if (Modified) {
}
//
// restore the old attribute
//
return EFI_SUCCESS;
}