gtk-databindings work blog and ramblings

provision of databindings to ordinary gtk widgets

by matooo on Jul.29, 2009, under Uncategorized

currently I’m working on Gtk.DataBingingsInterface which is…

simple interface which enables any kind of data binding to plug into ordinary gtk widgets. plan is very simple (one of the reasons for that is that I plan to provide streming MVC after 2.1 is out):
- allow different databinding solutions to be used in the same form as soon as developer references them without need to use special widgets, this provides integration of data bindings into already finished product and also provides place where other data binding engine can plug in
- allow developer to interact with (all plugged) databindings without need for specifics
- not one line in gtk-sharp is needed

plan in effect is something like this (these commands are Gtk.DataBindings specific):

Gtk.TreeView myTreeView;

myTreeView.SetItems (myItemsList);
myTreeView.SetColumnMappings (”{myNamespace.MyClass} Name[Column title] …. and so on”);
Adaptor selecteditem = myTreeView.GetCurrentSelection();

myEntry.Bind (selecteditem, “Name”);
or
myEntry.SetDataSource (a);
myEntry.SetMappings (”Name”);

this code will simply fill up treeview with data (and create columns). and code:

Adaptor a = myTreeView,GetCurrentSelection();

is returning adaptor reference which will follow selection in treeview. as soon as next item is selected entry will start pointing on that one.

common api on the other hand only enables user to control data flow over all connections to specific widget: Freeze(), Thaw(), Start(), Stop(), Disconnect()

myWidget.DataBinding().Freeze();

this looks rather nice and simple

3 comments for this entry:
  1. DARRYL


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. High quality drugs. Buy drugs online

    Buy:Viagra Super Force.Cialis Super Active+.Cialis Soft Tabs.Levitra.Viagra Soft Tabs.Cialis Professional.Propecia.VPXL.Cialis.Super Active ED Pack.Viagra.Tramadol.Maxaman.Viagra Super Active+.Zithromax.Soma.Viagra Professional….

  2. ROGER


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. Online Pharmacy. Buy pills online

    Buy:Petcam (Metacam) Oral Suspension.Arimidex.Prednisolone.Accutane.Synthroid.Human Growth Hormone.Valtrex.Actos.100% Pure Okinawan Coral Calcium.Lumigan.Nexium.Prevacid.Mega Hoodia.Zyban.Zovirax.Retin-A….

  3. ROY


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality pills. Buy pills online

    Buy:Lasix.Nymphomax.Lipothin.Wellbutrin SR.Advair.Prozac.Cozaar.Buspar.Zetia.SleepWell.Zocor.Aricept.Female Cialis.Acomplia.Lipitor.Amoxicillin.Female Pink Viagra.Seroquel.Ventolin.Benicar….

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...