[longomatch/redesign3: 132/143] Remove the players selection from the menu
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3: 132/143] Remove the players selection from the menu
- Date: Mon, 15 Aug 2011 22:56:17 +0000 (UTC)
commit bb99ec1ebb2470d029801901331e57ef3b3c746c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Apr 27 23:07:49 2011 +0200
Remove the players selection from the menu
LongoMatch/Gui/TreeView/ListTreeViewBase.cs | 35 ++++++--------------------
LongoMatch/Gui/TreeView/PlayersTreeView.cs | 1 -
LongoMatch/Gui/TreeView/TagsTreeView.cs | 1 -
3 files changed, 8 insertions(+), 29 deletions(-)
---
diff --git a/LongoMatch/Gui/TreeView/ListTreeViewBase.cs b/LongoMatch/Gui/TreeView/ListTreeViewBase.cs
index b265f4d..9d02415 100644
--- a/LongoMatch/Gui/TreeView/ListTreeViewBase.cs
+++ b/LongoMatch/Gui/TreeView/ListTreeViewBase.cs
@@ -42,10 +42,6 @@ namespace LongoMatch.Gui.Component
protected MenuItem deleteKeyFrame;
protected MenuItem snapshot;
protected MenuItem name;
- protected MenuItem players;
- protected MenuItem localPlayers;
- protected MenuItem visitorPlayers;
-
protected Gtk.CellRendererText nameCell;
protected Gtk.TreeViewColumn nameColumn;
@@ -111,26 +107,24 @@ namespace LongoMatch.Gui.Component
public String LocalTeam {
set {
- Label l1 = (local.Children[0] as Label);
- Label l2 = (localPlayers.Children[0] as Label);
+ Label l = (local.Children[0] as Label);
if(value == "")
- l1.Text = l2.Text = Catalog.GetString(LOCAL_TEAM);
+ l.Text = Catalog.GetString(LOCAL_TEAM);
else {
- l1.Text = l2.Text = value;
+ l.Text = value;
}
- teams_name[(int)Team.LOCAL] = l1.Text;
+ teams_name[(int)Team.LOCAL] = l.Text;
}
}
public string VisitorTeam {
set {
- Label l1 = (visitor.Children[0] as Label);
- Label l2 = (visitorPlayers.Children[0] as Label);
+ Label l = (visitor.Children[0] as Label);
if(value == "")
- l1.Text = l2.Text = Catalog.GetString(VISITOR_TEAM);
+ l.Text = Catalog.GetString(VISITOR_TEAM);
else
- l1.Text = l2.Text = value;
- teams_name[(int)Team.VISITOR] = l1.Text;
+ l.Text = value;
+ teams_name[(int)Team.VISITOR] = l.Text;
}
}
@@ -146,7 +140,6 @@ namespace LongoMatch.Gui.Component
}
protected void SetMenu() {
- Menu playersMenu;
MenuItem team;
teamMenu = new Menu();
@@ -157,20 +150,12 @@ namespace LongoMatch.Gui.Component
teamMenu .Append(visitor);
teamMenu .Append(noTeam);
- playersMenu = new Menu();
- localPlayers = new MenuItem(Catalog.GetString(LOCAL_TEAM));
- visitorPlayers = new MenuItem(Catalog.GetString(VISITOR_TEAM));
- playersMenu.Append(localPlayers);
- playersMenu.Append(visitorPlayers);
-
menu = new Menu();
name = new MenuItem(Catalog.GetString("Edit"));
team = new MenuItem(Catalog.GetString("Team Selection"));
team.Submenu = teamMenu;
tag = new MenuItem(Catalog.GetString("Add tag"));
- players = new MenuItem(Catalog.GetString("Tag player"));
- players.Submenu = playersMenu;
delete = new MenuItem(Catalog.GetString("Delete"));
deleteKeyFrame = new MenuItem(Catalog.GetString("Delete key frame"));
addPLN = new MenuItem(Catalog.GetString("Add to playlist"));
@@ -179,7 +164,6 @@ namespace LongoMatch.Gui.Component
menu.Append(name);
menu.Append(tag);
- menu.Append(players);
menu.Append(team);
menu.Append(addPLN);
menu.Append(delete);
@@ -191,8 +175,6 @@ namespace LongoMatch.Gui.Component
local.Activated += OnTeamSelection;
visitor.Activated += OnTeamSelection;
noTeam.Activated += OnTeamSelection;
- localPlayers.Activated += OnLocalPlayers;
- visitorPlayers.Activated += OnVisitorPlayers;
addPLN.Activated += OnAdded;
delete.Activated += OnDeleted;
deleteKeyFrame.Activated += OnDeleteKeyFrame;
@@ -203,7 +185,6 @@ namespace LongoMatch.Gui.Component
protected void MultiSelectMenu(bool enabled) {
name.Sensitive = !enabled;
snapshot.Sensitive = !enabled;
- players.Sensitive = !enabled;
tag.Sensitive = !enabled;
}
diff --git a/LongoMatch/Gui/TreeView/PlayersTreeView.cs b/LongoMatch/Gui/TreeView/PlayersTreeView.cs
index 28244db..52b8912 100644
--- a/LongoMatch/Gui/TreeView/PlayersTreeView.cs
+++ b/LongoMatch/Gui/TreeView/PlayersTreeView.cs
@@ -36,7 +36,6 @@ namespace LongoMatch.Gui.Component
public PlayersTreeView() {
this.Team = Team.LOCAL;
tag.Visible = false;
- players.Visible = false;
delete.Visible = false;
SetPlayersMenu();
}
diff --git a/LongoMatch/Gui/TreeView/TagsTreeView.cs b/LongoMatch/Gui/TreeView/TagsTreeView.cs
index 9d5d0d1..c7e8fb6 100644
--- a/LongoMatch/Gui/TreeView/TagsTreeView.cs
+++ b/LongoMatch/Gui/TreeView/TagsTreeView.cs
@@ -33,7 +33,6 @@ namespace LongoMatch.Gui.Component
public TagsTreeView() {
tag.Visible = false;
- players.Visible = false;
delete.Visible = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]