Mercurial > projects > dynamin
diff dynamin/gui/notebook.d @ 10:ccc108b25a0a
Convert to using a struct for events. Fix some comments too.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 21:22:20 -0500 |
parents | 682fa50ab831 |
children | c138461bf845 |
line wrap: on
line diff
--- a/dynamin/gui/notebook.d Wed Jul 15 14:07:36 2009 -0500 +++ b/dynamin/gui/notebook.d Wed Jul 15 21:22:20 2009 -0500 @@ -99,7 +99,7 @@ layout(); } public: - /// Override this method in a subclass to handle the SelectionChanged event. + /// Override this method in a subclass to handle the selectionChanged event. protected void whenSelectionChanged(EventArgs e) { if(_content !is null) _children.remove(_content); @@ -111,10 +111,10 @@ layout(); } /// This event occurs after a different tab is selected. - Event!() selectionChanged; + Event!(whenSelectionChanged) selectionChanged; this() { - selectionChanged = new Event!()(&whenSelectionChanged); + selectionChanged.mainHandler = &whenSelectionChanged; _tabPages = new List!(TabPage)(&whenTabPagesChanged); _focusable = true;