Пример #1
0
void OptionsMenu_Show()
{
	int i, count;
	char* p;

	if ( !rgn )
		rgn = TAP_Osd_Create( 0, 0, 720, 576, 0, 0 );		// create rgn-handle

	TAP_Win_Delete( &window );
	windowActive = TRUE;

	TAP_ExitNormal();

	TAP_Win_SetDefaultColor( &window );
	TAP_Win_Create( &window, rgn, 160, 70, 330, 150, FALSE, FALSE );
	TAP_Win_SetTitle( &window, "Description Extender Options", 0, FNT_Size_1622 );

	// allocate memory for option text
	optionTextBuffer = (char*)malloc(0x40*(optionCount+5));
	p = optionTextBuffer;
	for ( i = 0; i < optionCount+5; ++i )
	{
		*p = 0;
		TAP_Win_AddItem( &window, p );
		window.item[i] = p;
		p += 0x40;
	}
	OptionsMenu_UpdateText();

	TAP_Win_SetSelection( &window, 0 );
}
Пример #2
0
void ActivationRoutine( void )
{
	schFileRetreiveSearchData();
	schFileRetreiveRemoteData();

  	TAP_ExitNormal();
	rgn = TAP_Osd_Create( 0, 0, 720, 576, 0, FALSE );

	schDispWindowActivate();	
}
Пример #3
0
void GuideSortOrder_CreateGradients( void ){
	word rgn;
	GuideSortOrder_MemFree();
	if( Settings_GradientFactor > 0 ){
		rgn	= TAP_Osd_Create(0, 0, GuideSortOrder_Option_W, GuideSortOrder_Option_H, 0, OSD_Flag_MemRgn);
		// Main default item
		createGradient(rgn, GuideSortOrder_Option_W, GuideSortOrder_Option_H, Settings_GradientFactor, DISPLAY_ITEM);
		GuideSortOrder_ItemBase = TAP_Osd_SaveBox(rgn, 0, 0, GuideSortOrder_Option_W, GuideSortOrder_Option_H);
		createGradient(rgn, GuideSortOrder_Option_W, GuideSortOrder_Option_H, Settings_GradientFactor, DISPLAY_ITEMSELECTED);
		GuideSortOrder_ItemHigh = TAP_Osd_SaveBox(rgn, 0, 0, GuideSortOrder_Option_W, GuideSortOrder_Option_H);
		TAP_Osd_Delete(rgn);
	}
}
Пример #4
0
//-----------------------------------------------------------------------
//
void ActivateMoveWindow()
{
	moveWindowShowing   = TRUE;
	moveCommandOption   = 0;       // Default to the "OK" option.
	fileMoved           = FALSE;
    listMoved           = FALSE;
    chosenFolderLine    = 1;       // Initialise to point at the first destination folder.
    printMoveFolderLine = 1;

    moveRgn  = TAP_Osd_Create( 0, 0, 720, 576, 0, OSD_Flag_MemRgn );	// In MEMORY define the whole screen for us to draw on
    
	// Store the currently displayed screen area where we're about to put our pop-up window on.
    moveWindowCopy = TAP_Osd_SaveBox(rgn, MOVE_WINDOW_X, MOVE_WINDOW_Y, MOVE_WINDOW_W, MOVE_WINDOW_H);

    DisplayArchiveMoveWindow();
}
void OSDMenuWaitSpinnerInit(void)
{
  TRACEENTER();

  if(InfoBoxOSDRgn && WaitSpinnerRgn == 0)
  {
    WaitSpinnerRgn = TAP_Osd_Create(0, 0, _WaitSpinner_All_Gd.width, _WaitSpinner_All_Gd.height, 0, OSD_Flag_MemRgn);
    if(WaitSpinnerRgn)
    {
      TAP_Osd_PutGd(WaitSpinnerRgn, 0, 0, &_WaitSpinner_All_Gd, FALSE);
      TAP_Osd_Copy(WaitSpinnerRgn, InfoBoxOSDRgn, 0, 0, 50, 50, 15, 130, FALSE);
      WaitSpinnerIndex = 0;
      WaitSpinnerTimeout = TAP_GetTick() + 10;
      TAP_Osd_Sync();
    }
  }

  TRACEEXIT();
}
Пример #6
0
Tapplication::Tapplication() :
	m_screenOffsetX(0),
	m_screenOffsetY(0),
	m_isClosing(false),
	m_reshowUIKey(0)
{

#ifdef DEBUG
	if ( tap != 0 )
		TAP_Print( "Tapplication already exists\n" );
#endif

	m_pTaskManager = new TaskManager();

	pageCount = 0;

	screenRgn = (word)TAP_Osd_Create( 0, 0, 720, 576, 0, FALSE );
	m_activeDialog = NULL;
}
Пример #7
0
void ShowMessageWin (char* lpMessage, char* lpMessage1)
{
	int rgn;							// stores rgn-handle for osd
	dword w;							// stores width of message-text

	rgn = TAP_Osd_Create( 0, 0, 720, 576, 0, FALSE );		// create rgn-handle
	w = TAP_Osd_GetW( lpMessage, 0, FNT_Size_1926 ) + 10;		// calculate width of message
	if (TAP_Osd_GetW( lpMessage1, 0, FNT_Size_1926 ) + 10>w)
	{
		w = TAP_Osd_GetW( lpMessage1, 0, FNT_Size_1926 ) + 10;	// calculate width of message
	}
	if (w > 720) w = 720;						// if message is to long
	TAP_Osd_FillBox(rgn, (720-w)/2-5, 265, w+10, 62, RGB(19,19,19) );	// draw background-box for border
	TAP_Osd_PutS(rgn, (720-w)/2, 270, (720+w)/2, lpMessage,		// show message
		RGB(31,31,31), RGB(3,5,10), 0, FNT_Size_1926, FALSE, ALIGN_CENTER);
	TAP_Osd_PutS(rgn, (720-w)/2, 270+26, (720+w)/2, lpMessage1,		// show message
		RGB(31,31,31), RGB(3,5,10), 0, FNT_Size_1926,FALSE, ALIGN_CENTER);
	TAP_Delay(200);							// show it for 2 seconds
	TAP_Osd_Delete(rgn);					// release rgn-handle
}
Пример #8
0
void OptionsMenu_Show()
{
	char buffer[256];

	if ( !rgn )
		rgn = TAP_Osd_Create( 0, 0, 720, 576, 0, 0 );		// create rgn-handle

	TAP_Win_Delete( &window );

	TAP_ExitNormal();

	TAP_Win_SetDefaultColor( &window );
	TAP_Win_Create( &window, rgn, 220, 70, 280, 175, FALSE, FALSE );
	sprintf( buffer, "%s Options", __tap_program_name__ );
	TAP_Win_SetTitle( &window, buffer, 0, FNT_Size_1622 );

	// allocate memory for option text
	optionTextBuffer = (char*)malloc(0x40*(optionCount+5));
	OptionsMenu_UpdateText();
}
int TAP_Osd_Create_Chk(char *Comment, dword x, dword y, dword w, dword h, byte lutIdx, int flag)
{
  TRACEENTER();

  int ret;

  if(Comment)
  {
    if(x > 719) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: x(%d) out of range @ %s", x, Comment);
    if(y > 575) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: y(%d) out of range @ %s", y, Comment);
    if((x + w) > 720) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: x(%d) + w(%d) out of range @ %s", x, w, Comment);
    if((y + h) > 576) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: y(%d) + h(%d) out of range @ %s", y, h, Comment);
  }

  ret = TAP_Osd_Create(x, y, w, h, lutIdx, flag);

  if(Comment && ret < 128) LogEntryFBLibPrintf(TRUE, "TAP_Osd_Create_Chk Warning: TAP_Osd_Create() returned %d @ %s", ret, Comment);

  TRACEEXIT();
  return ret;
}
Пример #10
0
//---------------------------------------  ShowMessageWin --------------------------------
//
void ShowMessageWin (char* lpMessage, char* lpMessage1, dword dwDelay)
{
	dword rgn;															// stores rgn-handle for osd
	dword w;															// stores width of message-text

	rgn = TAP_Osd_Create( 0, 0, 720, 576, 0, FALSE );					// create rgn-handle
	//rgn = TAP_Osd_Create( 0, 0, 720, 576, 0, OSD_Flag_Plane2 );					// create rgn-handle
	w = TAP_Osd_GetW( lpMessage, 0, FNT_Size_1926 ) + 10;				// calculate width of message
	if (TAP_Osd_GetW( lpMessage1, 0, FNT_Size_1926 ) + 10>w)
		w = TAP_Osd_GetW( lpMessage1, 0, FNT_Size_1926 ) + 10;			// if second message is larger, calculate new width of message
	
	if (w > 720) w = 720;												// if message is to long
	TAP_Osd_FillBox(rgn, (720-w)/2-5, 265, w+10, 62, RGB(19,19,19) );	// draw background-box for border
		
	TAP_Osd_PutS(rgn, (720-w)/2, 270, (720+w)/2, lpMessage,		
		RGB(31,31,31), RGB(3,5,10), 0, FNT_Size_1926,
		FALSE, ALIGN_CENTER);											// show 1. message
	TAP_Osd_PutS(rgn, (720-w)/2, 270+26, (720+w)/2, lpMessage1,	
		RGB(31,31,31), RGB(3,5,10), 0, FNT_Size_1926,
		FALSE, ALIGN_CENTER);											// show 2. message
	TAP_Delay(dwDelay);													// show it for dwDelay /100 seconds
	TAP_Osd_Delete(rgn);												// release rgn-handle
}
Пример #11
0
int TAP_Main(void)
{
	int err1;


	InitTAPAPIFix();
	transparency_orig = TAP_GetSystemVar( SYSVAR_OsdAlpha );
	rgn = TAP_Osd_Create(0, 0, 720, 576, 0, 0);

	TAP_Osd_SetTransparency( rgn, 150 );

	err1 = Load_Font(&font0, "calibri_small.rasterized");
	if (err1!=0) return 0;
	err1 = Load_Font(&font1, "arialn_small.rasterized");
	if (err1!=0) return 0;
	err1 = Load_Font(&font2, "tahoma_small.rasterized");
	if (err1!=0) return 0;

	SetColors(&font0, COLOR_Red, COLOR_White);
	SetColors(&font1, COLOR_Red, COLOR_White);
	SetColors(&font2, COLOR_Red, COLOR_White);

	return 1;
}
Пример #12
0
word Rect::CreateRegion(bool bMemRegion)
{
	return (word)TAP_Osd_Create(bMemRegion ? 0 : x, bMemRegion ? 0 : y, w, h, 0, bMemRegion ? OSD_Flag_MemRgn : 0);
}
Пример #13
0
//
// Open the logfile.
//
void openLogfile()
{
    logRgn     = TAP_Osd_Create( 0, 0, 720, 576, 0, FALSE );
}