diff dynamin/gui/list_box.d @ 106:acdbb30fee7e

Port to D2. Most of the effort was dealing with immutable and const.
author Jordan Miner <jminer7@gmail.com>
date Mon, 17 Dec 2012 23:41:50 -0600
parents 73060bc3f004
children
line wrap: on
line diff
--- a/dynamin/gui/list_box.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/list_box.d	Mon Dec 17 23:41:50 2012 -0600
@@ -23,7 +23,7 @@
  */
 class ListBox : Scrollable {
 protected:
-	List!(string, true) _items;
+	List!(mstring, true) _items;
 	int _selectedIndex = -1;
 
 	override void whenKeyDown(KeyEventArgs e) {
@@ -68,7 +68,7 @@
 	/// This event occurs after the selection has changed.
 	Event!(whenSelectionChanged) selectionChanged;
 
-	void whenListItemsChanged(ListChangeType, string, string, uint) {
+	void whenListItemsChanged(ListChangeType, mstring, mstring, uint) {
 		super.layout();
 		repaint();
 	}
@@ -76,7 +76,7 @@
 	///
 	this() {
 		selectionChanged.setUp(&whenSelectionChanged);
-		_items = new List!(string, true)(&whenListItemsChanged);
+		_items = new List!(mstring, true)(&whenListItemsChanged);
 
 		super();
 		_focusable = true;
@@ -84,7 +84,7 @@
 		backColor = WindowsTheme.getColor(5);
 	}
 	///
-	List!(string, true) items() {
+	List!(mstring, true) items() {
 		return _items;
 	}
 	///