From: <ste...@us...> - 2011-02-17 12:22:30
|
Revision: 4125 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4125&view=rev Author: steve44src Date: 2011-02-17 12:22:24 +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:00 UTC (rev 4124) +++ trunk/plugins/MP4IPSymcon/MP4IPSymcon/IPSWindow.cs 2011-02-17 12:22:24 UTC (rev 4125) @@ -77,9 +77,20 @@ Dictionary<int, List<Observer>> observers = new Dictionary<int, List<Observer>>(); Dictionary<int, ClickHandler> buttons = new Dictionary<int, ClickHandler>(); + Dictionary<int, GUIGroup> groups = new Dictionary<int, GUIGroup>(); bool scannedPage = false; + public void showGroup( int idToShow ) { + foreach( int id in groups.Keys ) { + if( id != idToShow ) { + groups[id].Visible = false; + } else { + groups[id].Visible = true; + } + } + } + protected void unregisterEventHandler() { IPSWindowManager.getIPSWindowManager().getMsgListener().unregister(this); } @@ -156,6 +167,9 @@ control.Disabled = true; } } + else if (cmd[0] == "SHOWGROUP") { + buttons.Add( control.GetID, new GroupClickHandler( oid, this )); + } else { int switchcmd = 0; // toggle default @@ -191,6 +205,8 @@ } else if( control.Type == "spincontrol" || control.Type == "selectbutton" ) { buttons.Add(control.GetID, new SpinControl(oid,control,fmt,GetID) ); + } else if( control.Type == "group" ) { + groups.Add( control.GetID, (GUIGroup)control ); } } catch ( Exception e ) { Log.Error("caught unexpected exception, while scanning control {0} {1}", control.GetID, e ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |