Changeset 114 for trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_bgroup.pro
r69 r114 132 132 133 133 pro CW_BGROUP_SETV, id, value 134 compile_opt hidden 134 compile_opt hidden, idl2, strictarrsubs 135 135 136 136 ON_ERROR, 2 ;return to caller … … 162 162 function CW_BGROUP_GETV, id, value 163 163 164 compile_opt hidden 164 compile_opt hidden, idl2, strictarrsubs 165 165 ON_ERROR, 2 ;return to caller 166 166 … … 190 190 191 191 function CW_BGROUP_EVENT, ev 192 compile_opt hidden 192 compile_opt hidden, idl2, strictarrsubs 193 193 WIDGET_CONTROL, ev.handler, GET_UVALUE=stash 194 194 WIDGET_CONTROL, stash, GET_UVALUE=state, /NO_COPY -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_combobox_pm.pro
r69 r114 145 145 ;---------------------------------------------------------------------- 146 146 PRO cw_combobox_pm_set_value, id, value 147 ; 148 compile_opt idl2, strictarrsubs 149 ; 147 150 ComboboxId = widget_info(id,find_by_uname = 'Combobox') 148 151 if size(value, /type) eq 8 then BEGIN ; this is a structure … … 163 166 ;---------------------------------------------------------------------- 164 167 FUNCTION cw_combobox_pm_get_value, id 168 ; 169 compile_opt idl2, strictarrsubs 170 ; 165 171 ComboboxId = widget_info(id,find_by_uname = 'Combobox') 166 172 widget_control, ComboboxId, get_value = cmbbval … … 174 180 ;---------------------------------------------------------------------- 175 181 FUNCTION cw_combobox_pm_event, event 182 ; 183 compile_opt idl2, strictarrsubs 184 ; 176 185 widget_control, event.id, get_uvalue=uval 177 186 ; … … 205 214 ;---------------------------------------------------------------------- 206 215 FUNCTION cw_combobox_pm, parent, VALUE = value, UVALUE = uvalue, UNAME = uname, ROW = row, COLUMN = column, _extra = ex 216 ; 217 compile_opt idl2, strictarrsubs 218 ; 207 219 208 220 IF (N_PARAMS() NE 1) THEN MESSAGE, 'Incorrect number of arguments' -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_domain.pro
r69 r114 40 40 ;********************************************************************* 41 41 pro cw_domain_set_value, id, value 42 ; 43 compile_opt idl2, strictarrsubs 44 ; 42 45 @cm_4mesh 43 46 ; … … 257 260 ;********************************************************************* 258 261 FUNCTION cw_domain_get_value, id 262 ; 263 compile_opt idl2, strictarrsubs 264 ; 259 265 box = lonarr(6) 260 266 possiblecase = ['lon1', 'lon2', 'lat1', 'lat2', 'depth1', 'depth2'] … … 268 274 ;********************************************************************* 269 275 FUNCTION cw_domain_event, event 276 ; 277 compile_opt idl2, strictarrsubs 278 ; 270 279 @common 271 280 ; help, /struct, event … … 411 420 FUNCTION cw_domain, parent, BOXZOOM = boxzoom, STRICT = strict, UVALUE = uvalue, UNAME = uname, UNZOOM = unzoom, _extra = ex 412 421 ; 422 ; 423 compile_opt idl2, strictarrsubs 424 ; 413 425 @cm_4mesh 414 426 @cm_4data … … 449 461 min = floor(min([glamt, glamf], max = max)) 450 462 max = ceil(max) 451 IF max-min EQ 361 AND keyword_set(key_periodic) THEN max = max-1463 IF max-min GT 360 AND keyword_set(key_periodic) THEN max = min+360 452 464 lonbase = widget_base(baseh1, column = 2, space = 0, uname = 'lonbase', uvalue = {name:'geographic'}) 453 465 lon1id = cw_slider_pm(lonbase, value = min > boxzoom[0] < ((boxzoom[1] < max)-keyword_set(strict)) $ -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_droplist_pm.pro
r51 r114 144 144 ;---------------------------------------------------------------------- 145 145 PRO cw_droplist_pm_set_value, id, value 146 ; 147 compile_opt idl2, strictarrsubs 148 ; 146 149 DroplistId = widget_info(id,find_by_uname = 'Droplist') 147 150 if size(value, /type) eq 8 then BEGIN ; this is a structure … … 160 163 ;---------------------------------------------------------------------- 161 164 FUNCTION cw_droplist_pm_get_value, id 165 ; 166 compile_opt idl2, strictarrsubs 167 ; 162 168 DroplistId = widget_info(id,find_by_uname = 'Droplist') 163 169 return, {droplist_number:widget_info(DroplistId, /droplist_number) $ … … 167 173 ;---------------------------------------------------------------------- 168 174 FUNCTION cw_droplist_pm_event, event 175 ; 176 compile_opt idl2, strictarrsubs 177 ; 169 178 widget_control, event.id, get_uvalue=uval 170 179 ; … … 191 200 ;---------------------------------------------------------------------- 192 201 FUNCTION cw_droplist_pm, parent,UVALUE = uvalue, UNAME = uname, ROW = row, COLUMN = column, _extra = ex 202 ; 203 compile_opt idl2, strictarrsubs 204 ; 193 205 194 206 IF (N_PARAMS() NE 1) THEN MESSAGE, 'Incorrect number of arguments' -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_pagelayout.pro
r69 r114 2 2 ;********************************************************************* 3 3 FUNCTION cw_pagelayout_event, event 4 ; 5 compile_opt idl2, strictarrsubs 6 ; 4 7 5 8 widget_control, event.id, get_uvalue=uval … … 78 81 FUNCTION cw_pagelayout, parent, small, UVALUE = uvalue, UNAME = uname, UNZOOM = unzoom, COLUMN = column, ROW = row, _extra = ex 79 82 ;------------------------------------------------ 83 ; 84 compile_opt idl2, strictarrsubs 85 ; 80 86 row = keyword_set(row)*(1-keyword_set(column)) 81 87 if NOT keyword_set(uvalue) then uvalue = '' -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_slide_slice.pro
r51 r114 1 1 pro cw_slide_slice_set_value, id, value 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 @common 3 6 topid = findtopid(id) … … 34 37 ;---------------------------------------------------------------------- 35 38 FUNCTION cw_slide_slice_event, event 39 ; 40 compile_opt idl2, strictarrsubs 41 ; 36 42 @common 37 43 widget_control, event.id, get_uvalue=uval … … 104 110 ;-------------------------------------------------------------------------------- 105 111 FUNCTION cw_slide_slice, parent, boxzoom = boxzoom, UVALUE = uvalue, UNAME = uname, FRAME = frame, ROW = row, COLUMN = column, _extra = ex 112 ; 113 compile_opt idl2, strictarrsubs 114 ; 106 115 @common 107 116 ;------------------------------------------------ -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_slider_pm.pro
r69 r114 136 136 ;---------------------------------------------------------------------- 137 137 FUNCTION decvalue, value 138 ; 139 compile_opt idl2, strictarrsubs 140 ; 138 141 a = float(value[0]) 139 142 return, strtrim(string(floor(a) + 0.1*indgen(10), format = '(f15.1)'), 2) … … 141 144 ;---------------------------------------------------------------------- 142 145 FUNCTION decind, value 146 ; 147 compile_opt idl2, strictarrsubs 148 ; 143 149 a = float(value[0]) 144 150 return, round(10*(a - floor(a))) ; !! computation accuracy … … 146 152 ;---------------------------------------------------------------------- 147 153 PRO cw_slider_pm_set_value, id, value 154 ; 155 compile_opt idl2, strictarrsubs 156 ; 148 157 sbid = widget_info(id, find_by_uname = 'SliderBar') 149 158 dcid = widget_info(id, find_by_uname = 'decimal') … … 195 204 ;---------------------------------------------------------------------- 196 205 FUNCTION cw_slider_pm_get_value, id 206 ; 207 compile_opt idl2, strictarrsubs 208 ; 197 209 sbid = widget_info(id, find_by_uname = 'SliderBar') 198 210 dcid = widget_info(id, find_by_uname = 'decimal') … … 203 215 ;---------------------------------------------------------------------- 204 216 FUNCTION cw_slider_pm_event, event 217 ; 218 compile_opt idl2, strictarrsubs 219 ; 205 220 widget_control, event.id, get_uvalue = uval 206 221 ; … … 237 252 , STRMINLEN = strminlen, VALUE = value, UVALUE = uvalue $ 238 253 , UNAME = uname, title = title, _extra = ex 254 ; 255 compile_opt idl2, strictarrsubs 256 ; 239 257 240 258 IF (N_PARAMS() NE 1) THEN MESSAGE, 'Incorrect number of arguments' -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_specifie.pro
r74 r114 2 2 ;***************************************************** 3 3 PRO cw_specifie_set_value, id, value 4 ; 5 compile_opt idl2, strictarrsubs 6 ; 4 7 @cm_general 5 8 if size(value, /type) NE 8 then return … … 26 29 ;***************************************************** 27 30 FUNCTION cw_specifie_get_value, id 31 ; 32 compile_opt idl2, strictarrsubs 33 ; 28 34 @cm_general 29 35 widget_control, widget_info(id,find_by_uname='min'), get_value = min … … 53 59 ;------------------------------------------------------------ 54 60 ;------------------------------------------------------------ 61 ; 62 compile_opt idl2, strictarrsubs 63 ; 55 64 widget_control, event.id, get_uvalue = uval 56 65 widget_control, event.top, get_uvalue = top_uvalue … … 87 96 FUNCTION cw_specifie, parent, ROW = row, COLUMN = column, UVALUE = uvalue, UNAME = uname, FRAME = frame, FORXXX = forxxx, _extra = ex 88 97 ; cheking exclusive keywords 98 ; 99 compile_opt idl2, strictarrsubs 100 ; 89 101 column = keyword_set(column)*(1-keyword_set(row)) 90 102 row = keyword_set(row)*(1-keyword_set(column)) +(keyword_set(row) EQ column)
Note: See TracChangeset
for help on using the changeset viewer.