Mercurial > projects > mde
comparison mde/gui/widget/contentFunctions.d @ 170:e45226d3deae
Context menu services not applicable to the current type can now be hidden.
Added files missing from previous commits.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 21:20:16 +0200 |
parents | 620d4ea30228 |
children | 3d58adc17d20 |
comparison
equal
deleted
inserted
replaced
169:bc1cf73dc835 | 170:e45226d3deae |
---|---|
52 if (cast(IEventContent) c) | 52 if (cast(IEventContent) c) |
53 return new ButtonContentWidget(mgr,parent,id,data,c); | 53 return new ButtonContentWidget(mgr,parent,id,data,c); |
54 if (cast(AStringContent) c) { | 54 if (cast(AStringContent) c) { |
55 if (cast(EnumContent) c) // can be PopupMenuWidget or ContentListWidget | 55 if (cast(EnumContent) c) // can be PopupMenuWidget or ContentListWidget |
56 return new PopupMenuWidget(mgr,parent,id,data,c); | 56 return new PopupMenuWidget(mgr,parent,id,data,c); |
57 if (cast(BoolContent) c) | 57 if (cast(IBoolContent) c) |
58 return new BoolContentWidget(mgr,parent,id,data,c); | 58 return new BoolContentWidget(mgr,parent,id,data,c); |
59 return new AStringContentWidget(mgr,parent,id,data,c); | 59 return new AStringContentWidget(mgr,parent,id,data,c); |
60 } | 60 } |
61 if (cast(IContentList) c) | 61 if (cast(IContentList) c) |
62 return new ContentListWidget(mgr,parent,id,data,c); | 62 return new ContentListWidget(mgr,parent,id,data,c); |