Mercurial > projects > mde
comparison mde/gui/content/Content.d @ 90:b525ff28774b
Widgets generated dynamically from a list can now be standard widgets selected from data files.
Started on allowing alignment to be shared between instances of a layout widget in a dynamic list (to allow column alignment of list's rows).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 01 Oct 2008 23:37:51 +0100 |
parents | 159775502bb4 |
children | 4d5d53e4f881 |
comparison
equal
deleted
inserted
replaced
89:97e6dce08037 | 90:b525ff28774b |
---|---|
24 * Services like copy/paste could work on universal content. However, they would need to run a | 24 * Services like copy/paste could work on universal content. However, they would need to run a |
25 * conversion to the appropriate type (or try next-oldest item on clipboard?). | 25 * conversion to the appropriate type (or try next-oldest item on clipboard?). |
26 * | 26 * |
27 * Currently Content instances can only have their data set on creation. | 27 * Currently Content instances can only have their data set on creation. |
28 * Each Content class should provide a method to get it's content, e.g. the method text(). | 28 * Each Content class should provide a method to get it's content, e.g. the method text(). |
29 * | |
30 * Extensions to content: | |
31 * | |
32 * These extensions require that a content can notify any dependants of changes. | |
33 * | |
34 * Use as a state switch (one option from an enumeration). E.g. a button/selection box could set a | |
35 * state, and a tabbed box could show a tab based on this. Or could represent an option. | |
29 */ | 36 */ |
30 // Don't include dimension/drawing stuff because it's renderer specific and content should not be! | 37 // Don't include dimension/drawing stuff because it's renderer specific and content should not be! |
31 // NOTE: an interface or a class? | 38 // NOTE: an interface or a class? |
32 interface IContent | 39 interface IContent |
33 { | 40 { |