;ò ¼‹Bc/@s²dZdkZdkZdkZdkZdkZdkZdklZdk Zdk Z hdd<dd<ddZ?Z@ZAZBZCd eiDfd!„ƒYZEgiZed"ƒD]Zeeiƒƒqç[\ZFZGZHZIZJZKd#eiDfd$„ƒYZLd%„ZMd&„ZNd'„ZOd(„ZPd)„ZQd*„ZRd+„ZSd,„ZTd-„ZUd.„ZVd/eeiWd0ZXd1„ZYd2„ZZd3„Z[d4„Z\d5„Z]e^d6joÔei_ƒZ`eiaƒZbeicidebƒeieifd7ƒZgego7eihiiegd8ƒZgeihijegƒ o d9ZgqXnd9Zgeihikeihiiegd:ƒƒZleEemd;d<elƒZnzenioƒWdenipƒXndS(=sS Style editor for the wxStyledTextCtrl. Reads in property style definitions from a config file. Modified styled can be saved (and optionally applied to a given list of STCs) It can also maintain a Common definition dictionary of font names, colours and sizes which can be shared across multiple language style definitions. This is also used to store platform specific settings as fonts and sizes vary with platform. The following items are defined in the stc-styles.rc.cfg file. common.defs.msw - Common definition dictionary used on wxMSW common.defs.gtk - Common definition dictionary used on wxGTK common.defs.mac - Common definition dictionary used on wxMAC common.styleidnames - STC styles shared by all languages Each supported language defines the following groups: [] displaysrc - Example source to display in the editor braces - Dictionary defining the (line, column) for showing 'good' and 'bad' brace matching (both keys optional) keywords - Space separated list of keywords lexer - wxSTC constant for the language lexer styleidnames - Dictionary of language specific style numbers and names [style.] - The users current style values [style..default] - Default style values (can be reverted from) 0 or more predefined style groups or 'themes' [style..] Currently the following languages are supported: python, html, xml, cpp, text, props Other languages can be added by just defining the above settings for them in the config file (if wxSTC implements them). Use the initSTC function to initialise your wxSTC from a config file. N(s LayoutAnchorsiÿÿÿÿs SelectioniþÿÿÿsCaretiýÿÿÿsEdgesfores#888888ssizeisfacess----Language----sStyles specific to the languages----Standard----sStyles shared by all languagess----Settings----sProperties set by STC methodss----Common----s:User definable values that can be shared between languagess __WXMSW__smsws __WXGTK__sgtki s __WXMAC__smaci i/sSTCStyleEditDlgcBstZdZhddgd d:dd;d|dtidd<ƒdtid$d7ƒd dƒ|_?ti@dtAdd=d|dtid>d5ƒdtid?d@ƒd tiBƒ|_C|iCit|iCttttƒƒti@dtDddAd|dtidBd5ƒdtidCd@ƒd tiBƒ|_E|iEit|iEttttƒƒti@dtFddDd|dtidEdFƒdtidGd6ƒd tiBƒ|_G|iGit|iGttttƒƒti@dtHddHd|dtidBdIƒdtidJd6ƒd tiBƒ|_I|iIit|iIttttƒƒtiJiKdtLddKd|dtiddLƒdtidMdNƒd tiMƒ|_J|iJit|iJttttƒƒ|iJidOƒ|iJitiN|iOƒ|iJitiP|iOƒtiQd|dtiddPƒdtidQdQƒd tiRƒ|_S|iSit|iSttttƒƒti#dtTd dRddSd|dtidTdPƒdtidUdVƒd dƒ|_U|iUit|iUttttƒƒ|iUi&dWƒ|iUiti'|iVdtTƒti#dtWd dXddYd|dtiddPƒdtidUdVƒd dƒ|_X|iXit|iXttttƒƒ|iXi&dZƒ|iXiti'|iYdtWƒti,dtZd d[dd\d|iGdtiddƒdtid0d7ƒd dƒ|_[ti\dt]d d.dd]d|iGdtiddVƒdtid-d^ƒd dƒ|_^|i^i&d_ƒ|i^iti_|i`dt]ƒtiadgdtbdd`d|iGdtid%daƒdtidbdƒd ddcd.ƒ|_cti,dtdd dddded|iIdtiddƒdtid6d7ƒd dƒ|_etiadgdtfddfd|iIdtidd%ƒdtidgdƒd ddcd.ƒ|_gti#dthd dhddid|iIdtidgd%ƒdtid<dƒd dƒ|_iti#dtjd dhddjd|iGdtidkdaƒdtid<dƒd dƒ|_kti#dtld dlddmd|iCdtidd-ƒdtidd-ƒd dƒ|_m|imiti'|indtlƒtiadgdtoddnd|iCdtidd<ƒdtiddƒd ddcd.ƒ|_pti#dtqd dhddod|iCdtidpd<ƒdtid<dƒd dƒ|_rti,dtsd dqddrd|iCdtidJdsƒdtidtd-ƒd dƒ|_tti\dtud duddvd|iCdtidwdxƒdtid-d-ƒd dƒ|_vti#dtwd dyddzd|iCdtidd1ƒdtidd-ƒd dƒ|_x|ixiti'|iydtwƒtiadgdtzdd{d|iCdtiddgƒdtiddƒd ddcd.ƒ|_{ti#dt|d dhdd|d|iCdtidpdgƒdtid<dƒd dƒ|_}ti~dtd d}dd~d|iEdtiddƒdtidJdJƒd dƒ|_€|i€it|i€ttttƒƒ|i€idƒti,dtd dqdd€d|iEdtid1dƒdtid6d-ƒd dƒ|_‚ti\dtƒd dudd‚d|iEdtid$dƒƒdtid-d-ƒd dƒ|_„ti\dt…d dudd„d|iEdtid$d0ƒdtid-d-ƒd dƒ|_†ti\dt‡d dudd…d|iEdtid$dƒdtid-d-ƒd dƒ|_ˆti\dt‰d dudd†d|iEdtid$d‡ƒdtid-d-ƒd dƒ|_Šti\dt‹d dˆdd‰d|iEdtidd‡ƒdtidgd-ƒd dƒ|_Œ|iŒiti_|idt‹ƒti\dtŽd dŠdd‹d|iEdtiddƒdtidgd-ƒd dƒ|_|iiti_|idtŽƒti\dt‘d dŒddd|iEdtidd0ƒdtidgd-ƒd dƒ|_’|i’iti_|i“dt‘ƒti\dt”d dŽddd|iEdtiddƒƒdtidgd-ƒd dƒ|_•|i•iti_|i–dt”ƒti\dt—d duddd|iCdtidwd‘ƒdtid-d-ƒd dƒ|_˜ti~dt™d d’dd“d|iCdtiddƒdtid”dJƒd dƒ|_š|išit|išttttƒƒti\dt›d dudd•d|iGdtidkdƒdtid-d-ƒd dƒ|_œti\dtd dudd–d|iIdtidgdƒdtid-d-ƒd dƒ|_ždS(—NsidsnamesSTCStyleEditDlgsparentsposi7i$ssizeiíiâsstylestitleiåiÇi©iiÿÿÿÿschoicessspeedsettingChi`ii|iisThe speed setting allows you to revert to one of the predefined style sets. This will overwrite your current settings when tha dialog is posted.s elementLbiiFi¯i€s¹Select a style here to edit it. Common definitions can be added and maintained here. A common definition is a property that can be shared between styles and special cased per platform.slabelsAddsaddCommonItemBtniÈiXisAdd new Common definitionsRemovesremoveCommonItemBtns%Remove the selected Common definitions(nothing selected)s styleDefSTixiss staticLine1i0i@i‡sStyles staticText6i8i(i s Style def:s staticText8s SpeedSetting:s staticText9i spanel3iÇi ixspanel4ilirspanel1iÊi±i•spanel2i²ipsstciàiÕi¿s~The style preview window. Click or move the cursor over a specific style to select the style for editing in the editors above.i§isOKsokBtni<iKisSave changes to the config filesCancels cancelBtns#Close dialog without saving changessFace:s staticText4s fixedWidthChkis Check this for Fixed Width fontssfaceCbiiesvaluesSize:s staticText7ssizeCbiPsoks sizeOkBtns faceOkBtnius ForegroundsfgColBtnsfgColCbs fgColOkBtnihsdefaults staticText3ii&s checkBox1s fgColDefCbiˆis BackgroundsbgColBtnsbgColCbs bgColOkBtnsText attributess staticBox2sText attribute flags.s staticText2i s taBoldDefCbis taItalicDefCbstaUnderlinedDefCbstaEOLfilledDefCbi\s EOL filleds taEOLfilledCbs UnderlinedstaUnderlinedCbsItalics taItalicCbsBoldstaBoldCbs bgColDefCbiOsColours staticBox1is faceDefCbs taSizeDefCb(ŸswxsDialogs__init__sselfswxID_STCSTYLEEDITDLGsprntsPointsSizes WANTS_CHARSsDEFAULT_DIALOG_STYLEs RESIZE_BORDERs stc_titles SetClientSizes SetAutoLayoutsTrues SetSizeHintssCentersBOTHsBindsEVT_SIZEsOnStcstyleeditdlgSizesChoices"wxID_STCSTYLEEDITDLGSPEEDSETTINGCHsspeedsettingChsSetConstraintss LayoutAnchorssFalses SetHelpTexts EVT_CHOICEsOnSpeedsettingchChoicesListBoxswxID_STCSTYLEEDITDLGELEMENTLBs elementLbs EVT_LISTBOXsOnElementlbListboxsButtons$wxID_STCSTYLEEDITDLGADDCOMMONITEMBTNsaddCommonItemBtnsSetToolTipStrings EVT_BUTTONsOnAddsharebtnButtons'wxID_STCSTYLEEDITDLGREMOVECOMMONITEMBTNsremoveCommonItemBtnsOnRemovesharebtnButtons StaticTextswxID_STCSTYLEEDITDLGSTYLEDEFSTsST_NO_AUTORESIZEs styleDefSTsSetFontsFontsstyle_font_sizesSWISSsNORMALsBOLDs StaticLineswxID_STCSTYLEEDITDLGSTATICLINE1s LI_HORIZONTALs staticLine1swxID_STCSTYLEEDITDLGSTATICTEXT6s staticText6swxID_STCSTYLEEDITDLGSTATICTEXT8s staticText8swxID_STCSTYLEEDITDLGSTATICTEXT9s staticText9sPanelswxID_STCSTYLEEDITDLGPANEL3s TAB_TRAVERSALspanel3swxID_STCSTYLEEDITDLGPANEL4spanel4swxID_STCSTYLEEDITDLGPANEL1spanel1swxID_STCSTYLEEDITDLGPANEL2spanel2sstcsStyledTextCtrlswxID_STCSTYLEEDITDLGSTCs SUNKEN_BORDERs EVT_LEFT_UPs OnUpdateUIs EVT_KEY_UPsContextHelpButtons BU_AUTODRAWscontextHelpButton1swxID_STCSTYLEEDITDLGOKBTNsokBtns OnOkbtnButtonswxID_STCSTYLEEDITDLGCANCELBTNs cancelBtnsOnCancelbtnButtonswxID_STCSTYLEEDITDLGSTATICTEXT4s staticText4sCheckBoxs!wxID_STCSTYLEEDITDLGFIXEDWIDTHCHKs fixedWidthChks EVT_CHECKBOXsOnFixedwidthchkCheckboxsComboBoxswxID_STCSTYLEEDITDLGFACECBsfaceCbswxID_STCSTYLEEDITDLGSTATICTEXT7s staticText7swxID_STCSTYLEEDITDLGSIZECBssizeCbswxID_STCSTYLEEDITDLGSIZEOKBTNs sizeOkBtnswxID_STCSTYLEEDITDLGFACEOKBTNs faceOkBtnswxID_STCSTYLEEDITDLGFGCOLBTNsfgColBtnsOnFgcolbtnButtonswxID_STCSTYLEEDITDLGFGCOLCBsfgColCbswxID_STCSTYLEEDITDLGFGCOLOKBTNs fgColOkBtnswxID_STCSTYLEEDITDLGSTATICTEXT3s staticText3swxID_STCSTYLEEDITDLGFGCOLDEFCBs fgColDefCbswxID_STCSTYLEEDITDLGBGCOLBTNsbgColBtnsOnBgcolbtnButtonswxID_STCSTYLEEDITDLGBGCOLCBsbgColCbswxID_STCSTYLEEDITDLGBGCOLOKBTNs bgColOkBtns StaticBoxswxID_STCSTYLEEDITDLGSTATICBOX2s staticBox2swxID_STCSTYLEEDITDLGSTATICTEXT2s staticText2swxID_STCSTYLEEDITDLGTABOLDDEFCBs taBoldDefCbs!wxID_STCSTYLEEDITDLGTAITALICDEFCBs taItalicDefCbs%wxID_STCSTYLEEDITDLGTAUNDERLINEDDEFCBstaUnderlinedDefCbs$wxID_STCSTYLEEDITDLGTAEOLFILLEDDEFCBstaEOLfilledDefCbs!wxID_STCSTYLEEDITDLGTAEOLFILLEDCBs taEOLfilledCbsOnTaeoffilledcbCheckboxs"wxID_STCSTYLEEDITDLGTAUNDERLINEDCBstaUnderlinedCbsOnTaunderlinedcbCheckboxswxID_STCSTYLEEDITDLGTAITALICCBs taItalicCbsOnTaitaliccbCheckboxswxID_STCSTYLEEDITDLGTABOLDCBstaBoldCbsOnTaboldcbCheckboxswxID_STCSTYLEEDITDLGBGCOLDEFCBs bgColDefCbswxID_STCSTYLEEDITDLGSTATICBOX1s staticBox1swxID_STCSTYLEEDITDLGFACEDEFCBs faceDefCbswxID_STCSTYLEEDITDLGTASIZEDEFCBs taSizeDefCb(sselfsprnt((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys _init_ctrlsis¸    *  3   !  3  $ $ ! 3 3* * * * *% 6!   !  3 3 !' 3!'!!!! 3 !' 3 3 3 3 !' 3 3 3 3 3 3 3 3  3  3  !!  3 3 3 c Csðd|_d||_d|_ttid|_|i|ƒ||_ ||_ d|_ d|_ g|_ h|_||_t|_hdd<d d<d tiitiƒiƒ| ƒqöW|i=i?dƒd}|iAiB|tiAiCƒ|iAiD|d ƒ|iAiE|tFƒ|iAiGtiAiH|iId tJƒ|iAiKtƒ|iAiLdƒ|iAiMtFƒ|iAiNtiAiOƒ|iAiPdƒ|iQƒ|iRƒtS|iTiUtiAiVdƒƒ\|_W|_X|iAiY|i7ƒ|iAiZƒ|iAi[|iAi\ƒƒ|iAi]|iAi\ƒƒ|i^ƒ|i_|i|if|i`dtaf|ib|i|if|icdtdf|ie|ifdtgf|ih|iidtjf|ik|ildtmf|in|iodtpf|i$|i%f|iqd trf|i |i!|isf|itd tufg|_v|iwdtFƒh|_xx_|ivD]T\} }} }| || |f|ix|<|iGti}|i~d |ƒ|idƒq„W|i€tiƒdS(NswxStyledTextCtrl Style Editors"wxStyledTextCtrl Style Editor - %siisisfores#888888ssizesfacesstyle.%sisidii,sbacksboldsitalics underlines eolfilleds disableDefssToggle defaults(‚sselfs stc_titles langTitlesstyle_font_sizesplatformSettingsswxsPlatforms _init_ctrlssparentslangs configFilesstylesstyleNumsnamessvaluess STCsToUpdatesFalses _blockUpdatesSystemSettingssGetFontsSYS_DEFAULT_GUI_FONTs GetFaceNamescommonPropDefssfgColCbs fgColOkBtns OnfgColRetsOnfgColComboboxsOnGotoCommonDefsbgColCbs bgColOkBtns OnbgColRetsOnbgColComboboxsfaceCbs faceOkBtns OnfaceRetsOnfaceComboboxssizeCbs sizeOkBtns OnsizeRetsOnsizeComboboxscombosokBtnsevtRetsevtCBsevtRDCs bindComboEvtssinitFromConfigsconfigs commonDefss styleIdNamessstylessstyleGroupNamesspredefStyleGroupssotherLangStyleGroupNamessotherLangStyleGroupss displaySrcslexerskeywordss braceInfoscurrSpeedSettingsgrpsspeedsettingChsAppends SetSelectionsmarginsstcs SetMarginTypesSTC_MARGIN_NUMBERsSetMarginWidthsSetMarginSensitivesTruesBindsEVT_STC_MARGINCLICKs OnMarginClickswxID_STCSTYLEEDITDLGSTCs SetUseTabss SetTabWidthsSetIndentationGuidess SetEdgeModesSTC_EDGE_BACKGROUNDs SetEdgeColumns setStylesspopulateStyleSelectors parseProps styleDictsgetsSTC_STYLE_DEFAULTsdefNamess defValuessSetTextsEmptyUndoBuffers SetCurrentPoss GetTextLengths SetAnchorspopulateCombosWithCommonDefssfgColBtns fgColDefCbswxID_STCSTYLEEDITDLGFGCOLDEFCBsbgColBtns bgColDefCbswxID_STCSTYLEEDITDLGBGCOLDEFCBstaBoldCbs taBoldDefCbswxID_STCSTYLEEDITDLGTABOLDDEFCBs taItalicCbs taItalicDefCbs!wxID_STCSTYLEEDITDLGTAITALICDEFCBstaUnderlinedCbstaUnderlinedDefCbs%wxID_STCSTYLEEDITDLGTAUNDERLINEDDEFCBs taEOLfilledCbstaEOLfilledDefCbs$wxID_STCSTYLEEDITDLGTAEOLFILLEDDEFCBs taSizeDefCbswxID_STCSTYLEEDITDLGTASIZEDEFCBs fixedWidthChks faceDefCbswxID_STCSTYLEEDITDLGFACEDEFCBsallCtrlss clearCtrlsschbIdMapsctrlschbspropswids EVT_CHECKBOXsOnDefaultCheckBoxsSetToolTipStringsCentersBOTH(sselfsparents langTitleslangs configFiles STCsToUpdateswidsokBtnschbsgrpsctrlspropscombosevtCBsevtRetsevtRDCsmargin((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys__init__rsf            6‹W"  -  ç  cCsNx8|iD]-\}}}}||jo||fSq q Wtd|ƒ‚dS(Ns PropNotFound(sselfsallCtrlssctrlschbspropswidsfindprops Exception(sselfsfindpropschbswidsctrlsprop((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysgetCtrlForPropÍs   scCsê|iƒ}|o9|ii|ƒ o|ii|ƒn||i |               cCs÷t|_zÝxÖ|D]Î\}}|o»|i|ƒ\}}|ddfjo“|\} } }||i } | it| ƒƒ| itidddƒƒ| i| ƒ| i|ƒ| i| ƒ|i| ƒ|i|ƒqá|djoF|\} }| i|ƒ| i| ƒ|i| ƒ|i|ƒqá|djoW|\} }} | i|ƒ| i| ƒ|i| ƒ| i| ƒ|i|ƒqá|dddd fjo,|i| ƒ|itƒ|i|ƒqáqqWWdt|_XdS( Nsforesbackissizesfacesboldsitalics underlines eolfilled(sTruesselfs _blockUpdatesitemssnamesvalsgetCtrlForPropsctrlschbscbtnstxtsbtns commonDefssrepvalsSetBackgroundColoursstrToColsSetForegroundColourswxsColoursEnables forceDisablesSetValuesdefaultscmbschksFalse(sselfsitemssdefaults forceDisableschbsbtnsnamesvalsctrlscmbscbtnsrepvalschkstxt((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys populateProp1sF          cCs%t|ƒdjo|d djSdS(Niis%((slensval(sselfsval((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysvalIsCommonDefVscCs»|i|itiijd|idjƒ|idjo8|iitƒ|idjo|i itƒqsn|i |i i ƒt|itiijƒ|i |i i ƒtƒdS(Ns disableDefsiiÿÿÿÿ(sselfs clearCtrlssstyleNumswxsstcsSTC_STYLE_DEFAULTs fgColDefCbsEnablesTrues bgColDefCbs populateProps defValuessitemssvaluessFalse(sself((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys populateCtrlsYscCsb|i|}t|ƒtdƒjodSnt|ƒdjo|ddjodSndSdS(Nissizeis#sforesface(sselfs commonDefss commonDefNamesvalstypeslen(sselfs commonDefNamesval((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysgetCommonDefPropTypeis  $cCso|iti|d|iƒƒ|iti|d|iƒƒ|iti |ƒ|i dƒ|i dƒdS(NsidsµSelect from list or click "ok" button on the right to change a manual entry, right double-click the drop down button to select Common definition in the Style Editor (if applicable)s Accept value( scombosBindswxs EVT_COMBOBOXs comboEvtMethsGetIdsbtns EVT_BUTTONs btnEvtMethsEVT_RIGHT_DCLICKsrdclickEvtMethsSetToolTipString(sselfscombosbtns btnEvtMeths comboEvtMethsrdclickEvtMeth((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys bindComboEvtsos  c Cs?t|_z%hdg<dg<dg<}|iiƒ|ijo\xY|iiƒD]D} |i | ƒ}||i d| |djodpdfƒqVWn|i i ƒ|ii ƒf\}}|i iƒ|iiƒx2|dD]&} |i i| ƒ|ii| ƒqëW|i i|ƒ|ii|ƒ|tjo|ii ƒ}ntiƒ}|id|ƒ|iƒ}|iƒ|ii ƒ}|iiƒx&||dD]} |ii| ƒq²W|ii|ƒ|i!i ƒ} |i!iƒx"|dD]} |i!i| ƒqW|i!i| ƒWdt#|_XdS(Nsforesfacessizes%%(%s)%ssdsssfixedWidthOnly($sTruesselfs _blockUpdates commonDefss elementLbs GetSelectionscommonDefsStartIdxskeysscommonsgetCommonDefPropTypespropsappendsfgColCbsGetValuesbgColCbscurrFgscurrBgsClears colCommonDefsAppendsSetValuesfixedWidthOnlysNones fixedWidthChkswxsFontEnumeratorsfontEnumsEnumerateFacenamess GetFacenamess fontNameListssortsfaceCbscurrFacessizeCbscurrSizesFalse( sselfsfixedWidthOnlyscurrFacescurrBgs commonDefsspropsfontEnums fontNameListscurrFgscommons colCommonDefscurrSize((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pyspopulateCombosWithCommonDefswsF !7$         c Cs0|iiƒ} | iƒh|_d}d}d} xÿ| D]÷\}}|t i i jo@|ii|dgdƒ|iidƒ|iiƒ}}nŒ|djo |djo(|ii|g||ƒ|d}nJ|djo,|ii|g|| dƒ| d} n|ii|ƒ||i||i ƒD]0\}}|i||ƒo|i|ƒqaqaW|o&tid|ddi|ƒƒn‰|i|dd!=|iƒ|iƒ|iiƒ}|ii|ƒ||iiƒjo|d}n|ii|tƒ|itƒdS(Nsstyle.%ss Aborted: s^ is still used in the styles of the following groups in the config file (stc-styles.rc.cfg): s iiþÿÿÿi(sselfslangsownGroups elementLbsGetStringSelectionscomDefsstylesssrchDctsupdatespredefStyleGroupssotherLangStyleGroupss matchListsitemssgrpNames findInStylessappendswxsLogErrorsjoins commonDefss setStylesspopulateCombosWithCommonDefss GetSelectionsselIdxsDeletesGetCounts SetSelectionsTruesOnElementlbListboxsNone( sselfseventsstylessgrpNames matchListssrchDctsownGroupscomDefsselIdx((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysOnRemovesharebtnButtonÚs*  &  cCsŽ|ii|iiƒƒ}|ii|ƒo|ii|i|t ƒn(|ii dt ƒ|i i d|ƒ|itƒ|iƒdS(NisStyle %d not defined, sorry.(sselfsstcs GetStyleAts GetCurrentPoss styleBefores styleIdNamesshas_keys elementLbsSetStringSelectionsTrues SetSelectionsFalses styleDefSTsSetLabelsOnElementlbListboxsNoneseventsSkip(sselfsevents styleBefore((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys OnUpdateUIøs  cCs |tiijo|iidƒog|id\}}|ii |dƒ|}|ii |ƒ}|djo|ii ||ƒqnx|tiijo|iidƒoA|id\}}|ii |dƒ|}|ii|ƒn|iidƒdSdS(Nsgoodiiÿÿÿÿsbad(sstyleswxsstcsSTC_STYLE_BRACELIGHTsselfs braceInfoshas_keyslinescolsPositionFromLinesposs BraceMatchs braceOppositesBraceHighlightsSTC_STYLE_BRACEBADs BraceBadLight(sselfsstyles braceOppositesposslinescol((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys checkBracess& &cCs%|iƒ|idƒ|iƒdS(Ni(sselfsLayoutsRefreshseventsSkip(sselfsevent((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysOnStcstyleeditdlgSizes  cCs$|iidtƒ|itƒdS(Ns Line numbers(sselfs elementLbsSetStringSelectionsTruesOnElementlbListboxsNone(sselfsevent((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys OnMarginClicks(9s__name__s __module__s__doc__s_custom_classess _init_ctrlss__init__sgetCtrlForPropseditProps setStyless updateStyles findInStylessrememberStyless restoreStylessFalses clearCtrlss populatePropsvalIsCommonDefs populateCtrlssgetCommonDefPropTypes bindComboEvtssNonespopulateCombosWithCommonDefsspopulateStyleSelectors getColourDlgs colDlgTitless editColPropsOnFgcolbtnButtonsOnBgcolbtnButtons editColTCProps OnfgColRetsOnfgColComboboxs OnbgColRetsOnbgColComboboxsOnTaeoffilledcbCheckboxsOnTaitaliccbCheckboxsOnTaboldcbCheckboxsOnTaunderlinedcbCheckboxsOnGotoCommonDefs OnfaceRetsOnfaceComboboxssetFaces OnsizeRetsOnsizeComboboxssetSizesOnElementlbListboxsOnDefaultCheckBoxs OnOkbtnButtonsOnCancelbtnButtonsOnCommondefsbtnButtonsOnSpeedsettingchChoicesOnFixedwidthchkCheckboxsOnAddsharebtnButtonsOnRemovesharebtnButtons OnUpdateUIs checkBracessOnStcstyleeditdlgSizes OnMarginClick(((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysSTCStyleEditDlgfsl  ÿ [       " %     * ,                    4 !        is CommonDefDlgcBs2tZd„Zddd„Zd„Zd„ZRS(NcCsƒtii|dtddd|dtiddƒdtid d ƒd tid d ƒ|i tiddƒƒti ddddgdt ddddddd|dtiddƒdtiddƒd ti ƒ |_ |i i|iƒtidtddddd|dtiddƒdtidd ƒd d!ƒ|_tidtdd"d|dtid#d$ƒdtid%d&ƒd d!d'd(ƒ|_|ii|iƒtidtdd)dd*d|dtidd+ƒdtid,d-ƒd d!ƒ|_|iiti|idtƒtidtdd.dd/d|dtid0d+ƒdtid,d-ƒd d!ƒ|_|iiti|i dtƒdS(1Nsidsnames CommonDefDlgsparentsposiŽiùssizeiÀiÜsstylestitlesCommon definitioni¸iÈschoicess Colour values Font faces Size valueslabels Property typesmajorDimensionis propTypeRBxspointii¨i\sNames staticBox1ili.is comDefNameTCii|i˜isvaluessOKsokBtni¤iPisCancels cancelBtni`(!swxsDialogs__init__sselfswxID_COMMONDEFDLGsprntsPointsSizesDEFAULT_DIALOG_STYLEs SetClientSizesRadioBoxswxID_COMMONDEFDLGPROPTYPERBXsRA_SPECIFY_COLSs propTypeRBxs SetSelections _propTypeIdxs StaticBoxswxID_COMMONDEFDLGSTATICBOX1s staticBox1sTextCtrlswxID_COMMONDEFDLGCOMDEFNAMETCs comDefNameTCsSetLabels _comDefNamesButtonswxID_COMMONDEFDLGOKBTNsokBtnsBinds EVT_BUTTONs OnOkbtnButtonswxID_COMMONDEFDLGCANCELBTNs cancelBtnsOnCancelbtnButton(sselfsprnt((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys _init_ctrls"sUiQQQQsicCsxd|_||_d|_||_|i|ƒhdd<dd<dd<|_ddf|_|i t i ƒdS(Nsisforeisfaceissize( sselfs _comDefNamesnames _propTypeIdxspropIdxs _init_ctrlssparentspropMapsresultsCenterswxsBOTH(sselfsparentsnamespropIdx((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys__init__4s     $cCs<|i|iiƒ|iiƒf|_|iti ƒdS(N( sselfspropMaps propTypeRBxs GetSelections comDefNameTCsGetValuesresultsEndModalswxsID_OK(sselfsevent((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys OnOkbtnButton@s(cCs#ddf|_|itiƒdS(Ns(sselfsresultsEndModalswxs ID_CANCEL(sselfsevent((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysOnCancelbtnButtonEs(s__name__s __module__s _init_ctrlss__init__s OnOkbtnButtonsOnCancelbtnButton(((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys CommonDefDlg!s  cCslt|ƒ\}}d|jo|itt|dƒƒnd|jo|itt|dƒƒndS(Nsforesback( s parsePropsstylesnamessvaluessstcsSetSelForegroundsTruesstrToColsSetSelBackground(sstcsstylesvaluessnames((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pyssetSelectionColourKs   cCs>t|ƒ\}}d|jo|it|dƒƒndS(Nsfore(s parsePropsstylesnamessvaluessstcsSetCaretForegroundsstrToCol(sstcsstylesvaluessnames((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pyssetCursorColourRs cCs>t|ƒ\}}d|jo|it|dƒƒndS(Nsfore(s parsePropsstylesnamessvaluessstcs SetEdgeColoursstrToCol(sstcsstylesvaluessnames((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys setEdgeColourWs cCs\titid|dd!dƒtid|dd!dƒtid|dd!dƒƒSdS(Ns0xiiiii(swxsColoursstringsatoisstrCol(sstrCol((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pysstrToCol\s cCs„dtitit|iƒƒdƒdƒtitit|iƒƒdƒdƒtitit|iƒƒdƒdƒfSdS(Ns#%s%s%si(sstringszfillsuppershexscolsRedsGreensBlue(scol((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pyscolToStrascCsF|djo#d|ti| dƒf|Snd||f|SdS(Nis style.%s.%s=issetting.%s.%d=(snumslangsstringszfillsstyle(snumsstyleslang((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys writePropfs #cCs^g}xD|D]<}|o/|i||o|d||p|ƒq q Wdi|ƒSdS(Ns:s,(sressnamessnamesappendsvaluessjoin(snamessvaluessressname((sZ/mnt/gmirror/ports/devel/boaconstructor/work/boa-constructor-0.4.4/Views/STCStyleEditor.pys writePropValls 3cCs|idƒ}g}h}xq|D]i}|idƒ}|i|diƒƒt |ƒdjod||d   !