Changeset 379

Show
Ignore:
Timestamp:
12/10/07 20:17:52 (5 years ago)
Author:
mgalloy
Message:

Added abstract and obsolete tags to the file level.

Location:
trunk/idldoc/src
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/idldoc/src/parser/docparidldocformatparser__define.pro

    r372 r379  
    365365     
    366366    ; TODO: add 
    367     'abstract': 
     367    'abstract': file->setProperty, is_abstract=1B 
    368368    'bugs': 
    369369    'categories': 
    370370    'customer_id': 
    371     'obsolete': 
     371    'obsolete': file->setProperty, is_obsolete=1B 
    372372    'requires': 
    373373    'restrictions': 
  • trunk/idldoc/src/parser/docparrstformatparser__define.pro

    r372 r379  
    100100 
    101101    ; TODO: add 
    102     'abstract': 
     102    'abstract': file->setProperty, is_abstract=1B 
    103103    'bugs': 
    104104    'categories': 
    105105    'customer_id': 
    106     'obsolete': 
     106    'obsolete': file->setProperty, is_obsolete=1B 
    107107    'requires': 
    108108    'restrictions': 
  • trunk/idldoc/src/resources/main.css

    r356 r379  
    2222.smallest { font-family: Verdana, Helvetica, sans-serif; font-size: 70%; } 
    2323h1.basename { margin-top: 0; margin-bottom: 0; } 
     24h1.basename span.file-attributes { font-size: 70%; margin-left: 3em; color: #384806; } 
    2425h2.directory { font-size: 90%; margin-bottom: 0; } 
    2526h2.routine-name { margin-top: 0; margin-bottom: 0; } 
  • trunk/idldoc/src/templates/profile.tt

    r361 r379  
    3636    <div class="content"> 
    3737      <h2 class="directory">[% location %]</h2> 
    38       <h1 class="basename">[% basename %]</h1> 
     38      <h1 class="basename">[% basename %]<span class="file-attributes">[% IF is_abstract %]abstract&nbsp; [% END %][% IF is_obsolete %]obsolete&nbsp; [% END %]</span></h1> 
    3939       
    4040      [% IF is_batch %]<span class="file_attribute small">batch file</span>[% END %] 
  • trunk/idldoc/src/tree/doctreeprofile__define.pro

    r369 r379  
    5050pro doctreeprofile::setProperty, code=code, has_main_level=hasMainLevel, $ 
    5151                                 is_hidden=isHidden, is_private=isPrivate, $ 
    52                                  is_batch=isBatch, comments=comments, $ 
     52                                 is_batch=isBatch, $ 
     53                                 is_abstract=isAbstract, $ 
     54                                 is_obsolete=isObsolete, $ 
     55                                 comments=comments, $ 
    5356                                 modification_time=mTime, n_lines=nLines, $  
    5457                                 format=format, markup=markup, $ 
     
    9497   
    9598  if (n_elements(hasMainLevel) gt 0) then self.hasMainLevel = hasMainLevel 
     99  if (n_elements(isAbstract) gt 0) then self.isAbstract = isAbstract 
    96100  if (n_elements(isBatch) gt 0) then self.isBatch = isBatch 
     101  if (n_elements(isObsolete) gt 0) then self.isObsolete = isObsolete 
    97102  if (n_elements(comments) gt 0) then begin 
    98103    if (obj_valid(self.comments)) then begin 
     
    198203    'classes': return, self.classes->get(/all) 
    199204    'is_private': return, self.isPrivate 
     205    'is_abstract': return, self.isAbstract 
     206    'is_obsolete': return, self.isObsolete 
    200207     
    201208    'modification_time': return, self.modificationTime 
     
    511518             routines: obj_new(), $ 
    512519              
     520             isAbstract: 0B, $ 
    513521             isHidden: 0B, $ 
     522             isObsolete: 0B, $ 
    514523             isPrivate: 0B, $ 
    515524