예제 #1
0
 internal void RemoveItem(DockBarItem it)
 {
     box.Remove(it);
     it.Shown  -= OnItemVisibilityChanged;
     it.Hidden -= OnItemVisibilityChanged;
     UpdateVisibility();
 }
예제 #2
0
 internal void RemoveItem(DockBarItem it)
 {
     DisableHoverActivation();
     box.Remove(it);
     it.Shown  -= OnItemVisibilityChanged;
     it.Hidden -= OnItemVisibilityChanged;
     UpdateVisibility();
 }
예제 #3
0
        internal DockBarItem AddItem(DockItem item, int size)
        {
            DockBarItem it = new DockBarItem(this, item, size);

            box.PackStart(it, false, false, 0);
            it.ShowAll();
            UpdateVisibility();
            it.Shown  += OnItemVisibilityChanged;
            it.Hidden += OnItemVisibilityChanged;
            return(it);
        }
예제 #4
0
 internal void UpdateTitle(DockItem item)
 {
     foreach (Widget w in box.Children)
     {
         DockBarItem it = w as DockBarItem;
         if (it != null && it.DockItem == item)
         {
             it.UpdateTab();
             break;
         }
     }
 }
예제 #5
0
        internal DockBarItem AddItem(DockItem item, int size)
        {
            DisableHoverActivation();
            DockBarItem it = new DockBarItem(this, item, size);

            box.PackStart(it, false, false, 0);
            it.ShowAll();
            UpdateVisibility();
            it.Shown  += OnItemVisibilityShown;
            it.Hidden += OnItemVisibilityHidden;
            return(it);
        }
예제 #6
0
 void ResetBarUndockMode()
 {
     if (dockBarItem != null)
     {
         dockBarItem.Close();
         dockBarItem = null;
         if (titleTab != null)
         {
             titleTab.UpdateBehavior();
         }
     }
 }
예제 #7
0
 void ResetBarUndockMode()
 {
     if (dockBarItem != null)
     {
         dockBarItem.Close();
         dockBarItem = null;
         if (widget != null)
         {
             widget.UpdateBehavior();
         }
     }
 }
예제 #8
0
 internal void SetAutoHideMode(Gtk.PositionType pos, int size)
 {
     ResetMode();
     if (widget != null)
     {
         widget.Hide();                  // Avoids size allocation warning
         widget.Unparent();
     }
     dockBarItem = frame.BarDock(pos, this, size);
     if (widget != null)
     {
         widget.UpdateBehavior();
     }
 }
예제 #9
0
 internal void SetAutoHideMode(Gtk.PositionType pos, int size)
 {
     ResetMode();
     if (widget != null)
     {
         widget.Hide(); // Avoids size allocation warning
         if (widget.Parent != null)
         {
             ((Gtk.Container)widget.Parent).Remove(widget);
         }
     }
     dockBarItem = frame.BarDock(pos, this, size);
     if (widget != null)
     {
         widget.UpdateBehavior();
     }
 }
예제 #10
0
		void ResetBarUndockMode ()
		{
			if (dockBarItem != null) {
				dockBarItem.Close ();
				dockBarItem = null;
				if (titleTab != null)
					titleTab.UpdateBehavior ();
			}
		}
예제 #11
0
		internal void SetAutoHideMode (Gtk.PositionType pos, int size)
		{
			ResetMode ();
			if (widget != null) {
				widget.Hide (); // Avoids size allocation warning
				if (widget.Parent != null) {
					((Gtk.Container)widget.Parent).Remove (widget);
				}
			}
			dockBarItem = frame.BarDock (pos, this, size);
			if (titleTab != null)
				titleTab.UpdateBehavior ();

			SetRegionStyle (frame.GetRegionStyleForItem (this));
		}
예제 #12
0
		internal void RemoveItem (DockBarItem it)
		{
			DisableHoverActivation ();
			box.Remove (it);
			it.Shown -= OnItemVisibilityChanged;
			it.Hidden -= OnItemVisibilityChanged;
			UpdateVisibility ();
		}
예제 #13
0
		internal DockBarItem AddItem (DockItem item, int size)
		{
			DisableHoverActivation ();
			DockBarItem it = new DockBarItem (this, item, size);
			box.PackStart (it, false, false, 0);
			it.ShowAll ();
			UpdateVisibility ();
			it.Shown += OnItemVisibilityChanged;
			it.Hidden += OnItemVisibilityChanged;
			return it;
		}
예제 #14
0
파일: DockItem.cs 프로젝트: RudoCris/Pinta
		void ResetBarUndockMode ()
		{
			if (dockBarItem != null) {
				dockBarItem.Close ();
				dockBarItem = null;
				if (widget != null)
					widget.UpdateBehavior ();
			}
		}
예제 #15
0
파일: DockItem.cs 프로젝트: RudoCris/Pinta
		internal void SetAutoHideMode (Gtk.PositionType pos, int size)
		{
			ResetMode ();
			if (widget != null) {
				widget.Hide (); // Avoids size allocation warning
				widget.Unparent ();
			}
			dockBarItem = frame.BarDock (pos, this, size);
			if (widget != null)
				widget.UpdateBehavior ();
		}
예제 #16
0
파일: DockBar.cs 프로젝트: RudoCris/Pinta
		internal void RemoveItem (DockBarItem it)
		{
			box.Remove (it);
			it.Shown -= OnItemVisibilityChanged;
			it.Hidden -= OnItemVisibilityChanged;
			UpdateVisibility ();
		}