wid draw.pro

InfoInfo
Search:    

PRO wid_draw_event, ev

WIDGET_CONTROL, ev.top, GET_UVALUE = ev_var

WIDGET_CONTROL, ev.id, GET_UVALUE = uval

CASE uval OF

'DRAW' : begin

print, 'Size of '
help, (*ev_var).y_val_all3

PRINT, (*ev_var).y_val_all3[365,0]
Print, (*ev_var).y_val_all3[365,1]
Print, (*ev_var).y_val_all3[365,2] ;yvalues for every day for each component of a station)

'DONE' : WIDGET_CONTROL, ev.top, /DESTROY ;this button exits the program ;mouse button pressed, these new yvalues

'FILE' : GET_THE_FILE, ev_var ;Calls procedure GET_THE_FILE which gets the file ;user is looking at

'REPLOT': begin
; basex = [ 9450, 6150, 0, 6900, 4240, 6050, 4220, 3870, 0, 2850, 0, 0 ] ;The REPLOT button finds the rotation angles necessary and fixes

PRINT, 'REPLOT ',index(0)
help, index

'PRINT': begin

; print,hour,long(basex[(*ev_var).basex_index]*10000.), $
; long((*ev_var).yval_hours(0,hour)*10000.), $
; long((*ev_var).yval_hours(1,hour)*10000.), $
; long((*ev_var).yval_hours(2,hour)*10000.), $
; long((*ev_var).lalpha(hour)), $
; long((*ev_var).lbeta(hour))

'SLIDER1': begin

'SLIDER2': begin

'MOUSE_SELECT': begin
print, (*ev_var).mouse(*)

print, (*ev_var).mouse(*)

'STATION': begin

'YEAR': begin

'COMPONENT': begin

'RANGE': begin

ENDCASE

END

PRO wid_draw

LOADCT, 12

base = WIDGET_BASE(xoffset = 100)

draw = WIDGET_DRAW(base, XOFFSET = 0, YOFFSET = 130, XSIZE = 800, YSIZE = 500,$

button = WIDGET_BUTTON(base, value = 'Done', uvalue = 'DONE',$

file_button = WIDGET_BUTTON(base, value = 'Get file', uvalue = 'FILE',$

replot_button = WIDGET_BUTTON(base, value = 'Replot', uvalue = 'REPLOT',$

print_button = WIDGET_BUTTON(base, value = 'Creat File', uvalue = 'PRINT',$

slider1 = WIDGET_SLIDER(base, value = 0, title = 'Start day',$

slider2 = WIDGET_SLIDER(base, value = 365, title = 'Stop day',$

mouse_select_ID = CW_BGROUP(base, ['draw lines', 'fix lines'], SET_VALUE = 0,$

station = WIDGET_DROPLIST(base, FRAME = 5, TITLE = 'MACCS Stations',$

year_select = WIDGET_DROPLIST(base, FRAME = 5, TITLE = 'Select Year',$

component_select = CW_BGROUP(base, ['x component', 'y component', 'z component'],$

y_range = WIDGET_SLIDER(base, value = 0, TITLE = 'y range(+/-)', UVALUE='RANGE',$

ev_var = ptr_new({n:0,x:fltarr(100),y:fltarr(100),$

WIDGET_CONTROL, base, SET_UVALUE = ev_var

WIDGET_CONTROL, /REALIZE, base

WIDGET_CONTROL, draw, GET_VALUE = index

WSET, index

XMANAGER, 'Wid_draw', base

ptr_free, ev_var

END

PRO PLOT_IT, ev_var

END

PRO GET_THE_FILE, ev_var

END

This is a Wiki Spot wiki. Wiki Spot is a non-profit organization that helps communities collaborate via wikis.