⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kr_inputoption.h

📁 这是法国Kaleido公司提供了一个手机mmi设计平台
💻 H
字号:
/*
* Created on 30 apr. 2004
*
* @author DigitalAirways (c) 2004
* 
* 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.
*
* 
*/

#ifndef __KR_INPUTOPTION__
#define __KR_INPUTOPTION__

#include "KR_Option.h"


class KREBDLIBS_API InputOption : public Option 
{
private:
	// The name of the global variable to contain the current value
	char *fVarName ; 
protected:
	// The space to store the local value
	char fContentData[MAX_INPUTOPTION_LEN+1] ;
	// The lenght of the current value 
	int fContentLen ;

	// Refresh the content and the display of the current option
	virtual void refresh();

	// B: Common standard private methods
	// shift i chars from the left to the right, from the left of the specified place
	virtual void rightShift(char** from, int i);
	// shift i chars from the right to the left, from the left of the specified place
	virtual void leftShift(char** from, int i);
	// E: Common standard private methods
public:
	INSTANCIATOR(InputOption);		
	DEFINE_NEW(InputOption);
	DEFINE_DELETE(InputOption);	
	InputOption(GContext* newGContext) ;
	virtual ~InputOption() ;
	virtual void postRestore(long version) ;
	virtual void* getCaptionOff();
	virtual void* getCaptionOn();
	virtual boolean doAction(long actionid, char* value) ;
	void setVarname(char* newName)
	{
		SAFE_FREE(fVarName) ;
		fVarName=xstrdup(newName) ;
	}
	char* getVarname() { return fVarName; }
} ;

#endif // ndef __KR_INPUTOPTION__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -