Ignore:
Timestamp:
03/19/07 18:15:51 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/buildinit.pro

    r229 r231  
    11;+ 
     2; 
    23; @file_comments 
    34; 
    4 ; 
    55; @categories 
    6 ; 
    76; 
    87; @param PARENT {in}{required} 
    98; The ID of the parent widget. 
    109; 
    11 ; @keyword COLUMN  
     10; @keyword COLUMN 
    1211; Buttons will be arranged in the number of columns specified by this keyword. 
    1312; 
     
    1615; 
    1716; @keyword EVENT_FUNC 
    18 ; The name of an optional user-supplied event function for buttons.  
    19 ; This function is called with the return value structure whenever a  
     17; The name of an optional user-supplied event function for buttons. 
     18; This function is called with the return value structure whenever a 
    2019; button is pressed, and follows the conventions for user-written event functions. 
    2120; 
    2221; @keyword FLOATING 
    2322; 
    24 ; 
    2523; @keyword INTEGER 
    2624; 
    27 ; 
    2825; @keyword LONG 
    2926; 
    30 ; 
    3127; @keyword STRING 
    3228; 
    33 ; 
    3429; @keyword FONT 
    35 ; The name of the font to be used for the button titles. If this keyword  
     30; The name of the font to be used for the button titles. If this keyword 
    3631; is not specified, the default font is used. 
    3732; 
     
    4742; @keyword VALUE 
    4843; 
    49 ; 
    5044; @keyword RETURN_EVENTS 
    5145; 
    52 ; 
    5346; @keyword ALL_EVENTS 
    5447; 
    55 ; 
    5648; @keyword FIELDFONT 
    5749; 
    58 ; 
    5950; @keyword NOEDIT 
    6051; 
    61 ; 
    6252; @keyword TEXT_FRAME 
    6353; 
    64 ; 
    6554; @keyword XSIZE 
    66 ; The width of the base.  
     55; The width of the base 
    6756; 
    6857; @keyword YSIZE 
     
    7968; 
    8069; @examples 
    81 ; 
    8270; 
    8371; @history 
     
    8775;- 
    8876; 
    89 ;---------------------------------------------------------- 
    90 ;---------------------------------------------------------- 
    91 ; 
    9277; slightly modified version of cw_field... 
     78; 
    9379FUNCTION cw_field2, Parent, COLUMN=Column, ROW=Row, $ 
    9480    EVENT_FUNC = efun, $ 
     
    9884    FIELDFONT=FieldFont, NOEDIT=NoEdit, TEXT_FRAME=Text_Frame, $ 
    9985    XSIZE=XSize, YSIZE=YSize, UNAME=uname 
    100 ;   FLOOR=vmin, CEILING=vmax  
     86;   FLOOR=vmin, CEILING=vmax 
    10187; 
    10288  compile_opt idl2, strictarrsubs 
     
    165151  END 
    166152; 
    167 ;---------------------------------------------------------- 
    168 ;---------------------------------------------------------- 
    169153; 
    170154;+ 
     
    174158; @categories 
    175159; 
    176 ;  
     160; 
    177161; @param EVENT 
    178162; 
    179163; 
    180164; @returns 
    181 ;  
    182 ;  
     165; 
    183166; @uses 
    184 ;  
    185 ;  
     167; 
    186168; @restrictions 
    187 ;  
    188 ;  
     169; 
    189170; @examples 
    190 ;  
    191 ;  
     171; 
    192172; @history 
    193 ;  
    194 ;  
    195 ; @version  
     173; 
     174; @version 
    196175; $Id$ 
    197176;- 
     
    226205END 
    227206; 
    228 ;---------------------------------------------------------- 
    229 ;---------------------------------------------------------- 
    230207; 
    231208;+ 
     209; 
    232210; @file_comments 
    233211; 
    234 ; 
    235212; @categories 
    236213; 
    237 ;  
    238214; @param EVENT 
    239215; 
    240 ; 
    241216; @returns 
    242 ;  
    243 ;  
     217; 
    244218; @uses 
    245 ;  
    246 ;  
     219; 
    247220; @restrictions 
    248 ;  
    249 ;  
     221; 
    250222; @examples 
    251 ;  
    252 ;  
     223; 
    253224; @history 
    254 ;  
    255 ;  
    256 ; @version  
     225; 
     226; @version 
    257227; $Id$ 
    258228;- 
     
    283253; @file_comments 
    284254; 
    285 ; 
    286255; @categories 
    287256; 
    288 ;  
    289257; @param EVENT 
    290258; 
    291 ; 
    292259; @returns 
    293 ;  
    294 ;  
     260; 
    295261; @uses 
    296 ;  
    297 ;  
     262; 
    298263; @restrictions 
    299 ;  
    300 ;  
     264; 
    301265; @examples 
    302 ;  
    303 ;  
     266; 
    304267; @history 
    305 ;  
    306 ;  
    307 ; @version  
     268; 
     269; @version 
    308270; $Id$ 
    309271;- 
     
    320282END 
    321283; 
    322 ;---------------------------------------------------------- 
    323 ;---------------------------------------------------------- 
    324 ; 
    325284;+ 
     285; 
    326286; @file_comments 
    327287; 
    328 ; 
    329288; @categories 
    330289; 
    331 ;  
    332290; @keyword _EXTRA 
    333 ; Used to pass your keywords 
     291; Used to pass keywords 
    334292; 
    335293; @returns 
    336 ;  
    337 ;  
     294; 
    338295; @uses 
    339 ;  
    340 ;  
     296; 
    341297; @restrictions 
    342 ;  
    343 ;  
     298; 
    344299; @examples 
    345 ;  
    346 ;  
     300; 
    347301; @history 
    348 ;  
    349 ;  
    350 ; @version  
     302; 
     303; @version 
    351304; $Id$ 
    352305;- 
     306; 
    353307FUNCTION xask, _extra = ex 
    354308; 
    355309  compile_opt idl2, strictarrsubs 
    356310; 
    357   base = widget_base()  
    358   field = cw_field2(base, /frame, /return_events, /column, _extra = ex)  
     311  base = widget_base() 
     312  field = cw_field2(base, /frame, /return_events, /column, _extra = ex) 
    359313  ptranswer = ptr_new(/allocate_heap) 
    360314; we realize the widget and wait for an answer 
     
    368322END 
    369323; 
    370 ;---------------------------------------------------------- 
    371 ;---------------------------------------------------------- 
    372 ; 
    373324;+ 
     325; 
    374326; @file_comments 
    375327; 
    376 ; 
    377328; @categories 
    378 ; 
    379329; 
    380330; @keyword TITLE 
     
    382332; 
    383333; @keyword NOMARK 
    384 ;  
    385334; 
    386335; @keyword NOWRITE 
    387336; 
    388 ; 
    389337; @returns 
    390 ;  
    391 ;  
     338; 
    392339; @uses 
    393 ;  
    394 ;  
     340; 
    395341; @restrictions 
    396 ;  
    397 ;  
     342; 
    398343; @examples 
    399 ;  
    400 ;  
     344; 
    401345; @history 
    402 ;  
    403 ;  
    404 ; @version  
     346; 
     347; @version 
    405348; $Id$ 
    406349;- 
     350; 
    407351FUNCTION getdir, title = title, nomark = nomark, nowrite = nowrite 
    408352; 
    409353  compile_opt idl2, strictarrsubs 
    410354; 
    411    
     355 
    412356  REPEAT BEGIN 
    413357    dir = dialog_pickfile(/directory, /must_exist, title = title) 
     
    422366END 
    423367; 
    424 ;---------------------------------------------------------- 
    425 ;---------------------------------------------------------- 
    426368; 
    427369;+ 
     370; 
    428371; @file_comments 
    429372; 
    430 ; 
    431373; @categories 
    432374; 
    433 ; 
    434375; @returns 
    435 ;  
    436 ;  
     376; 
    437377; @uses 
    438 ;  
    439 ;  
     378; 
    440379; @restrictions 
    441 ;  
    442 ;  
     380; 
    443381; @examples 
    444 ;  
    445 ;  
     382; 
    446383; @history 
    447 ;  
    448 ;  
    449 ; @version  
     384; 
     385; @version 
    450386; $Id$ 
    451387;- 
     388; 
    452389PRO buildinit 
    453390; 
    454 ; 
    455391  compile_opt idl2, strictarrsubs 
    456392; 
    457   IF fix(strmid(!version.release, 0, 1)) LT 6 THEN BEGIN  
     393  IF fix(strmid(!version.release, 0, 1)) LT 6 THEN BEGIN 
    458394    print, '                   *** ***** ***' 
    459395    print, '                   *** ERROR ***' 
     
    496432                        , 'with the old version ?'], /question, /default_no) 
    497433  yes = strlowcase(yes) 
    498    
     434 
    499435  init = [init $ 
    500436          , ';' $ 
    501437          , '; compatibility with the old version' $ 
    502438          , ';' $ 
    503           , 'keep_compatibility, ' + strtrim(fix(yes EQ 'yes'), 2)]  
     439          , 'keep_compatibility, ' + strtrim(fix(yes EQ 'yes'), 2)] 
    504440; 
    505441; define all the commons 
     
    535471  ptnumb = xask(title = 'Number of accessible printers', value = 0, /long) 
    536472; 
    537 ; define all the printer parameters  
     473; define all the printer parameters 
    538474; 
    539475  init = [init $ 
     
    543479; 
    544480  IF ptnumb NE 0 THEN BEGIN 
    545     base = widget_base(/column, /frame)  
     481    base = widget_base(/column, /frame) 
    546482    cwids = lonarr(3, ptnumb) 
    547483    FOR i = 0, ptnumb-1 DO BEGIN 
    548484      subbase = widget_base(base, /row) 
    549485      cwids[0, i] = cw_field(subbase, /string $ 
    550                              , Title = 'printer_human_names['+strtrim(i, 2)+'] = ')  
     486                             , Title = 'printer_human_names['+strtrim(i, 2)+'] = ') 
    551487      cwids[1, i] = cw_field(subbase, /string $ 
    552                              , Title = 'printer_machine_names['+strtrim(i, 2)+'] = ')  
     488                             , Title = 'printer_machine_names['+strtrim(i, 2)+'] = ') 
    553489      cwids[2, i] = cw_field(subbase, /string, value = '\lpr -P' $ 
    554                              , Title = 'print_command['+strtrim(i, 2)+'] = ')  
     490                             , Title = 'print_command['+strtrim(i, 2)+'] = ') 
    555491    ENDFOR 
    556492    trash = widget_button(base, value = 'ok', uvalue = cwids) 
     
    580516            , 'printer_machine_names = ''''' $ 
    581517            , 'print_command = '''''] 
    582   ENDELSE  
     518  ENDELSE 
    583519; 
    584520; Colors 
     
    622558; postscript position 
    623559; 
    624   yes = dialog_message(['the default postscript position', 'is landscape?'], /question)  
     560  yes = dialog_message(['the default postscript position', 'is landscape?'], /question) 
    625561  init = [init $ 
    626562          , ';' $ 
     
    661597          , '11x17        11         17         27.94     43.18' $ 
    662598          , 'ledger       17         11         43.18     27.94'] 
    663   base = widget_base(/column)  
     599  base = widget_base(/column) 
    664600  trash = widget_label(base, value = '--- Select the paper size ---') 
    665601  trash = widget_label(base, value = '') 
     
    689625  wsize_scale = xask(title = title, value = 1, /floating) 
    690626  init = [init, 'windowsize_scale = ' + strtrim(wsize_scale, 2)] 
    691    
     627 
    692628; 
    693629; postscript archiving... 
Note: See TracChangeset for help on using the changeset viewer.