示例#1
0
static void done_Click(GL_PageControls_TypeDef* pThis) {
	// Change text back to normal for next time.
	clearLabel();
	resetLabel();
	set_kybd_mode(0);
	Screen_ShowScreen(&g_screenMainPSK);
}
示例#2
0
void Ui::setSizeTimeInfo(DWORDLONG totalSize, DWORDLONG totalDownloaded, DWORDLONG fileSize, DWORDLONG fileDownloaded, DWORD elapsedTime)
{
    setLabelText(controls["ElapsedTime"], Timer::msecToStr(elapsedTime, _T("%02u:%02u:%02u")));
    
    if(totalDownloaded > totalSize)
        clearLabel(controls["TotalDownloaded"]);

    tstring totalSizeText = ((totalSize == FILE_SIZE_UNKNOWN) || (totalDownloaded > totalSize)) ?
                            formatsize(totalDownloaded, msg("KB"), msg("MB"), msg("GB")) :
                            formatsize(msg("%.2f of %.2f"), totalDownloaded, totalSize, msg("KB"), msg("MB"), msg("GB"));

    tstring fileSizeText = (fileSize == FILE_SIZE_UNKNOWN) ?
                           formatsize(fileDownloaded, msg("KB"), msg("MB"), msg("GB")) :
                           formatsize(msg("%.2f of %.2f"), fileDownloaded, fileSize, msg("KB"), msg("MB"), msg("GB"));

    rightAlignLabel(controls["TotalDownloaded"], totalSizeText);
    rightAlignLabel(controls["FileDownloaded"],  fileSizeText);

    setLabelText(controls["TotalDownloaded"], totalSizeText);
    setLabelText(controls["FileDownloaded"],  fileSizeText);
}
示例#3
0
int main(int argc, char **argv) 
{
	if (argc != 3) 
	{
		printf("Usage: %s <input> <output>\n", argv[0]);
		exit(EXIT_FAILURE);
	}

	// Initialize alias, label list
	initAlias();
	initLabel();

	// Parse the input ISA file and write to output
	parseFile(argv[1], argv[2]);

	// Free alias, label list
	clearAlias();
	clearLabel();

	exit(EXIT_SUCCESS);
}
示例#4
0
void Ui::setFileName(tstring filename)
{
    setLabelText(controls["FileName"], filename);
    clearLabel(controls["FileDownloaded"]);
}
示例#5
0
static void displayStoreFeedback(void)
{
	clearLabel();
	Widget_ChangeLabelColour(s_lblStatus, LCD_COLOR_YELLOW);
	Widget_ChangeLabelText(s_lblStatus, "Values stored to EEPROM.");
}