spedas/gui/utilities/
spd_ui_time_widget.pro
NAME: spd_ui_time_widget.pro PURPOSE: Compound widget used to generate standardized time selection ui, for all tabs in the load data window. CALLING SEQUENCE: widgetid = spd_ui_time_widget(parent,statusBar,historyWin,timeRangeObj=timeRangeObj,uvalue=uvalue,uname=uname, oneday=oneday) INPUT: parent: ID of base in which compound widget will sit statusBar: statusBar Object for reporting errors and user info historywin: historywin object for reporting errors and user info timeRangeObj: a spd_ui_time_range storing the range that will be used. If provided, the compound widget will mutate this object uvalue: Assign a user value to this widget uname: assign a user name to this widget oneday: flag to determine whether the range is fixed to one day startyear: optional keyword to change the start year for the calendar widget default start year is 2000 OUTPUT: This widget's id NOTES: 1. Returns events of the form: return_struct = {time_widget,id:0l,top:0l,handler:0l,timerange:obj_new(),error:0} 2. Can use get_value and set_value keywords with widget control, to return the time range object that this compound widget mutates. HISTORY: $LastChangedBy: jimm $ $LastChangedDate: 2014-02-11 10:54:32 -0800 (Tue, 11 Feb 2014) $ $LastChangedRevision: 14326 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/utilities/spd_ui_time_widget.pro $
Routines
Routines from spd_ui_time_widget.pro
result = spd_ui_time_widget_event(event)
result = spd_ui_time_widget_is_oneday(id)
result = spd_ui_time_widget_is_valid(id)
result = spd_ui_time_widget_get_value(id)
spd_ui_time_widget_set_value, id, value
spd_ui_time_widget_update, baseid, oneday=oneday
result = spd_ui_time_widget(parent, statusBar, historyWin, timeRangeObj=timeRangeObj, uvalue=uvalue, uname=uname, oneday=oneday, suppressoneday=suppressoneday, startyear=startyear)
Routine details
top source spd_ui_time_widget_update
spd_ui_time_widget_update, baseid, oneday=oneday
Parameters
- baseid
Keywords
- oneday
top source spd_ui_time_widget
result = spd_ui_time_widget(parent, statusBar, historyWin, timeRangeObj=timeRangeObj, uvalue=uvalue, uname=uname, oneday=oneday, suppressoneday=suppressoneday, startyear=startyear)
Parameters
- parent
- statusBar
- historyWin
Keywords
- timeRangeObj
- uvalue
- uname
- oneday
- suppressoneday
- startyear
File attributes
Modification date: | Thu Feb 13 16:41:47 2014 |
Lines: | 293 |