aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-16 00:56:51 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-16 00:56:51 +0100
commitcf6379f7da9bf68750c5791d43cd26f2cdfa49e9 (patch)
treebbb17446935e6055efaf752c68eee322eee38d10
parentcdded3a2d75280dbcb016ad83992b9b3b65b4e6b (diff)
code clean
-rw-r--r--Templates/TabItem.crow2
-rw-r--r--src/GraphicObjects/TabView.cs11
2 files changed, 1 insertions, 12 deletions
diff --git a/Templates/TabItem.crow b/Templates/TabItem.crow
index 94d60735..63b0b9cf 100644
--- a/Templates/TabItem.crow
+++ b/Templates/TabItem.crow
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<GenericStack Orientation="Vertical" Spacing="0" Hoverable="false"
+<GenericStack Orientation="Vertical" Spacing="0"
Width="{../../WidthPolicy}" Height="{../../HeightPolicy}">
<Label Margin="5" Name="TabTitle" Width="-1"
HorizontalAlignment="Left"
diff --git a/src/GraphicObjects/TabView.cs b/src/GraphicObjects/TabView.cs
index 15731b2f..3e90d35c 100644
--- a/src/GraphicObjects/TabView.cs
+++ b/src/GraphicObjects/TabView.cs
@@ -79,7 +79,6 @@ namespace Crow
(Children [selectedTab] as TabItem).IsSelected = true;
NotifyValueChanged ("SelectedTab", selectedTab);
- Debug.WriteLine ("selected tab: " + (selectedTab + 1).ToString ());
registerForGraphicUpdate ();
}
}
@@ -175,15 +174,12 @@ namespace Crow
#region Mouse handling
public override void checkHoverWidget (MouseMoveEventArgs e)
{
- Debug.WriteLine ("TabView check Hover");
-
if (HostContainer.hoverWidget != this) {
HostContainer.hoverWidget = this;
onMouseEnter (this, e);
}
if (((Children[SelectedTab] as TabItem).Content.Parent as GraphicObject).MouseIsIn(e.Position))
{
- Debug.WriteLine ("Mouse is in selected tab: {0}", selectedTab + 1);
Children[SelectedTab].checkHoverWidget (e);
return;
}
@@ -191,19 +187,12 @@ namespace Crow
TabItem ti = Children [i] as TabItem;
if (ti.TabTitle.MouseIsIn(e.Position))
{
- Debug.WriteLine ("Mouse is in tab title: {0}", i + 1);
Children[i].checkHoverWidget (e);
return;
}
}
}
#endregion
-
- void TabTitleLayoutChanged (object sender, LayoutingEventArgs e)
- {
-
- }
-
void Ti_MouseDown (object sender, OpenTK.Input.MouseButtonEventArgs e)
{
SelectedTab = Children.IndexOf (sender as GraphicObject);