spedas/gui/panels/
spd_ui_axis_options.pro
NAME: spd_ui_axis_options PURPOSE: User interface for modifying axis settings CALLING SEQUENCE: spd_ui_axis, gui_id INPUT: gui_id = the id number of the widget that calls this OUTPUT: HISTORY: (lphilpott 07/2011) Reorganised code: removed widget ids from the state structure, these should now be found using find_by_uname. Removed duplicate information eg panels, panelobjs from state structure. These can now be found using the helper methods spd_ui_axis_options_getpanelobjs etc. (lphilpott 02/2012) QA: Changed labels to have number prefixed in combobox to avoid problems with identical labels on linux. In the process removed the spaces that were added to empty labels to distinguish them under linux. Also changed truncation to avoid problem with combobox arrow being pushed over if label became too long. NB: This problem doesn't seem to happen with the panel title on Panel Options window. If we could work out why the panel title combobox worked there it would be better to fix axis label title to match rather than truncating. $LastChangedBy: egrimes $ $LastChangedDate: 2014-09-30 09:09:23 -0700 (Tue, 30 Sep 2014) $ $LastChangedRevision: 15881 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/panels/spd_ui_axis_options.pro $
set_minor SPD_UI_PROPAGATE_AXIS.PRO Given STATE propagate the current AXISSETTINGS from the current panel to all other panels. W.M.Feuerstein, 11/10/2008.
SPD_UI_INIT_AXIS_WINDOW.PRO Given the top level base when running SPD_UI_AXIS_OPTIONS, update all axis attributes from settings. The widget ID of the top level base should be the first parameter (this is when the program unit calling this routine does not have the STATE structure). Otherwise, STATE should be passed by keyword and the first parameter should not be passed. Syntax: SPD_UI_INIT_AXIS_WINDOW , [ tlb ] [ , state = state ] W.M.Feuerstein, 11/7/2008.
Routines
Routines from spd_ui_axis_options.pro
SPD_UI_PROPAGATE_AXIS, state, apply_to_all_panels
spd_ui_update_axis_from_draw, drawObject, panels
Procedure: spd_ui_update_axis_from_drawSyntax: SPD_UI_INIT_AXIS_WINDOW , [ tlb ] [ , state = state ]After an update, this routine will update the fixed range of the axis objectsUsing the output of the draw object.
result = spd_ui_axis_options_convert_units(value, units, fromseconds=fromseconds)
spd_ui_axis_options_init_color, state
spd_ui_axis_update_units, state
SPD_UI_INIT_AXIS_WINDOW, tlb, state=state
result = spd_ui_axis_options_getaxis(state)
result = spd_ui_axis_options_getpanels(state)
result = spd_ui_axis_options_getpanelobjs(state)
result = spd_ui_axis_options_getcurrentpanel(state)
result = spd_ui_axis_options_getcurrentlabel(state)
spd_ui_axis_options_set_scaling, tlb, state, nopopups=nopopups
spd_ui_axis_options_set_range, tlb, state, nopopups=nopopups
result = spd_ui_axis_options_create_label_name(labelnumber, value)
spd_ui_axis_options_set_labels, tlb, state, nopopups=nopopups
spd_ui_axis_options_set_major_ticks, state, nopopups=nopopups
spd_ui_axis_options_set_minor_ticks, state, nopopups=nopopups
spd_ui_axis_options_set_first_ticks, state, nopopups=nopopups
spd_ui_axis_options_set_ticks, tlb, state, nopopups=nopopups
spd_ui_axis_options_set_annotations, tlb, state, nopopups=nopopups
spd_ui_axis_options_set_grids, tlb, state, nopopups=nopopups
spd_ui_axis_options_set_title, tlb, state, nopopups=nopopups
spd_ui_axis_options_setvalues, tlb, state, nopopups=nopopups
spd_ui_axis_options_update_scaling, state, axissettings, linear=linear, log10=log10, natural_log=natural_log
spd_ui_axis_options_update_labels, tlb, axissettings, currlabelobj, labelcolorwindow
spd_ui_axis_options_event, event
spd_ui_axis_options, gui_id, windowStorage, loadedData, drawObject, historyWin, windowTitle, axisselect, scrollbar, template, tlb_statusbar, panel_select=panel_select
Routine details
top source SPD_UI_PROPAGATE_AXIS
SPD_UI_PROPAGATE_AXIS, state, apply_to_all_panels
Parameters
- state
- apply_to_all_panels
top source spd_ui_update_axis_from_draw
spd_ui_update_axis_from_draw, drawObject, panels
Procedure: spd_ui_update_axis_from_draw Syntax: SPD_UI_INIT_AXIS_WINDOW , [ tlb ] [ , state = state ] After an update, this routine will update the fixed range of the axis objects Using the output of the draw object. This stops the draw object from having to break abstraction. It also updates the number of ticks. As the number displayed may vary from the number requested. (Only update is not using aesthetic ticks - lphilpott 26-june-2012) (aaflores 2013-2-7) Major ticks: If ticks by number is set then the ticks by interval option should be updated to draw similarly spaced ticks, and vice versa. Minor ticks: Unsure... leaving them as is.
Parameters
- drawObject
- panels
top source spd_ui_axis_options_convert_units
result = spd_ui_axis_options_convert_units(value, units, fromseconds=fromseconds)
Parameters
- value
- units
Keywords
- fromseconds
top source SPD_UI_INIT_AXIS_WINDOW
SPD_UI_INIT_AXIS_WINDOW, tlb, state=state
Parameters
- tlb
Keywords
- state
top source spd_ui_axis_options_getpanels
result = spd_ui_axis_options_getpanels(state)
Parameters
- state
top source spd_ui_axis_options_getpanelobjs
result = spd_ui_axis_options_getpanelobjs(state)
Parameters
- state
top source spd_ui_axis_options_getcurrentpanel
result = spd_ui_axis_options_getcurrentpanel(state)
Parameters
- state
top source spd_ui_axis_options_getcurrentlabel
result = spd_ui_axis_options_getcurrentlabel(state)
Parameters
- state
top source spd_ui_axis_options_set_scaling
spd_ui_axis_options_set_scaling, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_range
spd_ui_axis_options_set_range, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_create_label_name
result = spd_ui_axis_options_create_label_name(labelnumber, value)
Parameters
- labelnumber
- value
top source spd_ui_axis_options_set_labels
spd_ui_axis_options_set_labels, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_major_ticks
spd_ui_axis_options_set_major_ticks, state, nopopups=nopopups
Parameters
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_minor_ticks
spd_ui_axis_options_set_minor_ticks, state, nopopups=nopopups
Parameters
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_first_ticks
spd_ui_axis_options_set_first_ticks, state, nopopups=nopopups
Parameters
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_ticks
spd_ui_axis_options_set_ticks, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_annotations
spd_ui_axis_options_set_annotations, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_grids
spd_ui_axis_options_set_grids, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_set_title
spd_ui_axis_options_set_title, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_setvalues
spd_ui_axis_options_setvalues, tlb, state, nopopups=nopopups
Parameters
- tlb
- state
Keywords
- nopopups
top source spd_ui_axis_options_update_scaling
spd_ui_axis_options_update_scaling, state, axissettings, linear=linear, log10=log10, natural_log=natural_log
Parameters
- state
- axissettings
Keywords
- linear
- log10
- natural_log
top source spd_ui_axis_options_update_labels
spd_ui_axis_options_update_labels, tlb, axissettings, currlabelobj, labelcolorwindow
Parameters
- tlb
- axissettings
- currlabelobj
- labelcolorwindow
top source spd_ui_axis_options
spd_ui_axis_options, gui_id, windowStorage, loadedData, drawObject, historyWin, windowTitle, axisselect, scrollbar, template, tlb_statusbar, panel_select=panel_select
Parameters
- gui_id
- windowStorage
- loadedData
- drawObject
- historyWin
- windowTitle
- axisselect
- scrollbar
- template
- tlb_statusbar
Keywords
- panel_select
File attributes
Modification date: | Tue Oct 21 13:53:40 2014 |
Lines: | 2,945 |