Beispiel #1
0
 internal static void MouseDoubleClick(Point location, MouseButtons btn)
 {
     if (btn == MouseButtons.Right)
     {
         if (GlobalClass.ParentForm.FormBorderStyle == FormBorderStyle.Fixed3D)
         {
             GlobalClass.ParentForm.FormBorderStyle = FormBorderStyle.None;
         }
         else
         {
             GlobalClass.ParentForm.FormBorderStyle = FormBorderStyle.Fixed3D;
         }
     }
     if (view == ControllerView.NodeController)
     {
         nodeController.MouseDoubleClick(location);
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.MouseDoubleClick(location);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.MouseDoubleClick(location);
     }
     GlobalClass.Invalidate();
 }
Beispiel #2
0
 internal static void Paint(Graphics graphics)
 {
     if (view == ControllerView.NodeController)
     {
         nodeController.Paint(graphics);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.Paint(graphics);
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.Paint(graphics);
     }
 }
Beispiel #3
0
 internal static void MouseMove(Point location)
 {
     if (view == ControllerView.NodeController)
     {
         nodeController.MouseMove(location);
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.MouseMove(location);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.MouseMove(location);
     }
     GlobalClass.Invalidate();
 }
Beispiel #4
0
 internal static void MouseWheel(int delta, Point p)
 {
     if (view == ControllerView.NodeController)
     {
         nodeController.MouseWheel(delta, p);
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.MouseWheel(delta, p);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.MouseWheel(delta, p);
     }
     GlobalClass.Invalidate();
 }
Beispiel #5
0
 internal static void MouseDown(Point location, MouseButtons button)
 {
     if (view == ControllerView.NodeController)
     {
         GlobalClass.Hidetextbox();
         nodeController.MouseDown(location, button);
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.MouseDown(location, button);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.MouseDown(location, button);
     }
     GlobalClass.Invalidate();
 }
Beispiel #6
0
 internal static void KeyUp(object sender, KeyEventArgs e)
 {
     if (view == ControllerView.NodeController)
     {
         if (e.KeyCode != Keys.Left && e.KeyCode != Keys.Right)
         {
             GlobalClass.MultiSelect = false;
         }
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.KeyUp(e.KeyCode);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.KeyUp(e.KeyCode);
     }
 }
Beispiel #7
0
 internal static void KeyDown(object sender, KeyEventArgs e)
 {
     if (view == ControllerView.NodeController)
     {
         if (e.KeyCode == Keys.Control || e.Modifiers == Keys.Control)
         {
             GlobalClass.MultiSelect = true;
             if (e.KeyCode == Keys.I)
             {
                 Controller.AddNewImages();
             }
             else if (e.KeyCode == Keys.N)
             {
                 Controller.AddNewNode();
             }
             else if (e.KeyCode == Keys.D)
             {
                 Controller.AddFolders();
             }
             else if (e.KeyCode == Keys.R)
             {
                 Controller.OpenRecycleBin();
             }
             else if (e.KeyCode == Keys.A)
             {
                 Controller.SelectAll();
             }
             else if (e.KeyCode == Keys.C)
             {
                 Controller.Copy();
             }
             else if (e.KeyCode == Keys.X)
             {
                 Controller.Cut();
             }
             else if (e.KeyCode == Keys.V)
             {
                 Controller.Paste();
             }
             else if (e.KeyCode == Keys.O)
             {
                 Controller.GotoOriginalNodeFromLinkedEntity();
             }
             else if (e.KeyCode == Keys.Q)
             {
                 Controller.ToggleGraphicsQuality();
             }
             else if (e.KeyCode == Keys.T)
             {
                 Controller.SetCoverImage();
             }
             else if (e.KeyCode == Keys.F5)
             {
                 Controller.Refresh(true);
             }
             else if (e.KeyCode == Keys.Right)
             {
                 Controller.Right();
             }
             else if (e.KeyCode == Keys.Left)
             {
                 Controller.Left();
             }
             else if (e.KeyCode == Keys.Up)
             {
                 Controller.Up();
             }
             else if (e.KeyCode == Keys.Down)
             {
                 Controller.Down();
             }
             else if (e.KeyCode == Keys.F)
             {
                 Controller.ShowFavorite();
             }
             else if (e.KeyCode == Keys.Tab)
             {
                 Controller.DeleteCustomFolder();
             }
             else if (e.KeyCode == Keys.W)
             {
                 Controller.OpenWriter();
             }
             else if (e.KeyCode == Keys.P)
             {
                 Controller.OpenPasswords();
             }
             else if (e.KeyCode == Keys.S)
             {
                 Controller.OpenAllImages();
             }
         }
         else if (e.KeyCode == Keys.Alt || e.Modifiers == Keys.Alt)
         {
             if (e.KeyCode == Keys.Enter)
             {
                 Controller.ShowProperties();
             }
         }
         else if (e.KeyCode == Keys.Back)
         {
             Controller.GoBack();
         }
         else if (e.KeyCode == Keys.Enter)
         {
             Controller.EnterDown();
         }
         else if (e.KeyCode == Keys.Right)
         {
             Controller.Right();
         }
         else if (e.KeyCode == Keys.Left)
         {
             Controller.Left();
         }
         else if (e.KeyCode == Keys.F5)
         {
             Controller.Refresh();
         }
         else if (e.KeyCode == Keys.Escape)
         {
             Hide();
         }
         else if (e.KeyCode == Keys.Delete)
         {
             Controller.Delete();
         }
         else if (e.KeyCode == Keys.Home)
         {
             Controller.RestoreFromRecyleBin();
         }
         else if (e.KeyCode == Keys.F2)
         {
             Controller.Rename();
         }
         else if (e.KeyCode == Keys.F6)
         {
             Controller.AddToFavorite();
         }
         else if (e.KeyCode == Keys.Up)
         {
             Controller.Up();
         }
         else if (e.KeyCode == Keys.Down)
         {
             Controller.Down();
         }
         else if (e.KeyCode == Keys.Tab)
         {
             Controller.AddCustomFolder();
         }
         else if (e.KeyCode == Keys.F12)
         {
             OpenNodeControllerSettings();
         }
         else if (e.KeyCode == Keys.PageUp)
         {
             Controller.ChangeOpenedNodeControllers(false);
         }
         else if (e.KeyCode == Keys.PageDown)
         {
             Controller.ChangeOpenedNodeControllers(true);
         }
         else if (e.KeyCode == Keys.Space)
         {
             view = ControllerView.Lock;
         }
     }
     else if (view == ControllerView.Lock)
     {
         LockDesign.KeyDown(e.KeyCode);
     }
     else if (view == ControllerView.Menu)
     {
         Menu.KeyDown(e.KeyCode);
     }
 }