Changeset 122

Show
Ignore:
Timestamp:
01/17/08 12:32:59
Author:
slee
Message:

improved highlight

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • inapp/trunk/ChangeLog

    r103 r122  
     12008-01-16  r122 SteveLee  <steve@fullmeasure.co.uk> 
     2 
     3  * improved highlight 
     4 
     52008-01-16  r121 SteveLee  <steve@fullmeasure.co.uk> 
     6 
     7  * Installer uses relative paths allowing user selection 
     8          Thanks to Eitan Isaacson 
     9        * README updated 
     10 
     112008-01-16  r118 SteveLee  <steve@fullmeasure.co.uk> 
     12 
     13  * enabled pyatspi queuing of events 
     14         
    1152007-12-21  SteveLee  <steve@fullmeasure.co.uk> 
    216 
    3         Big reorganisation for release 0.0.1 tarball and distutils 
    4  
     17  * Big reorganisation for release 0.0.1 tarball and distutils 
    518 
    6192007-12-20  SteveLee  <steve@fullmeasure.co.uk> 
    720 
    8         * Added CHANGES, LICENSE, AUTHORS 
    9         * README:  
     21  * Added CHANGES, LICENSE, AUTHORS 
     22  * README:  
    1023        Keyboard control with CTRL + Spacebar (thanks to Eitan Isaacsan) 
    1124        * ActionBrowser.py: added pyatspi kb events and queue them 
  • inapp/trunk/README

    r121 r122  
    8484invoke an OSK like GOK or Dasher. 
    8585 
     86Ensure accerciser is not also running. In some circumstances this causes errors. 
     87 
    8688Actions and Gestures 
    8789-------------------- 
  • inapp/trunk/src/jambu/HighLight.py

    r113 r122  
    2222import gobject 
    2323import cairo 
     24from math import ceil, floor 
    2425 
    2526_ = gettext.gettext 
    26  
    2727 
    2828_svg =r""" 
    2929<svg width="100%" height="100%" version="1.1" 
    3030  xmlns="http://www.w3.org/2000/svg"> 
    31   <rect width="$width" height="$height" 
     31  <rect x="$x" y="$y" width="$width" height="$height" 
    3232      style="fill:$fill;stroke-width:$stroke_width;stroke:$stroke; 
    3333      fill-opacity:$fill_opacity;stroke-opacity:$stroke_opacity" 
    34       rx="5" ry="5
     34      rx="6" ry="6
    3535      /> 
    3636</svg> 
    3737""" 
     38STROKE_WIDTH = 5.0 
     39STROKE_OPACITY = 0.9 
     40FILL_OPACITY = 0.1 
    3841 
    3942class _HighLight(gtk.Window): 
     
    5053    self.resize(w, h) 
    5154    self.setTransparent() 
    52     self.svg = string.Template(_svg).substitute(width=self.w, height=self.h, 
     55    offset=STROKE_WIDTH/2.0 
     56    self.svg = string.Template(_svg).substitute(x=offset, y=offset, 
     57                                                width=self.w, height=self.h, 
    5358                                                fill=self.hlcolor,  
    54                                                 stroke_width="7"
     59                                                stroke_width=STROKE_WIDTH
    5560                                                stroke=self.hlcolor, 
    56                                                 stroke_opacity="0.9", fill_opacity="0.1") 
    57 #    print self.svg 
     61                                                stroke_opacity=STROKE_OPACITY, 
     62                                                fill_opacity=FILL_OPACITY) 
     63    print self.svg 
    5864    self.set_accept_focus(False) 
    5965    self.set_sensitive(False)