Changeset 520

Show
Ignore:
Timestamp:
07/08/08 16:20:32 (2 months ago)
Author:
Mike Wey
Message:

Add CellLayout? interface to other classes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/gtk/CellView.d

    r517 r520  
    3636 * extend  =  
    3737 * implements: 
     38 *  - CellLayoutIF 
    3839 * prefixes: 
    3940 *  - gtk_cell_view_ 
     
    5253 *  - gdk.Color 
    5354 *  - glib.ListG 
     55 *  - gtk.CellRenderer 
     56 *  - gtk.CellLayoutIF 
     57 *  - gtk.CellLayoutT 
    5458 * structWrap: 
    5559 *  - GList* -> ListG 
     
    7680private import gdk.Color; 
    7781private import glib.ListG; 
     82private import gtk.CellRenderer; 
     83private import gtk.CellLayoutIF; 
     84private import gtk.CellLayoutT; 
    7885 
    7986 
     
    8895 * and drag and drop. 
    8996 */ 
    90 public class CellView : Widget 
     97public class CellView : Widget, CellLayoutIF 
    9198{ 
    9299     
     
    128135        this.gtkCellView = gtkCellView; 
    129136    } 
     137     
     138    // add the CellLayout capabilities 
     139    mixin CellLayoutT!(GtkCellView); 
    130140     
    131141    /** 
  • trunk/src/gtk/EntryCompletion.d

    r517 r520  
    3131 * clss    = EntryCompletion 
    3232 * interf  =  
    33  * class Code: No 
     33 * class Code: Yes 
    3434 * interface Code: No 
    3535 * template for: 
    3636 * extend  =  
    3737 * implements: 
     38 *  - CellLayoutIF 
    3839 * prefixes: 
    3940 *  - gtk_entry_completion_ 
     
    4849 *  - gtk.TreeModel 
    4950 *  - gtk.TreeModelIF 
     51 *  - gtk.CellRenderer 
     52 *  - glib.ListG 
     53 *  - gtk.CellLayoutIF 
     54 *  - gtk.CellLayoutT 
    5055 * structWrap: 
    5156 *  - GtkTreeModel* -> TreeModelIF 
     
    6974private import gtk.TreeModel; 
    7075private import gtk.TreeModelIF; 
     76private import gtk.CellRenderer; 
     77private import glib.ListG; 
     78private import gtk.CellLayoutIF; 
     79private import gtk.CellLayoutT; 
    7180 
    7281 
     
    99108 * selected, the ::action-activated signal is emitted. 
    100109 */ 
    101 public class EntryCompletion : ObjectG 
     110public class EntryCompletion : ObjectG, CellLayoutIF 
    102111{ 
    103112     
     
    139148        this.gtkEntryCompletion = gtkEntryCompletion; 
    140149    } 
     150     
     151    // add the CellLayout capabilities 
     152    mixin CellLayoutT!(GtkEntryCompletion); 
    141153     
    142154    /** 
  • trunk/src/gtk/IconView.d

    r517 r520  
    3131 * clss    = IconView 
    3232 * interf  =  
    33  * class Code: No 
     33 * class Code: Yes 
    3434 * interface Code: No 
    3535 * template for: 
    3636 * extend  =  
    3737 * implements: 
     38 *  - CellLayoutIF 
    3839 * prefixes: 
    3940 *  - gtk_icon_view_ 
     
    5253 *  - glib.ListG 
    5354 *  - gdk.Pixmap 
     55 *  - glib.Str 
     56 *  - gtk.CellLayoutIF 
     57 *  - gtk.CellLayoutT 
    5458 * structWrap: 
    5559 *  - GList* -> ListG 
     
    8286private import glib.ListG; 
    8387private import gdk.Pixmap; 
     88private import glib.Str; 
     89private import gtk.CellLayoutIF; 
     90private import gtk.CellLayoutT; 
    8491 
    8592 
     
    96103 * rubberband selection, which is controlled by dragging the pointer. 
    97104 */ 
    98 public class IconView : Container 
     105public class IconView : Container, CellLayoutIF 
    99106{ 
    100107     
     
    136143        this.gtkIconView = gtkIconView; 
    137144    } 
     145     
     146    // add the CellLayout capabilities 
     147    mixin CellLayoutT!(GtkIconView); 
    138148     
    139149    /** 
  • trunk/src/gtk/TreeViewColumn.d

    r517 r520  
    3636 * extend  =  
    3737 * implements: 
     38 *  - CellLayoutIF 
    3839 * prefixes: 
    3940 *  - gtk_tree_view_column_ 
     
    5354 *  - gdk.Rectangle 
    5455 *  - glib.Str 
     56 *  - gtk.CellLayoutIF 
     57 *  - gtk.CellLayoutT 
    5558 * structWrap: 
    5659 *  - GList* -> ListG 
     
    8285private import gdk.Rectangle; 
    8386private import glib.Str; 
     87private import gtk.CellLayoutIF; 
     88private import gtk.CellLayoutT; 
    8489 
    8590 
     
    96101 * they work together. 
    97102 */ 
    98 public class TreeViewColumn : ObjectGtk 
     103public class TreeViewColumn : ObjectGtk, CellLayoutIF 
    99104{ 
    100105     
     
    137142    } 
    138143     
     144    // add the CellLayout capabilities 
     145    mixin CellLayoutT!(GtkTreeViewColumn); 
     146     
    139147    /** 
    140148     * Creates a new Tree view column 
     
    155163        ); 
    156164    } 
    157      
    158165     
    159166    /** 
  • trunk/wrap/APILookupGtk.txt

    r519 r520  
    17871787struct: GtkEntryCompletion 
    17881788class: EntryCompletion 
     1789implements: CellLayoutIF 
    17891790prefix: gtk_entry_completion_ 
    17901791prefix: gtk_ 
     
    17951796import: gtk.TreeModelIF 
    17961797structWrap: GtkTreeModel* TreeModelIF 
     1798 
     1799#imports for CellLayout Interface. 
     1800#import: glib.Str 
     1801import: gtk.CellRenderer 
     1802import: glib.ListG 
     1803import: gtk.CellLayoutIF 
     1804import: gtk.CellLayoutT 
     1805 
     1806code: start 
     1807    // add the CellLayout capabilities 
     1808    mixin CellLayoutT!(GtkEntryCompletion); 
     1809code: end 
    17971810outFile: EntryCompletion 
    17981811 
     
    28252838struct: GtkTreeViewColumn 
    28262839class: TreeViewColumn 
     2840implements: CellLayoutIF 
    28272841prefix: gtk_tree_view_column_ 
    28282842prefix: gtk_ 
     
    28412855structWrap: GdkRectangle* Rectangle 
    28422856import: glib.Str 
     2857 
     2858#imports for CellLayout Interface. 
     2859#import: glib.Str 
     2860#import: gtk.CellRenderer 
     2861#import: glib.ListG 
     2862import: gtk.CellLayoutIF 
     2863import: gtk.CellLayoutT 
     2864 
    28432865nocode: gtk_tree_view_column_new_with_attributes 
    28442866 
    28452867code: start 
     2868    // add the CellLayout capabilities 
     2869    mixin CellLayoutT!(GtkTreeViewColumn); 
     2870 
    28462871    /** 
    28472872     * Creates a new Tree view column 
     
    28622887            ); 
    28632888    } 
    2864  
    2865  
    28662889code: end 
    28672890 
     
    30523075struct: GtkCellView 
    30533076class: CellView 
     3077implements: CellLayoutIF 
    30543078prefix: gtk_cell_view_ 
    30553079prefix: gtk_ 
     
    30683092structWrap: GList* ListG 
    30693093 
     3094#imports for CellLayout Interface. 
     3095#import: glib.Str 
     3096import: gtk.CellRenderer 
     3097#import: glib.ListG 
     3098import: gtk.CellLayoutIF 
     3099import: gtk.CellLayoutT 
     3100 
    30703101nocode: gtk_cell_view_new_with_text 
    30713102nocode: gtk_cell_view_new_with_markup 
    30723103 
    30733104code: start 
     3105    // add the CellLayout capabilities 
     3106    mixin CellLayoutT!(GtkCellView); 
     3107 
    30743108    /** 
    30753109     * Creates a new GtkCellView widget, adds a GtkCellRendererText 
     
    31033137struct: GtkIconView 
    31043138class: IconView 
     3139implements: CellLayoutIF 
    31053140prefix: gtk_icon_view_ 
    31063141prefix: gtk_ 
     
    31283163import: gdk.Pixmap 
    31293164structWrap: GdkPixmap* Pixmap 
     3165 
     3166#imports for CellLayout Interface. 
     3167import: glib.Str 
     3168#import: gtk.CellRenderer 
     3169#import: glib.ListG 
     3170import: gtk.CellLayoutIF 
     3171import: gtk.CellLayoutT 
     3172 
     3173code: start 
     3174    // add the CellLayout capabilities 
     3175    mixin CellLayoutT!(GtkIconView); 
     3176code: end 
    31303177outFile: IconView 
    31313178 
     
    37173764structWrap: GtkTreeIter* TreeIter 
    37183765 
    3719 #imports for CellLauout Interface. 
     3766#imports for CellLayout Interface. 
    37203767#import: glib.Str 
    37213768import: gtk.CellRenderer