diff mde/gui/content/Content.d @ 72:159775502bb4

The first dynamically generated widget lists, based on Options, are here!
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 05 Jul 2008 18:27:46 +0100
parents 891211f034f2
children b525ff28774b
line wrap: on
line diff
--- a/mde/gui/content/Content.d	Sat Jul 05 15:36:39 2008 +0100
+++ b/mde/gui/content/Content.d	Sat Jul 05 18:27:46 2008 +0100
@@ -29,10 +29,9 @@
  */
 // Don't include dimension/drawing stuff because it's renderer specific and content should not be!
 // NOTE: an interface or a class?
-alias IContent Content;	// use either name until it's settled...
-/** ditto */
 interface IContent
 {
+    /+ NOTE: None of this is really used yet, but was (mostly) intended for clipboard copying.
     /** Return a copy of self. */
     IContent dup ();
     
@@ -42,6 +41,7 @@
     // FIXME: throw or return null on error or unsupported conversion?
     ContentText	toText ();
     ContentInt	toInt ();	/// ditto
+    +/
     
     /** Every Content should be convertible to a string, which, if possible, should be a sensible
      * conversion of its content. */
@@ -66,7 +66,7 @@
  *  Could alternately be:
  *      alias ContentTextStruct* ContentText
  *  where ContentTextStruct is a struct. */
-class ContentText : Content
+class ContentText : IContent
 {
     this () {}
     this (char[] text) {
@@ -98,7 +98,7 @@
 }
 
 /** Integer content. */
-class ContentInt : Content
+class ContentInt : IContent
 {
     this () {}
     this (int integer) {