kr_stringgrouppopulator.h

来自「这是法国Kaleido公司提供了一个手机mmi设计平台」· C头文件 代码 · 共 88 行

H
88
字号
/***************************************************************************
KR_StringGroupPopulator.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_STRINGGROUPPOPULATOR__
#define __KR_STRINGGROUPPOPULATOR__


#include "KR_GroupPopulator.h"

#define GTYPE_STRING 1
#define GTYPE_OPTION 2
#define GTYPE_IMAGE  3

class KREBDLIBS_API StringGroupPopulator : public GroupPopulator {

protected:

	int fType ;	

public:

	DEFINE_NEW(StringGroupPopulator);
	DEFINE_DELETE(StringGroupPopulator);

	StringGroupPopulator(GContext* newGContext) : GroupPopulator (newGContext) {
		fType = GTYPE_STRING ;
	}


	virtual boolean instanceofStringGroupPopulator() {
		return true;
	}

	virtual	Option* getOption(long index, Option* oldoption);

	virtual	char* getOptionAsString(long index, boolean on)  {
		return getOptionAsString(index, NULL, on);
	}

	virtual	char* getOptionAsString(long index, char* /*unused*/, boolean /*on*/)  {//deprecated
		char *test = getContext()->getTmpBuffer() ;
		strcpy(test, "[option ") ;
		i2a(index, test+8) ;
		strcat(test, "]") ;
		return xstrdup(test);
	}

	virtual int getNbOption() {
		return 5;
	}

};

#endif // ndef __KR_STRINGGROUPPOPULATOR__

⌨️ 快捷键说明

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