Esempio n. 1
0
 protected internal abstract void DrawTitleBarButton(
     Graphics graphics,
     Rectangle bounds,
     SandDockButtonType buttonType,
     DrawItemState state,
     bool focused,
     bool toggled);
Esempio n. 2
0
		protected internal override void DrawDocumentStripButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state)
		{
			vmethod_0(graphics, bounds, state);
			if ((state & DrawItemState.Selected) == DrawItemState.Selected)
			{
				bounds.Offset(1, 1);
			}
			switch (buttonType)
			{
			case SandDockButtonType.Close:
				using (var pen = new Pen(color_6))
				{
					ButtonRenderHelper.DrawDocumentStripCloseButton(graphics, bounds, pen);
					return;
				}
			    case SandDockButtonType.Pin:
			case SandDockButtonType.WindowPosition:
				return;
			case SandDockButtonType.ScrollLeft:
				break;
			case SandDockButtonType.ScrollRight:
				ButtonRenderHelper.DrawScrollRightDockButton(graphics, bounds, color_6, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
				return;
			case SandDockButtonType.ActiveFiles:
				ButtonRenderHelper.DrawPositionDockButton(graphics, bounds, SystemPens.ControlText);
				return;
			default:
				return;
			}
			ButtonRenderHelper.DrawScrollLeftDockButton(graphics, bounds, color_6, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
		}
Esempio n. 3
0
        public void DrawTabControlButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state)
        {
            if ((state & DrawItemState.Selected) == DrawItemState.Selected)
            {
                bounds.Offset(1, 1);
            }
            SandDockButtonType sandDockButtonType = buttonType;

            if (false)
            {
                ;
            }
            switch (sandDockButtonType)
            {
            case SandDockButtonType.ScrollLeft:
                x9b2777bb8e78938b.xd70a4c1a2378c84e(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
                break;

            case SandDockButtonType.ScrollRight:
                x9b2777bb8e78938b.x793dc1a7cf4113f9(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
                break;
            }
        }
Esempio n. 4
0
 public virtual void DrawTabControlButton(
     Graphics graphics,
     Rectangle bounds,
     SandDockButtonType buttonType,
     DrawItemState state)
 {
     this.DrawDocumentStripButton(graphics, bounds, buttonType, state);
 }
Esempio n. 5
0
        protected internal override void DrawTitleBarButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state,
            bool focused,
            bool toggled)
        {
            this.x9271fbf5eef553db(graphics, bounds, state, focused);
            using (Pen x90279591611601bc = (uint)focused + (uint)focused < 0U || !focused ? new Pen(this.x9a7470f809ffee0d) : new Pen(this.x6b97fa649c9b3a44))
            {
                SandDockButtonType sandDockButtonType = buttonType;
                do
                {
                    switch (sandDockButtonType)
                    {
                    case SandDockButtonType.Close:
                        goto label_7;

                    case SandDockButtonType.Pin:
                        x9b2777bb8e78938b.x1477b5a75c8a8132(graphics, bounds, x90279591611601bc, toggled);
                        continue;

                    case SandDockButtonType.ScrollLeft:
                        goto label_8;

                    case SandDockButtonType.ScrollRight:
                        goto label_6;

                    case SandDockButtonType.WindowPosition:
                        goto label_3;

                    default:
                        goto label_2;
                    }
                }while ((uint)toggled > uint.MaxValue);
                goto label_12;
label_3:
                x9b2777bb8e78938b.xeac2e7eb44dff86e(graphics, bounds, x90279591611601bc);
                return;

label_8:
                return;

label_6:
                return;

label_2:
                return;

label_12:
                return;

label_7:
                x9b2777bb8e78938b.x26f0f0028ef01fa5(graphics, bounds, x90279591611601bc);
            }
        }
Esempio n. 6
0
        protected internal override void DrawDocumentStripButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state)
        {
            this.x9271fbf5eef553db(graphics, bounds, state);
            if ((state & DrawItemState.Selected) == DrawItemState.Selected)
            {
                goto label_15;
            }
label_13:
            switch (buttonType)
            {
            case SandDockButtonType.Close:
                using (Pen x90279591611601bc = new Pen(this.x488edc060a6f4707))
                {
                    x9b2777bb8e78938b.xb176aa01ddab9f3e(graphics, bounds, x90279591611601bc);
                    return;
                }

            case SandDockButtonType.Pin:
                return;

            case SandDockButtonType.ScrollLeft:
                x9b2777bb8e78938b.xd70a4c1a2378c84e(graphics, bounds, this.x488edc060a6f4707, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
                return;

            case SandDockButtonType.ScrollRight:
                x9b2777bb8e78938b.x793dc1a7cf4113f9(graphics, bounds, this.x488edc060a6f4707, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
                return;

            case SandDockButtonType.WindowPosition:
                return;

            case SandDockButtonType.ActiveFiles:
                using (Pen x90279591611601bc = new Pen(this.x488edc060a6f4707))
                {
                    x9b2777bb8e78938b.xeac2e7eb44dff86e(graphics, bounds, x90279591611601bc);
                    return;
                }

            default:
                return;
            }
label_15:
            bounds.Offset(1, 1);
            goto label_13;
        }
Esempio n. 7
0
 public void DrawTabControlButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state)
 {
     if ((state & DrawItemState.Selected) == DrawItemState.Selected)
         bounds.Offset(1, 1);
     switch (buttonType)
     {
         case SandDockButtonType.ScrollLeft:
             ButtonRenderHelper.DrawScrollLeftDockButton(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
             return;
         case SandDockButtonType.ScrollRight:
             ButtonRenderHelper.DrawScrollRightDockButton(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
             return;
         default:
             return;
     }
 }
Esempio n. 8
0
		private void method_0(Graphics g, ITabControlRenderer renderer, DockButtonInfo class17_3, SandDockButtonType buttonType, bool bool_2)
		{
			if (class17_3.Visible)
			{
				DrawItemState drawItemState = DrawItemState.Default;
				if (Class17_0 == class17_3)
				{
					drawItemState |= DrawItemState.HotLight;
					if (bool_1)
					{
						drawItemState |= DrawItemState.Selected;
					}
				}
				if (!bool_2)
				{
					drawItemState |= DrawItemState.Disabled;
				}
				renderer.DrawTabControlButton(g, class17_3.Bounds, buttonType, drawItemState);
			}
		}
Esempio n. 9
0
 protected internal abstract void DrawTitleBarButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state, bool focused, bool toggled);
Esempio n. 10
0
 public virtual void DrawTabControlButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state)
 {
     DrawDocumentStripButton(graphics, bounds, buttonType, state);
 }
Esempio n. 11
0
 protected internal abstract void DrawDocumentStripButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state);
Esempio n. 12
0
		internal void method_10(Graphics g, RendererBase renderer, DockButtonInfo class17_4, SandDockButtonType buttonType, bool bool_7)
		{
		    if (!class17_4.Visible) return;

		    var state = DrawItemState.Default;
		    if (ClickedDockButton == class17_4)
		    {
		        state |= DrawItemState.HotLight;
		        if (bool_2)
		        {
		            state |= DrawItemState.Selected;
		        }
		    }
		    if (!bool_7)
		    {
		        state |= DrawItemState.Disabled;
		    }
		    renderer.DrawDocumentStripButton(g, class17_4.Bounds, buttonType, state);
		}
Esempio n. 13
0
		protected internal override void DrawTitleBarButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state, bool focused, bool toggled)
		{
			method_7(graphics, bounds, state, focused);
			using (Pen pen = (!focused) ? new Pen(Color.Black) : new Pen(Color.Black))
			{
				switch (buttonType)
				{
				case SandDockButtonType.Close:
					ButtonRenderHelper.DrawCloseDockButton(graphics, bounds, pen);
					break;
				case SandDockButtonType.Pin:
					ButtonRenderHelper.DrawPinDockButton(graphics, bounds, pen, toggled);
					break;
				case SandDockButtonType.WindowPosition:
					ButtonRenderHelper.DrawPositionDockButton(graphics, bounds, pen);
					break;
				}
			}
		}
Esempio n. 14
0
 protected internal abstract void DrawDocumentStripButton(
     Graphics graphics,
     Rectangle bounds,
     SandDockButtonType buttonType,
     DrawItemState state);
Esempio n. 15
0
 protected internal override void DrawDocumentStripButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state)
 {
     method_2(graphics, bounds, state);
     if ((state & DrawItemState.Selected) == DrawItemState.Selected)
         bounds.Offset(1, 1);
     switch (buttonType)
     {
         case SandDockButtonType.Close:
             using (var pen = new Pen(_widgetColor))
                 ButtonRenderHelper.DrawDocumentStripCloseButton(graphics, bounds, pen);
             return;
         case SandDockButtonType.Pin:
         case SandDockButtonType.WindowPosition:
             return;
         case SandDockButtonType.ScrollLeft:
             ButtonRenderHelper.DrawScrollLeftDockButton(graphics, bounds, _widgetColor, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
             return;
         case SandDockButtonType.ScrollRight:
             ButtonRenderHelper.DrawScrollRightDockButton(graphics, bounds, _widgetColor, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
             return;
         case SandDockButtonType.ActiveFiles:
             using (var pen2 = new Pen(_widgetColor))
                 ButtonRenderHelper.DrawPositionDockButton(graphics, bounds, pen2);
             return;
         default:
             return;
     }
 }
Esempio n. 16
0
		protected internal override void DrawTitleBarButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state, bool focused, bool toggled)
		{
			bounds.Width--;
			bounds.Height--;
			vmethod_0(graphics, bounds, state);
			if ((state & DrawItemState.Selected) == DrawItemState.Selected)
			{
				bounds.Offset(1, 1);
			}
			switch (buttonType)
			{
			case SandDockButtonType.Close:
				ButtonRenderHelper.DrawCloseDockButton(graphics, bounds, focused ? SystemPens.ActiveCaptionText : SystemPens.ControlText);
				return;
			case SandDockButtonType.Pin:
				ButtonRenderHelper.DrawPinDockButton(graphics, bounds, focused ? SystemPens.ActiveCaptionText : SystemPens.ControlText, toggled);
				return;
			case SandDockButtonType.ScrollLeft:
			case SandDockButtonType.ScrollRight:
				break;
			case SandDockButtonType.WindowPosition:
				ButtonRenderHelper.DrawPositionDockButton(graphics, bounds, focused ? SystemPens.ActiveCaptionText : SystemPens.ControlText);
				break;
			default:
				return;
			}
		}
Esempio n. 17
0
		protected internal override void DrawTitleBarButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state, bool focused, bool toggled)
		{
			vmethod_0(graphics, bounds, state, focused);
			using (var pen = focused ? new Pen(_activeTitleBarForegroundColor) : new Pen(_inactiveTitleBarForegroundColor))
			{
				switch (buttonType)
				{
				case SandDockButtonType.Close:
					ButtonRenderHelper.DrawCloseDockButton(graphics, bounds, pen);
					break;
				case SandDockButtonType.Pin:
					ButtonRenderHelper.DrawPinDockButton(graphics, bounds, pen, toggled);
					break;
				case SandDockButtonType.WindowPosition:
					ButtonRenderHelper.DrawPositionDockButton(graphics, bounds, pen);
					break;
				}
			}
		}
Esempio n. 18
0
		protected internal override void DrawDocumentStripButton(Graphics graphics, Rectangle bounds, SandDockButtonType buttonType, DrawItemState state)
		{
			vmethod_0(graphics, bounds, state, true);
			switch (buttonType)
			{
			case SandDockButtonType.Close:
				ButtonRenderHelper.DrawCloseDockButton(graphics, bounds, SystemPens.ControlText);
				return;
			case SandDockButtonType.Pin:
			case SandDockButtonType.WindowPosition:
				break;
			case SandDockButtonType.ScrollLeft:
				ButtonRenderHelper.DrawScrollLeftDockButton(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
				return;
			case SandDockButtonType.ScrollRight:
				ButtonRenderHelper.DrawScrollRightDockButton(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
				return;
			case SandDockButtonType.ActiveFiles:
				bounds.Inflate(1, 1);
				bounds.X--;
				ButtonRenderHelper.DrawPositionDockButton(graphics, bounds, SystemPens.ControlText);
				break;
			default:
				return;
			}
		}
Esempio n. 19
0
        protected internal override void DrawTitleBarButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state,
            bool focused,
            bool toggled)
        {
            --bounds.Width;
            do
            {
                if (true)
                {
                    --bounds.Height;
                }
                this.x9271fbf5eef553db(graphics, bounds, state);
                if (((toggled ? 1 : 0) & 0) == 0)
                {
                    goto label_11;
                }
                else
                {
                    goto label_19;
                }
label_7:
                switch (buttonType)
                {
                case SandDockButtonType.Close:
                    goto label_4;

                case SandDockButtonType.Pin:
                    goto label_2;

                case SandDockButtonType.ScrollLeft:
                    goto label_8;

                case SandDockButtonType.ScrollRight:
                    goto label_10;

                case SandDockButtonType.WindowPosition:
                    x9b2777bb8e78938b.xeac2e7eb44dff86e(graphics, bounds, focused ? SystemPens.ActiveCaptionText : SystemPens.ControlText);
                    if ((uint)focused - (uint)focused >= 0U)
                    {
                        goto label_15;
                    }
                    else
                    {
                        goto label_13;
                    }

                default:
                    goto label_3;
                }
label_11:
                if ((state & DrawItemState.Selected) != DrawItemState.Selected)
                {
                    if (true)
                    {
                        goto label_7;
                    }
                }
                else
                {
                    goto label_19;
                }
label_13:
                if ((uint)toggled >= 0U)
                {
                    if (true)
                    {
                        if ((uint)focused + (uint)focused > uint.MaxValue)
                        {
                            goto label_12;
                        }
                        else
                        {
                            goto label_7;
                        }
                    }
                }
                else
                {
                    goto label_11;
                }
label_15:
                continue;
label_19:
                bounds.Offset(1, 1);
                if ((uint)focused < 0U)
                {
                    goto label_13;
                }
                else
                {
                    goto label_13;
                }
            }while ((uint)focused - (uint)focused < 0U);
            goto label_9;
label_2:
            x9b2777bb8e78938b.x1477b5a75c8a8132(graphics, bounds, focused ? SystemPens.ActiveCaptionText : SystemPens.ControlText, toggled);
            return;

label_4:
            x9b2777bb8e78938b.x26f0f0028ef01fa5(graphics, bounds, focused ? SystemPens.ActiveCaptionText : SystemPens.ControlText);
            return;

label_12:
            return;

label_8:
            return;

label_10:
            return;

label_3:
            return;

            label_9 :;
        }
Esempio n. 20
0
        protected internal override void DrawDocumentStripButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state)
        {
            this.x9271fbf5eef553db(graphics, bounds, state);
            if (true)
            {
                goto label_17;
            }
label_1:
            using (Pen x90279591611601bc = new Pen(this.x488edc060a6f4707))
            {
                x9b2777bb8e78938b.xb176aa01ddab9f3e(graphics, bounds, x90279591611601bc);
                return;
            }
label_17:
            if (true)
            {
                goto label_14;
            }
            else
            {
                goto label_12;
            }
label_8:
            x9b2777bb8e78938b.xd70a4c1a2378c84e(graphics, bounds, this.x488edc060a6f4707, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
            return;

label_10:
            SandDockButtonType sandDockButtonType = buttonType;

            if (true)
            {
                switch (sandDockButtonType)
                {
                case SandDockButtonType.Close:
                    goto label_1;

                case SandDockButtonType.Pin:
                    return;

                case SandDockButtonType.ScrollLeft:
                    goto label_8;

                case SandDockButtonType.ScrollRight:
                    x9b2777bb8e78938b.x793dc1a7cf4113f9(graphics, bounds, this.x488edc060a6f4707, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
                    break;

                case SandDockButtonType.WindowPosition:
                    return;

                case SandDockButtonType.ActiveFiles:
                    x9b2777bb8e78938b.xeac2e7eb44dff86e(graphics, bounds, SystemPens.ControlText);
                    return;

                default:
                    return;
                }
            }
            if (true)
            {
                return;
            }
            goto label_1;
label_12:
            bounds.Offset(1, 1);
            if (true)
            {
                if (true)
                {
                    goto label_10;
                }
            }
            else
            {
                goto label_8;
            }
label_14:
            if ((state & DrawItemState.Selected) == DrawItemState.Selected)
            {
                goto label_12;
            }
            else
            {
                goto label_10;
            }
        }
Esempio n. 21
0
        protected internal override void DrawDocumentStripButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state)
        {
            this.x9271fbf5eef553db(graphics, bounds, state, true);
            if (true)
            {
                goto label_9;
            }
label_1:
            if (true)
            {
                if (true)
                {
                    return;
                }
                goto label_5;
            }
label_4:
            --bounds.X;
label_5:
            x9b2777bb8e78938b.xeac2e7eb44dff86e(graphics, bounds, SystemPens.ControlText);
            if (true)
            {
                return;
            }
label_9:
            do
            {
                switch (buttonType)
                {
                case SandDockButtonType.Close:
                    x9b2777bb8e78938b.x26f0f0028ef01fa5(graphics, bounds, SystemPens.ControlText);
                    continue;

                case SandDockButtonType.Pin:
                    goto label_6;

                case SandDockButtonType.ScrollLeft:
                    goto label_11;

                case SandDockButtonType.ScrollRight:
                    goto label_12;

                case SandDockButtonType.WindowPosition:
                    goto label_14;

                case SandDockButtonType.ActiveFiles:
                    goto label_3;

                default:
                    goto label_7;
                }
            }while (false);
            goto label_1;
label_3:
            bounds.Inflate(1, 1);
            goto label_4;
label_6:
            return;

label_14:
            return;

label_7:
            return;

label_11:
            x9b2777bb8e78938b.xd70a4c1a2378c84e(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
            return;

label_12:
            x9b2777bb8e78938b.x793dc1a7cf4113f9(graphics, bounds, SystemColors.ControlText, (state & DrawItemState.Disabled) != DrawItemState.Disabled);
        }
Esempio n. 22
0
        protected internal override void DrawTitleBarButton(
            Graphics graphics,
            Rectangle bounds,
            SandDockButtonType buttonType,
            DrawItemState state,
            bool focused,
            bool toggled)
        {
            --bounds.Width;
            if (false)
            {
                if ((uint)toggled - (uint)toggled >= 0U)
                {
                    goto label_6;
                }
            }
            else
            {
                goto label_14;
            }
label_2:
            x9b2777bb8e78938b.x1477b5a75c8a8132(graphics, bounds, focused ? SystemPens.ControlText : SystemPens.ControlText, toggled);
            return;

label_6:
            SandDockButtonType sandDockButtonType;

            do
            {
                do
                {
                    switch (sandDockButtonType)
                    {
                    case SandDockButtonType.Close:
                        x9b2777bb8e78938b.x26f0f0028ef01fa5(graphics, bounds, focused ? SystemPens.ControlText : SystemPens.ControlText);
                        continue;

                    case SandDockButtonType.Pin:
                        goto label_2;

                    case SandDockButtonType.ScrollLeft:
                        goto label_8;

                    case SandDockButtonType.ScrollRight:
                        goto label_11;

                    case SandDockButtonType.WindowPosition:
                        goto label_5;

                    default:
                        goto label_7;
                    }
                }while ((uint)focused - (uint)toggled > uint.MaxValue);
                goto label_15;
label_5:
                x9b2777bb8e78938b.xeac2e7eb44dff86e(graphics, bounds, focused ? SystemPens.ControlText : SystemPens.ControlText);
            }while (((focused ? 1 : 0) & 0) != 0);
            goto label_9;
label_15:
            return;

label_9:
            return;

label_8:
            return;

label_11:
            return;

label_7:
            if ((uint)toggled - (uint)focused >= 0U)
            {
                return;
            }
label_13:
            sandDockButtonType = buttonType;
            if (true)
            {
                goto label_6;
            }
label_14:
            --bounds.Height;
            this.x9271fbf5eef553db(graphics, bounds, state);
            if ((uint)toggled + (uint)toggled >= 0U)
            {
                if ((state & DrawItemState.Selected) == DrawItemState.Selected)
                {
                    bounds.Offset(1, 1);
                    goto label_13;
                }
                else
                {
                    goto label_13;
                }
            }
            else
            {
                goto label_6;
            }
        }