Changeset 2361
- Timestamp:
- 07/01/07 16:18:17 (1 year ago)
- Files:
-
- revtreeplugin/0.11/revtree/model.py (modified) (2 diffs)
- revtreeplugin/0.11/revtree/svgview.py (modified) (4 diffs)
- revtreeplugin/0.11/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
revtreeplugin/0.11/revtree/model.py
r2111 r2361 242 242 243 243 def branch(self, branchname): 244 """Returns a tracked branch from its name (path)""" 244 """Returns a tracked branch from its name (path) 245 246 branchname should be a unicode string, and should not start with 247 a leading path separator (/) 248 """ 245 249 if not self._branches.has_key(branchname): 246 250 return None … … 274 278 changeset = self._crepos.get_changeset(revision) 275 279 return changeset.get_properties() 280 281 def get_node_properties(self, path, revision): 282 return self._crepos.get_node(path, revision).get_properties() 276 283 277 284 def find_node(self, path, rev): revtreeplugin/0.11/revtree/svgview.py
r2280 r2361 136 136 s *= 3.0; 137 137 if s > 1: s = 1 138 (r,g,b) = hsv_to_rgb(h,s,v) 139 return SvgColor((int(r*0xff),int(g*0xff),int(b*0xff))) 140 141 def lighten(self): 142 (r,g,b) = (float(self._color[0])/0xff, 143 float(self._color[1])/0xff, 144 float(self._color[2])/0xff) 145 (h,s,v) = rgb_to_hsv(r,g,b) 146 v *= 1.5; 147 if v > 1: v = 1 138 148 (r,g,b) = hsv_to_rgb(h,s,v) 139 149 return SvgColor((int(r*0xff),int(g*0xff),int(b*0xff))) … … 578 588 """Graphical group of consecutive changesets within a same branch""" 579 589 580 def __init__(self, parent, firstChg, lastChg, color='#fffbdb'): 590 def __init__(self, parent, firstChg, lastChg, 591 color='#fffbdb', opacity=50): 581 592 self._parent = parent 582 593 self._first = firstChg … … 584 595 self._fillcolor = SvgColor(color) 585 596 self._strokecolor = self._fillcolor.strongify() 597 self._opacity = opacity 586 598 587 599 def build(self): … … 603 615 self._widget.attributes['rx'] = r 604 616 self._widget.attributes['ry'] = r 605 self._widget.attributes['opacity'] = '0.5'617 self._widget.attributes['opacity'] = str(self._opacity/100.0) 606 618 self._extent = (w,h) 607 619 revtreeplugin/0.11/setup.py
r2299 r2361 16 16 17 17 PACKAGE = 'TracRevtreePlugin' 18 VERSION = '0.5. 6'18 VERSION = '0.5.7' 19 19 20 20 setup (
