; cBc@sdkZdkZdkZdkZdklZdkZdkZdkl Z dk l Z l Z dk lZdkZdkZdZdZdZde>de>Bde>BZdZd eifd YZd e fd YZd eiie ee fdYZdS(N(sStringIO(sndiff(s EditorViewsCloseableViewMix(sPythonStyledTextCtrlMixiiicCstiti||}x|iD]\}}}}}|djo ti ||||||q%|djoti d|||q%|djoti d|||q%|djoti d|||q%td| q%Wd Sd S( s: Copy of ndiff.fcompare, works on lines instread of files sreplacesdeletes-sinserts+sequals s unknown tag iN(sndiffsSequenceMatchers IS_LINE_JUNKsasbscrunchers get_opcodesstagsalosahisblosbhis fancy_replacesdumps ValueError(sasbsalosbhiscrunchersahisblostag((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysndiff_lcompares      s DiffPSOutcBstZdZRS(NcCs|ddddfjo|ii|n|ddjo$|ii|iidtnk|ddjo$|ii|iidtn6|ddjo$|ii|iidtndS(Ns+s-s s?ii( sssselfsoutputsAddTexts MarkerAdds GetLineCountsuniqueFile2MrksuniqueFile1Mrks newToBothMrk(sselfss((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pyswrite1s$$(s__name__s __module__swrite(((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys DiffPSOut0ssDiffViewcBstZdZRS(NcCs |iSdS(N(sselfsreport(sselfspage((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys genCustomPage?s(s__name__s __module__s genCustomPage(((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysDiffView>ssPythonSourceDiffViewcBsttZdZdZdZdZdZdZddZd Z d Z d Z d Z d Z dZRS(NsDiffsImages/Editor/Refresh.pngsImages/Shared/Previous.pngsImages/Shared/Next.pngc Csti}tiii|||dtiti Bt i||dt i|dt i||d|i|idff|idtddfd|i|idfd|i|idfd |iddffd |id tii|id d ti\}}}|it |||ti!\}}}|it"|||ti#\}}}|it$||||i%d t&tii'|||i(d |_)d|_*d |_+ti,djoti-ot.i/||_0nt&|_1g|_2dS(NsstyleisdiffssRefreshs-ssPrevious differencesNext differencesApply all changesiiisDiffs __WXGTK__(3swxsNewIdswxID_PYTHONSOURCEDIFFVIEWsstcsStyledTextCtrls__init__sselfsparents CLIP_CHILDRENs SUNKEN_BORDERsPythonStyledTextCtrlMixsCloseableViewMixs EditorViewsmodels OnRefreshs refreshBmpsclosingActionItemssNonesOnPrevsprevBmpsOnNextsnextBmpsOnApplyAllChangess SetMarginTypesSTC_MARGIN_SYMBOLsSetMarginWidths PreferencessSTCDiffRemovedMarkersmarkIdnts markBorders markCenters MarkerDefinesuniqueFile1MrksSTCDiffAddedMarkersuniqueFile2MrksSTCDiffChangesMarkers newToBothMrksSetMarginSensitivesTruesEVT_STC_MARGINCLICKs OnMarginClickstabNamesdiffWithscurrSearchLinesPlatformsedUseCustomSTCPaintEvtHandlersUtilssPaintEventHandlers paint_handlersactives lineIndex(sselfsparentsmodelsmarkIdnts markBorderswxID_PYTHONSOURCEDIFFVIEWs markCenter((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys__init__Hs2  n    cCsdkl}|it|i|ioti}zt |t_yMt |i i i}t ||iidi}t||Wn9ti\t_t_t_titinXWd|t_Xn|itdS(N(sopenExsrb(sExplorers.ExplorersopenExsselfs SetReadOnlysFalsesClearAllsdiffWithssyssstdoutssaveouts DiffPSOutsStringIOsmodelsdatas readlinesssrcsloadsdstsndiff_lcomparesexc_infos last_types last_valueslast_tracebacks linecaches checkcaches tracebacks print_excsTrue(sselfssrcsopenExssaveoutsdst((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys refreshCtrlos$     $ icCs]|i||i}|id|||djo|i|i|dndS(Niii( sselfsGotoLineslinenosGetFirstVisibleLinesvls LineScrollsoffsets SetCurrentPoss GetCurrentPos(sselfslinenosoffsetsvl((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysgotoLines    cCs"tioti||ndS(N(s PreferencessbraceHighLightsPythonStyledTextCtrlMixs OnUpdateUIsselfsevent(sselfsevent((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys OnUpdateUIs cCs|idS(N(sselfs refreshModel(sselfsevent((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys OnRefreshscCs0|idjo|i|i}ndS(Ni(sevents GetMarginsselfsLineFromPositions GetPositionsln(sselfseventsln((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys OnMarginClickscCs4|i|itd|_|i|iddS(Ni(sselfsMarkerPreviousscurrSearchLines maskMarkSetsgotoLine(sselfsevent((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysOnPrevs cCs4|i|itd|_|i|iddS(Ni(sselfs MarkerNextscurrSearchLines maskMarkSetsgotoLine(sselfsevent((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysOnNexts cCs|ii}|iom|ii|i}ti|dd||fo4ti|||ii |i d|i qndS(Ns Are you sure?sReplace %s with %s?sSource( sselfsmodelscheckLocalFilesfilenamesdiffWithsUtilss yesNoDialogsshutilscopyfilesloadsdeleteFromNotebookstabName(sselfseventsdiffWithsfilename((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysOnApplyAllChangess   (s__name__s __module__sviewNames refreshBmpsprevBmpsnextBmps__init__s refreshCtrlsgotoLines OnUpdateUIs OnRefreshs OnMarginClicksOnPrevsOnNextsOnApplyAllChanges(((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pysPythonSourceDiffViewBs '       (ssyss linecaches tracebacksshutils cStringIOsStringIOswxswx.stcs ExternalLibsndiffs EditorViewss EditorViewsCloseableViewMixsStyledTextCtrlssPythonStyledTextCtrlMixs PreferencessUtilssuniqueFile1MrksuniqueFile2Mrks newToBothMrks maskMarkSetsndiff_lcompares PseudoFiles DiffPSOutsDiffViewsstcsStyledTextCtrlsPythonSourceDiffView(s newToBothMrksCloseableViewMixsDiffViews Preferencess EditorViewsStringIOsUtilss tracebacksndiffs DiffPSOutssyss linecachesuniqueFile1MrksPythonSourceDiffViewsPythonStyledTextCtrlMixsuniqueFile2Mrksshutils maskMarkSetsndiff_lcompareswx((sT/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/DiffView.pys? s$