📄 rcp2c.h
字号:
FRM;
void ErrorLine(char *sz);
/*
* Translation Entry -- used to map to foreign languages
*/
typedef struct _te
{
char *szOrig;
char *szTrans;
struct _te *pteNext;
}
TE;
/*
* Symbol Table
*/
typedef struct _sym
{
char *sz;
int wVal;
BOOL fAutoId;
struct _sym *psymNext;
}
SYM;
/*
* RCPFILE -- contains everything in a .rcp file
*/
DEFPL(PLEXFRM)
typedef struct _rcpfile
{
PLEXFRM plfrm;
}
RCPFILE;
void FreeRcpfile(RCPFILE * prcpfile);
/*
* ReservedWord
*/
typedef enum
{
rwFLD, rwLST, rwTBL, rwFBM, rwLBL, rwTTL, rwPUL, rwGSI, rwGDT,
rwBTN, rwPBN, rwCBX, rwPUT, rwSLT, rwREP, rwSLD, rwSCL,
rwForm, rwBegin, rwEnd, rwModal, rwSaveBehind, rwNoSaveBehind,
rwHelpId, rwDefaultBtnId, rwMenuId,
rwEnabled, rwDisabled, rwUsable, rwNonUsable, rwLeftAnchor,
rwRightAnchor, rwGroup, rwFont,
rwFrame, rwNoFrame, rwBoldFrame, rwVertical, rwGraphical,
rwEditable, rwNonEditable, rwUnderlined, rwSingleLine,
rwMultipleLines, rwDynamicSize, rwLeftAlign, rwHasScrollBar,
rwRightAlign, rwMaxChars,
rwVisibleItems, rwAutoShift, rwNumeric,
rwChecked,
rwBitmap,
rwBitmapGrey,
rwBitmapGrey16,
rwBitmapColor16,
rwBitmapColor256,
rwBitmapColor16k,
rwBitmapColor24k,
rwBitmapColor32k,
rwBitmapFamily,
rwBitmapFamily_special,
rwInteger,
rwWordList,
rwFontIndex,
rwPaletteTable,
rwGraffitiInputArea,
rwCreator,
rwLanguage,
rwCountry,
rwArea,
rwScreen,
rwGraffiti,
rwAreaIndex,
rwKeyDownChr,
rwKeyDownKeyCode,
rwKeyDownModifiers,
rwCountryLocalisation,
rwNumber,
rwName,
rwDateFormat,
rwLongDateFormat,
rwWeekStartDay,
rwTimeFormat,
rwNumberFormat,
rwCurrencyName,
rwCurrencySymbol,
rwCurrencyUniqueSymbol,
rwCurrencyDecimalPlaces,
rwDaylightSavings,
rwMinutesWestOfGmt,
rwMeasurementSystem,
rwFeature,
rwEntry,
rwKeyboard,
rwLongWordList,
rwByteList,
rwDefaultItem,
rwMidi,
rwBootScreenFamily,
rwPrevLeft, rwPrevRight, rwPrevWidth, rwPrevTop, rwPrevBottom,
rwPrevHeight,
rwMenu,
rwPullDown,
rwMenuItem,
rwSeparator,
rwValue,
rwMinValue,
rwMaxValue,
rwPageSize,
rwFeedback,
rwThumbID,
rwBackgroundID,
rwBitmapID,
rwSelectedBitmapID,
rwAlert,
rwMessage,
rwButtons,
rwDefaultBtn,
rwInformation, /* order assumed */
rwConfirmation,
rwWarning,
rwError,
rwVersion,
rwString,
rwStringTable,
rwFile,
rwApplicationIconName,
rwApplication,
rwLauncherCategory, /* RMa add: application default launcher category */
rwCategories,
rwTranslation,
rwCenter,
rwRight,
rwBottom,
rwAuto,
rwAt,
rwId,
rwAutoId,
rwNumColumns,
rwNumRows,
rwColumnWidths,
rwInclude,
rwDefine,
rwEqu,
rwIfdef,
rwIfndef,
rwElse,
rwEndif,
rwExtern,
rwIcon,
// rwIconGrey,
// rwIconGrey16,
// rwIconColor,
// Aaron Ardiri
// - removed these due to be purely backward
// compatable in the applications launcher
rwIconFamily,
rwIconSmall,
// rwIconSmallGrey,
// rwIconSmallGrey16,
// rwIconSmallColor,
// Aaron Ardiri
// - removed these due to be purely backward
// compatable in the applications launcher
rwIconSmallFamily,
rwTrap,
rwFontId,
rwHex,
rwData,
rwTransparency,
rwTransparencyIndex,
rwNoColorTable,
rwColorTable,
rwNoCompress,
rwAutoCompress,
rwForceCompress,
rwPublic,
rwShort,
rwInt,
rwStatic,
rwFinal,
rwNil
}
RW;
typedef struct _rwt
{
char *sz1;
char *sz2;
RW rw;
}
RWT;
/*
* could just use index into this table as rw but that is kinda fragile.
*/
#ifdef EMITRWT
RWT rgrwt[] = {
{"tFLD", "field", rwFLD},
{"tLST", "list", rwLST}, /* List */
{"tTBL", "table", rwTBL}, /* Table */
{"tFBM", "formbitmap", rwFBM}, /* Form Bitmap */
{"tLBL", "label", rwLBL}, /* Label */
{"tTTL", "title", rwTTL}, /* Title */
{"tPUL", "popuplist", rwPUL},
{"tGSI", "graffitistateindicator", rwGSI}, /* Graffiti State */
{"tGDT", "gadget", rwGDT}, /* Gadget */
{"tSCL", "scrollbar", rwSCL}, /* Scrollbar */
{"tBTN", "button", rwBTN},
{"tPBN", "pushbutton", rwPBN},
{"tCBX", "checkbox", rwCBX}, /* */
{"tPUT", "popuptrigger", rwPUT}, /* Popup trigger */
{"tSLT", "selectortrigger", rwSLT},
{"tREP", "repeatbutton", rwREP},
{"tSLD", "slider", rwSLD}, /* RMa add */
{"form", "tFRM", rwForm},
{"begin", NULL, rwBegin},
{"end", NULL, rwEnd},
{"modal", NULL, rwModal},
{"savebehind", NULL, rwSaveBehind},
{"nosavebehind", NULL, rwNoSaveBehind},
{"helpid", NULL, rwHelpId},
{"defaultbtnid", NULL, rwDefaultBtnId},
{"menuid", NULL, rwMenuId},
{"enabled", NULL, rwEnabled},
{"disabled", NULL, rwDisabled},
{"usable", NULL, rwUsable},
{"nonusable", NULL, rwNonUsable},
{"leftanchor", NULL, rwLeftAnchor},
{"rightanchor", NULL, rwRightAnchor},
{"group", NULL, rwGroup},
{"font", NULL, rwFont},
{"frame", NULL, rwFrame},
{"noframe", NULL, rwNoFrame},
{"boldframe", NULL, rwBoldFrame},
{"vertical", NULL, rwVertical},
{"graphical", NULL, rwGraphical},
{"editable", NULL, rwEditable},
{"noneditable", NULL, rwNonEditable},
{"underlined", NULL, rwUnderlined},
{"singleline", NULL, rwSingleLine},
{"multiplelines", "multipleline", rwMultipleLines},
{"dynamicsize", NULL, rwDynamicSize},
{"leftalign", NULL, rwLeftAlign},
{"hasscrollbar", NULL, rwHasScrollBar},
{"rightalign", NULL, rwRightAlign},
{"maxchars", NULL, rwMaxChars},
{"autoshift", NULL, rwAutoShift},
{"numeric", NULL, rwNumeric},
{"visibleitems", NULL, rwVisibleItems},
{"value", NULL, rwValue},
{"min", "minvalue", rwMinValue},
{"max", "maxvalue", rwMaxValue},
{"pagesize", NULL, rwPageSize},
{"feedback", NULL, rwFeedback},
{"thumbid", NULL, rwThumbID},
{"backgroundid", NULL, rwBackgroundID},
{"bitmapid", NULL, rwBitmapID},
{"selectedbitmapid", NULL, rwSelectedBitmapID},
{"checked", "on", rwChecked},
{"bitmap", NULL, rwBitmap},
{"bitmapgrey", "bitmapgray", rwBitmapGrey},
{"bitmapgrey16", "bitmapgray16", rwBitmapGrey16},
{"bitmapcolor16", "bitmapcolour16", rwBitmapColor16},
{"bitmapcolor", "bitmapcolour", rwBitmapColor256},
{"bitmapcolor16k", "bitmapcolour16k", rwBitmapColor16k},
{"bitmapcolor24k", "bitmapcolour24k", rwBitmapColor24k},
{"bitmapcolor32k", "bitmapcolour32k", rwBitmapColor32k},
{"bitmapfamily", NULL, rwBitmapFamily},
{"bitmapfamilyspecial", NULL, rwBitmapFamily_special},
{"integer", NULL, rwInteger},
{"wordlist", NULL, rwWordList},
{"fontindex", NULL, rwFontIndex},
{"palettetable", NULL, rwPaletteTable},
{"graffitiinputarea", NULL, rwGraffitiInputArea}, /* 'silk' */
{"creator", NULL, rwCreator},
{"language", NULL, rwLanguage},
{"country", NULL, rwCountry},
{"area", NULL, rwArea},
{"screen", NULL, rwScreen},
{"graffiti", NULL, rwGraffiti},
{"index", NULL, rwAreaIndex},
{"keydownchr", NULL, rwKeyDownChr},
{"keydownkeycode", NULL, rwKeyDownKeyCode},
{"keydownmodifiers", NULL, rwKeyDownModifiers},
{"countrylocalisation", NULL, rwCountryLocalisation}, /* 'cnty' */
{"number", NULL, rwNumber},
{"name", NULL, rwName},
{"dateformat", NULL, rwDateFormat},
{"longdateformat", NULL, rwLongDateFormat},
{"weekstartday", NULL, rwWeekStartDay},
{"timeformat", NULL, rwTimeFormat},
{"numberformat", NULL, rwNumberFormat},
{"currencyname", NULL, rwCurrencyName},
{"currencysymbol", NULL, rwCurrencySymbol},
{"currencyuniquesymbol", NULL, rwCurrencyUniqueSymbol},
{"currencydecimalplaces", NULL, rwCurrencyDecimalPlaces},
{"daylightsavings", NULL, rwDaylightSavings},
{"minuteswestofgmt", NULL, rwMinutesWestOfGmt},
{"measurementsystem", NULL, rwMeasurementSystem},
{"feature", NULL, rwFeature}, /* 'feat' */
{"entry", NULL, rwEntry},
{"keyboard", NULL, rwKeyboard}, /* 'tkbd' */
{"longwordlist", NULL, rwLongWordList}, /* 'DLST' */
{"bytelist", NULL, rwByteList}, /* 'BLST' */
{"defaultitem", NULL, rwDefaultItem}, /* 'DLST' & 'BLST' */
{"midi", NULL, rwMidi}, /* 'MIDI' */
{"bootscreenfamily", NULL, rwBootScreenFamily}, /* 'tbsb' it look like as a bitmapfamily with an header (size & crc) */
{"prevleft", NULL, rwPrevLeft},
{"prevright", NULL, rwPrevRight},
{"prevwidth", NULL, rwPrevWidth},
{"prevtop", NULL, rwPrevTop},
{"prevbottom", NULL, rwPrevBottom},
{"prevheight", NULL, rwPrevHeight},
{"menu", "MBAR", rwMenu},
{"pulldown", NULL, rwPullDown},
{"menuitem", NULL, rwMenuItem},
{"separator", NULL, rwSeparator},
{"alert", "tALT", rwAlert},
{"message", NULL, rwMessage},
{"defaultbutton", NULL, rwDefaultBtn},
{"buttons", NULL, rwButtons},
{"information", NULL, rwInformation},
{"confirmation", NULL, rwConfirmation},
{"warning", NULL, rwWarning},
{"error", NULL, rwError},
{"version", "tVER", rwVersion},
{"stringtable", "tSTL", rwStringTable},
{"string", "tSTR", rwString},
{"file", "tSTR", rwFile},
{"applicationiconname", NULL, rwApplicationIconName},
{"application", "APPL", rwApplication},
{"launchercategory", "taic", rwLauncherCategory},
{"categories", "tAIS", rwCategories},
{"translation", NULL, rwTranslation},
{"center", NULL, rwCenter},
{"right", NULL, rwRight},
{"bottom", NULL, rwBottom},
{"auto", NULL, rwAuto},
{"at", NULL, rwAt},
{"id", NULL, rwId},
{"autoid", NULL, rwAutoId},
{"columns", "numcolumns", rwNumColumns},
{"rows", "numrows", rwNumRows},
{"columnwidths", "widths", rwColumnWidths},
{"define", NULL, rwDefine},
{"equ", NULL, rwEqu},
{"include", NULL, rwInclude},
{"ifdef", NULL, rwIfdef},
{"ifndef", NULL, rwIfndef},
{"else", NULL, rwElse},
{"endif", NULL, rwEndif},
{"extern", NULL, rwExtern},
{"icon", NULL, rwIcon},
// {"icongrey", "icongray", rwIconGrey},
// {"icongrey16", "icongray16", rwIconGrey16},
// {"iconcolor", "iconcolour", rwIconColor},
// Aaron Ardiri
// - removed these due to be purely backward
// compatable in the applications launcher
{"iconfamily", NULL, rwIconFamily},
{"smallicon", NULL, rwIconSmall},
// {"smallicongrey", "smallicongray", rwIconSmallGrey},
// {"smallicongrey16", "smallicongray16", rwIconSmallGrey16},
// {"smalliconcolor", "smalliconcolour", rwIconSmallColor},
// Aaron Ardiri
// - removed these due to be purely backward
// compatable in the applications launcher
{"smalliconfamily", NULL, rwIconSmallFamily},
{"trap", NULL, rwTrap},
{"fontid", NULL, rwFontId},
{"hex", NULL, rwHex},
{"data", NULL, rwData},
{"tran
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -