📄 kr_timeroption.h
字号:
/***************************************************************************
KR_TimerOption.h -
-------------------
begin : Tue Mar 3 2004
copyright : (C) 2004 by DigitalAirways
email : info@digitalairways.com
***************************************************************************/
/*
* Copyright (c) 2000-2004 DigitalAirways, sarl. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* DigitalAirways, sarl. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with DigitalAirways.
* A copy of this license is included in the licence.txt file included
* in this software package.
*/
/*
**************************************************************
* TODO
**************************************************************
-
**************************************************************
* HISTORY
**************************************************************
-
*/
#ifndef __KR_TIMEROPTION__
#define __KR_TIMEROPTION__
class TimerOption : public ActionOption
{
private:
int first ;
public:
INSTANCIATOR(TimerOption);
DEFINE_NEW(TimerOption);
DEFINE_DELETE(TimerOption);
TimerOption(GContext* newGContext) : ActionOption(newGContext)
{first=1;}
virtual ~TimerOption()
{
getContext()->getScheduledQueue()->dropMessages(MSG_ACCEPT, 0) ;
}
virtual void doFocus()
{
if(first)
{
getContext()->getScheduledQueue()->updateMessage(MSG_ACCEPT, 0, 0, getContext()->getCurrentTime()+2000) ;
first=0 ;
}
}
virtual void loseFocus()
{
getContext()->getScheduledQueue()->dropMessages(MSG_ACCEPT, 0) ;
}
} ;
#endif // ndef __KR_TIMEROPTION__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -