📄 kr_stringgrouppopulator.h
字号:
/***************************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -