Changeset 126

Show
Ignore:
Timestamp:
01/18/08 11:30:59
Author:
slee
Message:

added cmdline override of highlight selection

Files:

Legend:

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

    r124 r126  
     12008-01-18  r125-6 SteveLee  <steve@fullmeasure.co.uk> 
     2 
     3        * removed need for patched pyatspi with Registry.PumpQueuedEvents 
     4        * added cmdline override of highlight selection 
     5 
    162008-01-16  r122-3 SteveLee  <steve@fullmeasure.co.uk> 
    27 
    38        * gail fixes 
    4   * improved highlight 
     9  * improved highlight  
    510 
    6112008-01-16  r121 SteveLee  <steve@fullmeasure.co.uk> 
     
    1318 
    1419  * enabled pyatspi queuing of events 
     20         
     212008-01-08  r117 SteveLee  <steve@fullmeasure.co.uk> 
     22 
     23  * release 0.0.3 
    1524         
    16252007-12-21  SteveLee  <steve@fullmeasure.co.uk> 
  • inapp/trunk/src/jambu/ActionBrowser.py

    r113 r126  
    5858      self._show_tree_view = kwargs['show_tree'] 
    5959      self._scan = kwargs['scan'] 
     60      self._hilight = kwargs['hilight'] 
    6061      # transparent background if pos 
    6162      win = self.get_toplevel() 
     
    185186 
    186187  def highlight(self, extents, type): 
    187     if self.supports_alpha: 
     188    if self._hilight=='svg' \ 
     189       or (self._hilight=='auto' and self.supports_alpha): 
    188190      self.killHighlight() 
    189191      hl_factory = (ExitGroupHighLight if type==HIGHLIGHT_EXIT else ActionHighLight) 
  • inapp/trunk/src/jambu/InAppSelection.py

    r125 r126  
    2323  '''The application''' 
    2424  def _getArgs(self): 
    25     show_tree = scan = False 
    26     appl = None 
     25    args =dict(show_tree = False,   
     26               scan = False,  
     27               app = None, 
     28               hilight = 'auto') 
    2729    for arg in sys.argv[1:]: 
    2830      if arg == '--noshowtree': 
    29         show_tree = False 
     31        args['show_tree'] = False 
    3032      elif arg == '--showtree': 
    31         show_tree = True 
     33        args['show_tree'] = True 
    3234      elif arg == '--scan': 
    33         scan = True 
     35        args['scan'] = True 
     36      elif arg == '--blink': 
     37        args['hilight']='blink' 
     38      elif arg == '--svg': 
     39        args['hilight']='svg' 
    3440      elif not arg.startswith('--') and len(arg) > 2: 
    35         appl = arg 
     41        args['app'] = arg 
    3642         
    37     if appl is None: 
     43    if args['app'] is None: 
    3844      print """Useage 
    3945------ 
     
    4147  --scan        start auto scanning, otherwise manual 
    4248  --showtree    show the GTKTreeView of accesible objects and other UI 
     49  --blink       blinking highlight, default is auto detect 
     50  --svg         svg highlight (requires transparency), default is auto detect 
    4351 
    4452Make sure gedit/minefield is already open and make it the active application  
     
    4654""" 
    4755      sys.exit() 
    48     return show_tree, scan, appl 
     56    return args 
    4957     
    5058  def __init__(self): 
    5159    # create top level window 
    52     show_tree, scan, appl = self._getArgs() 
    53     self.window = ActionBrowser.ActionBrowser(app=appl, scan=scan, show_tree=show_tree
     60    args = self._getArgs() 
     61    self.window = ActionBrowser.ActionBrowser(**args
    5462    self.window.connect('delete_event', self.onDeleteEvent) 
    5563