示例#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
 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
 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
 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
 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
 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
 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();
 }