403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyo
Ńņ
z#ŻJc@sxdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZddk
Z
ddkZddkZddkZddkZddkZddkZddkZddkZddkZddkZddklZdadad	eifd
„ƒYZdeifd„ƒYZd
„Z d„Z!e"djoe!ƒndS(sIDisplays a GUI for the user to set Orca application-specific preferences.s$Id$s
$Revision$s$Date$s-Copyright (c) 2007-2009 Sun Microsystems Inc.tLGPLi’’’’N(t_tOrcaSetupGUIcBskeZd
d„Zd„Zd
d„Zd„Zd„Zd„Zd„Z	e
d„Zd„Zd	„Z
RS(cCsStii||||ƒd|_d|_d|_d|_d|_d|_	dS(sÖInitialize the application specific Orca configuration GUI.

        Arguments:
        - fileName: name of the GtkBuilder file.
        - windowName: name of the component to get from the GtkBuilder file.
        N(
torca_gui_prefsRt__init__tNonetapplicationNamet	appScripttappt	kbindingstappKeyBindingstdefKeyBindings(tselftfileNamet
windowNamet	prefsDict((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyR7s
					cCsÓ||_|idƒiƒd}|iƒ|idƒitƒ|idƒitƒ|idƒitƒ|idƒitƒ|iiƒ}|o5tit	i
iiƒ}|idƒi
||ƒndS(sėBefore we show the GUI to the user we want to remove the
        General tab and gray out the Speech systems and servers 
        controls on the speech tab.

        Arguments:
        - thisAppScript: the application script.
        tnotebookitspeechSystemsLabelt
speechSystemstspeechServersLabelt
speechServersN(Rt
get_widgettget_childrenthidet
set_sensitivetFalsetgetAppPreferencesGUItgtktLabelt
orca_statetactiveScriptRtnametappend_page(Rt
thisAppScriptt
generalTabtvboxtlabel((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytinitAppGUIStateKs	
cCstii|tiƒdS(s7Create the pronunciation dictionary tree view for this specific 
        application. We call the super class method passing in the 
        application specific pronunciation dictionary.

        Arguments:
        - pronunciations: an optional dictionary used to get the
          pronunciation from.
        N(RRt_createPronunciationTreeViewRtapp_pronunciation_dict(Rtpronunciations((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyR&js
	cCs[tii|_|ii|_tdƒ|i}|idƒi|ƒti	i
|ƒdS(szShow the app-specific Orca configuration GUI window. This 
        assumes that the GUI has already been created.
        sOrca Preferences for %storcaSetupWindowN(RRRRRRRt	set_titleRRtshowGUI(Rttitle((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyR+ws
cCsWti|iƒ}ti|i||i|i|iƒt	i
ƒ}|i|iƒdS(sDWrite out the user's application-specific Orca preferences.
        N(tsettingstgetScriptModuleNameRt	app_prefstwritePreferencesRRtkeyBindingsModeltpronunciationModeltfocus_tracking_presentertFocusTrackingPresentertloadAppSettings(Rt
moduleNametftp((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytwriteUserPreferences†s
cCs|ii|ƒS(sŽConverts the given Atk attribute name into the application's
        equivalent. This is necessary because an application or toolkit
        (e.g. Gecko) might invent entirely new names for the same text
        attributes.

        Arguments:
        - attribName: The name of the text attribute

        Returns the application's equivalent name if found or attribName
        otherwise.
        (RtgetAppNameForAttribute(Rt
attributeName((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyt_getAppNameForAttributes
cCs(y
tiƒtiƒ}tit|ƒ}tiddddƒ}|i}|iƒ}x®|djo |i	|ƒ}x{|djom|i
|tiƒ}t
id|ƒ|_|i|ddƒo|i|titƒn|i|ƒ}qzW|i|ƒ}q[WWntitiƒnXdS(sM Mark as modified the user application specific custom key bindings:
        ttypeOfSearchtdescriptionN(RtsetupInputEventHandlerstkeybindingstKeyBindingstoverrideAppKeyBindingst
KeyBindingRR1tget_iter_firstt
iter_childrent	get_valueRtDESCRIPtinput_eventtInputEventHandlerthandlert
hasKeyBindingt	set_valuetMODIFtTruet	iter_nexttdebugtprintExceptiontLEVEL_SEVERE(RtkeyBindstkeyBindt	treeModeltmyitert	iterChildtdescrip((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyt
_markModifiedŸs0
	

		
	c	Csj|o|iiƒntiƒ|_tit|iƒ|_tidƒ}|iƒ|_	|i
tƒ}|i
tdƒƒ}|i
tdƒƒ}x‡|ii
D]y}|i	i|dƒp
|}n|io
|}n|}|i|ƒp)ti|iƒ}|i|||ƒq£q£W|ii|ƒp|ii|ƒn|i|_tii|tƒdS(sēFills the TreeView with the list of Orca keybindings. The
        application specific ones are prepended to the list.

        Arguments:        
        - clearModel: if True, initially clear out the key bindings model. 
        tOrcatUnboundR=N(R1tclearRtgetKeyBindingsR
RAtdefaulttScriptRRt_createNodeRRtkeyBindingsRJtkeysymstringt_addAlternateKeyBindingtgetInputEventHandlerKeyRIt
_insertRowtiter_has_childtremoveR	RRt_populateKeyBindingsR(	Rt
clearModelt	defScripttiterApptiterOrcatiterUnboundtkbtnodethandl((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyRg»s0	



cCs$|i|ƒ|idƒiƒdS(sFSignal handler for the "clicked" signal for the okButton
           GtkButton widget. The user has clicked the OK button.
           Write out the users preferences. If GNOME accessibility hadn't
           previously been enabled, warn the user that they will need to
           log out. Shut down any active speech servers that were started.
           Reload the users preferences to get the new speech, braille and
           key echo value to take effect. Destroy the configuration window.

        Arguments:
        - widget: the component that generated the signal.
        R)N(tapplyButtonClickedRtdestroy(Rtwidget((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytokButtonClickedšs

cCs
dt_dS(sdSignal handler for the "destroyed" signal for the orcaSetupWindow
           GtkWindow widget. Reset orca_state.appOS to None, so that the 
           GUI can be rebuilt from the GtkBuilder file the next time the user
           wants to display the configuration GUI.

        Arguments:
        - widget: the component that generated the signal.
        N(RRtappOS(RRr((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytwindowDestroyeds
N(t__name__t
__module__RRR%R&R+R8R;RXRMRgRsRu(((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyR5s	
		
		5	tWarningDialogGUIcBs#eZd„Zd„Zd„ZRS(cCs|iS(s@Return a handle to the Orca Preferences warning dialog.
        (torcaPrefsWarningDialog(R((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytgetPrefsWarningDialogscCs
dt_dS(s`Signal handler for the "destroyed" signal for the 
        orcaPrefsWarningDialog GtkWindow widget. Reset orca_state.orcaWD
        to None, so that the GUI can be rebuilt from the GtkBuilder file the
        next time that this warning dialog has to be displayed.

        Arguments:
        - widget: the component that generated the signal.
        N(RRtorcaWD(RRr((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytorcaPrefsWarningDialogDestroyeds
cCs|iiƒdS(sĻSignal handler for the "clicked" signal for the
        orcaPrefsWarningDialogOKButton GtkButton widget. The user has clicked
        the OK button in the Orca Preferences warning dialog.
        This dialog informs the user that they already have an instance 
        of an Orca preferences dialog open, and that they will need to 
        close it before opening a new one.

        Arguments:
        - widget: the component that generated the signal.
        N(RyRq(RRr((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyt%orcaPrefsWarningDialogOKButtonClicked s(RvRwRzR|R}(((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyRxs		cCstiptiiƒo+tdƒ}ti|ƒti|ƒdStia	tii
iat
}tiožtioótdƒt}ti|ƒti|ƒtiƒ}tiitititiddƒt_tiitititiddƒt_titid|ƒt_tiiƒtiiƒt_ t!tid|ƒt_t"}tiiƒnuti#pftiitititiddƒt_$t%ti$d	ƒt_#ti#i&ƒ}|i'ƒ|i(ƒndS|otii)t	ƒntii*ƒdS(
NsNo application has focus.s!Starting Orca Preferences for %s.tuis
orca-setup.uisorca-advanced-magnification.uitorcaMagAdvancedDialogR)sorca-preferences-warning.uiRy(+RtlocusOfFocustgetApplicationRtbrailletdisplayMessagetspeechtspeakRRRRRRRttorcaOSt
orca_prefstreadPreferencestostpathtjointplatformtprefixtdatadirnametpackagetprefsUIFiletadvancedMagUIFileRtOrcaAdvancedMagGUItadvancedMagtinittgetAdvancedMagDialogtadvancedMagDialogRRMR{torcaWarningDialogUIFileRxRztrealizetshowR%R+(tmessagetremoveGeneralPanetlineRt
warningDialog((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pytshowPreferencesUI.s^

	


	
	
cCs5titidƒtƒtiƒtidƒdS(Nti(tlocalet	setlocaletLC_ALLRžRtmaintsystexit(((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyR£vs
t__main__(#t__doc__t__id__t__version__t__date__t
__copyright__t__license__RR R‰R¤R/R‚ROR]R3RGR?torca_gtkbuilderRR‡RRŒR-R„t	orca_i18nRRRRRtGtkBuilderWrapperRxRžR£Rv(((s6/usr/lib/python2.6/site-packages/orca/app_gui_prefs.pyt<module>s@×"	H	


Youez - 2016 - github.com/yon3zu
LinuXploit