Changeset 110
- Timestamp:
- 01/05/08 13:52:28
- Files:
-
- inapp/trunk/README (modified) (3 diffs)
- inapp/trunk/src/jambu/ActionBrowser.py (modified) (4 diffs)
- inapp/trunk/src/jambu/InAppSelection.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
inapp/trunk/README
r101 r110 4 4 Operate an application from switches by stepping through the UI. 5 5 6 This version works with GTK accessibile apps and has been tested with gedit .7 Minefield has partial support.6 This version works with GTK accessibile apps and has been tested with gedit and 7 Minefield. 8 8 9 9 Dependencies … … 25 25 Useage 26 26 ------ 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 28 30 29 Make sure gedit is already open and make it the active application again to be safe.31 Make sure gedit/minefield is already open and make it the active application again to be safe. 30 32 31 33 Gestures 32 34 -------- 33 35 next item -> Left Ctrl key, USB Switch 0 or 4, middle mouse button 34 action item -> spacekey, USB switch 1 or 6, right mouse button36 action item -> Right Ctrl key, USB switch 1 or 6, right mouse button 35 37 36 38 Auto scan may be started/stopped with the 'Start Scan' button. … … 41 43 ========== 42 44 Need to sort multi column selections + scrolling in selections. 43 menus have suddenly started to re-appear - have a hack but need to resolve.44 45 The blinking rect is temporary so just ignore the artifacts that get left around. 45 46 inapp/trunk/src/jambu/ActionBrowser.py
r107 r110 54 54 app = getApp(kwargs['app']) 55 55 self.acc = app 56 self.show_tree_view = kwargs['show_tree'] 56 self._show_tree_view = kwargs['show_tree'] 57 self._scan = kwargs['scan'] 57 58 self.init() 58 59 self._onGenerate(None) … … 63 64 ''' 64 65 self._buildUI() 65 if getattr(self, 'show_tree_view', True): 66 self.bl = None 67 if getattr(self, '_show_tree_view', True): 66 68 self.show_all() 67 69 self.is_scanning = False 68 self.bl = None 70 if getattr(self, '_scan', True): 71 self._onScan(self.scan_button) 69 72 70 73 def _buildUI(self): … … 103 106 scan_button.connect('clicked', self._onScan) 104 107 bottom_hbox.pack_start(scan_button, False) 108 self.scan_button = scan_button 105 109 106 110 action_button = gtk.Button('_Action', … … 202 206 (action == ACTION_MOUSE_CLICK) and id == MIDDLE: 203 207 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 \ 205 209 (action == ACTION_SWITCH_DOWN and id in (1, 6)) or \ 206 210 (action == ACTION_MOUSE_CLICK) and id == RIGHT: inapp/trunk/src/jambu/InAppSelection.py
r107 r110 23 23 24 24 def _getArgs(self): 25 show_tree = False25 show_tree = scan = False 26 26 appl = None 27 27 for arg in sys.argv[1:]: … … 30 30 elif arg == '--showtree': 31 31 show_tree = True 32 elif arg == '--scan': 33 scan = True 32 34 elif not arg.startswith('--') and len(arg) > 2: 33 35 appl = arg 34 return show_tree, appl36 return show_tree, scan, appl 35 37 36 38 def __init__(self): 37 39 # create top level window 38 show_tree, appl = self._getArgs()39 self.window = ActionBrowser.ActionBrowser(app=appl, s how_tree=show_tree)40 show_tree, scan, appl = self._getArgs() 41 self.window = ActionBrowser.ActionBrowser(app=appl, scan=scan, show_tree=show_tree) 40 42 self.window.connect('delete_event', self.onDeleteEvent) 41 43
