Esempio n. 1
0
        public NodeControlButtons(BasicNodeControl ownerControl, ApplicationContext applicationContext)
        {
            //first column with icons
            m_newConnectionHandle = new NewConnectionHandle(ownerControl, applicationContext, new QuickActionLocator(15, 0, QuickActionPosition.Right));
            m_infoHandle          = new PixToggleButtonHandle(ownerControl, new QuickActionLocator(15, 0.8, QuickActionPosition.Right),
                                                              s_infoIcon, s_infoOnIcon);

            //second column with icons
            m_removeHandle = new RemoveNodeHandle(ownerControl, new QuickActionLocator(35, 0, QuickActionPosition.Right));
        }
        public NodeControlButtons(BasicNodeControl ownerControl, ApplicationContext applicationContext)
        {
            //first column with icons
            m_newConnectionHandle = new NewConnectionHandle (ownerControl, applicationContext, new QuickActionLocator (15, 0, QuickActionPosition.Right));
            m_infoHandle = new PixToggleButtonHandle (ownerControl, new QuickActionLocator (15, 0.8, QuickActionPosition.Right),
                                              s_infoIcon, s_infoOnIcon);

            //second column with icons
            m_removeHandle = new RemoveNodeHandle (ownerControl, new QuickActionLocator (35, 0, QuickActionPosition.Right));
        }
Esempio n. 3
0
        /// <summary>
        /// Inits the wait for any handle at the given x an y location
        /// </summary>
        /// <param name="xLocation">X location.</param>
        /// <param name="yLocation">Y location.</param>
        private void InitWaitForAnyHandle(double xLocation, double yLocation)
        {
            //get absolute position
            m_waitForAnyAllHandle = new PixToggleButtonHandle(this,
                                                              new AbsoluteLocator(xLocation, yLocation, AbsoluteLocator.AbsoluteTo.TopRight),
                                                              s_waitForAnyIcon, s_waitForAllIcon);

            m_waitForAnyAllHandle.Toggled += delegate(object sender, ToggleEventArgs e)
            {
                m_node.Data.Metadata.WaitsForAllPredecessors = e.Active;
            };

            m_waitForAnyAllHandle.Active = m_node.Data.Metadata.WaitsForAllPredecessors;
        }
        /// <summary>
        /// Inits the wait for any handle at the given x an y location
        /// </summary>
        /// <param name="xLocation">X location.</param>
        /// <param name="yLocation">Y location.</param>
        private void InitWaitForAnyHandle(double xLocation, double yLocation)
        {
            //get absolute position
            m_waitForAnyAllHandle = new PixToggleButtonHandle(this, 
                                                              new AbsoluteLocator(xLocation, yLocation, AbsoluteLocator.AbsoluteTo.TopRight), 
                                                               s_waitForAnyIcon, s_waitForAllIcon);

            m_waitForAnyAllHandle.Toggled += delegate (object sender, ToggleEventArgs e) 
            {
                m_node.Data.Metadata.WaitsForAllPredecessors = e.Active;
            };

            m_waitForAnyAllHandle.Active = m_node.Data.Metadata.WaitsForAllPredecessors;
        }
Esempio n. 5
0
        public NodeControlButtons(BasicNodeControl ownerControl, ApplicationContext applicationContext)
        {
            //first column with icons
            m_newConnectionHandle = new NewConnectionHandle (ownerControl, applicationContext, new QuickActionLocator (15, 0, QuickActionPosition.Right));
 
            // HERZUM SPRINT 5.0: TLAB-230
            // HERZUM SPRINT 5.1: TLAB-230
            if (ownerControl is ScopeNodeControl || ownerControl is CommentNodeControl)
                m_infoHandle = new PixToggleButtonHandle (ownerControl, new QuickActionLocator (15, 0.12, QuickActionPosition.Right),
                                                          s_infoIcon, s_infoOnIcon);
            else
                m_infoHandle = new PixToggleButtonHandle (ownerControl, new QuickActionLocator (15, 0.8, QuickActionPosition.Right),
                                                          s_infoIcon, s_infoOnIcon);
            // END HERZUM SPRINT 5.1: TLAB-230
            // END HERZUM SPRINT 5.0: TLAB-230


            //second column with icons
            m_removeHandle = new RemoveNodeHandle (ownerControl, new QuickActionLocator (35, 0, QuickActionPosition.Right));
        }
Esempio n. 6
0
        public NodeControlButtons(BasicNodeControl ownerControl, ApplicationContext applicationContext)
        {
            //first column with icons
            m_newConnectionHandle = new NewConnectionHandle(ownerControl, applicationContext, new QuickActionLocator(15, 0, QuickActionPosition.Right));

            // HERZUM SPRINT 5.0: TLAB-230
            // HERZUM SPRINT 5.1: TLAB-230
            if (ownerControl is ScopeNodeControl || ownerControl is CommentNodeControl)
            {
                m_infoHandle = new PixToggleButtonHandle(ownerControl, new QuickActionLocator(15, 0.12, QuickActionPosition.Right),
                                                         s_infoIcon, s_infoOnIcon);
            }
            else
            {
                m_infoHandle = new PixToggleButtonHandle(ownerControl, new QuickActionLocator(15, 0.8, QuickActionPosition.Right),
                                                         s_infoIcon, s_infoOnIcon);
            }
            // END HERZUM SPRINT 5.1: TLAB-230
            // END HERZUM SPRINT 5.0: TLAB-230


            //second column with icons
            m_removeHandle = new RemoveNodeHandle(ownerControl, new QuickActionLocator(35, 0, QuickActionPosition.Right));
        }
Esempio n. 7
0
 // HERZUM SPRINT 5.2: TLAB-249
 public void MoveIconInfo(BasicNodeControl ownerControl, double rel)
 {
     m_infoHandle = new PixToggleButtonHandle(ownerControl, new QuickActionLocator(15, rel, QuickActionPosition.Right),
                                              s_infoIcon, s_infoOnIcon);
 }
Esempio n. 8
0
 // HERZUM SPRINT 5.2: TLAB-249
 public void MoveIconInfo(BasicNodeControl ownerControl,double rel)
 {
     m_infoHandle = new PixToggleButtonHandle (ownerControl, new QuickActionLocator (15, rel, QuickActionPosition.Right),
                                           s_infoIcon, s_infoOnIcon);
 }