예제 #1
0
 public static void UpdLastUsed(IViCommand c, Object a)
 {
     _lastusedcommand  = c;
     _lastusedargument = a;
     if (!c.GetType().IsDefined(typeof(MovementAttribute), false))
     {
         LastUsedCommandForDot  = c;
         LastUsedArgumentForDot = a;
     }
 }
예제 #2
0
파일: ArgumentMode.cs 프로젝트: voland/ViSD
 private void TextEnteringEventHandler( Object sender, TextCompositionEventArgs e)
 {
     vh.TextArea.Selection = ICSharpCode.AvalonEdit.Editing.Selection.Empty;
     if ( e.Text.Length >0){
         _argument = e.Text.ToCharArray()[0];
         ViSDGlobalText.Text = e.Text;
         if ( ServeArgumentCmd!=null){
             ServeArgumentCmd.Execute(this);
             ServeArgumentCmd=null;
         }
         e.Handled= true;
         ViSDGlobalCount.Process();
         ViSDGlobalState.State = State.Command;
     }
 }
예제 #3
0
 private void TextEnteringEventHandler(Object sender, TextCompositionEventArgs e)
 {
     vh.TextArea.Selection = ICSharpCode.AvalonEdit.Editing.Selection.Empty;
     if (e.Text.Length > 0)
     {
         _argument           = e.Text.ToCharArray()[0];
         ViSDGlobalText.Text = e.Text;
         if (ServeArgumentCmd != null)
         {
             ServeArgumentCmd.Execute(this);
             ServeArgumentCmd = null;
         }
         e.Handled = true;
         ViSDGlobalCount.Process();
         ViSDGlobalState.State = State.Command;
     }
 }
예제 #4
0
 public ViInputBinding(IViCommand vc, Key k, ModifierKeys mk)
 {
     key     = k;
     command = vc;
     modkey  = mk;
 }
예제 #5
0
 public CmdAppend()
 {
     movecur = new CmdCaretRight();
 }
예제 #6
0
 public void Add(IViCommand vc, Key k, ModifierKeys mk)
 {
     inputList.Add(new ViInputBinding(vc, k, mk));
 }
예제 #7
0
파일: ViInputList.cs 프로젝트: voland/ViSD
 public void Add(IViCommand vc, Key k, ModifierKeys mk)
 {
     inputList.Add(new ViInputBinding(vc, k, mk));
 }
예제 #8
0
파일: CmdAppend.cs 프로젝트: voland/ViSD
 public CmdAppend()
 {
     movecur = new CmdCaretRight();
 }
예제 #9
0
 public static void UpdateMove( IViCommand c, Object a)
 {
     _MoveCursor = c;
                 _MoveCursorArg = a;
 }
예제 #10
0
 public CmdOpenAboveInsert()
 {
     movecur = new CmdOpenAbove();
 }
예제 #11
0
파일: CmdPrevLine.cs 프로젝트: voland/ViSD
 public CmdPrevLine()
 {
     Up = new CmdCaretUp();
                 BolHard = new CmdBOLHard();
                 Bol = new CmdBOLSoft();
 }
예제 #12
0
 public CmdOpenBelowInsert()
 {
     movecur = new CmdOpenBelow();
 }
예제 #13
0
 public CmdPrevLine()
 {
     Up      = new CmdCaretUp();
     BolHard = new CmdBOLHard();
     Bol     = new CmdBOLSoft();
 }
예제 #14
0
 public CmdSubCharInsert()
 {
     movecur = new CmdSubChar();
 }
예제 #15
0
파일: CmdNextLine.cs 프로젝트: voland/ViSD
 public CmdNextLine()
 {
     Down = new CmdCaretDown();
                 BolHard = new CmdBOLHard();
                 Bol = new CmdBOLSoft();
 }
예제 #16
0
 public CmdInsertBOL()
 {
     movecur = new CmdInsertBOLPrepeare();
 }
예제 #17
0
 public CmdSubLineInsert()
 {
     movecur = new CmdSubLine();
 }
예제 #18
0
 public static void Reset()
 {
     _MoveCursor    = null;
     _MoveCursorArg = null;
 }
예제 #19
0
파일: CmdInsertBOL.cs 프로젝트: voland/ViSD
 public CmdInsertBOL()
 {
     movecur = new CmdInsertBOLPrepeare();
 }
예제 #20
0
 public static void UpdateMove(IViCommand c, Object a)
 {
     _MoveCursor    = c;
     _MoveCursorArg = a;
 }
예제 #21
0
 public static void Reset()
 {
     _MoveCursor = null;
                 _MoveCursorArg = null;
 }
예제 #22
0
파일: CmdAppendEOL.cs 프로젝트: voland/ViSD
 public CmdAppendEOL()
 {
     movecur = new CmdAppendEOLPrepeare();
 }
예제 #23
0
 public CmdSubLineInsert()
 {
     movecur = new CmdSubLine();
 }
예제 #24
0
 public CmdOpenBelowInsert()
 {
     movecur = new CmdOpenBelow();
 }
예제 #25
0
 public void AddCommand(IViCommand vc, Key k, ModifierKeys mk)
 {
     ViInputList.Add(vc, k, mk);
 }
예제 #26
0
파일: BasicMode.cs 프로젝트: voland/ViSD
 public void AddCommand(IViCommand vc, Key k, ModifierKeys mk)
 {
     ViInputList.Add( vc, k, mk);
 }
예제 #27
0
 public static void UpdLastUsed( IViCommand c, Object a)
 {
     _lastusedcommand = c;
                 _lastusedargument = a;
                 if ( !c.GetType().IsDefined(typeof(MovementAttribute), false)){
                         LastUsedCommandForDot = c;
                         LastUsedArgumentForDot = a;
                 }
 }
예제 #28
0
 public CmdOpenAboveInsert()
 {
     movecur = new CmdOpenAbove();
 }
예제 #29
0
 public CmdSubCharInsert()
 {
     movecur = new CmdSubChar();
 }
예제 #30
0
 public CmdChangeEOLInsert()
 {
     movecur = new CmdChangeEOL();
 }
예제 #31
0
 public CmdNextLine()
 {
     Down    = new CmdCaretDown();
     BolHard = new CmdBOLHard();
     Bol     = new CmdBOLSoft();
 }
예제 #32
0
 public ViInputBinding(IViCommand vc, Key k, ModifierKeys mk)
 {
     key = k;
                 command = vc;
                 modkey = mk;
 }
예제 #33
0
 public CmdChangeEOLInsert()
 {
     movecur = new CmdChangeEOL();
 }
예제 #34
0
 public CmdAppendEOL()
 {
     movecur = new CmdAppendEOLPrepeare();
 }