| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/orca/ |
Upload File : |
z#Jc @ sz d Z d Z d Z d Z d Z d Z d d k Z d d k Z d d k Z d e i f d YZ d d d d d
Z d S( sT Utilities to manage the writing of the user application specific
preferences files.
s $Id$s
$Revision$s $Date$s- Copyright (c) 2007-2008 Sun Microsystems Inc.t LGPLiNt OrcaPrefsc B sw e Z d d d d d Z d Z d Z d Z d Z d Z d Z d Z
d Z d Z d
Z
RS( c C s/ t i i | | | | | | _ | | _ d S( sv Creates a new OrcaPrefs instance that will be used to write out
application specific preferences.
Arguments:
- prefsDict: a dictionary where the keys are orca preferences
names and the values are the values for the preferences.
- appName: the application these preferences are for.
- appScript: the application script.
- keyBindingsTreeModel - key bindings tree model, or None if we are
writing out console preferences.
- pronunciationTreeModel - pronunciation dictionary tree model, or
None if we are writing out console preferences.
N( t
orca_prefsR t __init__t appNamet appScript( t selft prefsDictR R t keyBindingsTreeModelt pronunciationTreeModel( ( s2 /usr/lib/python2.6/site-packages/orca/app_prefs.pyR % s c C s8 | i d | i d | i d | i d d S( sZ Writes the preamble to the ~/.orca/app-settings/<APPNAME>.py
keyBindings section.s
s% # Set up a user key-bindings profile
s #
s* def overrideAppKeyBindings(script, keyB):
N( t
writelines( R t prefs( ( s2 /usr/lib/python2.6/site-packages/orca/app_prefs.pyt _writeKeyBindingsPreamble; s
c C s | i d | i d d S( s Writes the postamble to the ~/.orca/app-settings/<APPNAME>.py
keyBindings section.
Arguments:
- prefs: file handle for application preferences.
- appName: the application these preferences are for.
- appScript: the application script.
s return keyBs
N( R
( R R R R ( ( s2 /usr/lib/python2.6/site-packages/orca/app_prefs.pyt _writeAppKeyBindingsPostambleD s
c C s4 | i | | i | | | i | | | d S( sc Write to an application specific configuration file 'prefs', the
key bindings passed in the model treeModel.
Arguments:
- prefs: file handle for application preferences.
- appName: the application these preferences are for.
- appScript: the application script.
- treeModel: key bindings treemodel.
N( R t _iterateKeyBindingsR
( R R R R t treeModel( ( s2 /usr/lib/python2.6/site-packages/orca/app_prefs.pyt _writeAppKeyBindingsMapQ s
c C sR | i d | i d | i d | i d | i d | i d d S( s] Writes the preamble to the ~/.orca/app-settings/<APPNAME>.py
pronunciations section.s
s' # User customized application specific s"