Download Now
Forums

    Reference Codebot.Frame.Source.pas

    Part of the Codebot Frame Design package

    The Codebot.Frame.Source unit finds the parts of the unit of a form or frame that change when it is converted into a control, and edits its text.

    TFormSource reads the tokens of the unit, skipping comments but keeping compiler directives. Analyze finds the unit name, the interface and implementation, the uses clauses, the declaration of the form class and its ancestor, the end of the unit, and whether the unit is written in Delphi mode. It also removes the fields of the components, the global variable of the form, and the form resource directive.

    Changes are added as edits of the text and made all at once by Apply, so the comments, directives, and code that don't change are kept exactly as they were written.

    Items 46 items

    NameKindLine
    TFormSourceclass51
    AncestorIndexfield82
    ClassEndIndexfield84
    ClassIndexfield80
    ClassMembersfield89
    FormVariablesfield91
    ImplementationIndexfield67
    ImplementationUsesfield87
    ImplementationUsesEndfield78
    InterfaceIndexfield75
    InterfaceUsesfield86
    InterfaceUsesEndfield73
    IsDelphiModefield63
    UnitEndIndexfield70
    UnitNameIndexfield65
    AddEditprocedure102
    Analyzefunction98
    Applyfunction115
    Createconstructor92
    Destroydestructor93
    InsertAfterprocedure106
    InsertBeforeLineprocedure104
    IsSymbolfunction121
    IsWordfunction119
    LineOffunction113
    RemoveTokensprocedure111
    ReplaceIdentprocedure100
    ReplaceTokenprocedure108
    Tokenfunction117
    TokenCountfunction116
    Errorproperty122
    TPasTokenrecord32
    EndPosfield37
    Kindfield33
    StartPosfield35
    Textfield38
    TPasTokenKindenum27
    ptIdentenum value27
    ptNumberenum value27
    ptStringenum value27
    ptSymbolenum value27
    ptDirectiveenum value27
    TSourceEditrecord43
    Countfield45
    Posfield44
    Textfield46