📄 fp_stub.c
字号:
/*
* Start of Zoran Standard Header
* Copyright (c) 2005 Zoran Corporation
*
*
* All rights reserved. Proprietary and confidential.
*
* DESCRIPTION for fp_stub.c
* Front panel stub routines
*
* NEW HISTORY COMMENT (description must be followed by a blank line)
* <Enter change description here>
* ===== HISTORY of changes in //depot/imgeng/sw/se_gw/ui/fs/common/fp_stub.c
*
* 1/Dec/05 #9 dstrauss Removed g_powerOn, g_powerWasOff, and
* SetPowerOnOff().
* 29/Nov/05 #8 dstrauss Removed UTF8encode.
* 22/Nov/05 #7 dstrauss Removed ReleaseThumbsAsNeeded().
* 21/Nov/05 #6 dstrauss Removed GDIgenericStretchblt().
* 18/Nov/05 #5 dstrauss Removed GDIsetImage and GDIgetImage
* 18/Nov/05 #4 dstrauss Removed GDIsetLead().
* 5/Aug/05 #2 dstrauss Abstract out the hardware-specific code.
*
* End of Zoran Standard Header
* 2006-08-24 Cellming.Chen Trim this routine
*/
#include "univ.gh"
#include "arch.h"
#include "pile.h"
#include "dbg.h"
#include "propman.h"
#include "nucleus.h"
#include "ts.h"
#include "fireregs.h"
#include "iomacros.h"
#include "util.h"
#include "string.h"
#include "startup.h"
#include "jobcopy.h"
#include "printdrv.h"
#include "job.h"
#include "ui.h"
#ifdef NPA
#include "npa.h"
#endif
#include "ppjm.h"
#include "jobmaint.h"
#include "paper.h"
#include "targmach.gh"
#include "uimisc.h"
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Constants/Macros
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Type
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
typedef int imgID;
typedef const WCHAR *LPCWSTR;
typedef const char *LPCSTR;
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Globals
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Uint8 g_ZeroCancel = 0;
Uint8 g_printMechaInitprogress = 1;
Uint8 g_printPowerOffprogress = 0;
Uint8 g_powerOffDiscardMode = 0;
Boolean gfFPAllowUSB = TRUE;
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Statics
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Prototypes
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ~~~ export functions declaration ~~~
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Externs
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
extern UIMaintainState gUIstate; // state of UI module state machine
void FPprintFatalTextAtLine0(char* pText)
{
FPprintFatalText(pText);
//LcdClrLine(0);
//LcdStr(0, 0, pText);
return;
}
BOOL DiagnosticMode_CheckScannerUse (void)
{
return (FALSE);
}
BOOL DiagnosticMode_CheckScanLifeTestMode (void)
{
return (FALSE);
}
void CopyComplete(JOB* pJob, int copynum)
{
return;
}
void DoScanLife_SinkScanJob(Uint8 sinkscanjob)
{
return;
}
int PromptingForAlignment(void)
{
return (FALSE);
}
void SetPictBridgeCancel(void)
{
return;
}
int ActiveHiResRender(void)
{
return (FALSE);
}
e_omUIMODE UImode()
{
if ( opModeDPS == gUIstate.opMode )
{
return(PICTBRIDGEMODE);
}
else if ( opModeMemoryCard == gUIstate.opMode )
{
return (PHOTOMODE);
}
else
{
return(COPYMODE);
}
}
void FPwake(void)
{
// wake up the hp task by sending it any message
//
//Msg msg;
//msg.msg1 = 1;
//TASKMSGSEND(g_hp_msgq, &msg);
}
int OKtoPrint(void)
{
return (1);
}
void SetImage(imgID id, int w, int h, int s)
{
return;
}
LPBYTE GetImage(imgID id, int* w, int* h, int* s)
{
return (NULL);
}
void SetLED(int leds, int onoff)
{
return;
}
void ReleasePhotoAppResources(int relall)
{
return;
}
/////////////////////////////////////////////////////////////////////////////////
int FPprolog(void)
{
UIInit();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -