Example #1
0
 public override void alignEdition(TypeEditor interfaceType, globalItem ownParent)
 {
     if (interfaceType == TypeEditor.ROUTECONFIG)
     {
         setMovable();
         setRotable();
     }
 }
Example #2
0
 public override void alignEdition(TypeEditor interfaceType, globalItem ownParent)
 {
     if (interfaceType == TypeEditor.ACTIVITY)
     {
         setMovable();
         setLineSnap();
         setEditable();
         setActEdit();
     }
 }
Example #3
0
 public override void alignEdition(TypeEditor interfaceType, globalItem ownParent)
 {
     if (interfaceType == TypeEditor.ROUTECONFIG)
     {
         setMovable();
     }
     if (parent == null)
     {
         parent = (StationItem)ownParent;
     }
 }
Example #4
0
 public void AddActWidget(globalItem item)
 {
     if (item.GetType() == typeof(ActStartItem))
     {
         foreach (var action in ActItemWidget)
         {
             if (action.GetType() == typeof(ActStartItem))
             {
                 return;
             }
         }
     }
     else if (item.GetType() == typeof(ActStopItem))
     {
         bool StartFound = false;
         foreach (var action in ActItemWidget)
         {
             if (action.GetType() == typeof(ActStopItem))
             {
                 return;
             }
             if (action.GetType() == typeof(ActStartItem))
             {
                 StartFound = true;
             }
         }
         if (!StartFound)
         {
             return;
         }
     }
     else if (item.GetType() == typeof(ActWaitItem))
     {
         bool StartFound = false;
         foreach (var action in ActItemWidget)
         {
             if (action.GetType() == typeof(ActStartItem))
             {
                 StartFound = true;
             }
         }
         if (!StartFound)
         {
             return;
         }
     }
     ActItemWidget.Add(item);
 }
Example #5
0
 public override void alignEdition(TypeEditor interfaceType, globalItem ownParent)
 {
     setMovable();
 }
Example #6
0
 public virtual void alignEdition(TypeEditor interfaceType, globalItem ownParent)
 {
 }