Example #1
0
 public void Reset(KeyboardIME kime, IOProcessor iop)
 {
     this.kime = kime;
     this.iop = iop;
  //   imf = new IMEForm();
     tmp = new StringBuilder();
 }
Example #2
0
 public void Reset(KeyboardIME kime, IOProcessor iop)
 {
     this.kime = kime;
     this.iop  = iop;
     //   imf = new IMEForm();
     tmp = new StringBuilder();
 }
Example #3
0
 public IMEProcessor(KeyboardIME kime, Main mfm, IOProcessor iop)
 {
     this.mfm = mfm;
     this.kime = kime;
     this.iop = iop;
     imf = new IMEForm();
     tmp = new StringBuilder();
     imf.SetText("Loading...");
     Point p = FindCaret();
     BackupState();
     imf.Opacity = 0;
     imf.Show();
     RestoreState();
     imf.Hide();
     imf.Opacity = 0.85;
 }
Example #4
0
        public IMEProcessor(KeyboardIME kime, Main mfm, IOProcessor iop)
        {
            this.mfm  = mfm;
            this.kime = kime;
            this.iop  = iop;
            imf       = new IMEForm();
            tmp       = new StringBuilder();
            imf.SetText("Loading...");
            Point p = FindCaret();

            BackupState();
            imf.Opacity = 0;
            imf.Show();
            RestoreState();
            imf.Hide();
            imf.Opacity = 0.85;
        }
Example #5
0
 private void UpdateLayout(string s)
 {
     foreach (Layout l in Layouts)
     {
         if (s == l.name)
         {
             if (!l.isIME)
             {
                 scrbtn.Enabled = true;
                 kl = new KeyboardLayout(s);
                 kime = null;
                 /*if (imp != null)
                 {
                     imp.Kill();
                     imp = null;
                 }*/
                 laybtn.Text = kl.getname();
                 cfg.Write("layout", s);
                 if (vk != null)
                     vk.SetActiveLayout(kl);
                 if (hw != null)
                     hw.SetActiveLayout(kl);
                 if (active)
                 {
                     /*
                     if (imp != null)
                     {
                         imp.Kill();
                         imp = null;
                     }*/
                 }
             }
             else
             {
                 kl = null;
                 kime = new KeyboardIME(l.name);
                 cfg.Write("layout", s);
                 laybtn.Text = kime.getname();
                 if (l.name == "MyRoman")
                 {
                     // toolStripMenuItem2.Text = "MyRoman Browser";
                 }
                 else
                 {
                     //toolStripMenuItem2.Enabled = false;
                 }
                 if (vk != null)
                 {
                     vk.Hide();
                     vk.Dispose();
                     vk = null;
                 }
                 if (active)
                 {
                     //if (imp != null)
                     //    imp.Kill();
                     imp.Reset(kime, iop);// = new IMEProcessor(kime,this, iop);
                 }
             }
             System.GC.Collect();
             return;
         }
     }
 }