comparison mde/gui/widget/contentFunctions.d @ 165:bb2f1a76346d

Fixed a few bugs; most notably changing the translation reloads the text on PopupMenuWidgets now.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 07 Jun 2009 16:20:16 +0200
parents 24d77c52243f
children 620d4ea30228
comparison
equal deleted inserted replaced
164:c13bded1bed3 165:bb2f1a76346d
49 // Note: SAFE_RECURSION enabled 49 // Note: SAFE_RECURSION enabled
50 if (c is null) throw new ContentException; 50 if (c is null) throw new ContentException;
51 if (cast(AStringContent) c) { 51 if (cast(AStringContent) c) {
52 if (cast(EnumContent) c) // can be PopupMenuWidget or ContentListWidget 52 if (cast(EnumContent) c) // can be PopupMenuWidget or ContentListWidget
53 return new PopupMenuWidget(mgr,parent,id,data,c); 53 return new PopupMenuWidget(mgr,parent,id,data,c);
54 // if (cast(BoolContent) c) 54 if (cast(BoolContent) c)
55 // return new BoolContentWidget(mgr,parent,id,data,c); 55 return new BoolContentWidget(mgr,parent,id,data,c);
56 return new AStringContentWidget(mgr,parent,id,data,c); 56 return new AStringContentWidget(mgr,parent,id,data,c);
57 } 57 }
58 if (cast(IContentList) c) 58 if (cast(IContentList) c)
59 return new ContentListWidget(mgr,parent,id,data,c); 59 return new ContentListWidget(mgr,parent,id,data,c);
60 // Normally only EventContents are used for buttons, but any Content can be: 60 // Normally only EventContents are used for buttons, but any Content can be: