1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071(**************************************************************************)(* Lablgtk *)(* *)(* This program is free software; you can redistribute it *)(* and/or modify it under the terms of the GNU Library General *)(* Public License as published by the Free Software Foundation *)(* version 2, with the exception described in file COPYING which *)(* comes with the library. *)(* *)(* This program is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Library General Public License for more details. *)(* *)(* You should have received a copy of the GNU Library General *)(* Public License along with this program; if not, write to the *)(* Free Software Foundation, Inc., 59 Temple Place, Suite 330, *)(* Boston, MA 02111-1307 USA *)(* *)(* *)(**************************************************************************)(* $Id$ *)openGauxopenGtkopenGtkBaseopenGtkRangeopenOgtkRangePropsopenGObjclassprogress_barobj=objectinherit[Gtk.progress_bar]widget_implobjmethodconnect=newwidget_signals_implobjmethodevent=newGObj.event_opsobjinheritprogress_bar_propsmethodpulse()=ProgressBar.pulseobjendletprogress_bar=ProgressBar.make_params[]~cont:(funpl?packing?show()->pack_return(newprogress_bar(ProgressBar.createpl))~packing~show)classrange_signalsobj=objectinheritwidget_signals_implobjinheritrange_sigsendclassrangeobj=objectinherit['a]widget_implobjmethodas_range=(obj:>Gtk.rangeGtk.obj)methodconnect=newrange_signalsobjmethodevent=newGObj.event_opsobjinheritrange_propsendclassscaleobj=objectinheritrange(obj:Gtk.scaleobj)inheritscale_propsendletscaledir?adjustment=Scale.make_params[]~cont:(Range.make_params?adjustment:(may_mapGData.as_adjustmentadjustment)~cont:(funpl?packing?showparams->pack_return(newscale(Scale.createdirpl))~packing~show))letscrollbardir?adjustment=Range.make_params[]?adjustment:(may_mapGData.as_adjustmentadjustment)~cont:(funpl?packing?showparams->pack_return(newrange(Scrollbar.createdirpl))~packing~show)