From: <ste...@us...> - 2011-02-17 12:40:14
|
Revision: 4126 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4126&view=rev Author: steve44src Date: 2011-02-17 12:40:08 +0000 (Thu, 17 Feb 2011) Log Message: ----------- Modified Paths: -------------- trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindow.cs Modified: trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindow.cs =================================================================== --- trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindow.cs 2011-02-17 12:22:24 UTC (rev 4125) +++ trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindow.cs 2011-02-17 12:40:08 UTC (rev 4126) @@ -58,6 +58,7 @@ Log.Debug("IPSWindow::Init loading skin {0}, success {1}", this.skin, r ); return r; } + public List<Observer> getObservers(int id) { List<Observer> res = observers[id]; @@ -84,13 +85,22 @@ public void showGroup( int idToShow ) { foreach( int id in groups.Keys ) { if( id != idToShow ) { - groups[id].Visible = false; + setVisibility( groups[id], false ); } else { - groups[id].Visible = true; + setVisibility( groups[id], true ); } } } + protected void setVisibility( GUIGroup group, bool visible ) { + foreach( GUIControl c in group.Children ) { + c.Visible = visible; + if( c is GUIGroup ) { + setVisibility( (GUIGroup) c, visible ); + } + } + } + protected void unregisterEventHandler() { IPSWindowManager.getIPSWindowManager().getMsgListener().unregister(this); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |