Ignore:
Timestamp:
Jul 12, 2008, 9:23:52 PM (16 years ago)
Author:
dai_9181
Message:

・TinyXMLをabdevプロジェクトで使えるようにした。
・コードハイライターを汎用的に実装しなおした。syntaxファイルを読み込む仕様とした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/ParameterHint.cpp

    r655 r681  
    7272    int CmdValue;
    7373
    74     CmdValue=IsBasicReservedWord(Command);
    75     if(CmdValue==COM_ABSTRACT)          lstrcpy(MethodCheckInfo.msg,"Abstract Sub/Function ([arglist]) [As type]]");
    76     else if(CmdValue==COM_BEEP)         lstrcpy(MethodCheckInfo.msg,"Beep");
    77     else if(CmdValue==COM_CHDIR)        lstrcpy(MethodCheckInfo.msg,"ChDir directory$");
    78     else if(CmdValue==COM_CIRCLE)       lstrcpy(MethodCheckInfo.msg,"Circle (x, y), radius, [color], [start], [end], [aspect], [f], [brushcolor]");
    79     else if(CmdValue==COM_CLOSE)        lstrcpy(MethodCheckInfo.msg,"Close [filenumber]");
    80     else if(CmdValue==COM_CLASS)        lstrcpy(MethodCheckInfo.msg,"Class name");
    81     else if(CmdValue==COM_CLS)          lstrcpy(MethodCheckInfo.msg,"Cls [number]");
    82     else if(CmdValue==COM_COLOR)        lstrcpy(MethodCheckInfo.msg,"Color color, [backcolor]");
    83     else if(CmdValue==COM_CONST)        lstrcpy(MethodCheckInfo.msg,"Const constname = expression");
    84     else if(CmdValue==COM_DEBUG)        lstrcpy(MethodCheckInfo.msg,"Debug");
    85     else if(CmdValue==COM_DECLARE)      lstrcpy(MethodCheckInfo.msg,"Declare Sub/Function name Lib \"libname\" [Alias \"aliasname\"] ([arglist]) [As type]]");
    86     else if(CmdValue==COM_DEF)          lstrcpy(MethodCheckInfo.msg,"Def func([parms] [,parms2])=expression");
    87     else if(CmdValue==COM_DIM)          lstrcpy(MethodCheckInfo.msg,"Dim variable [(subscripts)] As type, ...");
    88     else if(CmdValue==COM_END)          lstrcpy(MethodCheckInfo.msg,"End [type]");
    89     else if(CmdValue==COM_ENUM)         lstrcpy(MethodCheckInfo.msg,"Enum name");
    90     else if(CmdValue==COM_FIELD)        lstrcpy(MethodCheckInfo.msg,"Field #filenumber, fieldbyte");
    91     else if(CmdValue==COM_FOR)          lstrcpy(MethodCheckInfo.msg,"For variable=start To end [Step step]");
    92     else if(CmdValue==COM_FUNCTION)     lstrcpy(MethodCheckInfo.msg,"Function name ([arglist]) [As type]");
    93     else if(CmdValue==COM_GET)          lstrcpy(MethodCheckInfo.msg,"Get #filenumber, recode, StrBuffer");
    94     else if(CmdValue==COM_GOSUB)        lstrcpy(MethodCheckInfo.msg,"GoSub label");
    95     else if(CmdValue==COM_GOTO)         lstrcpy(MethodCheckInfo.msg,"Goto label");
    96     else if(CmdValue==COM_IF)           lstrcpy(MethodCheckInfo.msg,"If judgment Then truecommand [Else falsecommand]");
    97     else if(CmdValue==COM_INHERITS)     lstrcpy(MethodCheckInfo.msg,"Inherits BaseClass");
    98     else if(CmdValue==COM_INPUT)        lstrcpy(MethodCheckInfo.msg,"Input [# filenumber, ] variable, [...]");
    99     else if(CmdValue==COM_INTERFACE)    lstrcpy(MethodCheckInfo.msg,"Interface name");
    100     else if(CmdValue==COM_KILL)         lstrcpy(MethodCheckInfo.msg,"Kill filename$");
    101     else if(CmdValue==COM_LET)          lstrcpy(MethodCheckInfo.msg,"[Let] variable = expression");
    102     else if(CmdValue==COM_LINE)         lstrcpy(MethodCheckInfo.msg,"Line [(sx, sy)] -[Step] (ex, ey), [color], [B/Bf], [color2]");
    103     else if(CmdValue==COM_LOCATE)       lstrcpy(MethodCheckInfo.msg,"Locate x, y");
    104     else if(CmdValue==COM_LOOP)         lstrcpy(MethodCheckInfo.msg,"Loop while/until judgment");
    105     else if(CmdValue==COM_MKDIR)        lstrcpy(MethodCheckInfo.msg,"MkDir directory$");
    106     else if(CmdValue==COM_MSGBOX)       lstrcpy(MethodCheckInfo.msg,"MsgBox hWnd, String$, [Title$], [BoxType], [retAns]");
    107     else if(CmdValue==COM_NAMESPACE)    lstrcpy(MethodCheckInfo.msg,"Namespace namespaceStr");
    108     else if(CmdValue==COM_NEXT)         lstrcpy(MethodCheckInfo.msg,"Next");
    109     else if(CmdValue==COM_OPEN)         lstrcpy(MethodCheckInfo.msg,"Open filename$ [For Input/Output/Append] As number");
    110     else if(CmdValue==COM_PAINT)        lstrcpy(MethodCheckInfo.msg,"Paint (x, y), brushcolor, [linecolor]");
    111     else if(CmdValue==COM_PRINT)        lstrcpy(MethodCheckInfo.msg,"Print outdata, [...]");
    112     else if(CmdValue==COM_PRIVATE)      lstrcpy(MethodCheckInfo.msg,"Private");
    113     else if(CmdValue==COM_PROTECTED)    lstrcpy(MethodCheckInfo.msg,"Protected");
    114     else if(CmdValue==COM_PSET)         lstrcpy(MethodCheckInfo.msg,"PSet (x, y), [color]");
    115     else if(CmdValue==COM_PUBLIC)       lstrcpy(MethodCheckInfo.msg,"Public");
    116     else if(CmdValue==COM_PUT)          lstrcpy(MethodCheckInfo.msg,"Put #filenumber, recode, StrBuffer");
    117     else if(CmdValue==COM_RANDOMIZE)    lstrcpy(MethodCheckInfo.msg,"Randomize [number]");
    118     else if(CmdValue==COM_REM)          lstrcpy(MethodCheckInfo.msg,"Rem [comment]");
    119     else if(CmdValue==COM_RETURN)       lstrcpy(MethodCheckInfo.msg,"Return");
    120     else if(CmdValue==COM_SELECT)       lstrcpy(MethodCheckInfo.msg,"Select Case testexpression");
    121     else if(CmdValue==COM_SUB)          lstrcpy(MethodCheckInfo.msg,"Sub name ([arglist])");
    122     else if(CmdValue==COM_TYPE)         lstrcpy(MethodCheckInfo.msg,"Type name");
    123     else if(CmdValue==COM_TYPEDEF)      lstrcpy(MethodCheckInfo.msg,"TypeDef newtype = basetype");
    124     else if(CmdValue==COM_VIRTUAL)      lstrcpy(MethodCheckInfo.msg,"Virtual Sub/Function ([arglist]) [As type]]");
    125     else if(CmdValue==COM_OVERRIDE)     lstrcpy(MethodCheckInfo.msg,"Override Sub/Function ([arglist]) [As type]]");
    126     else if(CmdValue==COM_WEND)         lstrcpy(MethodCheckInfo.msg,"Wend");
    127     else if(CmdValue==COM_WHILE)        lstrcpy(MethodCheckInfo.msg,"While judgment");
    128     else if(CmdValue==COM_WINDOW)       lstrcpy(MethodCheckInfo.msg,"Window hWnd, OwnerWnd, x, y, width, height, title$, style, [class$], [ID], [callbackfunction], [ExStyle]");
    129     else if(CmdValue==COM_WITH)         lstrcpy(MethodCheckInfo.msg,"With object");
    130     else if(CmdValue==COM_WRITE)        lstrcpy(MethodCheckInfo.msg,"Write [data, ...]");
    131     else return 0;
    132     return 1;
     74    if( ActiveBasic::IDE::Program::ablang->IsExistReservedKeywordWithQuickHelp( Command ) )
     75    {
     76        lstrcpy( MethodCheckInfo.msg, ActiveBasic::IDE::Program::ablang->GetReservedKeywordWithQuickHelp( Command ).c_str() );
     77        return 1;
     78    }
     79
     80    return 0;
    13381}
    13482
Note: See TracChangeset for help on using the changeset viewer.