Changeset 495 for trunk/SRC/ToBeReviewed/WIDGET
- Timestamp:
- 04/17/14 10:49:43 (10 years ago)
- Location:
- trunk/SRC/ToBeReviewed/WIDGET
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro
r327 r495 15 15 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 16 16 ; 6 elements: The extraction is made on Boxzoom 17 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 17 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 18 18 ; <pro>domdef</pro> ! 19 19 ; … … 86 86 drawover = (flags[where(options EQ 'Overlay')])[0] 87 87 ; 88 alreadyread = extractatt(top_uvalue, 'alreadyread')88 alreadyread = extractatt(top_uvalue, 'alreadyread') 89 89 alreadyvector = extractatt(top_uvalue, 'alreadyvector') 90 alreadyover = extractatt(top_uvalue, 'alreadyoer')90 alreadyover = extractatt(top_uvalue, 'alreadyover') 91 91 ; What must we read ? 92 92 case 1 of … … 414 414 return, Cmd 415 415 end 416 417 -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildreadcmd.pro
r493 r495 18 18 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 19 19 ; 6 elements: The extraction is made on Boxzoom 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 21 21 ; <pro>domdef</pro> ! 22 22 ; … … 40 40 FUNCTION buildreadcmd, base, snameexp, procedure, type, BOXZOOM=boxzoom $ 41 41 , COMPLETE=complete, NAMEFIELD=namefield 42 ;43 42 ; 44 43 compile_opt idl2, strictarrsubs -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/changefield.pro
r327 r495 18 18 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 19 19 ; 6 elements: The extraction is made on Boxzoom 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 21 21 ; <pro>domdef</pro> ! 22 22 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/changefile.pro
r327 r495 18 18 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 19 19 ; 6 elements: The extraction is made on Boxzoom 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 21 21 ; <pro>domdef</pro> ! 22 22 ; … … 46 46 PRO changefile, base, newfilename, BOXZOOM=boxzoom $ 47 47 , DATE1=date1, DATE2=date2, FIELDNAME=fieldname 48 ;49 48 ; 50 49 compile_opt idl2, strictarrsubs -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/letsdraw.pro
r479 r495 52 52 ; help,mixstru(top_uvalue.exextra,top_uvalue.extra), /struct 53 53 ; 54 ;55 54 ; we recuperate the id of the graphic associated to the widget of id base. 56 55 graphid = extractatt(top_uvalue, 'graphid') … … 63 62 ; 64 63 tracecadre, smallout, /fill 65 ;66 64 ; 67 65 options = extractatt(top_uvalue, 'options') -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/read_vermair.pro
r327 r495 24 24 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 25 25 ; 6 elements: The extraction is made on Boxzoom 26 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 26 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 27 27 ; <pro>domdef</pro> ! 28 28 ; … … 58 58 res = lec(name,debut,nomexp, BOXZOOM=boxzoom, _EXTRA = ex) 59 59 ENDIF ELSE res = lect(name,debut,fin, nomexp, BOXZOOM=boxzoom, _EXTRA = ex) 60 ;------------------------------------------------------------ 60 ;------------------------------------------------------------ 61 61 return, {tab:res, grille:vargrid, unite:'', experience:varexp, nom:varname} 62 62 end -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro
r423 r495 11 11 ; 12 12 ; @keyword _EXTRA 13 ; Used to pass keywords to <pro>isafile</pro>, 13 ; Used to pass keywords to <pro>isafile</pro>, 14 14 ; <pro>ncdf_getaxis</pro> and <pro>ncdf_gettime</pro> 15 15 ; … … 47 47 ; qu''une dimension et etant la dimension temporelle. cette 48 48 ; variable sera prise comme axe des temps. Rq: si plusieurs 49 ; variables v erifient ces criteres on considere la premiere49 ; variables vérifient ces criteres on considere la premiere 50 50 ; variable 51 51 ; 5) Cette variable axe des temps doit contenir l''attribut … … 59 59 ; je crois que c''est tout! 60 60 ; 61 ; GRID='[UTVWF]' to specify the type of grid. Defau t is (1)61 ; GRID='[UTVWF]' to specify the type of grid. Default is (1) 62 62 ; based on the name of the file if the file ends by 63 63 ; GRID[._][TUVFW].NC (not case sensible) or (2) T if case (1) 64 64 ; is not found. 65 ;66 65 ; 67 66 compile_opt idl2, strictarrsubs … … 157 156 jpt = abs(time) 158 157 fakecal = 1 159 ENDIF ELSE jpt = n_elements(time) 158 ENDIF ELSE jpt = n_elements(time) 160 159 ; high frequency calendar: more than one element per day 161 160 IF max(histogram([long(time-time[0])])) GT 1 THEN fakecal = 1 ELSE fakecal = 0 -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro
r327 r495 177 177 ; @param DATAFILENAME 178 178 ; 179 ;180 179 ; @param IDLFILE 181 ;182 180 ; 183 181 ; @param ARGSPRO -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/xcreateanim.pro
r493 r495 87 87 window, /free, /pixmap, xsize = xsize, ysize = ysize 88 88 89 90 89 ; indication of the number of the picture we are creating 91 90 base = widget_base() … … 97 96 IF keyword_set(fakecal) THEN date = index1 ELSE date = jul2date(calendar[index1]) 98 97 xxx2ps, /noerase, date1in = date, date2in = date 99 ;100 98 ; 101 99 image = tvrd(true = depth GT 8) … … 112 110 ;- Convert 24-bit image to 8-bit 113 111 image = color_quan(image, 1, red, green, blue, colors = 256, get_translation = translation, /map_all) 114 ;115 112 ; 116 113 write_gif, animdir+nomfic, image, red, green, blue, /multiple -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_bgroup.pro
r327 r495 53 53 end 54 54 55 56 57 55 ;+ 58 56 ; @file_comments … … 62 60 ; 63 61 ; @param ID 64 ;65 62 ; 66 63 ; @param VALUE … … 167 164 endelse 168 165 end 169 170 171 172 173 166 ; 174 167 ;+ … … 379 372 IF (N_ELEMENTS(y_scroll_size) eq 0) then y_scroll_size = 0 380 373 381 382 383 384 374 top_base = 0L 385 375 if (n_elements(label_top) ne 0) then begin … … 424 414 EVENT_FUNC='CW_BGROUP_EVENT', $ 425 415 UVALUE=WIDGET_INFO(top_base, /child)) 426 427 416 428 417 n = n_elements(names) -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_calendar.pro
r371 r495 35 35 ; return 36 36 ; END 37 ;38 ;39 37 ;+ 40 38 ; … … 72 70 widget_control, winfo_id, get_uvalue = infowid 73 71 key_caltype = infowid.caltype 74 ; high freq euncy calendar72 ; high frequency calendar 75 73 IF keyword_set(infowid.fakecal) THEN BEGIN 76 74 value2 = date2jul(long(value)) - infowid.fakecal … … 104 102 ; @file_comments 105 103 ; 106 ;107 104 ; @categories 108 105 ; Compound widget 109 106 ; 110 107 ; @param ID 111 ;112 108 ; 113 109 ; @returns … … 137 133 ; @file_comments 138 134 ; 139 ;140 135 ; @categories 141 136 ; Compound widget … … 143 138 ; @param ID 144 139 ; 145 ;146 140 ; @param WINFOID 147 ;148 141 ; 149 142 ; @returns … … 182 175 month = (where(allmonths EQ wid_value.combobox_gettext))[0] + 1 183 176 date = date + 100L * long(month) 184 ENDIF ELSE date = date + (oldate MOD 10000L)/ 100L*100L177 ENDIF ELSE date = date + (oldate MOD 10000L)/ 100L * 100L 185 178 ;-------------year---------------- 186 179 wid_id = widget_info(id, find_by_uname = 'year') … … 198 191 ;+ 199 192 ; @file_comments 200 ;201 193 ; 202 194 ; @categories … … 300 292 ; @file_comments 301 293 ; 302 ;303 294 ; @categories 304 295 ; Compound widget … … 306 297 ; @param EVENT 307 298 ; 308 ;309 299 ; @param CASENAME 310 ;311 300 ; 312 301 ; @returns … … 359 348 ; 360 349 ; @param EVENT 361 ;362 350 ; 363 351 ; @returns … … 424 412 ; @file_comments 425 413 ; 426 ;427 414 ; @categories 428 415 ; Compound widget … … 433 420 ; @param CALENDAR 434 421 ; 435 ;436 422 ; @param JDATE0 437 423 ; … … 440 426 ; @keyword FAKECAL 441 427 ; 442 ;443 428 ; @keyword UVALUE 444 429 ; 445 430 ; @keyword UNAME 446 ;447 431 ; 448 432 ; @keyword _EXTRA … … 524 508 monthindex = where(yearcal EQ year0) 525 509 currentmonth = long(monthcal[monthindex]) 526 ; we suppress the repe ted months510 ; we suppress the repeated months 527 511 monthindexbis = uniq(currentmonth, sort(currentmonth)) 528 512 monthindex = monthindex[monthindexbis] -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_domain.pro
r493 r495 37 37 ; end 38 38 ; 39 ;40 39 ;+ 41 40 ; … … 46 45 ; 47 46 ; @param ID 48 ;49 47 ; 50 48 ; @param VALUE … … 516 514 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 517 515 ; 6 elements: The extraction is made on Boxzoom 518 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 516 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 519 517 ; <pro>domdef</pro>! 520 518 ; … … 541 539 FUNCTION cw_domain, parent, BOXZOOM=boxzoom, STRICT=strict $ 542 540 , UVALUE=uvalue, UNAME=uname, UNZOOM=unzoom, _EXTRA=ex 543 ;544 541 ; 545 542 compile_opt idl2, strictarrsubs -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_slide_slice.pro
r327 r495 116 116 117 117 ; widget_control, uniteid, get_value = unite 118 ;119 118 ; 120 119 ; if uval.name EQ 'unite' then begin … … 162 161 ; @file_comments 163 162 ; 164 ;165 163 ; @categories 166 164 ; Compound widget … … 177 175 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 178 176 ; 6 elements: The extraction is made on Boxzoom 179 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 177 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last 180 178 ; <pro>domdef</pro> ! 181 179 ; -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_slider_pm.pro
r327 r495 145 145 ; @file_comments 146 146 ; 147 ;148 147 ; @categories 149 148 ; Compound widget … … 210 209 IF uval EQ 'decimal' THEN value = float(event.str) $ 211 210 ELSE value = float(widget_info(dcid, /combobox_gettext)) 212 out = 0 ; defau t case211 out = 0 ; default case 213 212 case uval OF 214 213 'plus': if (value + 1) LE minmax[1] then value2 = value + 1 ELSE out = 1 … … 320 319 ; slider widget. 321 320 ; 322 ;323 321 ; @examples 324 322 ; See the program provided above (testwid and the associated procedure, testwid_event). -
trunk/SRC/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_specifie.pro
r327 r495 249 249 rien = widget_text(base2, value = colvalue, /editable, xsize = 2, uname = 'palnum', uvalue = 'palnum') 250 250 251 252 253 251 ; widget text containing other keywords pass into top_uvalue.exextra 254 252 ; Does it remain some? If yes, we have to put them as string -
trunk/SRC/ToBeReviewed/WIDGET/slec.pro
r327 r495 24 24 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 25 25 ; 6 elements: The extraction is made on Boxzoom 26 ; where lon1,lon2,lat1,lat2 are global variables defined at the last 26 ; where lon1,lon2,lat1,lat2 are global variables defined at the last 27 27 ; <pro>domdef</pro> ! 28 28 ; -
trunk/SRC/ToBeReviewed/WIDGET/xnotice.pro
r486 r495 65 65 ENDIF ELSE noticebase = -1 66 66 67 68 67 return, noticebase 69 68 end -
trunk/SRC/ToBeReviewed/WIDGET/xx.pro
r493 r495 77 77 ;---------------------------------------------------------------------- 78 78 ; 79 ;80 79 fileparameters = {filename: 'many !' $ 81 80 , time_counter: calendar $ -
trunk/SRC/ToBeReviewed/WIDGET/xxx.pro
r370 r495 134 134 ; @keyword REDRAW 135 135 ; 136 ;137 136 ; @keyword SEPARATE 138 ;139 137 ; 140 138 ; @keyword UVALUE … … 404 402 ; we find homedir 405 403 homedir = isadirectory(io = homedir, title = 'Bad definition of homedir') 406 ; We recupera e the list of instructions404 ; We recuperate the list of instructions 407 405 globalcommand = extractatt(top_uvalue, 'globalcommand') 408 406 ; We complete by first and last lines of the program … … 468 466 ; creation of the pointer we will hook at the widget. 469 467 top_uvalue = ptrarr(2, 29, /allocate_heap) 470 ; variables refer ing to the widget468 ; variables referring to the widget 471 469 *top_uvalue[0, 0] = 'options' & *top_uvalue[1, 0] = options 472 470 *top_uvalue[0, 1] = 'smallin' & *top_uvalue[1, 1] = smallin … … 482 480 *top_uvalue[0, 11] = 'noticebase' & *top_uvalue[1, 11] = 0l 483 481 *top_uvalue[0, 12] = 'extra' & *top_uvalue[1, 12] = ex 484 ; variables refer ing to different files we can read482 ; variables referring to different files we can read 485 483 *top_uvalue[0, 13] = 'currentfile' & *top_uvalue[1, 13] = currentfile 486 484 *top_uvalue[0, 14] = 'filelist' & *top_uvalue[1, 14] = filelist … … 488 486 *top_uvalue[0, 16] = 'readparameters' & *top_uvalue[1, 16] = readparameters 489 487 *top_uvalue[0, 17] = 'meshparameters' & *top_uvalue[1, 17] = meshparameters 490 ; variables refer ing to different drawing we can do488 ; variables referring to different drawing we can do 491 489 *top_uvalue[0, 18] = 'penvs' & *top_uvalue[1, 18] = replicate(!p, nbredessin) 492 490 *top_uvalue[0, 19] = 'xenvs' & *top_uvalue[1, 19] = replicate(!x, nbredessin)
Note: See TracChangeset
for help on using the changeset viewer.