📄 guicanceljob.c
字号:
/*
* Start of Zoran Standard Header
* Copyright (c) 2005, 2006 Zoran Corporation
*
*
* All rights reserved. Proprietary and confidential.
*
* DESCRIPTION for guicanceljob.c
* Job-cancel action routine
*
* NEW HISTORY COMMENT (description must be followed by a blank line)
* <Enter change description here>
* ===== HISTORY of changes in //depot/imgeng/sw/se_gw/gui/guicanceljob.c
*
* 24/Jan/06 #3 dstrauss Fixed file description comment.
* 13/Dec/05 #2 dstrauss Cancel photoprint jobs, too
* 9/Dec/05 #1 dstrauss Created.
*
* End of Zoran Standard Header
*/
#include "standard.h"
#include "job.h"
#include "jobcopy.h"
#include "ppjm.h"
#include "guiactions.h"
extern void cancelPictBridgePrint(void);
/* Cancel any outstanding job(s). Return 1 if we actually
* canceled (at least) one, else return 0.
*/
int GUIActionCancelJob(void)
{
int retval;
JOB* pJob;
retval = 0; /* assume failure */
if (GetNumberOfActiveJobs() != 0 ) {
if ((pJob=GetActiveJobOfType(JOB_COPY)) != NULL ) {
CopyJobAbort(pJob);
retval = 1;
}
if ((pJob=GetActiveJobOfType(JOB_PHOTOPRINT)) != NULL ) {
GUIActionStopPhoto();
retval = 1;
}
if ((pJob=GetActiveJobOfType(JOB_PICTBRIDGE)) != NULL ) {
cancelPictBridgePrint();
retval = 1;
}
}
return (retval);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -