Table of Contents

Eric3 Source Documentation: QScintilla  
-í
Gä/?csdZ
dkZdkZ
dklZlZlZdkTdkl	Z	dk
lZlZdk
lZdklZdklZd	klZd
klZdkTdklZdklZdkZdkZd
efd„ƒYZdS(s<
Module implementing the editor component of the eric3 IDE.
N(s
QextScintillasQextScintillaPrintersQextScintillaMacro(s*(sIconFilePython(s	IconBreaks
IconCBreak(sTabnannyDialog(sSyntaxCheckerDialog(sCodeMetricsDialog(sPyCoverageDialog(sPyProfileDialog(s	IconClose(sPrintersEditorcs4tZdZ-.eeedd„Z¼d„Zd„Zd„Z-d„ZMd„Z	Wd„Z
ed	„Zyd
„ZÏd„Z
Ùd„Zæd
„Zõd„Zd„Zd„Zedd„Z1d„Z>ed„Z¨d„Z±d„Zºd„ZÄd„ZÜd„Zýd„Zd„ZVded„Z°ed„Z¿d„ZÉd„Z Ød„Z!äd „Z"üd!„Z#d"„Z$Id#„Z%Rd$„Z&^d%„Z'md&„Z(Žd'„Z)—d(„Z*©d)„Z+Ëd*„Z,Ôd+d,„Z-æd+d-„Z.d.„Z/
d/„Z0d0„Z1 d1„Z25d2„Z3Bd3„Z4Wd4„Z5nd5„Z6ˆd6„Z7•d7„Z8°d8„Z9»d9„Z:Æd:„Z;ãd;„Z<÷d<„Z=ÿd=„Z>d>„Z?
d?„Z@d@„ZAdA„ZB$dB„ZC/dC„ZD:dD„ZEKdE„ZF`dF„ZGrdG„ZHzdH„ZI‚dI„ZJ¦dJ„ZK×dK„ZLêdL„ZMddM„ZNdN„ZOdO„ZP6dP„ZQ@d+dQ„ZRKd+dR„ZSVdS„ZTadT„ZUkdU„ZV}d+dV„ZWRS(Ws'
    Class implementing the editor component of the eric3 IDE.
    
    Signals
    
        modificationStatusChanged(boolean, editor) -- emitted when the
            modification status has changed
            
        cursorChanged(string, int, int) -- emitted when the cursor position
            was changed
            
        editorSaved(string) -- emitted after the editor has been saved
            
        captionChanged(string, editor) -- emitted when the caption is
            updated. Typically due to a readOnly attribute change.
    ics4.>?ti||||tiBƒ@|idƒB||_	C||_D||_Gt
|_Ht
|_It
|_Jh|_Ktƒ|_Lt
|_Mt
|_Nd|_Od|_Pt
|_Qd|_Rd|_Uh|_Vt
|_Wd|_Y|i|tdƒZ|i ƒ[|i|tdƒ\|i!ƒ]y&^|i|tdƒ_|i"ƒWn
`anXey.f|i#t$ƒ|_%g|i#t&ƒ|_'Wn¤hi|i#ti(ƒ|_%j|i)ti*|i%ƒk|i+ti*|i%ƒm|i#ti(ƒ|_'n|i)t,dƒ|i'ƒo|i+t,dƒ|i'ƒnXr|i#ti-ƒ|_.s|i#ti-ƒ|_/t|i0ƒwd|i%>d|i'>Bd|i.>Bd|i/>B}~|i2ddƒ|i3ddƒ€|i4d|ƒ‚|i|td	ƒƒ|i5ƒˆ|i6ƒŠ|it
j	ot‹t7|iƒ|_Œ|ii8dƒ|i9|iƒŽ|i:dƒ|i;|iƒ}|i=|ƒn“|i>ƒ–|i?ƒ—|i@ƒštAiBd
ƒo›|iC|iDƒƒn|iEƒ}	ž|	iGƒdjoŸ|	iHdƒn |iI|	ƒ£|iJtKiLƒ¥|iMdƒ§tNiO||iPdƒƒ³|t
j	ot´|iQƒ}µ|iS|iQƒƒ}
·|
iUƒ|iUƒjp|
iGƒ|iGƒjo¸|iI|
ƒnnº|iVƒd
S(sÎ
        Constructor
        
        Arguments
        
            dbs -- reference to the debug server object
            
            fn -- name of the file to be opened (string). If it is None,
                a new (empty) editor is opened
            
            parent -- parent widget (viewmanager) of this editor (QWidget)
            
            name -- name of this editor (string or QString)
            
            flags -- window flags
        isismodificationChanged(bool)scursorPositionChanged(int,int)smodificationAttempted()s#FFAA00is(marginClicked(int, int, Qt::ButtonState)sAutomaticEOLConversioni,s¬<b>A Source Editor Window</b><p>This window is used to display and edit a Python source file.  You can open as many of these as you like. The name of the file is displayed in the window's titlebar.</p><p>In order to set breakpoints just click in the space between the line numbers and the fold markers. If you press the Shift-key while clicking in this space, you are presented with a dialog to enter a breakpoint condition.</p>N(Ws
QextScintillas__init__sselfsparentsnamesflagssQtsWDestructiveClosessetUtf8sdbssfnsfileNamesvmsNones
lastHighlightslastErrorMarkerslastCurrMarkersbreakssQStringListscondHistoryslexersencodingsapiLanguageslastModifiedsfileInfoszoomsinReopenPromptsmacrosscurMacros	recordingsconnectsSIGNALshandleModificationChangedshandleCursorPositionChangedshandleModificationReadOnlysmarkerDefines	IconBreaks
breakpoints
IconCBreakscbreakpointsCirclessetMarkerForegroundColorsredssetMarkerBackgroundColorsQColors
Backgroundscurrentlines	errorlinessetLineMarkerColourssmargin1MaskssetMarginWidthssetMarginSensitivityssetMarginMarkerMaskshandleMarginClickedssetMargin0and2s	QFileInfos
setCachingsreadFilesgotoLinesgetExtensionsexts	bindLexerssetTextDisplayssetAutoCompletionssetCallTipssPreferencess	getEditorsconvertEolsseolModessizeHintsshsheights	setHeightsresizessetFocusPolicysQWidgetsStrongFocuss_updateReadOnlys
QWhatsThissaddstrUtf8ssizesreqs	boundedTosbndswidthsinitContextMenu(sselfsdbssfnsparentsnamesflagssmargin1Masksreqsextsshsbnd((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys__init__.s– 

 
1




5cs÷¼¿Àh|_Átƒ|_Ã|iƒ|_Ä|iƒ|_Å|iƒ|_	Ç|ii
ttă|i
dƒ|iƒ|id<Ê|ii
ttƒÌ|i
dƒ|iƒ|id<Í|ii
|i
dƒÏ|iƒ|id<Ð|iiƒÑ|ii
ttƒÓ|i
dƒ|iƒ|id<Ô|ii
ttƒÖ|i
dƒ|iƒ|id<×|ii
ttį|i
dƒ|iƒÙ|iiƒÚ|ii
ttƒÛ|i
dƒ|iƒÜ|ii
ttƒÝ|i
d	ƒ|iƒÞ|ii
ttĈ|i
d
ƒ|iƒ|id
<á|ii
ttċ|i
dƒ|i ƒ|id<ä|ii
|i
dƒæ|i!ƒ|id
<ç|ii
|i
dƒé|i"ƒ|id<ê|iiƒë|ii
|i
dƒ|i#ƒì|ii
|i
dƒ|i$ƒí|ii
|i
dƒ|i%ƒî|iiƒï|ii
|i
dƒ|i	ƒ|id<ñ|ii
|i
dƒò|i&ƒó|ii
|i
dƒõ|i'ƒ|id<ö|iiƒ÷|ii
|i
dƒø|i(ƒù|ii
|i
dĜ|i)Ğ|iiğ|ii
|i
dƒ|iƒ|id<þ|iiƒÿ|ii
|i
dƒ|iƒ|id<|iiƒ|ii
tt*ƒ|i
dƒ|i+ƒ|iiƒ|ii
tt,ƒ|i
dƒ|i-ƒ|id<|ii
tt.ƒ	|i
dƒ|i/ƒ
|iiƒ|ii
tt0ƒ|i
dƒ|i1ƒ
|ii
tt0ƒ|i
dƒ|i2ƒ|id <|i3|it4d!ƒ|i5ƒd"S(#s?
        Private method used to setup the context menu
        sUndosRedosRevert to last saved statesRevertsCutsCopysPastesIndentsUnindentsComments	UncommentsStream Comments
StreamCommentsBox Comments
BoxCommentsSelect to braces
Select allsDeselect alls	LanguagessAutocomplete from DocumentsAutocomplete from APIssacAPIsSet/Reset breakpoints!Set/Change conditional breakpointsChecksShowsClosesSaves
Save As...sPrintsPrint SelectionsPrintSels
aboutToShow()N(6sselfsmenuIdss
QPopupMenusmenusinitContextMenuCheckss
checksMenusinitContextMenuShowsshowMenusinitContextMenuLanguagess
languagesMenus
insertItemsQIconSetsIconEditUndostrUtf8sundosIconEditRedosredosrevertToUnmodifiedsinsertSeparatorsIconEditCutscutsIconEditCopyscopys
IconEditPastespastesIconEditIndentsindentLineOrSelectionsIconEditUnindentsunindentLineOrSelectionsIconEditCommentscommentLineOrSelectionsIconEditUncommentsuncommentLineOrSelectionsstreamCommentLineOrSelectionsboxCommentLineOrSelectionsselectToMatchingBraceshandleSelectAllshandleDeselectAllsautoCompleteFromDocumentsautoCompleteFromAPIsshandleToggleBreakpointshandleToggleCBreakpoints	IconCloseshandleContextClosesIconFileSaveshandleContextSavesIconFileSaveAsshandleContextSaveAss	IconPrints	printFilesprintSelectionsconnectsSIGNALshandleShowContextMenu(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysinitContextMenu¼s‚"""""""""+


++""cs[tƒ}|i|idƒ|iƒ|i|idƒ|iƒ|SdS(sK
        Private method used to setup the Checks context sub menu.
        s	Syntax...sIndentations...N(s
QPopupMenusmenus
insertItemsselfstrUtf8shandleSyntaxCheckshandleTabnanny(sselfsmenu((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysinitContextMenuCheckss
cs£ !tƒ}#|i|idƒ|iƒ$|i|idƒ|iƒ|_&|i|idƒ|iƒ|_	)|i
|tdƒ|iƒ+|SdS(sI
        Private method used to setup the Show context sub menu.
        sCode metrics...sCode coverage...sProfile data...s
aboutToShow()N(
s
QPopupMenusmenus
insertItemsselfstrUtf8shandleCodeMetricsshandleCodeCoveragescoverageMenuItemshandleProfileDatasprofileMenuItemsconnectsSIGNALshandleShowShowMenu(sselfsmenu((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysinitContextMenuShows$$csN-01tƒ}5|idƒdf|idƒdf|idƒdf|idƒdf|id	ƒd
f|idƒdf|id
ƒdf|idƒdf|idƒdf|idƒdf|idƒdfg|_Cd}ExP|iDE]B}F|i|d|iƒ}G|i
||ƒI|d7}qúWK|SdS(sN
        Private method used to setup the Languages context sub menu.
        sC/C++scppsC#scssHTMLshtmlsIDLsidlsJavasjavas
JavaScriptsjssPHPsphpsPyrexspyxsPythonspysSQLssqlsXMLsxmliiN(s
QPopupMenusmenusselfstrUtf8ssupportedLanguagessidxslangs
insertItemshandleLanguagesidssetItemParameter(sselfslangsidxsmenusid((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysinitContextMenuLanguages-sÒ	
	cs%MTU|i|i|dƒdS(s¦
        Private method to handle the selection of a lexer language.
        
        Arguments
        
            idx -- index of the lexer language (int)
        iN(sselfssetLanguagessupportedLanguagessidx(sselfsidx((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleLanguageMscs4W^_|i|ƒb|iƒc|iƒdS(s¨
        Private method to set a lexer language.
        
        Arguments
        
            language -- language (extension) of the desired lexer (string)
        N(sselfs	bindLexerslanguagessetAutoCompletionssetCallTips(sselfslanguage((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssetLanguageWs
csNepqtii|ƒ\}}t|idƒou|dSnw|SdS(sð
        Private method to get the fileextension without a leading '.'.
        
        Arguments
        
            fname -- filename (string)
            
        Returns
        
            extension of the filename (string)
        s.iN(sosspathssplitextsfnamesdummysexts
startswith(sselfsfnamesdummysext((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgetExtensiones
cs_y€|ddgjo2‚dkl}ƒ||ƒ|_„d|_nc…|ddddd	d
dgjo2†dkl}‡||ƒ|_ˆd
|_n‰|djo2Šdkl}‹||ƒ|_Œd|_nÊ|djo2Ždkl}||ƒ|_d|_nˆ‘|djo2’dkl}
“|
|ƒ|_”d|_nF•|djo2–dk	l	}—||ƒ|_˜d|_n™|djoYšy2›dk
l
}
œ|
|ƒ|_d|_Wnžtj
oŸdSnXn› |ddd d!d"d#d$d%d&d'd(d)d*d+gjoY£y2¤d,kl}¥||ƒ|_¦d-|_Wn§tj
o¨dSnXnªdS­d.t
|iiƒƒ}®tiii|ƒ\}}¯|oR°tid/|ƒ}	±t|	d0tt
|	d1ƒƒƒ}²|ii|ƒn³|i|iƒ´|iitiid2ƒ·|ddgjon¹|iitid3ƒƒº|ii tid4ƒƒ»|ii!tid5ƒƒ¼|ii"t#i$ƒnc½|ddddd	d
dddddgjo˜¿|ii tid6ƒƒÀ|ii%tid7ƒƒÁy Â|ii&tid8ƒƒWnÃt'j
o
ÄnXÅ|ii"t#i(t#i)BƒnšÆ|ddd d!d"d#d$d%d&d'd(d)d*d+gjo_Éy<Ê|ii%tid7ƒƒË|ii*tid9ƒƒWnÌt'j
o
ÍnXndS(:s½
        Private slot to set the correct lexer depending on language.
        
        Arguments
        
            language -- language (extension) of the desired lexer (string)
        spyspyx(sLexerPythonsPythonscppscxxsccscshppshhsh(sLexerCPPsC++scs(sLexerCSharpsC#sidl(sLexerIDLsIDLsjava(s	LexerJavasJavasjs(sLexerJavaScripts
JavaScriptssql(sLexerSQLsSQLNshtmlshtmsaspsshtmlscsssphpsphp3sphp4sphtmlsxmlsxslsxsltsdtdsdocbook(s	LexerHTMLsHTMLs/eric3/Scintilla/%s/style0/fonts,iis/eric3/ScintillasPythonBadIndentationsPythonFoldCommentsPythonFoldStringsCppFoldCommentsCppFoldPreprocessors
CppFoldAtElsesHtmlCaseSensitiveTags(+slanguagesLexerPythonsselfslexersapiLanguagesLexerCPPsLexerCSharpsLexerIDLs	LexerJavasLexerJavaScriptsLexerSQLsImportErrors	LexerHTMLsstrskeysPreferencessPrefsssettingss	readEntrysfontstrsoksQStringListssplitsfdescsQFontsintsfontssetDefaultFontssetLexersreadSettingsssetIndentationWarnings	getEditorssetFoldCommentss
setFoldQuotesssetAutoIndentStyles
QextScintillas
AiMaintainssetFoldPreprocessors
setFoldAtElsesAttributeErrors	AiOpenings	AiClosingssetCaseSensitiveTags(sselfslanguagesLexerIDLsfontstrs	LexerHTMLskeysLexerCPPsfontsoksfdescs	LexerJavasLexerCSharpsLexerJavaScriptsLexerSQLsLexerPython((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys	bindLexerys†%:
&1 !: csÏÖ×|iSdS(s“
        Public method to retrieve a reference to the lexer object.
        
        Returns
        
            the lexer object (Lexer)
        N(sselfslexer(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgetLexerÏscs)Ùãä|itdƒ||fƒdS(sõ
        Private slot to handle the modificationChanged signal. 
        
        It emits the signal modificationStatusChanged with parameters
        m and self.
        
        Arguments
        
            m -- modification status
        smodificationStatusChangedN(sselfsemitsPYSIGNALsm(sselfsm((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleModificationChangedÙs
cs3æòó|itdƒ|i|d|fƒdS(s@
        Private slot to handle the cursorPositionChanged signal. 
        
        It emits the signal cursorChanged with parameters fileName, 
        line and pos.
        
        Arguments
        
            line -- line number of the cursor
            
            pos -- position in line of the cursor
        s
cursorChangediN(sselfsemitsPYSIGNALsfileNameslinespos(sselfslinespos((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleCursorPositionChangedæsc	s\õøùtitú|idƒû|idƒü|idƒýtþtÿddƒdS(sJ
        Private slot to handle the modificationAttempted signal.
        sModification of Read Only filesUYou are attempting to change a read only file. Please save to a different file first.s&OKiiÿÿÿÿN(sQMessageBoxswarningsNonesselfstrUtf8(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleModificationReadOnlyõscs	|iSdS(s¥
        Public method to return the name of the file being displayed.
        
        Returns
        
            filename of the displayed file (string)
        N(sselfsfileName(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgetFileNamescsJ|itj	o-|i|iƒ}|i|dƒndS(sK
        Public method to make sure that the highlight is visible.
        iN(sselfs
lastHighlightsNones
markerLineslinenos
ensureVisible(sselfslineno((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshighlightVisiblescsT|tjo|t|_|itj	o |i|iƒn!t|_"|itj	o#|i|iƒn$t|_n¿&|o\'|itj	o(|i|iƒn)|i|d|i	ƒ|_*|i|_nY,|itj	o-|i|iƒn.|i|d|i
ƒ|_/|i|_dS(sÿ
        Public method to highlight (or de-highlight) a particular line.
        
        Arguments
        
            line -- line number to highlight
            
            error -- flag indicating whether the error highlight should be used
        iN(slinesNonesselfs
lastHighlightslastErrorMarkersmarkerDeleteHandleslastCurrMarkerserrors	markerAdds	errorlinescurrentline(sselfslineserror((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys	highlights$	
cs;189|itj	o:|i|iƒSn<dSdS(s›
        Public method to return the position of the highlight bar.
        
        Returns
        
            line number of the highlight bar
        iN(sselfs
lastHighlightsNones
markerLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgetHighlightPosition1scsƒ>JKxõ|iiƒDK]*\}\}}L||joMPnqWP|ti	@p|ti
@oQdSnR|ti@oS|i}	n
U|i}	V|i|d|	ƒ}Wt}Z|ti@oñ[|o\t|ƒ}]d}
no_t|iƒdjo
`d}n
bd}dti|idƒf|idƒg|i|dƒ\}}
i|
p
|iƒoj|i|ƒkdSn'm|ii|ƒn|ii|ƒnp||f|i|<q|ii|i |d|ƒrdSu|ti	@p|ti
@ovdSny|ti@o{|}||o}t|ƒ}~d}
n¢€|tjo
d}n‚|ii"|ƒ}ƒ|djo „|ii|ƒ…d}n‡ti|idƒ‰|idƒŠ|i|dƒ\}}
Œ|
odSnÊŽ|iƒoF|i|=‘|i|ƒ’|i|d|iƒ}“t}nt–|ii|ƒ—|ii|ƒ˜|tjo=š|i|=›|i|ƒœ|i|d|iƒ}nž|ii|i |d|ƒŸ||f|i|< |ii|i |d|ƒn=¤|i|=¥|i|ƒ¦|ii|i |d|ƒdS(	sW
        Public method to set, delete and change a breakpoint.
        
        Arguments
        
            line -- line number of the breakpoint
            
            state -- mouse button state (only Qt.LeftButton and Qt.ShiftButton
                is accepted)
                
            newcond -- new breakpoint condition
        NiiiÿÿÿÿsConditional BreakpointsEnter condition for breakpointss
Breakpoint(#sselfsbreakssitemsshandleslnscondslinesstatesQtsRightButtons	MidButtonsShiftButtonscbreakpointsmarkers
breakpoints	markerAddsNonesnewcondsQStringsokslenscondHistoryscurrsQInputDialogsgetItemstrUtf8sisEmptysmarkerDeleteHandlesremovesprependsdbssremoteBreakpointsfileNamesoldconds	findIndex(sselfslinesstatesnewcondshandleslnsoldcondscurrscondsmarkersok((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleBreakpoint>s‚	


		






 #
csK¨«¬|iƒ\}}­|d7}®ti}¯|i||ƒdS(sX
        Private slot to handle the 'Set/Reset breakpoint' context menu action.
        iN(sselfsgetCursorPositionslinesindexsQts
LeftButtonsstateshandleBreakpoint(sselfsindexslinesstate((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleToggleBreakpoint¨s

csR±´µ|iƒ\}}¶|d7}·titiB}¸|i||ƒdS(sd
        Private slot to handle the 'SetChange conditional breakpoint' context menu action.
        iN(	sselfsgetCursorPositionslinesindexsQts
LeftButtonsShiftButtonsstateshandleBreakpoint(sselfsindexslinesstate((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleToggleCBreakpoint±s

cs—º½¾|ii|iƒ¿xq|iiƒD¿]]\}\}}À|i	|ƒd}Á||f|i|<Â|ii
|i|d|ƒq/WdS(sK
        Private slot to send all breakpoints to the debug server.
        iN(sselfsdbssclearFileBreakpointssfileNamesbreakssitemsshandleslinesconds
markerLinesremoteBreakpoint(sselfscondshandlesline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssendAllBreakpointsºscsTÄÇÈtƒ}Étiƒiƒ}Ê|i|ƒoúË|i|i	dƒƒÌti
tiƒÍti
ƒÎ|iƒ}Ï|tj	o Ð|itii|ƒƒnÒ|i|i	dƒƒÓ|i|ƒ}ÔtiƒÕ|o Ö|i|i	dƒdƒnØ|i|i	dƒdƒnÚ|i|i	dƒdƒdS(s0
        Public slot to print the text.
        sPrinting...sNonamesPrinting completediÐsError while printingsPrinting abortedN(sPrintersprintersqApps
mainWidgets	statusBarssbssetupsselfsmessagestrUtf8ssetOverrideCursorsQts
waitCursors
processEventssgetFileNamesfnsNones
setDocNamesosspathsbasenames
printRangesressrestoreOverrideCursor(sselfsprintersresssbsfn((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys	printFileÄs"
 

  c	sËÜßà|iƒoEáti||idƒâ|idƒãtitiƒädSnç|iƒ\}}}}étƒ}êtiƒiƒ}ë|i|ƒoì|i|idƒƒítitiƒîtiƒï|iƒ}ð|tj	o ñ|itii|ƒƒnó|i|idƒƒô|i|||ƒ}õti!ƒö|o ÷|i|idƒdƒnù|i|idƒdƒnû|i|id	ƒdƒdS(
s9
        Public slot to print the selected text.
        sPrint Selections,There is no selected text, printing aborted.NsPrinting...sNonamesPrinting completediÐsError while printingsPrinting aborted("sselfshasSelectedTextsQMessageBoxswarningstrUtf8sOksNoButtonsgetSelectionsfromLines	fromIndexstoLinestoIndexsPrintersprintersqApps
mainWidgets	statusBarssbssetupsmessagessetOverrideCursorsQts
waitCursors
processEventssgetFileNamesfnsNones
setDocNamesosspathsbasenames
printRangesressrestoreOverrideCursor(	sselfstoIndexsprintersfromLinestoLinesress	fromIndexssbsfn((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysprintSelectionÜs.
 

  cs2ýt|ƒ}yt|dƒ}WnG	ti|i|idƒ
|idƒi	|ƒƒ‚nXt
iti
ƒti|iƒƒ\}|_tidƒo
tidƒo|itidƒƒ}n|i|ƒ|iƒt
iƒ|iiƒ|_dS(s›
        Public slot to read the text from a file.
        
        Arguments
        
            fn -- filename to read from (string or QString)
        srbs	Open Files'The file <b>%1</b> could not be opened.sTabForIndentationsConvertTabsOnLoadsTabWidthN(sstrsfnsopensfsQMessageBoxscriticalsselfsvmstrUtf8sargsQApplicationssetOverrideCursorsQts
waitCursors	UtilitiessdecodesreadstxtsencodingsPreferencess	getEditors
expandtabsssetTextsclosesrestoreOverrideCursorsfileInfoslastModified(sselfsfnsfstxt((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysreadFileýs 
!$

cs3()t|ƒ}*tit|iƒƒ|iƒ}-|i	ƒ}.t}/|t
ijo
0d}nA1|t
ijo
2d}n!3|t
ijo
4d}n5|o]6t|ƒt|ƒjo07|t|ƒ|jo8||7}nn:||7}n=tidƒob>d|}?y@ti|ƒWn
ACnXDyEti||ƒWn
FHnXnKy:Lt|dƒ}M|i|ƒN|iƒOdSWnbPtj
oS}Qti||i dƒR|i d	ƒi!|ƒi!t|ƒƒƒTd
SnXdS(sã
        Public slot to write the text to a file.
        
        Arguments
        
            fn -- filename to write to (string or QString)
            
        Returns
        
            flag indicating success
        s
s
s
sCreateBackupFiles%s~swbis	Save Files4The file <b>%1</b> could not be saved.<br>Reason: %2iN("sstrsfns	UtilitiessencodesunicodesselfstextsencodingstxtseolModesmsNoneseols
QextScintillas
EolWindowssEolUnixsEolMacslensPreferencess	getEditorsbfnsossremovesrenamesopensfswritesclosesIOErrorswhysQMessageBoxscriticalstrUtf8sarg(sselfsfnsfsmseolsbfnstxtswhy((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys	writeFilesF$	





+c	svVde|o|iƒofdtfSnht}i|p
|itjoœjtdƒ}kti	|l|idƒ~|t|idƒ|dƒ}|i
ƒo,‚t|ƒiƒ}ƒ|iƒoP„|idddƒidddƒ}…|iƒo†|i|ƒnn‡t|ƒiƒo|ˆti|‰|idƒŠ|idƒi|ƒŒ|id	ƒ|id
ƒtdƒ}Ž|odtfSnntti|ƒƒ}‘|}n“dtfSn
•|i}—|i|ƒoW˜||_™|idƒš|idƒ›|i |iƒœ|i!tjoC|i"|iƒ}ž|i#|ƒ¡|i$ƒ¢|i%ƒn¤|i&tjp|o,¥t|iƒ|_&¦|i&i'dƒn§|i&i(ƒ|_(¨|i)ƒ©|tj	oª|i*i+|ƒn«|i,t-dƒ|ifƒ¬d|ifSn®dtfSdS(
s‡
        Public slot to save the text to a file.
        
        Arguments
        
            saveas -- flag indicating a 'save as' action
            
            path -- directory to save the file in (string or QString)
            
        Returns
        
            tuple of two values (boolean, string) giving a success indicator and
            the name of the saved file
        isszPython Files (*.py);;Pyrex Files (*.pyx);;IDL Files (*.idl);;C Files (*.c);;C++ Files (*.cpp);;C++/C Header Files (*.h);;C# Files (*.cs);;HTML Files (*.html);;PHP Files (*.php);;ASP Files (*.asp);;CSS Files (*.css);;XML Files (*.xml);;XSL Files (*.xsl);;DTD Files (*.dtd);;Java Files (*.java);;JavaScript Files (*.js);;SQL Files (*.sql);;Docbook Files (*.docbook);;All Files (*)s	Save Files(*is)s"The file <b>%1</b> already exists.s
&Overwrites&AbortseditorSavedN(.ssaveassselfs
isModifiedsNonesnewNamesfileNamesQStringsselectedFiltersQFileDialogsgetSaveFileNamespathstrUtf8sfnsisNulls	QFileInfos	extensionsextsisEmptyssectionsexsappendsexistssQMessageBoxswarningsargsabortsstrsQDirsconvertSeparatorss	writeFilessetModifiedssetReadOnlys
setCaptionslexersgetExtensions	bindLexerssetAutoCompletionssetCallTipssfileInfos
setCachingslastModifiedssendAllBreakpointssvmsaddToRecentListsemitsPYSIGNAL(	sselfssaveasspathsnewNamesextsabortsselectedFiltersfnsex((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssaveFileVs`		'



cs°¼½|id|ƒSdS(sp
        Public slot to save a file with a new name.
        
            saveas -- flag indicating a 'save as' action
            
            path -- directory to save the file in (string or QString)
            
        Returns
        
            tuple of two values (boolean, string) giving a success indicator and
            the name of the saved file
        iN(sselfssaveFilespath(sselfspath((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys
saveFileAs°scs¿ÆÇ|i|dƒdS(s 
        Public slot to ensure, that the specified line is visible.
        
        Arguments
        
            line -- line number to make visible
        iN(sselfsensureLineVisiblesline(sselfsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys
ensureVisible¿scs5ÉÔÕ|djoÖ|i|d|ƒndS(s
        Private slot to handle the marginClicked signal.
        
        Arguments
        
            margin -- id of the clicked margin
            
            line -- line number pf the click
            
            state -- mouse button state
        iN(smarginsselfshandleBreakpointslinesstate(sselfsmarginslinesstate((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleMarginClickedÉscs‡ØÛÜ|itjp|iiƒoÝdSnß|iƒ\}}à|iƒá|i|ii	ƒ|dƒâ|i
ƒdS(s:
        Public slot to comment the current line.
        Ni(sselfslexersNonescanBlockCommentsgetCursorPositionslinesindexsbeginUndoActionsinsertAts
commentStrs
endUndoAction(sselfsindexsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyscommentLineØs$
csÎäêë|itjp|iiƒoìdSnî|iiƒ}ï|iƒ\}}ó|i|ƒi	|ƒoôdSn÷|i
ƒø|i|d||iƒƒù|i
ƒú|iƒdS(s³
        Public slot to uncomment the current line.
        
        This happens only, if it was commented by using
        the commentLine() or commentSelection() slots
        Ni(sselfslexersNonescanBlockComments
commentStrsgetCursorPositionslinesindexstexts
startsWithsbeginUndoActionssetSelectionslengthsremoveSelectedTexts
endUndoAction(sselfs
commentStrsindexsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys
uncommentLineäs$

csüÿ|itjp|iiƒodSn|iƒodSn|iiƒ}	|iƒ\}}}}
|djo|d}n

|}|iƒx4t
||dƒD]}|i||dƒqÌW|i|d|ddƒ|iƒdS(s?
        Public slot to comment the current selection.
        Nii(sselfslexersNonescanBlockCommentshasSelectedTexts
commentStrsgetSelectionslineFroms	indexFromslineTosindexTosendLinesbeginUndoActionsrangeslinesinsertAtssetSelections
endUndoAction(sselfsindexTosendLineslineFromslineTos	indexFroms
commentStrsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyscommentSelectionüs $	
	csÞ|itjp|iiƒo dSn"|iƒo#dSn%|iiƒ}(|iƒ\}}}})|djo*|d}n
,|}.|iƒ0xùt
||dƒD0]á}3|i|ƒi|ƒo
4qÌn6|i|d||iƒƒ7|iƒ:||jo4;||iƒ8}<|djo
=d}nn@||jo4A||iƒ8}B|djo
Cd}nnqÌWF|i||||ƒG|iƒdS(s¹
        Public slot to uncomment the current selection. 
        
        This happens only, if it was commented by using
        the commentLine() or commentSelection() slots
        Nii(sselfslexersNonescanBlockCommentshasSelectedTexts
commentStrsgetSelectionslineFroms	indexFromslineTosindexTosendLinesbeginUndoActionsrangeslinestexts
startsWithssetSelectionslengthsremoveSelectedTexts
endUndoAction(sselfsindexTosendLineslineFromslineTos	indexFroms
commentStrsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysuncommentSelections6$	
	

cs8ILM|iƒoN|iƒnP|iƒdS(sO
        Public slot to comment the current line or current selection.
        N(sselfshasSelectedTextscommentSelectionscommentLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyscommentLineOrSelectionIscs8RXY|iƒoZ|iƒn\|iƒdS(sÈ
        Public slot to uncomment the current line or current selection.
        
        This happens only, if it was commented by using
        the commentLine() or commentSelection() slots
        N(sselfshasSelectedTextsuncommentSelections
uncommentLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysuncommentLineOrSelectionRscs·^ab|itjp|iiƒocdSne|iiƒ}f|iƒ\}}h|i	ƒi|i
|d||i|ƒƒj|i
|d|dƒk|iƒdS(sA
        Public slot to stream comment the current line.
        Nsendsstarti(
sselfslexersNonescanStreamCommentsstreamCommentStrs
commentStrsgetCursorPositionslinesindexsbeginUndoActionsinsertAts
lineLengths
endUndoAction(sselfs
commentStrsindexsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysstreamCommentLine^s$
#cs„mpq|itjp|iiƒordSnt|iƒoudSnw|iiƒ}z|iƒ\}}}}{|djo#||d}}|i
|ƒ}n|}€|}‚|iƒƒ|i|d||ƒ„|i|d||ƒ‡|djoFˆ||diƒ7}‰||joŠ||diƒ7}nn‹|i||||ƒŒ|iƒdS(s?
        Public slot to comment the current selection.
        Niisendsstart(sselfslexersNonescanStreamCommentshasSelectedTextsstreamCommentStrs
commentStrsgetSelectionslineFroms	indexFromslineTosindexTosendLines
lineLengthsendIndexsbeginUndoActionsinsertAtslengthssetSelections
endUndoAction(sselfsindexTosendLineslineFromslineTos	indexFromsendIndexs
commentStr((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysstreamCommentSelectionms*$
		
cs8Ž‘’|iƒo“|iƒn•|iƒdS(sV
        Public slot to stream comment the current line or current selection.
        N(sselfshasSelectedTextsstreamCommentSelectionsstreamCommentLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysstreamCommentLineOrSelectionŽscs—š›|itjp|iiƒoœdSnž|iiƒ}Ÿ|iƒ\}}¡|i	ƒ¢|i
d||i|ƒƒ£|i
|d|ddƒ¤|i
|d|dĴ|i
d|dƒ¦|i
|d|dƒ§|iƒdS(s>
        Public slot to box comment the current line.
        Ns
sendiismiddlesstart(
sselfslexersNones
canBoxComments
boxCommentStrs
commentStrsgetCursorPositionslinesindexsbeginUndoActionsinsertAts
lineLengths
endUndoAction(sselfs
commentStrsindexsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysboxCommentLine—s$
csŽ©¬­|itjp|iiƒo®dSn°|iƒo±dSn³|iiƒ}¶|iƒ\}}}}·|djo¸|d}n
º|}¼|i
ƒ¾x8t||dƒD¾] }¿|i|d|dƒqÌWÂ|id||i|ƒƒÃ|i|d|ddƒÄ|id|dƒÅ|i|d|dƒÈ|i|d|ddƒÉ|iƒdS(	sC
        Public slot to box comment the current selection.
        Niismiddles
sendsstarti(sselfslexersNones
canBoxCommentshasSelectedTexts
boxCommentStrs
commentStrsgetSelectionslineFroms	indexFromslineTosindexTosendLinesbeginUndoActionsrangeslinesinsertAts
lineLengthssetSelections
endUndoAction(sselfsindexTosendLineslineFromslineTos	indexFroms
commentStrsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysboxCommentSelection©s($	
	cs8ËÎÏ|iƒoÐ|iƒnÒ|iƒdS(sS
        Public slot to box comment the current line or current selection.
        N(sselfshasSelectedTextsboxCommentSelectionsboxCommentLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysboxCommentLineOrSelectionËsicsgÔÝÞ|iƒ\}}ß|iƒà|oá|i|ƒnã|i|ƒä|iƒdS(s(
        Private method to indent or unindent the current line. 
        
        Arguments
        
            indent -- flag indicating an indent operation
                If the flag is true, an indent operation is performed.
                Otherwise the current line is unindented.
        N(sselfsgetCursorPositionslinesindexsbeginUndoActionsindentsunindents
endUndoAction(sselfsindentsindexsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys
indentLineÔs	

cs׿ïð|iƒoñdSnô|iƒ\}}}}ö|djo÷|d}n
ù|}û|iƒýxLt	||dƒDý]4}þ|oÿ|i|ƒn|i|ƒq‹W|i
ƒdS(s-
        Private method to indent or unindent the current selection. 
        
        Arguments
        
            indent -- flag indicating an indent operation
                If the flag is true, an indent operation is performed.
                Otherwise the current line is unindented.
        Nii(sselfshasSelectedTextsgetSelectionslineFroms	indexFromslineTosindexTosendLinesbeginUndoActionsrangeslinesindentsunindents
endUndoAction(sselfsindentsindexToslineFromslineTos	indexFromslinesendLine((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysindentSelectionæs		
	
cs>|iƒo	|idƒn|idƒdS(sM
        Public slot to indent the current line or current selection
        iN(sselfshasSelectedTextsindentSelections
indentLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysindentLineOrSelectionscs>
|iƒo|idƒn|idƒdS(sP
        Public slot to unindent the current line or current selection.
        iN(sselfshasSelectedTextsindentSelections
indentLine(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysunindentLineOrSelection
scs|i|dƒdS(sŽ
        Public slot to jump to the beginning of a line.
        
        Arguments
        
            line -- line number to go to
        iN(sselfssetCursorPositionsline(sselfsline((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgotoLinescs~ #%|itj	o &|iitiidƒn)|iƒ,|iƒ/|i	ƒ2|i
ƒ3|iƒdS(sB
        Public slot to read the settings into our lexer.
        s/eric3/ScintillaN(sselfslexersNonesreadSettingssPreferencessPrefsssettingsssetLineMarkerColoursssetMargin0and2ssetTextDisplayssetAutoCompletionssetCallTips(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysreadSettings s 



cs’589|itidƒ:|iƒ;|itidƒ<|iƒ=|itidƒ>|iƒ?|itidƒ@|iƒdS(s@
        Private method to set the line marker colours.
        s
CurrentMarkersErrorMarkerN(sselfssetMarkerForegroundColorsPreferencessgetEditorColourscurrentlinessetMarkerBackgroundColors	errorline(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssetLineMarkerColours5s


csÔBEG|itidƒƒJtidƒ}K|id|ƒL|o,M|idddtidƒdƒnO|iddƒRtidƒoS|itidƒƒnU|it	i
ƒd	S(
s>
        Private method to configure margins 0 and 2.
        sMarginsFontsLinenoMarginis s8sLinenoWidths
FoldingMarginsFoldingStyleN(sselfssetMarginsFontsPreferencessgetEditorOtherFontss	getEditorslinenoMarginssetMarginLineNumbersssetMarginWidths
setFoldings
QextScintillasNoFoldStyle(sselfslinenoMargin((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssetMargin0and2Bs
,cssWZ[|itidƒƒ\|itidƒƒ]|itidƒƒ^|itidƒƒ_|itidƒƒ`|itidƒƒa|i	tidƒƒb|i
tidƒƒc|itidƒƒdtid	ƒoe|it
iƒng|it
iƒh|itid
ƒƒj|itidƒƒl|itidƒƒd
S(s?
        Private method to configure the text display.
        sTabWidthsIndentWidthsTabForIndentations
TabIndentssIndentationGuidessShowWhitespacesShowEOLsAutoIndentationsBraceHighlightings
MatchingBracesNonmatchingBracesEOLModeN(sselfssetTabWidthsPreferencess	getEditorssetIndentationWidthssetIndentationsUseTabss
setTabIndentsssetBackspaceUnindentsssetIndentationGuidesssetWhitespaceVisibilityssetEolVisibilitys
setAutoIndentssetBraceMatchings
QextScintillasSloppyBraceMatchsNoBraceMatchssetMatchedBraceForegroundColorsgetEditorColours setUnmatchedBraceForegroundColors
setEolMode(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssetTextDisplayWs csnqr|itidƒƒt|itidƒƒv|itidƒƒx|ii|iƒ}y|i
|ƒz|tjo#{|it
iƒ|d|_n&~|itidƒƒ€d|_‚tidƒoƒ|itidƒƒn†|id	ƒd
S(sJ
        Private method to configure the autocompletion function.
        sAutoCompletionCaseSensitivitysAutoCompletionReplaceWordsAutoCompletionShowSingleisAutoCompletionSourceisAutoCompletionEnabledsAutoCompletionThresholdiÿÿÿÿN(sselfs setAutoCompletionCaseSensitivitysPreferencess	getEditorssetAutoCompletionReplaceWordssetAutoCompletionShowSinglesvmsgetAPIssapiLanguagesapissetAutoCompletionAPIssNonessetAutoCompletionSources
QextScintillasAcsDocumentsacAPIssetAutoCompletionThreshold(sselfsapi((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssetAutoCompletionnscs‹ˆ‹Œtidƒo^|ii|iƒ}Ž|i|ƒ|iti	dƒƒ‘|i
tidƒƒn“|itƒdS(sD
        Private method to configure the calltips function.
        sCallTipsEnabledsCallTipsBackgroundsCallTipsVisibleN(sPreferencess	getEditorsselfsvmsgetAPIssapiLanguagesapissetCallTipsAPIsssetCallTipsBackgroundColorsgetEditorColourssetCallTipsVisiblesNone(sselfsapi((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyssetCallTipsˆsc	s&•œ|iƒož|i}Ÿ|tjo |idƒ}n¡ti|i¢|idƒ£|idƒi	|ƒ¥|idƒ|idƒtddƒ}¦|djoD§|iƒ\}}¨|o©|ii||ƒnª|Sn«|djo¬dSnn®dSdS(	s¼
        Private method to check dirty status and open a message window.
        
        Returns
        
            flag indicating successful reset of the dirty flag (boolean)
        sNonames
File Modifieds'The file <b>%1</b> has unsaved changes.s&Saves&AbortiiN(sselfs
isModifiedsfileNamesfnsNonestrUtf8sQMessageBoxswarningsvmsargsresssaveFilesoksnewNames
setEditorName(sselfsoksnewNamesressfn((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys
checkDirty•s"*
cs2°³´x"´|iƒoµ|iƒqWdS(sH
        Private method to revert back to the last saved state.
        N(sselfs
isModifiedsundo(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysrevertToUnmodified°scs0»ÂÃ|iƒÄ|ii|iƒƒdS(s§
        Private method implementing the context menu event.
        
        Arguments
        
            evt -- the context menu event (QContextMenuEvent)
        N(sevtsacceptsselfsmenuspopups	globalPos(sselfsevt((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyscontextMenuEvent»s
csÚÆÉÊ|ii|id|iƒƒË|ii|id|iƒƒÌ|ii|id|iƒƒÍ|ii|id|iƒƒÎ|ii|id|iƒƒÏ|ii|id|iƒƒÐ|ii|id|iƒƒÑ|ii|id|iƒÒ|i	o|i	i
d	ƒo>Ó|ii|id
dƒÔ|ii|iddƒn;Ö|ii|id
d
ƒ×|ii|idd
ƒØ|itj	oœÙ|ii|id|ii
ƒƒÚ|ii|id|ii
ƒƒÛ|ii|id|iiƒƒÜ|ii|id|iiƒƒnuÞ|ii|idd
ħ|ii|idd
Ĉ|ii|idd
ć|ii|idd
ƒdS(sS
        Private slot handling the aboutToShow signal of the context menu.
        sSavesUndosRedosRevertsCutsCopysPrintSelsacAPIs.pysCheckisShowisComments	Uncomments
StreamComments
BoxCommentN(sselfsmenussetItemEnabledsmenuIdss
isModifiedsisUndoAvailablesisRedoAvailableshasSelectedTextsacAPIsfileNamesendswithslexersNonescanBlockCommentscanStreamComments
canBoxComment(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleShowContextMenuÆs.#######  !&&&*csãæç|iiƒ}è|iƒo|i|iƒƒoé|idƒ}në|iƒ}í|t	j	ouît
ii|ƒd}ï|ii|iðt
iid|ƒƒñ|ii|iòt
iid|ƒƒn3ô|ii|idƒõ|ii|idƒdS(sD
        Private slot called before the show menu is shown.
        iis
%s.profiles%s.coverageN(sselfsvms
getProjectsprojectsisOpensisProjectSourcesgetFileNames
getMainScriptsfnsNonesosspathssplitextsbasenamesshowMenussetItemEnabledsprofileMenuItemsisfilescoverageMenuItem(sselfsprojectsbasenamesfn((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleShowShowMenuãs&csC÷úû|iƒ\}}ü|oý|ii||ƒndS(sD
        Private slot handling the save context menu entry.
        N(sselfssaveFilesoksnewNamesvms
setEditorName(sselfsnewNamesok((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleContextSave÷s
csCÿ|iƒ\}}|o|ii||ƒndS(sG
        Private slot handling the save as context menu entry.
        N(sselfs
saveFileAssoksnewNamesvms
setEditorName(sselfsnewNamesok((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleContextSaveAsÿs
cs
|ii|ƒdS(sE
        Private slot handling the close context menu entry.
        N(sselfsvmscloseEditor(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleContextClosescs
|idƒdS(sK
        Private slot handling the select all context menu action.
        iN(sselfs	selectAll(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleSelectAll
scs|idƒdS(sM
        Private slot handling the deselect all context menu action.
        iN(sselfs	selectAll(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleDeselectAllscsa|iƒodSn t|iƒ|_!|iiƒ"|ii|iƒdS(sL
        Private method to handle the tabnanny context menu action.
        N(sselfs
checkDirtysTabnannyDialogsvmstabnannysshowsstartsfileName(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleTabnannyscsa$'(|iƒo)dSn+t|iƒ|_,|iiƒ-|ii|iƒdS(sP
        Private method to handle the syntax check context menu action.
        N(sselfs
checkDirtysSyntaxCheckerDialogsvmssyntaxchecksshowsstartsfileName(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleSyntaxCheck$scs[/23|iƒo4dSn6tƒ|_7|iiƒ8|ii|iƒdS(sP
        Private method to handle the code metrics context menu action.
        N(sselfs
checkDirtysCodeMetricsDialogscodemetricssshowsstartsfileName(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleCodeMetrics/scsµ:=>|iƒo?dSnA|iiƒ}B|iƒo|i|iƒoC|idƒ}n
E|i}Gt
ƒ|_H|iiƒI|ii
||iƒdS(sQ
        Private method to handle the code coverage context menu action.
        Ni(sselfs
checkDirtysvms
getProjectsprojectsisOpensisProjectSourcesfileNames
getMainScriptsfnsPyCoverageDialogscodecoveragesshowsstart(sselfsprojectsfn((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleCodeCoverage:s#csµKNO|iƒoPdSnR|iiƒ}S|iƒo|i|iƒoT|idƒ}n
V|i}Xt
ƒ|_Y|iiƒZ|ii
||iƒdS(sU
        Private method to handle the show profile data context menu action.
        Ni(sselfs
checkDirtysvms
getProjectsprojectsisOpensisProjectSourcesfileNames
getMainScriptsfnsPyProfileDialogsprofiledatasshowsstart(sselfsprojectsfn((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleProfileDataKs#csŠ`hitƒ}jx*|iiƒDj]}k|i|ƒq%Wl|iƒmti	|i
dƒo|i
dƒp|dd|ƒSdS(sû
        Private method to select a macro name from the list of macros.
        
        Returns
        
            Tuple of macro name and a flag, indicating, if the user pressed ok or
            canceled the operation. (QString, boolean)
        s
Macro NamesSelect a macro name:iN(sQStringListsqssselfsmacrosskeyssssappendssortsQInputDialogsgetItemstrUtf8(sselfsssqs((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgetMacroName`s	
csUruv|iƒ\}}w|o|iƒox|it|ƒiƒndS(s3
        Public method to execute a macro.
        N(sselfsgetMacroNamesnamesoksisEmptysmacrossstrsplay(sselfsoksname((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleRunMacrorscsNz}~|iƒ\}}|o|iƒo€|it|ƒ=ndS(s2
        Public method to delete a macro.
        N(sselfsgetMacroNamesnamesoksisEmptysmacrossstr(sselfsoksname((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleDeleteMacrozscs¥‚…†tiƒ}‡ti|ˆ|idƒ‰|tŠ|idƒƒ}Œ|i	ƒodSny8t
t|ƒdƒ}‘|i
ƒ}’|iƒWnc“tj
oT”ti|•|idƒ–|idƒi|ƒ˜|idƒƒ™dSnX›t|ƒdjoQœti||idƒž|id	ƒi|ƒ |idƒƒ¡dSn£t|d
|ƒ}¤||i|diƒ<dS(s<
        Public method to load a macro from a file.
        sMacro files (*.macro)sLoad macro fileNsrbsError loading macros+The macro file <b>%1</b> could not be read.sOKis$The macro file <b>%1</b> is corrupt.ii(sPreferencessgetConfigDirs	configDirsQFileDialogsgetOpenFileNamesselfstrUtf8sNonesfnamesisEmptysopensstrsfs	readlinesslinessclosesIOErrorsQMessageBoxscriticalsargslensQextScintillaMacrosmacrosmacrossstrip(sselfsfsmacroslinessfnames	configDir((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleLoadMacro‚s4	c
s®¦©ªtiƒ}¬|iƒ\}	}­|p
|	iƒo®dSn¯t|	ƒ}	±t	dƒ}²ti|³|i
dƒ´|tµ|i
dƒ|dƒ}·|iƒo¸dSnºt|ƒiƒ}»|iƒoP¼|idddƒidddƒ}½|iƒo¾|i|ƒnn¿t|ƒiƒovÀti|Á|i
d	ƒÂ|i
d
ƒi|ƒÄ|i
dā|i
dƒtdƒ}Æ|oÇdSnnÈtti|ƒƒ}ÊycËt|d
ƒ}Ì|id|	t i!fƒÍ|it|i"|	i#ƒƒƒÎ|i$ƒWncÏt%j
oTÐti&|Ñ|i
dƒÒ|i
dƒi|ƒÔ|i
dƒƒÕdSnXdS(s:
        Public method to save a macro to a file.
        NssMacro files (*.macro)sSave macro fileis(*is)s
Save macros(The macro file <b>%1</b> already exists.s
&Overwrites&Abortswbs%s%ssError saving macros.The macro file <b>%1</b> could not be written.sOK('sPreferencessgetConfigDirs	configDirsselfsgetMacroNamesnamesoksisEmptysstrsQStringsselectedFiltersQFileDialogsgetSaveFileNamestrUtf8sNonesfnames	QFileInfos	extensionsextssectionsexsappendsexistssQMessageBoxswarningsargsabortsQDirsconvertSeparatorssopensfswritesosslinesepsmacrosssavesclosesIOErrorscritical(
sselfsoksfsextsabortsselectedFiltersexsfnames	configDirsname((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleSaveMacro¦sL	'
#cs¼×ÚÛ|iowÜti|Ý|idƒÞ|idƒß|idƒ|idƒƒ}à|djoá|iƒnãdSn
åd|_çt|ƒ|_è|ii	ƒdS(s9
        Public method to start macro recording.
        sStart Macro Recordings"Macro recording is already active.s
&Start news&CanceliNi(
sselfs	recordingsQMessageBoxswarningstrUtf8sresshandleStopMacroRecordingsQextScintillaMacroscurMacrosstartRecording(sselfsres((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleStartMacroRecording×s
!cs°êíî|ioïdSnñ|iiƒòd|_ôti|idƒõ|idƒƒ\}}÷|o|i	ƒoø|i|i
t|ƒ<nút|_dS(s8
        Public method to stop macro recording.
        NisMacro RecordingsEnter name of the macro:(
sselfs	recordingscurMacrosendRecordingsQInputDialogsgetTextstrUtf8snamesoksisEmptysmacrossstrsNone(sselfsoksname((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyshandleStopMacroRecordingêscs|ii|ƒSdS(s
        Public method called when the window gets closed.
        
        This overwritten method redirects the action to our
        ViewManager.closeEditor, which in turn calls our closeIt
        method.
        
        Arguments
        
            alsoDelete -- ignored
        N(sselfsvmscloseEditor(sselfs
alsoDelete((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysclosescsti|dƒdS(sS
        Public method called by the viewmanager to finally get rid of us.
        iN(s
QextScintillasclosesself(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyscloseItsc	s¶|iiidƒ|idƒ|io5|itj	o%|iiƒi	ƒi
|ii	ƒƒo- d|_!|idƒi|i
ƒ}#|iƒo$|i|idƒƒn&tit'|idƒ|(|idƒ|idƒ)tddƒ}*d|_+|djoV,|i|i
ƒ-|idƒ.|idƒ/|itd	ƒ|i
fƒn2|iiƒ|_n4ti||ƒd
S(sž
        Public method called when the editor receives focus.
        
        Arguments
        
            event -- the event object (QFocusEvent)
        iisAThe file <b>%1</b> has been changed while it was opened in eric3.sB<br><b>Warning:</b> You will loose your changes upon reopening it.sFile changeds&OKs&ReopeniÿÿÿÿseditorSavedN(sselfsvmseditorActGrps
setEnableds_updateReadOnlysinReopenPromptsfileInfosNoneslastModifiedstoStringscomparestrUtf8sargsfileNamesmsgs
isModifiedsappendsQMessageBoxswarningsressreadFilessetModifiedsgotoLinesemitsPYSIGNALs
QextScintillasfocusInEventsevent(sselfseventsmsgsres((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysfocusInEvents(F#cs 6=>|iiidƒdS(s›
        Public method called when the editor loses focus.
        
        Arguments
        
            event -- the event object (QFocusEvent)
        iN(sselfsvmseditorActGrps
setEnabled(sselfsevent((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys
focusOutEvent6scs/@GH|i|7_Iti||ƒdS(s
        public method used to increase the zoom factor.
        
        Arguments
        
            zoom -- zoom factor increment
        N(sselfszooms
QextScintillaszoomIn(sselfszoom((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyszoomIn@scs/KRS|i|8_Tti||ƒdS(s
        public method used to decrease the zoom factor.
        
        Arguments
        
            zoom -- zoom factor decrement
        N(sselfszooms
QextScintillaszoomOut(sselfszoom((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyszoomOutKscs)V]^||__ti||ƒdS(s‹
        Public method used to zoom to a specific zoom factor.
        
        Arguments
        
            zoom -- zoom factor
        N(szoomsselfs
QextScintillaszoomTo(sselfszoom((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyszoomToVscsahi|iSdS(s‰
        Public method used to retrieve the current zoom factor.
        
        Returns
        
            zoom factor (int)
        N(sselfszoom(sself((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysgetZoomascsSkxy|iƒtijoz|ii||ƒn{ti|||ƒSdS(sQ
        Private method called to filter an event.
        
        Arguments:
        
            object -- object, that generated the event (QObject)
            
            event -- the event, that was generated by object (QEvent)
            
        Returns:
        
            flag indicating if event was filtered out
        N(	seventstypesQEventsMouseButtonPresssselfsvmseventFilters
QextScintillasobject(sselfsobjectsevent((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pyseventFilterks
csä}Š‹|itjoŒdSnt|iƒiƒodpd}Ž|o||iƒjodSn|i}‘|o’dt	|ƒ}n“|i
|ƒ”|i|ƒ•|it
dƒ||fƒdS(sÀ
        Private method to update the readOnly information for this editor. 
        
        If bForce is True, then updates everything regardless if
        the attributes have actually changed, such as during
        initialization time.  A signal is emitted after the
        caption change.

        Arguments

            bForce -- 1 to force change, 0 to only update and emit
                signal if there was an attribute change.
        Niis%s (ro)scaptionChanged(sselfsfileNamesNones	QFileInfos
isWritablesreadOnlysbForces
isReadOnlyscapsstrssetReadOnlys
setCaptionsemitsPYSIGNAL(sselfsbForcesreadOnlyscap((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys_updateReadOnly}s
'
(Xs__name__s
__module__s__doc__sNones__init__sinitContextMenusinitContextMenuCheckssinitContextMenuShowsinitContextMenuLanguagesshandleLanguagessetLanguagesgetExtensions	bindLexersgetLexershandleModificationChangedshandleCursorPositionChangedshandleModificationReadOnlysgetFileNameshighlightVisibles	highlightsgetHighlightPositionshandleBreakpointshandleToggleBreakpointshandleToggleCBreakpointssendAllBreakpointss	printFilesprintSelectionsreadFiles	writeFilessaveFiles
saveFileAss
ensureVisibleshandleMarginClickedscommentLines
uncommentLinescommentSelectionsuncommentSelectionscommentLineOrSelectionsuncommentLineOrSelectionsstreamCommentLinesstreamCommentSelectionsstreamCommentLineOrSelectionsboxCommentLinesboxCommentSelectionsboxCommentLineOrSelections
indentLinesindentSelectionsindentLineOrSelectionsunindentLineOrSelectionsgotoLinesreadSettingsssetLineMarkerColoursssetMargin0and2ssetTextDisplayssetAutoCompletionssetCallTipss
checkDirtysrevertToUnmodifiedscontextMenuEventshandleShowContextMenushandleShowShowMenushandleContextSaveshandleContextSaveAsshandleContextCloseshandleSelectAllshandleDeselectAllshandleTabnannyshandleSyntaxCheckshandleCodeMetricsshandleCodeCoverageshandleProfileDatasgetMacroNameshandleRunMacroshandleDeleteMacroshandleLoadMacroshandleSaveMacroshandleStartMacroRecordingshandleStopMacroRecordingsclosescloseItsfocusInEvents
focusOutEventszoomInszoomOutszoomTosgetZoomseventFilters_updateReadOnly(((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pysEditorsªŽV 
V



j		
! 9Z
1	!	"			


$1"

(s__doc__sresossqtexts
QextScintillasQextScintillaPrintersQextScintillaMacrosqtsIcons.FileIconssIconFilePythonsDebugger.DebugIconss	IconBreaks
IconCBreaksChecks.TabnannyDialogsTabnannyDialogsChecks.SyntaxCheckerDialogsSyntaxCheckerDialogsUI.CodeMetricsDialogsCodeMetricsDialogsUI.PyCoverageDialogsPyCoverageDialogsUI.PyProfileDialogsPyProfileDialogsEditorIconssIcons.Iconss	IconClosesPrintersPreferencess	UtilitiessEditor(s
QextScintillasPyProfileDialogsPrinters
IconCBreaks	IconBreaks	IconClosesEditorsSyntaxCheckerDialogsPyCoverageDialogs	UtilitiessPreferencessresCodeMetricsDialogsIconFilePythonsQextScintillaPrintersTabnannyDialogsossQextScintillaMacro((s?/home/detlev/Development/Python/Eric/eric3/QScintilla/Editor.pys?s"



Table of Contents

This document was automatically generated by HappyDoc version 2.1