Changeset 114 for trunk/SRC/ToBeReviewed/WIDGET
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed/WIDGET
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro
r74 r114 37 37 ; we get back the ids of the widget parts 38 38 ;------------------------------------------------------------ 39 ; 40 compile_opt idl2, strictarrsubs 41 ; 39 42 txtcmdid = widget_info(base, find_by_uname = 'txtcmd') 40 43 domainid = widget_info(base, find_by_uname = 'domain') -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildreadcmd.pro
r74 r114 33 33 FUNCTION buildreadcmd, base, snameexp, procedure, type, BOXZOOM = boxzoom $ 34 34 , COMPLETE = complete, NAMEFIELD = namefield 35 ; 36 ; 37 compile_opt idl2, strictarrsubs 35 38 ; 36 39 @cm_4cal ; for key_caltype -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/changefield.pro
r69 r114 1 1 PRO changefield, base, newfieldname, BOXZOOM = boxzoom 2 ; 3 ; 4 compile_opt idl2, strictarrsubs 2 5 ; 3 6 widget_control, base, get_uvalue = top_uvalue -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/changefile.pro
r74 r114 1 1 PRO changefile, base, newfilename, BOXZOOM = boxzoom, DATE1 = date1, DATE2 = date2, FIELDNAME = fieldname 2 ; 3 ; 4 compile_opt idl2, strictarrsubs 2 5 ; 3 6 widget_control, base, /hourglass … … 7 10 ELSE newfile = newfilename ; it is already the index of the new file 8 11 if newfile EQ -1 then begin 9 nothing ,report('invalid filename')12 nothing = report('invalid filename') 10 13 return 11 14 endif -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/createhistory.pro
r69 r114 3 3 ;------------------------------------------------------------- 4 4 ; we save globalcommand in globaloldcommand 5 ; 6 compile_opt idl2, strictarrsubs 7 ; 5 8 widget_control,base, get_uvalue = top_uvalue 6 9 globalcommand = extractatt(top_uvalue, 'globalcommand') -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/cutcmd.pro
r69 r114 1 1 PRO cutcmd, widcmd, toread, numberofread, prefix, nameexp, ending 2 ; 3 ; 4 compile_opt idl2, strictarrsubs 2 5 ; 3 6 dummy = where(byte(widcmd) EQ (byte('"'))[0], nbdblquote) -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/definedefaultextra.pro
r49 r114 1 1 FUNCTION definedefaultextra, nomvariable 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 case strlowcase(nomvariable) of 3 6 ; 'sn':BEGIN -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/doubleclickaction.pro
r69 r114 1 1 PRO doubleclickaction, event 2 2 ;------------------------------------------------------------ 3 ; 4 compile_opt idl2, strictarrsubs 5 ; 3 6 widget_control, event.id , get_uvalue = uval 4 7 widget_control, event.top, get_uvalue = top_uvalue -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/extractatt.pro
r49 r114 1 1 FUNCTION extractatt, top_uvalue, name 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 taille = size(top_uvalue) 3 6 j = -1 -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/findline.pro
r49 r114 1 1 FUNCTION findline, top_uvalue, name 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 taille = size(top_uvalue) 3 6 j = -1 -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/identifyclick.pro
r49 r114 1 1 FUNCTION identifyclick, event 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 widget_control, event.id, get_uvalue=uval, /no_copy 3 6 thisEvent = TAG_NAMES(event, /Structure) -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/inserthistory.pro
r69 r114 1 1 PRO inserthistory, base, text, line1, line2 2 2 ;------------------------------------------------------------- 3 ; 4 compile_opt idl2, strictarrsubs 5 ; 3 6 widget_control,base, get_uvalue = top_uvalue 4 7 globalcommand = extractatt(top_uvalue, 'globalcommand') -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/letsdraw.pro
r69 r114 36 36 37 37 PRO letsdraw, base, COMMANDE = commande, _extra = ex 38 ; 39 compile_opt idl2, strictarrsubs 40 ; 38 41 @common 39 42 ; on recupere la uvalue de base -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/loadgrid.pro
r69 r114 2 2 ; 3 3 ; 4 ; 5 compile_opt idl2, strictarrsubs 6 ; 4 7 @cm_4mesh 5 8 ccmeshparameters.filename = meshfilein -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/longclickaction.pro
r69 r114 1 1 PRO longclickaction, event 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 widget_control, event.id, get_uvalue = uval 3 6 widget_control, event.top, get_uvalue = top_uvalue -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/read_vermair.pro
r69 r114 1 1 FUNCTION read_vermair, name, debut, fin, nomexp, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 @common 3 6 ;------------------------------------------------------------ -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro
r74 r114 33 33 ;------------------------------------------------------------ 34 34 FUNCTION scanfile, namefile, GRID = GRID, _extra = ex 35 ; 36 compile_opt idl2, strictarrsubs 37 ; 35 38 @common 36 39 ;------------------------------------------------------------ -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro
r74 r114 1 1 ;********************************************************************* 2 2 PRO selectfile_event, event 3 ; 4 ; 5 compile_opt idl2, strictarrsubs 3 6 ; 4 7 @common … … 142 145 ;********************************************************************* 143 146 FUNCTION selectfile, datafilename, idlfile, argspro, _extra = ex 147 ; 148 ; 149 compile_opt idl2, strictarrsubs 144 150 ; 145 151 @common -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/singleclickaction.pro
r69 r114 1 1 PRO singleclickaction, event 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 @cm_4mesh 3 6 @cm_4data -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/tracecadre.pro
r49 r114 3 3 ; determination de la colonne et de la ligne correspondant au small en 4 4 ; entree 5 ; 6 compile_opt idl2, strictarrsubs 7 ; 5 8 numdessin = small[2]-1 6 9 numligne = numdessin/small[0] -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/updatewidget.pro
r69 r114 1 1 PRO updatewidget, base, NOBOXZOOM = noboxzoom, NODATES = nodates, NOTYPE = notype 2 2 ;---------------------------------------------------------------------- 3 ; 4 compile_opt idl2, strictarrsubs 5 ; 3 6 widget_control,base, get_uvalue = top_uvalue 4 7 smallin = extractatt(top_uvalue, 'smallin') -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/xcreateanim.pro
r74 r114 1 1 pro xcreateanim_event, event 2 ; 3 compile_opt idl2, strictarrsubs 4 ; 2 5 @common 3 6 ; on recupere les aguments contenus ds le widget … … 139 142 ;---------------------------------------------------------------- 140 143 PRO xcreateanim, parent 144 ; 145 compile_opt idl2, strictarrsubs 146 ; 141 147 @common 142 148 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/xxxmenubar_event.pro
r74 r114 1 1 ;------------------------------------------------ 2 2 PRO xxxmenubar_event, event 3 ; 4 compile_opt idl2, strictarrsubs 5 ; 3 6 @common 4 7 -
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) -
trunk/SRC/ToBeReviewed/WIDGET/findtopid.pro
r52 r114 34 34 ;------------------------------------------------------------ 35 35 FUNCTION findtopid, identite 36 ; 37 compile_opt idl2, strictarrsubs 38 ; 36 39 id = long(identite) 37 40 ; exist = widget_info(id, /managed) -
trunk/SRC/ToBeReviewed/WIDGET/slec.pro
r52 r114 2 2 ;--------------------------------------------------------- 3 3 ; include common 4 ; 5 compile_opt idl2, strictarrsubs 6 ; 4 7 @cm_4data 5 8 IF NOT keyword_set(key_forgetold) THEN BEGIN -
trunk/SRC/ToBeReviewed/WIDGET/xnotice.pro
r52 r114 42 42 ; on separe le text en differentes lignes (separees par !C) si ce 43 43 ; n''est pas deja fait... 44 ; 45 compile_opt idl2, strictarrsubs 46 ; 44 47 if n_elements(text) EQ 1 then text = str_sep(text, '!C', /trim) 45 48 ; -
trunk/SRC/ToBeReviewed/WIDGET/xquestion.pro
r52 r114 54 54 ;------------------------------------------------------------------------- 55 55 pro xquestion_event, event 56 ; 57 compile_opt idl2, strictarrsubs 58 ; 56 59 ; we get the answer 57 60 widget_control, widget_info(event.top, find_by_uname = 'text') $ … … 66 69 ;------------------------------------------------------------------------- 67 70 FUNCTION xquestion, question, proposedanswer, CHKWIDGET = chkwidget, _extra = ex ; 71 ; 72 compile_opt idl2, strictarrsubs 73 ; 68 74 ; is separate line a scalar? we must cut it into pieces? 69 75 if n_elements(question) EQ 1 then question = str_sep(question, '!C', /trim) -
trunk/SRC/ToBeReviewed/WIDGET/xx.pro
r52 r114 1 1 2 2 PRO xx, JOUR = jour, MESHFILENAME = meshfilename, LISTVAR = listvar, LISTGRID = listgrid, FUNCLEC_NAME = funclec_name, CALENDAR = calendar, _extra = ex 3 ; 4 ; 5 compile_opt idl2, strictarrsubs 3 6 ; 4 7 @common … … 20 23 ENDIF 21 24 ; calendrier a utiliser (en jours juliens d''IDL 22 if NOT keyword_set(calendar) then BEGIN23 if keyword_set(jour) then calendar = calendriertotem(/julian_day) ELSE calendar = calendriertotem(/julian_day, /mensuel)24 ENDIF25 ;++++ if NOT keyword_set(calendar) then BEGIN 26 ;++++ if keyword_set(jour) then calendar = calendriertotem(/julian_day) ELSE calendar = calendriertotem(/julian_day, /mensuel) 27 ;++++ ENDIF 25 28 ; nom du fichier se rapportant au masque 26 29 if NOT keyword_set(meshfilename) then meshfilename = '/usr1/com/smasson/IDL/INIT/inittotem.pro' 27 meshparameters = whichgrid(meshfilename)30 ;++++ meshparameters = whichgrid(meshfilename) 28 31 ; parameteres specifiant comment doit etre lu le champ 29 32 readparameters= {funclec_name: funclec_name $ -
trunk/SRC/ToBeReviewed/WIDGET/xxx.pro
r74 r114 42 42 PRO xxx_event, event 43 43 ;------------------------------------------------------------ 44 ; 45 compile_opt idl2, strictarrsubs 46 ; 44 47 @common 45 48 ;------------------------------------------------------------ … … 129 132 , RESTORE = restore, _EXTRA = ex 130 133 ;------------------------------------------------------------ 134 ; 135 compile_opt idl2, strictarrsubs 136 ; 131 137 @all_cm 132 138 ;------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.