Changeset 110

Show
Ignore:
Timestamp:
01/05/08 13:52:28
Author:
slee
Message:

added scan option and changed "action" to Right Ctrl key

Files:

Legend:

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

    r101 r110  
    44Operate an application from switches by stepping through the UI. 
    55 
    6 This version works with GTK accessibile apps and has been tested with gedit. 
    7 Minefield has partial support
     6This version works with GTK accessibile apps and has been tested with gedit and 
     7Minefield
    88 
    99Dependencies 
     
    2525Useage 
    2626------ 
    27 /usr/local/bin/jambuinapp gedit 
     27/usr/local/bin/jambuinapp --scan --showtree [gedit | Minefield] 
     28  --scan        start auto scanning, otherwise manual 
     29  --showtree    show the GTKTreeView of accesible objects and other UI 
    2830 
    29 Make sure gedit is already open and make it the active application again to be safe. 
     31Make sure gedit/minefield is already open and make it the active application again to be safe. 
    3032 
    3133Gestures 
    3234-------- 
    3335next item -> Left Ctrl key, USB Switch 0 or 4, middle mouse button 
    34 action item -> space key, USB switch 1 or 6, right mouse button 
     36action item -> Right Ctrl key, USB switch 1 or 6, right mouse button 
    3537 
    3638Auto scan may be started/stopped with the 'Start Scan' button. 
     
    4143========== 
    4244Need to sort multi column selections + scrolling in selections. 
    43 menus have suddenly started to re-appear - have a hack but need to resolve. 
    4445The blinking rect is temporary so just ignore the artifacts that get left around. 
    4546 
  • inapp/trunk/src/jambu/ActionBrowser.py

    r107 r110  
    5454      app = getApp(kwargs['app']) 
    5555      self.acc = app 
    56       self.show_tree_view = kwargs['show_tree'] 
     56      self._show_tree_view = kwargs['show_tree'] 
     57      self._scan = kwargs['scan'] 
    5758      self.init() 
    5859      self._onGenerate(None) 
     
    6364    ''' 
    6465    self._buildUI() 
    65     if getattr(self, 'show_tree_view', True): 
     66    self.bl = None 
     67    if getattr(self, '_show_tree_view', True): 
    6668      self.show_all() 
    6769    self.is_scanning = False 
    68     self.bl = None 
     70    if getattr(self, '_scan', True): 
     71      self._onScan(self.scan_button) 
    6972 
    7073  def _buildUI(self): 
     
    103106    scan_button.connect('clicked', self._onScan) 
    104107    bottom_hbox.pack_start(scan_button, False) 
     108    self.scan_button = scan_button 
    105109 
    106110    action_button = gtk.Button('_Action',  
     
    202206       (action == ACTION_MOUSE_CLICK) and id == MIDDLE: 
    203207      self.groups_tree.next() 
    204     elif (action == ACTION_KEY_DOWN and id in (gtk.keysyms.space,)) or \ 
     208    elif (action == ACTION_KEY_DOWN and id in (gtk.keysyms.Control_R,)) or \ 
    205209       (action == ACTION_SWITCH_DOWN and id in (1, 6)) or \ 
    206210       (action == ACTION_MOUSE_CLICK) and id == RIGHT: 
  • inapp/trunk/src/jambu/InAppSelection.py

    r107 r110  
    2323 
    2424  def _getArgs(self): 
    25     show_tree = False 
     25    show_tree = scan = False 
    2626    appl = None 
    2727    for arg in sys.argv[1:]: 
     
    3030      elif arg == '--showtree': 
    3131        show_tree = True 
     32      elif arg == '--scan': 
     33        scan = True 
    3234      elif not arg.startswith('--') and len(arg) > 2: 
    3335        appl = arg 
    34     return show_tree, appl 
     36    return show_tree, scan, appl 
    3537     
    3638  def __init__(self): 
    3739    # create top level window 
    38     show_tree, appl = self._getArgs() 
    39     self.window = ActionBrowser.ActionBrowser(app=appl, show_tree=show_tree) 
     40    show_tree, scan, appl = self._getArgs() 
     41    self.window = ActionBrowser.ActionBrowser(app=appl, scan=scan, show_tree=show_tree) 
    4042    self.window.connect('delete_event', self.onDeleteEvent) 
    4143