  

1)   .
:
   ( ,    )  
  ,    .
:
IFar.newEditor();
:
   .
EF_NONMODAL - isModal
EF_CREATENEW - isNew (       edit(),  editNew)

  
IEditor IFar.edit(String File, String Title, int Line, int Pos, IWindow window, Bool isModal=false)
IEditor IFar.editNew(String File, String Title, int Line, int Pos, IWindow window, Bool isModal=false)
(,  ,     IFar.newEditor,    
       .
  
 var editor=Far.newEditor();
 editor.file="C:\autoexec.bat";
 editor.isModal=false;
 editor.show();
 ...
 editor.close();
)

2)   -   IWindow    IFar  
newWindow(left, top, rigth, bottom)
: 
   , ,   .   IFar.newWindow -
 .
:
IFar.edit  ( 1))
IFar.editNew
IFar.

3)  ID  IEditor
:
,   ID -    IEditor.      long,
c v           
(, )
:
IEditor
:
  Bool IEditor.isEqual(IEditor anotherEditor)
        IEditor

4) IWindow.topLine --> IWindow.top
   IWindow.leftPos --> IWindow.left
   +IWindow.bottom=top+height-1
   +IWindow.right=left+width-1
:
   , ,    Delphi VCL. ,     
  start:IPoint end:IPoint
4.1)
    IWindow  IRect - 
    -         
    .


5) IColor - IColoredLine ( LineColor)
:
   Color -   ,   

6) IColorItem.startPos --> start
              endPos --> end
   :  

7) IEditor.lines --> IEditor.text(encoding='Windows1251')
   ILines --> IStrings
:
    ILines.  .

8) +IEditor.lines:ILines
    interface ILines{
      first:ILine;
      last:ILine;
      item(N:integer):ILine;
      _newEnum<ILine>
      count:integer;
      Selected:ILines;
    };
    interface ILine{
      No:integer; //  
      text:String;
      rawText:String;
      Color:IColoredLine;
      Selection:ILineSelection;
    };
    interface ILineSelection{
      first, last:integer;
      count:integer;
      text(encoding='Windows1251'):String;
      rawText:String;
    };
:
      

9) IBlock.startLine,endLine,startPos,endPos -->
   IBlock.rect:IWindow
:
       IWindow
:
    IBlock  IWindow

10) IBlock.type --> IBlock.kind
:
     Delphi

11) IBlock.selectStream, selectColumn --> IBlock.select(void)
:
         
:
  property selected:bool;

12) IBlock.hide --> IBlock.unselect
:
  1)    select
  2) hide -  -   ,   

: IBlock.select, unselect, selected --> null
:
       IEditor.block null  Far.newBlock

13) createObject(ClassName:String) -->
    createMenu, createInputBox, ... (, )
:
         ( )
:
   newMenu, newInputBox - ,   JS: var a = new Menu; var a=FAR.newMenu();

14)          
IFar (prop Editor,CurrentPanel,Another)
:       - , , 
     VB

   
15) IEditorEvents.Open() -> IEditorEvents.Open(IEditor source)
:
 ,    

16)       

17) , ,      ?
       ?

18) IFar.msg  Buttons -    ?      
?

19) IFar.msg  Flags -   
WARNING FMSG_ERRORTYPE FMSG_KEEPBACKGROUND FMSG_DOWN FMSG_LEFTALIGN
     WARNING  -    
Message       InputBox  Msg    
 .
:
Flags must die!

20) IInputBox.flags -->
IInputBox.emptyEnabled, isPassword, envExpanded, useLastHistory, buttonsShowed
:
Flags must die!

21) IPanel.ColumnTypes, ColumnWidths --> IPanel.Columns:IColumns
    interface IColumns extends Collection<IColumn>{
      types:String; //      
    }
    interface IColumn{
      type:String;
      width:Integer;
    }
:
      "",     . 
         .

22)  ISelectedPanelItems
:
   IPanelItems

