Changeset 440

Show
Ignore:
Timestamp:
Tue Jun 10 17:33:38 2008
Author:
Alexander
Message:

moved gantt bars to report column

Files:

Legend:

Unmodified
Added
Removed
Modified
  • ganttpv/trunk/StartupData.py

    r214 r440  
    53 53         'PlanBar': (0, 153, 102),   # green  # maybe use same color for selected & not  
    54 54         'PlanBarSelected': (0, 153, 102),  
    55           'ActualBar': (0, 0, 255),    # yellow?  
    56           'ActualBarSelected': (0, 0, 255),  
    57           'BaseBar': (0, 255, 0),   # green?  
    58           'BaseBarSelected': (0, 255, 0),  
      55         'ActualBar': (255, 255, 0),    # yellow  
      56         'ActualBarSelected': (255, 255, 0),  
      57         'BaseBar': (0, 0, 255),   # blue  
      58         'BaseBarSelected': (0, 0, 255),  
    59 59         'CompletionBar': None,  # based on BaseBar or PlanBar  
    60 60         'CompletionBarSelected': None,  
  • ganttpv/trunk/GanttReport.py

    r430 r440  
    439 439             if isSelected:  
    440 440                 plancolor = o.get('PlanBarSelected', wx.GREEN)  
    441                   actualcolor = o.get('ActualBarSelected', wx.BLUE)  
    442                   basecolor = o.get('BaseBarSelected', wx.LIGHT_GREY)  
      441                 actualcolor = o.get('ActualBarSelected', wx.Colour(255, 255, 0))  
      442                 basecolor = o.get('BaseBarSelected', wx.BLUE)  
    443 443                 completioncolor = o.get('CompletionBarSelected', wx.BLACK)  
    444 444             else:  
    445 445                 plancolor = o.get('PlanBar', wx.GREEN)  
    446                   actualcolor = o.get('ActualBar', wx.BLUE)  
    447                   basecolor = o.get('BaseBar', wx.LIGHT_GREY)  
      446                 actualcolor = o.get('ActualBar', wx.Colour(255, 255, 0))  
      447                 basecolor = o.get('BaseBar', wx.BLUE)  
    448 448                 completioncolor = o.get('CompletionBar', wx.BLACK)  
    449 449  
     
    474 474             else:  
    475 475                 reportid = rr.get('ReportID')  
    476                   bars = Data.Database['Report'][reportid].get('Bars') or 'p'  # could be 'pab'  
      476                 bars = rc.get('Bars') or 'p'  # could be 'pab'  
    476 476                  
    477 477                 if len(bars) == 3:  # 'pab'  p  
     
    525 525                 if 'b' in bars and bsd:  
    526 526                     bsh = task.get('BaseStartHour') or 0  
    527                       bed = task.get('BaseEndDate') or bad  
      527                     bed = task.get('BaseEndDate') or bsd  
    527 527                     beh = task.get('BaseEndHour') or 0  
    528 528                     drawbar(