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/flat_review.pyo
z#Jc@sldZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZddk
Z
ddklZdd	klZeid
eieiBeiBZdddYZd
ddYZdddYZdefdYZdefdYZdefdYZdddYZdddYZdS( s=Provides the default implementation for flat review for Orca.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiN(t_(tC_s(\s+)tCharcBseZdZdZRS(s9Represents a single char of an Accessibility_Text object.cCsC||_||_||_||_||_||_||_dS(sCreates a new char.

        Arguments:
        - word: the Word instance this belongs to
        - index: the index of this char in the word
        - string: the actual char
        - x, y, width, height: the extents of this Char on the screen
        N(twordtstringtindextxtytwidththeight(tselfRRRRRR	R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyt__init__3s						(t__name__t
__module__t__doc__R(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR0stWordcBs eZdZdZdZRS(sRepresents a single word of an Accessibility_Text object, or
    the entire name of an Image or Component if the associated object
    does not implement the Accessibility_Text interface.  As a rule of
    thumb, all words derived from an Accessibility_Text interface will
    start with the word and will end with all chars up to the
    beginning of the next word.  That is, whitespace and punctuation
    will usually be tacked on to the end of words.c		Csd||_||_||_||_t|id|_||_||_||_	||_
dS(sCreates a new Word.

        Arguments:
        - zone: the Zone instance this belongs to
        - index: the index of this word in the Zone
        - string: the actual string
        - x, y, width, height: the extents of this Char on the screensUTF-8N(tzoneRtstartOffsetRtlentdecodetlengthRRR	R
(	RRRRRRRR	R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRRs							c	CsS|djo
t|ito|iii}g|_d}x||ijo|i|i|t	i
\}}}t|o |iddi
d}n|i||dd\}}}	}
|iit||||||	|
|d7}qDWn
d|_|iS|ido|ido
t|n|i|SdS(szUsed for lazily determining the chars of a word.  We do
        this to reduce the total number of round trip calls to the app,
        and to also spread the round trip calls out over the lifetime
        of a flat review context.

        Arguments:
        - attr: a string indicating the attribute name to retrieve

        Returns the value of the given attribute.
        tcharsisUTF-8it__N(t
isinstanceRtTextZonet
accessiblet	queryTextRRtgetTextAtOffsetRtpyatspitTEXT_BOUNDARY_CHARRRtencodetgetRangeExtentstappendRtNonet
startswithtendswithtAttributeErrort__dict__(RtattrttexttitcharRt	endOffsetRRR	R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyt__getattr__js4
	

 	 
(R
RRRR,(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRIs	tZonecBs5eZdZddZdZdZdZRS(s>Represents text that is a portion of a single horizontal line.cCsh||_||_t|id|_||_||_||_||_|p
|i	|_
dS(s@Creates a new Zone, which is a horizontal region of text.

        Arguments:
        - accessible: the Accessible associated with this Zone
        - string: the string being displayed for this Zone
        - extents: x, y, width, height in screen coordinates
        - role: Role to override accesible's role.
        sUTF-8N(RRRRRRRR	R
tgetRoletrole(RRRRRR	R
R/((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRs						cCsZ|djog|_|iS|ido|ido
t|n|i|SdS(sUsed for lazily determining the words in a Zone.

        Arguments:
        - attr: a string indicating the attribute name to retrieve

        Returns the value of the given attribute.
        twordsRN(R0R#R$R%R&(RR'((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR,s	
	 
cCst|i|i|i|i}t|i|i}||jo2||}t|i|i}d||djStSdS(sSReturns True if this Zone is on the same horiztonal line as
        the given zone.g?g?N(tminRR
tmaxtFalse(RRt
highestBottomt	lowestTopt
overlapAmounttshortestHeight((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyt
onSameLines#

cCsnd}d}xU|iD]J}|t|iid}|}||jo|||gS|}qW||gS(NisUTF-8(R"R0RRR(Rt
charOffsettwordAtOffsettoffsetRt
nextOffset((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgetWordAtOffsets


N(R
RRR"RR,R8R=(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR-s
		RcBs eZdZdZdZRS(sPRepresents Accessibility_Text that is a portion of a single
    horizontal line.cCs,ti|||||||||_dS(sCreates a new Zone, which is a horizontal region of text.

        Arguments:
        - accessible: the Accessible associated with this Zone
        - startOffset: the index of the char in the Accessibility_Text
                       interface where this Zone starts
        - string: the string being displayed for this Zone
        - extents: x, y, width, height in screen coordinates
        N(R-RR(RRRRRRR	R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRsc
Cs!|djo|ii}g|_d}|i}xti|iD]}t|o|t|id}|i	||d\}}}	}
t
|||||||	|
}|ii||d7}|}qGqGW|iS|ido|i
do
t|n|i|SdS(smUsed for lazily determining the words in a Zone.  The words
        will either be all whitespace (interword boundaries) or actual
        words.  To determine if a Word is whitespace, use
        word.string.isspace()

        Arguments:
        - attr: a string indicating the attribute name to retrieve

        Returns the value of the given attribute.
        R0isUTF-8iRN(RRR0Rt
whitespace_retsplitRRRR RR!R#R$R%R&(RR'R(t	wordIndexR;RR+RRR	R
R((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR,s2
		

 
(R
RRRR,(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRs	t	StateZonecBs#eZdZddZdZRS(s{Represents a Zone for an accessible that shows a state using
    a graphical indicator, such as a checkbox or radio button.c	Cs,ti||d||||||`dS(Nt(R-RR(RRRRR	R
R/((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRDs"cCs|djo|ii}|itio
d}n$|itio
d}nd}|itititi	gjoW|djot
d}n*|djot
d}n
t
d	}ti|}n~|iti
jo4|ot
d
}n
t
d}ti|}n7|otdd
}ntdd}ti|}|djo|S|djot|S|djo|Snti||SdS(NRRt
brailleStringiiispartially checkedtcheckedsnot checkedtpressedsnot pressedtradiobuttontselectedsnot selected(sstringslengths
brailleString(RtgetStatetcontainsRtSTATE_INDETERMINATEt
STATE_CHECKEDR/tROLE_CHECK_BOXtROLE_CHECK_MENU_ITEMtROLE_TABLE_CELLRtsettingstbrailleCheckBoxIndicatorstROLE_TOGGLE_BUTTONtbrailleRadioButtonIndicatorsRRR-R,(RR'tstatesett
stateCounttspeechStatetbrailleState((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR,Ps@








	N(R
RRR"RR,(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRA@st	ValueZonecBs#eZdZddZdZRS(syRepresents a Zone for an accessible that shows a value using
    a graphical indicator, such as a progress bar or slider.c	Cs,ti||d||||||`dS(NRB(R-RR(RRRRR	R
R/((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRs"cCs|djod}|ititigjoY|ii}|itiot	d}q|iti
ot	d}qn|ii}t|i
|i|id}|o|dti|i}nti|i}|dt	d|}|o#d	|ti|i|f}nd
ti|i|f}|djo|S|djot|S|djo|Snti||SdS(NRRRCt
horizontaltverticalgY@t s%d percent.s
%s %s %d%%s%s %d%%(sstringslengths
brailleString(R"R/RtROLE_SLIDERtROLE_SCROLL_BARRRHRItSTATE_HORIZONTALRtSTATE_VERTICALt
queryValuetinttcurrentValuetmaximumValuetminimumValuet	rolenamestgetSpeechForRoleNametgetBrailleForRoleNameRR-R,(RR'torientationRStvaluetpercentValuetspeechValuetbrailleValue((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR,sB
	




	N(R
RRR"RR,(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRWstLinecBs)eZdZdZdZdZRS(sAA Line is a single line across a window and is composed of Zones.cCs||_||_d|_dS(sCreates a new Line, which is a horizontal region of text.

        Arguments:
        - index: the index of this Line in the window
        - zones: the Zones that make up this line
        N(RtzonesR"tbrailleRegions(RRRm((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRs			cCs|djod}d}x|iD]}|p0|i|i|i|i|i|ig}nwt|d|i|d<t|d	|i|d	<t|d
|i|i|d
<t|d|i|i|d<t|i	o,t|o|d7}n||i	7}q#q#W|pd
d
d
d
g}n|djo|S|djot|S|djo	|dS|djo	|d	S|djo|d
|dS|djo|d|d	Sn9|i
do|ido
t|n|i
|SdS(NRRRRR	R
RBiiiiRZiR(sstringslengthRRswidthsheight(R"RmRRR	R
R1R2RRR#R$R%R&(RR'tboundsRR((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR,sB

$!!



	
	

 
c	Cstp|iog|_d}xU|iD]J}t|tou|iititi	ti
fjp(|iitititi
fjo%ti|i|i|i|}n<y
|i}Wn|i}nXti|i|d|}t|io6tid}||_|ii||d7}n||_||_|ii||t|iid7}q+Wtiprt|io6tid}||_|ii||d7}ntid}||_|ii|qn|iS(NiRZisUTF-8s$l(tTrueRnRmRRRR.Rt	ROLE_TEXTtROLE_PASSWORD_TEXTt
ROLE_TERMINALtROLE_PARAGRAPHtROLE_HEADINGt	ROLE_LINKtbraillet
ReviewTextRRRCtReviewComponentRtRegiont
brailleOffsetR!t
brailleRegionRROtdisableBrailleEOL(RR{RtregionRCtpadteol((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgetBrailleRegions
sZ	



				 
		(R
RRRR,R(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRls	
	)tContextcBs2eZdZdZdZdZdZdZdZdZ	dZ
e	e
BZdZdZ
dZd	Zdd
ZdZdZd
ZdZdZdZddZdZedZdZedZedZeeedZeeedZ eedZ!eedZ"RS(sNInformation regarding where a user happens to be exploring
    right now.
    iiiiicCsf||_tiptii|iijo
g|_nti}xH|o@|io6|iiti	jo||ijo
|i}qIW|o|i
|i||_n
g|_d}d}d}d}tio2tiitijoti
iti}n
ti}t}x|t|ijo|i|}	d}xV|t|	ijo?|	i|}
|ii|
i|ot}PqR|d7}qRW|oPq&|d7}q&W|pd}d}n\t|
toK|
i}|}|}
y|
iii}Wntj
o
d}nXt}t}xv|t|ijo_|i|}	x|
t|	ijo|	i|
}
|
i|jog||
ijoS||
i|
ijot}Pq||
i|
ijot}|}|
}qqn|
d7}
qfW|o|}|
}d}d}|
i}xb|t|
ijoK|
i|}|i||jo||}Pq:|d7}||i7}q:WPq@d}
|d7}q@W|o|}|of|i|}	|	i|}
|}|}|o5|
io+t|
id}|
i|id}q1q5n||_||_||_||_ d|_"dS(sVCreate a new Context that will be used for handling flat
        review mode.
        iiiN(#tscriptt
orca_statetlocusOfFocustgetApplicationtapptlinestparentR.RtROLE_APPLICATIONtclusterZonesByLinetgetShowingZonesRNtactiveScripttgetRealActiveDescendantR3RRmtisSameObjectRRpRRRtcaretOffsettNotImplementedErrorRRR0t	lineIndext	zoneIndexR@t	charIndexR"ttargetCharInfo(RRtobjtcurrentLineIndextcurrentZoneIndextcurrentWordIndextcurrentCharIndext
searchZonetfoundZoneWithFocustlineRRRRRtfoundZoneWithCarettcheckForEOFtlineToChecktzoneToCheckR;RtatEOF((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRXs	
	
	
		


	

	




 				c	Cspt||}	t||||}
|
|	}t||}t||||}
|
|}|	|||gS(slClips region 'a' by region 'b' and returns the new region as
        a list: [x, y, width, height].
        (R2R1(RtaxtaytawidthtaheighttbxtbytbwidthtbheightRtx2R	Rty2R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytclips

cCst}g}|i}|}|}	d}
|id}xxtdt|dD]]}|t|jo%||tiijo|	d7}	qS|	|jo|d7}|}	|d}
qS|i||	d\}
}}}|i	i
|
||||i|i|i
|iot}|i|
||||i|i|i
|i}||
|!}|it|||id|d|d|d|d|	d}|}	|d}
qSqSW|o|SdSdS(sTTraverses the string, splitting it up into separate zones if the
        string contains the EMBEDDED_OBJECT_CHARACTER, which is used by apps
        such as Firefox to handle containment of things such as links in
        paragraphs.

        Arguments:
        - accessible: the accessible
        - string: a substring from the accessible's text specialization
        - startOffset: the starting character offset of the string
        - cliprect: the extents that the Zones must fit inside.

        Returns a list of Zones for the visible text or None if nothing is
        visible.
        isUTF-8iiiN(R3RRtrangeRRRtEMBEDDED_OBJECT_CHARACTERR RtvisibleRRR	R
RpRR!RRR"(RRRRtcliprectt
anyVisibleRmR(tsubstringStartOffsettsubstringEndOffsettunicodeStartOffsett
unicodeStringR)RRR	R
tclippingt	substring((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytsplitTextIntoZonessP



c
Cstitidy|i}Wntj
ogSXg}d}d}|i}}|d}	}
d}}d}
}d}xu||	jog|	}|i|	|	dd\}}}}|}
||ijo
|	}n|	}||d|}	qWd}|i|i}xr||
jod|
}|i|
|
dd\}}}}|}||jo
|
}n|
}||d|}
qW|}|}x||jo|i	|t
i\}}}titid||||f|djpK|djp>||jp1||jp$||jpt||djo7titi
d|i|i||||fPn||jo$t|d|d}|}qn
|}|}|i||||}||jop|dd	jo_|i||d\}}}}|p
g}n|it||d
|||d|n|o|i|qt|oPqqWt|djo|it
ijp,|it
ijp|it
ijoJ|iid}|it|dd
|i|i|i|iqn|S(sGets a list of Zones from an object that implements the
        AccessibleText specialization.

        Arguments:
        - accessible: the accessible
        - cliprect: the extents that the Zones must fit inside.

        Returns a list of Zones.
        s  looking at text:iiiis)    line at %d is (start=%d end=%d): '%s'g S$Asflat_review:getZonesFromText detected garbage from getTextAtOffset for accessible name='%s' role'='%s': offset used=%d, start/end offset returned=(%d,%d), string='%s's
RB(tdebugtprintlntLEVEL_FINESTRRtcharacterCountR RR
RRtTEXT_BOUNDARY_LINE_STARTtabst
LEVEL_WARNINGtnametgetRoleNameR2RR!RtextendRR.Rqt
ROLE_ENTRYRrtqueryComponentt
getExtentsRR	(RRRR(RmR;t
lastEndOffsettupperMaxtlowerMaxtupperMidtlowerMidtupperMintlowerMintupperYtlowerYtoldMidRRR	R
tlimitRRRR+t	textZonestextents((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgetZonesFromTextFs



	

	








	


c	Csod}t}|p
|i}|titititigjo|ii	d}|i
}|i}d}	|i}
y|i
}Wntj
onxX|id|id\}}
}}||i
}|i
|i||}|dj}|o
|}	n||}|}	t||||	|
}n|tijo:|ii	d}t||i
|id|i}n|tijoy|i}Wntj
o
d}nX|out}xGtd|iD]3}|i|dtdgjot}PqqW|o|i||tiq4q8n|o,|o|id|qk|i|ndS(sIf the accessible presents non-textual state, such as a
        checkbox or radio button, insert a StateZone representing
        that state.iiittoggleN(R"RpR.RRLRMtROLE_RADIO_BUTTONtROLE_RADIO_MENU_ITEMRRRRR
RRR RR	RARQRNtqueryActionR3RtnActionstgetNameRt_insertStateZonetinsertR!(RRmRR/RtstateOnLeftRtstateXtstateYt
stateWidthtstateHeightR(RRR	R
ttextToLeftEdgettextToRightEdgetactiont	hasToggleR)((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRsd				


"	cCs)|i}|pgS|id}|ii|i|i|i|i|i|i|i|ipgSti	ti
d|i|ify|i
Wntj
o
g}nX|i||}y|i}Wntj
o
d}nXt|djo|od}|iot|io
|i}nO|iot|io
|i}n(|iot|io
|i}n|id\}}	|i\}
}|
djo|djo|ii||	|
||i|i|i|io|i||	|
||i|i|i|i}|ddjp|ddjo6|it|||d|d|d|dqqn|i|i|i|i|i|i|i|i|i}|i}
t|djoR|
tititigjo3|it||d|d|d|dn|
ti joT|
ti!joD|
ti"jo4|
ti#jo$|
ti$jo|i%djonqt|djo]d}|
ti jo[y|di&}Wn|ii'|d}q)X|i(d}|o
|i}q)n|o'|iot|io
|i}n(|iot|io
|i}n|djo |
ti)jo|i}nt|oX|ddjp|ddjo6|it|||d|d|d|dqn|i*|||S(sReturns a list of Zones for the given accessible.

        Arguments:
        - accessible: the accessible
        - cliprect: the extents that the Zones must fit inside.
        is4flat_review.getZonesFromAccessible (name=%s role=%s)RBiiiN(+RRRRRRR	R
RRRRRRRRt
queryImageR"RtdescriptiontimageDescriptiontgetImagePositiontgetImageSizeRR!R-R.RR\R[tROLE_PROGRESS_BARRWtROLE_COMBO_BOXt
ROLE_EMBEDDEDt
ROLE_LABELt	ROLE_MENUt
ROLE_PAGE_TABt
childCounttquerySelectiontgetDisplayedTexttgetSelectedChildRNR(RRRt
icomponentRRmtiimaget	imageNameRRR	R
RR/Rt	selectiontitem((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgetZonesFromAccessible<s



"
	"


/c
Cs3|pgSg}y|iid}WngSX|i}|idjo|i||S|i}|itioi|iti	o|i||S|iti
o.|i||}|o|i|qqn|io|iiti
jp@|tijp0|tijp |tijp|tijo|i||S|tijo(|i||}t|o|Sn|tijo|i|i||ny7|it|djo|i||}nWntj
onX|ii|}t|o+x|D]}|i|i|q7Wnxtd|iD]}	|i|	}||jotitiddqnnQ|ptitiddqnn,|i|jotitiddn|ii |o|i|i|qnqnW|S(sReturns a list of all interesting, non-intersecting, regions
        that are drawn on the screen.  Each element of the list is the
        Accessible object associated with a given region.  The term
        'zone' here is inherited from OCR algorithms and techniques.

        The Zones are returned in no particular order.

        Arguments:
        - root: the Accessible object to traverse

        Returns: a list of Zones under the specified object
        isflat_review.getShowingZones: sWARNING CHILD == PARENT!!!sWARNING CHILD IS NONE!!!s!WARNING CHILD.PARENT != PARENT!!!(!RRR.RRRHRIRtSTATE_EXPANDABLEtSTATE_COLLAPSEDtSTATE_EXPANDEDRRt
ROLE_MENU_BARRRRqR\tROLE_STATUS_BARRRRRRRtgetShowingDescendantsRRtgetChildAtIndexRRRtpursueForFlatReview(
RtrootRmtrootextstrootroleRSttreenodetshowingDescendantstchildR)((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRsz	#
		


c	Cs	t|djogSt|}xtd|D]o}xftd|d|D]M}||}||d}|i|ijo|||<|||d<qRqRWq4Wg}x|D]}t}	x|D]}
t}x)|
D]!}|i|pt}PqqW|ohd}xD|t|
jo0|
|}|i|ijoPq|d7}qW|
i||t}	PqqW|	p|i|gqqWg}
d}xe|D]]}
|
it	||
d}x.|
D]&}|
||_
||_|d7}qW|d7}qW|
S(sGiven a list of interesting accessible objects (the Zones),
        returns a list of lines in order from the top to bottom, where
        each line is a list of accessible objects in order from left
        to right.
        ii(RRRR3RpR8RRR!RlRR(RRmtnumZonesR)tjtatbtlineClusterstclusterCandidatetaddedToClustertlineClustert	inClusterRRRR((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR=sd

	
	
	cCsd|i|i|i|ifGH|i|ii|i}|ii}|p
dGHdSd|iGH|i|it	i
\}}}d|||fGH|i|it	i\}}}d|||fGHd|iGH|i|it	i
\}}}d|||fGH|i|it	i\}}}d|||fGHd|iGH|i
|it	i
\}}}d|||fGH|i
|it	i\}}}d|||fGHdS(Ns"line=%d, zone=%d, word=%d, char=%ds  Not Accessibility_Texts  getTextBeforeOffset: %ds+    WORD_START: start=%d end=%d string='%s's+    WORD_END:   start=%d end=%d string='%s's  getTextAtOffset: %ds  getTextAfterOffset: %d(RRR@RRmRRRtgetTextBeforeOffsetRtTEXT_BOUNDARY_WORD_STARTtTEXT_BOUNDARY_WORD_ENDRtgetTextAfterOffset(RRR(RRR+((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyt_dumpCurrentStatesVcCs=||_||_||_||_|iti|_dS(s=Sets the current character of interest.

        Arguments:
        - lineIndex: index into lines
        - zoneIndex: index into lines[lineIndex].zones
        - wordIndex: index into lines[lineIndex].zones[zoneIndex].words
        - charIndex: index lines[lineIndex].zones[zoneIndex].words[wordIndex].chars
        N(RRR@Rt
getCurrentRtCHARR(RRRR@R((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyt
setCurrents

				cCs|ip|i|iiodS|iti\}}}}}y:t|||dd}ti|||ddWnt	i
t	inXdS(s3Routes the mouse pointer to the current accessible.NiiR(RRRmRRRR2teventsynthesizertrouteToPointRtprintExceptiontLEVEL_SEVERE(RRRRR	R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytrouteToCurrents!cCs|ip|i|iiodS|iti\}}}}}y:t|||dd}ti|||d|Wnt	i
t	inXdS(s1Performs a mouse click on the current accessible.Nii(RRRmRRRR2Rt
clickPointRRR(RtbuttonRRRR	R
((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytclickCurrents!	cCsU|ip|i|iiodddddgS|i|ii|i}|iS(sVReturns the accessible associated with the current locus of
        interest.
        iN(RRRmR"RR(RR((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgetCurrentAccessibles
cCs|ip|i|iiodddddgS|i|ii|i}|tijo#|i|i|i	|i
|igS|tijot
|to|i}|o}|i|ii}|o0||i}|i|i|i	|i
|igS||i}|i|i|i	|i
|igSq2n|itiS|tijoet
|toD|i}|o0||i}|i|i|i	|i
|igSn|itiS|tijo3|i|i}|i|i|i	|i
|igStd|dS(sGets the string, offset, and extent information for the
        current locus of interest.

        Arguments:
        - flatReviewType: one of ZONE, CHAR, WORD, LINE

        Returns: [string, x, y, width, height]
        isInvalid type: %dN(RRRmR"RRtZONERRRR	R
RRRR0R@RRRtWORDtLINEt	Exception(RtflatReviewTypeRR0RR*RR((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRs`
	

	
cCs|ip|i|iioddgSd}|i|i}|i}x|iD]}|i|ijo|i}d|_|i	oIxFt
d|iD].}|it|i	|i
id7_qWn|i|i7_|iPqWqWW||gS(sbGets the braille for the entire current line.

        Returns [regions, regionWithFocus]
        isUTF-8N(RRRmR"RRRR|tcursorOffsetR0RR@RRRRtrepositionCursor(RtregionWithFocusRtregionsRR@((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgetCurrentBrailleRegions:s(
		
)
	cCs
|tijp|tijo
|i}n+|tijo
d}ntd||tijo
|i}nd}d}d}|i|jp-|i|jp|i|jp
|i|j}|o=||_||_||_||_|i	ti
|_n|S(sMoves this context's locus of interest to the first char
        of the first relevant zone.

        Arguments:
        - flatReviewType: one of ZONE, LINE or WINDOW

        Returns True if the locus of interest actually changed.
        isInvalid type: %d(RR%R#RtWINDOWR&RR@RRRR(RR'RRR@Rtmoved((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgoBeginYs*
 


				c	Cs|tijp|tijo
|i}n8|tijot|id}ntd||tijo
|i}nt|i|i	d}|i|i	|}|i
oHt|i
d}|i
|i}|ot|d}q
d}n
d}d}|i|jp-|i|jp|i|jp
|i
|j}|o=||_||_||_||_
|iti|_n|S(sMoves this context's locus of interest to the last char
        of the last relevant zone.

        Arguments:
        - flatReviewType: one of ZONE, LINE, or WINDOW

        Returns True if the locus of interest actually changed.
        isInvalid type: %di(RR%R#RR-RRR&RRmR0RR@RRRR(	RR'RRRR@RRR.((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgoEnds8
 



				cCs#t}|tijo|idjo+|id8_d|_d|_t}q|ti@o|idjoK|id8_t	|i
|iid|_d|_d|_t}q|ti@oRt	|i
d|_t	|i
|iid|_d|_d|_t}qqn|ti
jo|idjo|id8_t}q|iti|t}|o]|i
|ii|i}|io5|i|ii}|ot	|d|_qqqn|tijo+|i
|ii|i}|i}|i}|i}	|i}
|i}|idjo"|id8_d|_t}n_|iti|}|oB|i
|ii|i}|iot	|id|_qn|i
|ii|i}|o|ot	|idjp*t	|io|i|iiio|i|jo|iti|}q|id}
xb|
djoT|i|
ip/t	|i|
ip|i|
iio|
d8}
qcPqcW|
djo
|
|_qn|p(||_|	|_|
|_||_qn|tijo|ti@o|idjo4|id8_d|_d|_d|_t}q|ti@oQt	|i
djo;t	|i
d|_d|_d|_d|_t}qqntd||o)|tijo|iti
|_n|S(siMoves this context's locus of interest to the first char
        of the previous type.

        Arguments:
        - flatReviewType: one of ZONE, CHAR, WORD, LINE
        - wrap: if True, will cross boundaries, including top and
                bottom; if False, will stop on boundaries.

        Returns True if the locus of interest actually changed.
        iisInvalid type: %d(R3RR#RR@RRpt	WRAP_LINERRRRmtWRAP_TOP_BOTTOMRt
goPreviousR$R0RRRtisspaceR%R&RR(RR'twraptomitWhitespaceR.RRRRRR@R((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR3s
		
 		
 		

#						





						
			cCst}|tijo|it|i|iidjo+|id7_d|_d|_	t
}q|ti@o|it|idjo4|id7_d|_d|_d|_	t
}q|ti@o.d|_d|_d|_d|_	t
}qqn|ti
jo|i|ii|i}|io|i|ii}|oO|i	t|djo|i	d7_	t
}q|iti|t}q|iti|}q|iti|}n|tijo$|i|ii|i}|i}|i}|i}	|i}
|i	}|ioX|it|idjo"|id7_d|_	t
}q|iti|}n|iti|}|i|ii|i}|o|ot|idjp*t|io|i|iiio|i|jo|iti|}q|id}
xk|
t|ijoT|i|
ip/t|i|
ip|i|
iio|
d7}
qIPqIW|
t|ijo
|
|_qn|p(||_|	|_|
|_||_	qn|tijo|ti@o|it|idjo4|id7_d|_d|_d|_	t
}q|ti@o>|idjo.d|_d|_d|_d|_	t
}qqntd||o)|tijo|iti
|_n|S(s Moves this context's locus of interest to first char of
        the next type.

        Arguments:
        - flatReviewType: one of ZONE, CHAR, WORD, LINE
        - wrap: if True, will cross boundaries, including top and
                bottom; if False, will stop on boundaries.
        iisInvalid type: %d(R3RR#RRRRRmR@RRpR1R2RR0RtgoNextR$RRR4R%R&RR(RR'R5R6R.RRRRRR@R((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyR7.s
'		
			
				

					
	


						
				cCs+t}|tijo|ip|iti|_n|i}|\}}}}}	||d}
|iti|}|ohxetoY|iti\}}}}
}|||
joPq|ititi	pPqqWn||_n2|tijo|i||St
d||S(sMoves this context's locus of interest to first char
        of the type that's closest to and above the current locus of
        interest.

        Arguments:
        - flatReviewType: LINE
        - wrap: if True, will cross top/bottom boundaries; if False, will
                stop on top/bottom boundaries.

        Returns: [string, startOffset, endOffset, x, y, width, height]
        isInvalid type: %d(R3RRRRR3R%RpR7t	WRAP_NONER&(RR'R5R.ttargetRRRR	R
t
middleTargetXRRRR((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgoAboves*

	!
cCs0t}|tijo|ip|iti|_n|i}|\}}}}}	||d}
|iti|}|ohxetoY|iti\}}}}
}|||
joPq|ititipPqqWn||_n7|tijo|i||}nt	d||S(sMoves this context's locus of interest to the first
        char of the type that's closest to and below the current
        locus of interest.

        Arguments:
        - flatReviewType: one of WORD, LINE
        - wrap: if True, will cross top/bottom boundaries; if False, will
                stop on top/bottom boundaries.

        Returns: [string, startOffset, endOffset, x, y, width, height]
        isInvalid type: %d(
R3RRRRR7R%RpR8R&(RR'R5R.R9RRRR	R
R:RRRR((s4/usr/lib/python2.6/site-packages/orca/flat_review.pytgoBelows*

	!
iiN(#R
RRR#RR$R%R-R8R1R2tWRAP_ALLRRRRR"RRRRRRRR!R"RR,R/R0RpR3R7R;R<(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyRHs@
			]	P		o	E	2			
?	'0}|/((((((Rt__id__t__version__t__date__t
__copyright__t__license__treRRwRRRRdROt	orca_i18nRRtcompiletDOTALLt
IGNORECASEtMR>RRR-RRARWRlR(((s4/usr/lib/python2.6/site-packages/orca/flat_review.pyt<module>s0#WUKMDw

Youez - 2016 - github.com/yon3zu
LinuXploit