Changeset 231 for trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- Location:
- trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro
r226 r231 1 ;------------------------------------------------------------2 ;------------------------------------------------------------3 ;------------------------------------------------------------4 1 ;+ 5 2 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildreadcmd.pro
r172 r231 1 1 ;+ 2 ; 3 ; @param BASE {in}{required} 2 ; 3 ; @param BASE {in}{required} 4 4 ; The id of the widget where apply the drawing. 5 5 ; 6 6 ; @param SNAMEEXP {in}{required} 7 7 ; 8 ;9 8 ; @param PROCEDURE {in}{required} 10 ;11 9 ; 12 10 ; @param TYPE {in}{required} 13 11 ; 14 ;15 12 ; @keyword BOXZOOM 16 ; Vector indicating the geographic zone on which we want to cut the map. 17 ; If BOXZOOM has : 13 ; Vector indicating the geographic zone on which we want to cut the map. 14 ; If BOXZOOM has : 18 15 ; 1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] 19 16 ; 2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]] 20 17 ; 4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])] 21 18 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 22 ; 6 elements: The extraction is made on Boxzoom 19 ; 6 elements: The extraction is made on Boxzoom 23 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last domdef! 24 21 ; 25 22 ; @keyword COMPLETE 26 23 ; 27 ;28 24 ; @keyword NAMEFIELD 29 ;30 25 ; 31 26 ; @uses 32 27 ; common.pro 33 ; 28 ; 34 29 ; @history 35 30 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 36 ; 37 ; @version 31 ; 32 ; @version 38 33 ; $Id$ 39 34 ; … … 77 72 ; get the options 78 73 ; 79 options = extractatt(top_uvalue, 'options') 74 options = extractatt(top_uvalue, 'options') 80 75 flags = extractatt(top_uvalue, 'optionsflag') 81 76 flags = flags[*, numdessinin] -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/changefield.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param BASE {in}{required} 9 8 ; The id of the widget where apply the drawing. … … 11 10 ; @param NEWFIELDNAME 12 11 ; 13 ;14 12 ; @keyword BOXZOOM 15 ; Vector indicating the geographic zone on which we want to cut the map. 16 ; If BOXZOOM has : 13 ; Vector indicating the geographic zone on which we want to cut the map. 14 ; If BOXZOOM has : 17 15 ; 1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] 18 16 ; 2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]] 19 17 ; 4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])] 20 18 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 21 ; 6 elements: The extraction is made on Boxzoom 19 ; 6 elements: The extraction is made on Boxzoom 22 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last domdef! 23 ; 21 ; 24 22 ; @returns 25 ; 26 ; 23 ; 27 24 ; @uses 28 ; 29 ; 25 ; 30 26 ; @restrictions 31 ; 32 ; 27 ; 33 28 ; @examples 34 ; 35 ; 29 ; 36 30 ; @history 37 ; 38 ; 39 ; @version 31 ; 32 ; @version 40 33 ; $Id$ 41 34 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/changefile.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param BASE {in}{required} 9 8 ; The id of the widget where apply the drawing. … … 11 10 ; @param NEWFILENAME 12 11 ; 13 ;14 12 ; @keyword BOXZOOM 15 ; Vector indicating the geographic zone on which we want to cut the map. 16 ; If BOXZOOM has : 13 ; Vector indicating the geographic zone on which we want to cut the map. 14 ; If BOXZOOM has : 17 15 ; 1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] 18 16 ; 2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]] 19 17 ; 4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])] 20 18 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 21 ; 6 elements: The extraction is made on Boxzoom 19 ; 6 elements: The extraction is made on Boxzoom 22 20 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last domdef! 23 ; 21 ; 24 22 ; @keyword DATE1 25 ; 23 ; 26 24 ; @keyword DATE2 27 25 ; 28 26 ; @keyword FIELDNAME 29 ; 30 ; 27 ; 31 28 ; @returns 32 ; 33 ; 29 ; 34 30 ; @uses 35 ; 36 ; 31 ; 37 32 ; @restrictions 38 ; 39 ; 33 ; 40 34 ; @examples 41 ; 42 ; 35 ; 43 36 ; @history 44 ; 45 ; 46 ; @version 37 ; 38 ; @version 47 39 ; $Id$ 48 40 ; … … 85 77 ; Did we change the calendar? 86 78 if array_equal(oldcalendar, newcalendar) NE 1 then begin 87 @cm_4cal 79 @cm_4cal 88 80 ; for key_caltype 89 81 key_caltype = (*(extractatt(top_uvalue, 'fileparameters'))[newfile]).caltype 90 82 ; fake or real calendar??? 91 83 fakecal = (*(extractatt(top_uvalue, 'fileparameters'))[newfile]).fakecal 92 ; Which dates were selected? 84 ; Which dates were selected? 93 85 date1id = widget_info(base, find_by_uname = 'calendar1') 94 86 if NOT keyword_set(date1) then widget_control, date1id, get_value = date1 … … 107 99 rien = cw_calendar(basecal, newcalendar, jdate2, uname = 'calendar2' $ 108 100 , FAKECAL = fakecal, uvalue = {name:'calendar2'}, /frame) 109 ENDIF ELSE BEGIN 101 ENDIF ELSE BEGIN 110 102 if keyword_set(date1) then begin 111 103 date1id = widget_info(base, find_by_uname = 'calendar1') … … 130 122 ; file name 131 123 ; 132 IF oldfile NE newfile THEN BEGIN 124 IF oldfile NE newfile THEN BEGIN 133 125 flstid = widget_info(base, find_by_uname = 'filelist') 134 126 widget_control, flstid, set_combobox_select = newfile 135 ENDIF 127 ENDIF 136 128 ; 137 129 ; Variables name -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/createhistory.pro
r163 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param BASE {in}{required} 9 8 ; The id of the widget where apply the drawing. 10 9 ; 11 10 ; @param SMALL 12 ; Vector composed of 3 or 4 elements, applied to make a drawing on a small 13 ; portion of a page or screen. It delimit the zone where the drawing will 14 ; be done. If there is 4 elements: then is constituted of coordinates (expressed 15 ; in cm located from the up and left corner of the page or the window (in portrait 16 ; like in landscape)) of the bottom and left corner and of the up and right corner 17 ; of the drawing zone. If there is 3 elements: in this case, we divide the page or 18 ; the screen in small[0] columns and in small[1] lines the drawing made in the box 19 ; numbered small[2]. The numerotation starting up and left by the number 1 and then, 20 ; following the writing direction. By default, we make the largest drawing we can do, 11 ; Vector composed of 3 or 4 elements, applied to make a drawing on a small 12 ; portion of a page or screen. It delimit the zone where the drawing will 13 ; be done. If there is 4 elements: then is constituted of coordinates (expressed 14 ; in cm located from the up and left corner of the page or the window (in portrait 15 ; like in landscape)) of the bottom and left corner and of the up and right corner 16 ; of the drawing zone. If there is 3 elements: in this case, we divide the page or 17 ; the screen in small[0] columns and in small[1] lines the drawing made in the box 18 ; numbered small[2]. The numerotation starting up and left by the number 1 and then, 19 ; following the writing direction. By default, we make the largest drawing we can do, 21 20 ; conserving the aspect rapport (except when REMPLI is activated). 22 ; 21 ; 23 22 ; @returns 24 ; 25 ; 23 ; 26 24 ; @uses 27 ; 28 ; 25 ; 29 26 ; @restrictions 30 ; 31 ; 27 ; 32 28 ; @examples 33 ; 34 ; 29 ; 35 30 ; @history 36 ; 37 ; 38 ; @version 31 ; 32 ; @version 39 33 ; $Id$ 40 34 ; … … 55 49 *top_uvalue[1, findline(top_uvalue, 'globaloldcommand')] = globalcommand 56 50 ; portrait or landscape ??? 57 options = extractatt(top_uvalue, 'options') 51 options = extractatt(top_uvalue, 'options') 58 52 optionsflag = extractatt(top_uvalue, 'optionsflag') 59 53 portrait = (optionsflag[where(options EQ 'Portrait/Landscape'), 0])[0] -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/cutcmd.pro
r192 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param WIDCMD 9 ;10 8 ; 11 9 ; @param TOREAD 12 10 ; 13 ;14 11 ; @param NUMBEROFREAD 15 ;16 12 ; 17 13 ; @param PREFIX 18 14 ; 19 ;20 15 ; @param NAMEEXP 21 ;22 16 ; 23 17 ; @param ENDING 24 18 ; 25 ;26 19 ; @returns 27 ; 28 ; 20 ; 29 21 ; @uses 30 ; 31 ; 22 ; 32 23 ; @restrictions 33 ; 34 ; 24 ; 35 25 ; @examples 36 ; 37 ; 26 ; 38 27 ; @history 39 ; 40 ; 41 ; @version 28 ; 29 ; @version 42 30 ; $Id$ 43 ; 31 ; 44 32 ; @todo 45 33 ; seb 46 34 ; 47 35 ;- 36 ; 48 37 PRO cutcmd, widcmd, toread, numberofread, prefix, nameexp, ending 49 ;50 38 ; 51 39 compile_opt idl2, strictarrsubs 52 40 ; 53 dummy = where(byte(widcmd) EQ (byte('"'))[0], nbdblquote) 41 dummy = where(byte(widcmd) EQ (byte('"'))[0], nbdblquote) 54 42 CASE 1 OF 55 43 nbdblquote MOD 2: stop ; odd numbers are impossibles... … … 72 60 IF n_elements(separator) NE n_elements(other) THEN stop 73 61 widcmd = '' 74 FOR i = 0, n_elements(other)-1 DO BEGIN 62 FOR i = 0, n_elements(other)-1 DO BEGIN 75 63 IF isnumber(other[i]) LT 1 THEN other[i] = '"' + other[i] + '"' 76 64 widcmd = widcmd + separator[i] + other[i] 77 65 ENDFOR 78 66 ; print, widcmd 79 END 67 END 80 68 ENDCASE 81 69 … … 83 71 IF strpos(widcmd, '"') EQ 0 THEN start = 0 ELSE start = 1 84 72 nameexp = cutted[start:*:2] 85 numberofread = n_elements(nameexp) 73 numberofread = n_elements(nameexp) 86 74 IF toread GE numberofread then begin 87 75 dummy = report('toread cannot be larger than numberofread') -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/definedefaultextra.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param NOMVARIABLE 9 8 ; 10 ;11 9 ; @returns 12 ; 13 ; 10 ; 14 11 ; @uses 15 ; 16 ; 12 ; 17 13 ; @restrictions 18 ; 19 ; 14 ; 20 15 ; @examples 21 ; 22 ; 16 ; 23 17 ; @history 24 ; 25 ; 18 ; 26 19 ; @version 27 ; $Id$ 28 ; 20 ; $Id$ 21 ; 29 22 ; @todo 30 23 ; seb 31 24 ; 32 25 ;- 26 ; 33 27 FUNCTION definedefaultextra, nomvariable 34 28 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/doubleclickaction.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param EVENT 9 8 ; 10 ;11 9 ; @returns 12 ; 13 ; 10 ; 14 11 ; @uses 15 ; 16 ; 12 ; 17 13 ; @restrictions 18 ; 19 ; 14 ; 20 15 ; @examples 21 ; 22 ; 16 ; 23 17 ; @history 24 ; 25 ; 18 ; 26 19 ; @version 27 ; $Id$ 28 ; 20 ; $Id$ 21 ; 29 22 ; @todo 30 23 ; seb 31 24 ; 32 25 ;- 26 ; 33 27 PRO doubleclickaction, event 34 28 ;------------------------------------------------------------ … … 64 58 ; 65 59 END 66 2:BEGIN 60 2:BEGIN 67 61 ; if top_uvalue.smallout[2] NE numdessin then begin 68 62 tracecadre, smallout, /erase … … 78 72 inserthistory, event.top, ';', '; beginning of '+strtrim(numdessin, 2) $ 79 73 , '; end of '+strtrim(numdessin, 2) 80 ; Putting at 0 of attributes of the value concerning the drawing :74 ; Putting at 0 of attributes of the value concerning the drawing 81 75 82 76 numdessin = numdessin-1 -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/extractatt.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param TOP_UVALUE 9 ;10 8 ; 11 9 ; @param NAME 12 10 ; 13 ;14 11 ; @returns 15 ; 16 ; 12 ; 17 13 ; @uses 18 ; 19 ; 14 ; 20 15 ; @restrictions 21 ; 22 ; 16 ; 23 17 ; @examples 24 ; 25 ; 18 ; 26 19 ; @history 27 ; 28 ; 29 ; @version 20 ; 21 ; @version 30 22 ; $Id$ 31 ; 23 ; 32 24 ; @todo 33 25 ; seb 34 26 ; 35 27 ;- 28 ; 36 29 FUNCTION extractatt, top_uvalue, name 37 30 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/findline.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param TOP_UVALUE 9 ;10 8 ; 11 9 ; @param NAME 12 10 ; 13 ;14 11 ; @returns 15 ; 16 ; 12 ; 17 13 ; @uses 18 ; 19 ; 14 ; 20 15 ; @restrictions 21 ; 22 ; 16 ; 23 17 ; @examples 24 ; 25 ; 18 ; 26 19 ; @history 27 ; 28 ; 29 ; @version 20 ; 21 ; @version 30 22 ; $Id$ 31 ; 23 ; 32 24 ; @todo 33 25 ; seb 34 26 ; 35 27 ;- 28 ; 36 29 FUNCTION findline, top_uvalue, name 37 30 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/identifyclick.pro
r226 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param EVENT 9 8 ; 10 ;11 9 ; @returns 12 ; 13 ; 10 ; 14 11 ; @uses 15 ; 16 ; 12 ; 17 13 ; @restrictions 18 ; 19 ; 14 ; 20 15 ; @examples 21 ; 22 ; 16 ; 23 17 ; @history 24 ; 25 ; 18 ; 26 19 ; @version 27 ; $Id$ 28 ; 20 ; $Id$ 21 ; 29 22 ; @todo 30 23 ; seb 31 24 ; 32 25 ;- 26 ; 33 27 FUNCTION identifyclick, event 34 28 ; … … 78 72 thisEvent EQ 'WIDGET_TIMER' AND uval.click EQ 1 AND press EQ 0:uval.click = 2 79 73 ; t/2/0 normal click 80 thisEvent EQ 'WIDGET_TIMER' AND uval.click EQ 2 AND press EQ 0:BEGIN 74 thisEvent EQ 'WIDGET_TIMER' AND uval.click EQ 2 AND press EQ 0:BEGIN 81 75 type = 'single' 82 76 press = uval.press -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/inserthistory.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param BASE 9 ;10 8 ; 11 9 ; @param TEXT 12 10 ; 13 ;14 11 ; @param LINE1 15 ;16 12 ; 17 13 ; @param LINE2 18 14 ; 19 ;20 15 ; @returns 21 ; 22 ; 16 ; 23 17 ; @uses 24 ; 25 ; 18 ; 26 19 ; @restrictions 27 ; 28 ; 20 ; 29 21 ; @examples 30 ; 31 ; 22 ; 32 23 ; @history 33 ; 34 ; 24 ; 35 25 ; @version 36 ; $Id$ 37 ; 26 ; $Id$ 27 ; 38 28 ; @todo 39 29 ; seb 40 30 ; 41 31 ;- 42 ; -------------------------------------------------------------32 ; 43 33 PRO inserthistory, base, text, line1, line2 44 34 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/letsdraw.pro
r163 r231 1 1 ;+ 2 ; @file_comments 3 ; It is the procedure launching the drawing. 4 ; If we do not give the command to it, it call 2 ; 3 ; @file_comments 4 ; It is the procedure launching the drawing. 5 ; If we do not give the command to it, it call 5 6 ; construitcommande to know what to trace. 6 7 ; 7 8 ; @categories 8 9 ; 9 ;10 10 ; @param BASE {in}{required} 11 11 ; The id of the widget where apply the drawing. 12 ; 12 ; 13 13 ; @keyword COMMANDE {type=string} 14 14 ; A string of the style: read_data('sst'...),... 15 15 ; 16 16 ; @keyword _EXTRA 17 ; Used to pass your keywords18 ; 17 ; Used to pass keywords 18 ; 19 19 ; @uses 20 ; common.pro 21 ; 20 ; common.pro 21 ; 22 22 ; @history 23 23 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 24 ; 25 ; @version 24 ; 25 ; @version 26 26 ; $Id$ 27 ; 27 ; 28 28 ;- 29 ; 29 30 PRO letsdraw, base, COMMANDE = commande, _extra = ex 30 31 ; … … 73 74 ; 74 75 ; 75 options = extractatt(top_uvalue, 'options') 76 options = extractatt(top_uvalue, 'options') 76 77 optionsflag = extractatt(top_uvalue, 'optionsflag') 77 78 portrait = (strtrim(optionsflag[where(options EQ 'Portrait/Landscape'), 0], 1))[0] 78 79 79 80 ; 80 81 createpro, ['@common' $ -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/loadgrid.pro
r213 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param MESHFILEIN 9 8 ; 10 ;11 9 ; @keyword _EXTRA 12 ; Used to pass yourkeywords13 ; 10 ; Used to pass keywords 11 ; 14 12 ; @returns 15 ; 16 ; 13 ; 17 14 ; @uses 18 ; 19 ; 15 ; 20 16 ; @restrictions 21 ; 22 ; 17 ; 23 18 ; @examples 24 ; 25 ; 19 ; 26 20 ; @history 27 ; 28 ; 29 ; @version 21 ; 22 ; @version 30 23 ; $Id$ 31 24 ; … … 34 27 ; 35 28 ;- 29 ; 36 30 PRO loadgrid, meshfiletxtin, _extra = ex 37 ; 31 ; 38 32 meshfilein = strsed(meshfiletxtin,'@@@', '''') 39 33 ; … … 47 41 ; try to find a .pro file with this name... 48 42 filepro = (find(meshfile[0], /firstfound, /onlypro))[0] 49 ; if this is an idl batch file or a procedure 43 ; if this is an idl batch file or a procedure 50 44 if filepro NE 'NOT FOUND' THEN BEGIN 51 45 CASE protype(filepro) OF … … 63 57 ENDELSE 64 58 ; add the arguments and keywords if necessary 65 IF n_elements(meshfile) GT 1 AND strmid(listing, 0, 1) NE '@' THEN $ 59 IF n_elements(meshfile) GT 1 AND strmid(listing, 0, 1) NE '@' THEN $ 66 60 listing = listing + strmid(meshfilein, strpos(meshfilein, ',')) 67 61 … … 72 66 73 67 return 74 END 68 END -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/longclickaction.pro
r154 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param EVENT 9 8 ; 10 ;11 9 ; @returns 12 ; 13 ; 10 ; 14 11 ; @uses 15 ; 16 ; 12 ; 17 13 ; @restrictions 18 ; 19 ; 14 ; 20 15 ; @examples 21 ; 22 ; 16 ; 23 17 ; @history 24 ; 25 ; 18 ; 26 19 ; @version 27 ; $Id$ 28 ; 20 ; $Id$ 21 ; 29 22 ; @todo 30 23 ; seb 31 24 ; 32 25 ;- 26 ; 33 27 PRO longclickaction, event 34 28 ; … … 66 60 y = [coor[1, 0], coor[1, 1]] 67 61 domainid = widget_info(event.top, find_by_uname = 'domain') 68 IF type EQ 'pltv' THEN BEGIN 62 IF type EQ 'pltv' THEN BEGIN 69 63 currentfile = extractatt(top_uvalue, 'currentfile') 70 64 listgrid = (*(extractatt(top_uvalue, 'fileparameters'))[currentfile]).listgrid … … 79 73 ; Do we have to pass the boxzoom in indexes ??? 80 74 currentplot = (extractatt(top_uvalue, 'smallin'))[2]-1 81 options = extractatt(top_uvalue, 'options') 75 options = extractatt(top_uvalue, 'options') 82 76 flags = extractatt(top_uvalue, 'optionsflag') 83 77 flags = flags[*, currentplot] … … 107 101 letsdraw, event.top 108 102 END 109 2:BEGIN 110 IF type EQ 'plt' THEN BEGIN 103 2:BEGIN 104 IF type EQ 'plt' THEN BEGIN 111 105 (*top_uvalue[1, findline(top_uvalue, 'types')])[smallout[2]-1] = 'pltz' 112 106 forcetype = 'pltz' 113 ENDIF 107 ENDIF 114 108 updatewidget, event.top, /noboxzoom 115 109 letsdraw, event.top, forcetype = forcetype 116 110 END 117 111 4:BEGIN 118 IF type EQ 'plt' THEN BEGIN 112 IF type EQ 'plt' THEN BEGIN 119 113 (*top_uvalue[1, findline(top_uvalue, 'types')])[smallout[2]-1] = 'pltt' 120 114 forcetype = 'pltt' 121 ENDIF 115 ENDIF 122 116 updatewidget, event.top, /noboxzoom, /nodates 123 117 letsdraw, event.top, forcetype = forcetype -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/read_vermair.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param NAME 9 ;10 8 ; 11 9 ; @param DEBUT 12 10 ; 13 ;14 11 ; @param FIN 15 12 ; 16 ;17 13 ; @param NOMEXP 18 ;19 14 ; 20 15 ; @keyword PARENT … … 22 17 ; 23 18 ; @keyword BOXZOOM 24 ; Vector indicating the geographic zone on which we want to cut the map. 25 ; If BOXZOOM has : 19 ; Vector indicating the geographic zone on which we want to cut the map. 20 ; If BOXZOOM has : 26 21 ; 1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]] 27 22 ; 2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]] 28 23 ; 4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])] 29 24 ; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]] 30 ; 6 elements: The extraction is made on Boxzoom 25 ; 6 elements: The extraction is made on Boxzoom 31 26 ; Where lon1, lon2,lat1,lat2 are global variables defined at the last domdef! 32 27 ; 33 28 ; @keyword _EXTRA 34 ; Used to pass your keywords35 ; 29 ; Used to pass keywords 30 ; 36 31 ; @returns 37 ; 38 ; 32 ; 39 33 ; @uses 40 ; 41 ; 34 ; 42 35 ; @restrictions 43 ; 44 ; 36 ; 45 37 ; @examples 46 ; 47 ; 38 ; 48 39 ; @history 49 ; 50 ; 51 ; @version 40 ; 41 ; @version 52 42 ; $Id$ 53 43 ; 54 44 ; @todo 55 45 ; seb 56 ; 46 ; 57 47 ;- 48 ; 58 49 FUNCTION read_vermair, name, debut, fin, nomexp, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex 59 50 ; … … 61 52 ; 62 53 @common 63 ;------------------------------------------------------------64 54 if name EQ 'un' then name = 'vozocrtx' 65 55 if name EQ 'vn' then name = 'vomecrty' -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/scanfile.pro
r226 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 4 ; 4 ;5 5 ; @categories 6 ;7 6 ; 8 7 ; @param NAMEFILE … … 12 11 ; 13 12 ; @keyword _EXTRA 14 ; Used to pass your keywords to isafile and ncdf_getaxis13 ; Used to pass keywords to <pro>isafile</pro> and <pro>ncdf_getaxis</pro> 15 14 ; 16 15 ; @returns … … 63 62 ; is not found. 64 63 ; 65 ; ------------------------------------------------------------64 ; 66 65 FUNCTION scanfile, namefile, GRID = GRID, _extra = ex 67 66 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro
r213 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 4 ; 4 ;5 5 ; @categories 6 6 ; 7 ;8 7 ; @param EVENT 9 8 ; 10 ;11 9 ; @returns 12 ; 13 ; 10 ; 14 11 ; @uses 15 ; 16 ; 12 ; 17 13 ; @restrictions 18 ; 19 ; 14 ; 20 15 ; @examples 21 ; 22 ; 16 ; 23 17 ; @history 24 ; 25 ; 26 ; @version 18 ; 19 ; @version 27 20 ; $Id$ 28 ; 21 ; 29 22 ; @todo 30 23 ; seb: documenter EVENT 31 24 ;- 32 ; *********************************************************************25 ; 33 26 PRO selectfile_event, event 34 ;35 27 ; 36 28 compile_opt idl2, strictarrsubs … … 48 40 case eventuvalue.name of 49 41 ; cancel button 50 'Global Cancel':BEGIN 42 'Global Cancel':BEGIN 51 43 widget_control, event.handler, get_uvalue = messenger 52 44 *messenger = -1 … … 58 50 filename = isafile(filename = filename[0], /onlync, iodirectory = iodir $ 59 51 , title = 'data file name', /tryfind, /fully_qualify_path) 60 if size(filename, /type) NE 7 then BEGIN 52 if size(filename, /type) NE 7 then BEGIN 61 53 widget_control, event.id, set_value = '' 62 54 return … … 72 64 ; switch automatic/by and mesh definition buttons 73 65 'gridload':BEGIN 74 IF event.select EQ 1 THEN BEGIN 66 IF event.select EQ 1 THEN BEGIN 75 67 widget_control, widget_info(event.handler, find_by_uname = 'argtxt'), set_value = '' 76 68 widget_control, widget_info(event.handler, find_by_uname = 'kwdtxt'), set_value = '' … … 86 78 widget_control, widget_info(event.handler, find_by_uname = 'arg base'), sensitive = 1 87 79 widget_control, widget_info(event.handler, find_by_uname = 'kwdlab'), set_value = 'keywords of IDL procedure:' 88 END 80 END 89 81 ENDCASE 90 ENDIF 82 ENDIF 91 83 END 92 84 ; name of the procedure or batch file … … 97 89 widget_control, event.id, set_value = '' 98 90 return 99 endif 91 endif 100 92 CASE protype(filename) OF 101 93 ; this is a procedure 102 'proc':BEGIN 94 'proc':BEGIN 103 95 widget_control, widget_info(event.handler, find_by_uname = 'arg base'), sensitive = 1 104 96 widget_control, widget_info(event.handler, find_by_uname = 'kwd base'), sensitive = 1 … … 106 98 END 107 99 ; this is a function, this case is not accepted 108 'func':BEGIN 100 'func':BEGIN 109 101 widget_control, event.id, set_value = '' 110 102 return 111 103 END 112 104 ; this is an IDL batch file 113 'batch':BEGIN 105 'batch':BEGIN 114 106 widget_control, widget_info(event.handler, find_by_uname = 'arg base'), sensitive = 0 115 107 widget_control, widget_info(event.handler, find_by_uname = 'kwd base'), sensitive = 0 … … 136 128 datafilename = isafile(filename = datafilename, /tryfind, /onlync $ 137 129 , title = 'data file name', /fully_qualify_path) 138 if size(datafilename, /type) NE 7 then BEGIN 130 if size(datafilename, /type) NE 7 then BEGIN 139 131 widget_control, widget_info(event.handler, find_by_uname = 'datafilename') $ 140 132 , set_value = '' 141 133 return 142 ENDIF 134 ENDIF 143 135 widget_control, widget_info(event.handler, find_by_uname = 'gridload') $ 144 136 , get_value = gridload … … 162 154 widget_control, meshload_id, set_value = '' 163 155 return 164 endif 165 END 156 endif 157 END 166 158 'via initnetcdf':meshload = datafilename 167 159 ENDCASE … … 176 168 return 177 169 end 178 ; *********************************************************************170 ; 179 171 ;+ 172 ; 180 173 ; @file_comments 181 174 ; 182 ;183 175 ; @categories 184 176 ; 185 ;186 177 ; @param DATAFILENAME 187 178 ; … … 192 183 ; @param ARGSPRO 193 184 ; 194 ;195 185 ; @keyword _EXTRA 196 ; Used to pass yourkeywords197 ; 186 ; Used to pass keywords 187 ; 198 188 ; @returns 199 ; 200 ; 189 ; 201 190 ; @uses 202 ; 203 ; 191 ; 204 192 ; @restrictions 205 ; 206 ; 193 ; 207 194 ; @examples 208 ; 209 ; 195 ; 210 196 ; @history 211 ; 212 ; 213 ; @version 197 ; 198 ; @version 214 199 ; $Id$ 215 ; 200 ; 216 201 ; @todo 217 202 ; seb: documenter les params 218 ; 203 ; 219 204 ;- 220 205 FUNCTION selectfile, datafilename, idlfile, argspro, _extra = ex … … 224 209 ; 225 210 @common 226 ;------------------------------------------------------------ 227 ;------------------------------------------------------------ 228 ; 229 ; We create a pointer in the uvalue to recuperate answers at setted 230 ; questions atthe time of the use of this widget. So when the widget 231 ; is deleted in the procedure ...event.pro, the variable on which the 232 ; pointer pointed (contained in the uvalue of the widget) is not 211 ; 212 ; We create a pointer in the uvalue to recuperate answers at setted 213 ; questions atthe time of the use of this widget. So when the widget 214 ; is deleted in the procedure ...event.pro, the variable on which the 215 ; pointer pointed (contained in the uvalue of the widget) is not 233 216 ; deleted and we can recuperate the result! 234 217 ; … … 269 252 270 253 ;------------------------------------------------------------ 271 IF n_elements(datafilename) NE 0 THEN BEGIN 254 IF n_elements(datafilename) NE 0 THEN BEGIN 272 255 widget_control, database, set_value = datafilename 273 256 selectfile_event, {ID:database, TOP:base, HANDLER:base} 274 ENDIF 275 IF n_elements(idlfile) NE 0 THEN BEGIN 257 ENDIF 258 IF n_elements(idlfile) NE 0 THEN BEGIN 276 259 widget_control, basemeshload, set_value = idlfile 277 260 selectfile_event, {ID:basemeshload, TOP:base, HANDLER:base} 278 261 widget_control, basemeshload, get_value = idlfile2 279 262 IF idlfile2[0] NE '' THEN widget_control, gdldid, set_value = 1 280 ENDIF 263 ENDIF 281 264 IF n_elements(argspro) NE 0 THEN widget_control, argbase, set_value = argspro 282 265 ;------------------------------------------------------------ 283 IF n_elements(datafilename) EQ 0 THEN BEGIN 266 IF n_elements(datafilename) EQ 0 THEN BEGIN 284 267 widget_control, base, /realize 285 268 xmanager, 'selectfile', base, event_handler = 'selectfile_event', no_block = 0 … … 302 285 if size(res3, /type) NE 8 then return, -1 303 286 304 return, {fileparameters:res3, readparameters:ccreadparameters, meshparameters:ccmeshparameters} 287 return, {fileparameters:res3, readparameters:ccreadparameters, meshparameters:ccmeshparameters} 305 288 end -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/singleclickaction.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param EVENT 9 8 ; 10 ;11 9 ; @returns 12 ; 13 ; 10 ; 14 11 ; @uses 15 ; 16 ; 12 ; 17 13 ; @restrictions 18 ; 19 ; 14 ; 20 15 ; @examples 21 ; 22 ; 16 ; 23 17 ; @history 24 ; 25 ; 18 ; 26 19 ; @version 27 ; $Id$ 28 ; 20 ; $Id$ 21 ; 29 22 ; @todo 30 23 ; seb 31 24 ; 32 25 ;- 26 ; 33 27 PRO singleclickaction, event 34 28 ; … … 107 101 x4 = -1 ; free memory 108 102 y4 = -1 ; free memory 109 110 IF cell[0] EQ -1 OR n_elements(cell) GT 1 THEN RETURN 103 104 IF cell[0] EQ -1 OR n_elements(cell) GT 1 THEN RETURN 111 105 ; 112 106 yy = cell[0]/(nx-1+key_periodic*(nx EQ jpi)) -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/tracecadre.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ; 4 ; determination of the column and of the line corresponding in input to small 5 ; ++ 4 6 ; 5 7 ; @categories 6 8 ; 7 ;8 9 ; @param SMALL 9 10 ; 10 ;11 11 ; @keyword OUT 12 ;13 12 ; 14 13 ; @keyword ERASE 15 14 ; 15 ; @keyword FILL 16 16 ; 17 ; @keyword FILL18 ;19 ;20 17 ; @returns 21 ; 22 ; 18 ; 23 19 ; @uses 24 ; 25 ; 20 ; 26 21 ; @restrictions 27 ; 28 ; 22 ; 29 23 ; @examples 30 ; 31 ; 24 ; 32 25 ; @history 33 ; 34 ; 26 ; 35 27 ; @version 36 ; $Id$ 37 ; 28 ; $Id$ 29 ; 38 30 ; @todo 39 31 ; seb 40 32 ; 41 33 ;- 34 ; 42 35 PRO tracecadre, small, out = out, erase = erase, fill = fill 43 ;------------------------------------------------------------44 ; determination of the column and of the line corresponding in input to small45 36 ; 46 37 compile_opt idl2, strictarrsubs -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/updatewidget.pro
r150 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param BASE {in}{required} 9 8 ; The id of the widget where apply the drawing. 10 ; 9 ; 11 10 ; @keyword NOBOXZOOM 12 ;13 11 ; 14 12 ; @keyword NODATES 15 13 ; 14 ; @keyword NOTYPE 16 15 ; 17 ; @keyword NOTYPE18 ;19 ;20 16 ; @returns 21 ; 22 ; 17 ; 23 18 ; @uses 24 ; 25 ; 19 ; 26 20 ; @restrictions 27 ; 28 ; 21 ; 29 22 ; @examples 30 ; 31 ; 23 ; 32 24 ; @history 33 ; 34 ; 25 ; 35 26 ; @version 36 ; $Id$ 37 ; 27 ; $Id$ 28 ; 38 29 ; @todo 39 30 ; seb 40 31 ; 41 32 ;- 33 ; 42 34 PRO updatewidget, base, NOBOXZOOM = noboxzoom, NODATES = nodates, NOTYPE = notype 43 ;----------------------------------------------------------------------44 35 ; 45 36 compile_opt idl2, strictarrsubs … … 56 47 if keyword_set(nodates) then begin 57 48 date1 = 0 58 date2 = 0 59 ENDIF ELSE BEGIN 49 date2 = 0 50 ENDIF ELSE BEGIN 60 51 dates = (extractatt(top_uvalue, 'dates'))[*, numdessinin] 61 52 date1 = dates[0] & date2 = dates[1] … … 84 75 widget_control, date2id, set_value = date2 85 76 endif 86 if keyword_set(boxzoom) then BEGIN 77 if keyword_set(boxzoom) then BEGIN 87 78 domainid = widget_info(base, find_by_uname = 'domain') 88 79 widget_control, domainid, set_value = boxzoom … … 107 98 ;-------------- 108 99 ; graphtype 109 ;-------------- 100 ;-------------- 110 101 if NOT keyword_set(notype) then BEGIN 111 102 graphtype = (extractatt(top_uvalue, 'types'))[numdessinin] -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/xcreateanim.pro
r226 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories … … 24 24 ; 25 25 ;- 26 pro xcreateanim_event, event 26 ; 27 PRO xcreateanim_event, event 27 28 ; 28 29 compile_opt idl2, strictarrsubs … … 165 166 return 166 167 end 167 ; ----------------------------------------------------------------168 ; 168 169 ;+ 169 170 ; @file_comments 170 171 ; 171 ;172 172 ; @categories 173 173 ; 174 ;175 174 ; @param PARENT 176 175 ; 177 ;178 176 ; @returns 179 ;180 177 ; 181 178 ; @uses … … 194 191 ; 195 192 ;- 193 ; 196 194 PRO xcreateanim, parent 197 195 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/xxxmenubar_event.pro
r226 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 4 ; 4 ;5 5 ; @categories 6 ;7 6 ; 8 7 ; @param EVENT … … 24 23 ; seb 25 24 ;- 26 ; ------------------------------------------------25 ; 27 26 PRO xxxmenubar_event, event 28 27 ; … … 30 29 ; 31 30 @common 32 33 31 34 32 case event.value of
Note: See TracChangeset
for help on using the changeset viewer.