³ò ^qFFc@s0dZddklZdefd„ƒYZdS(s This module documents a class that implements the popup menu item for changing the case of selected text. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright © 2005 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com iÿÿÿÿ(t ImageMenuItemtCasePopupMenuItemcBsDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s> This class creates the case menu item for the text editor. cCs1ddkl}ti||ƒ|i|ƒ|iƒ|iid|iƒ|_ |i id|iƒ|_ |i id|iƒ|_ |iid|iƒ|_|iid|iƒ|_|i id|iƒ|_|i id|iƒ|_|iid|iƒ|_|iiid|iƒ|_dS(sØ Initialize the menu item. @param self: Reference to the CasePopupMenuItem instance. @type self: A CasePopupMenuItem object. @param editor: Reference to the text editor. @type editor: An Editor object. iÿÿÿÿ(tmsg0009tactivates map-eventsfocus-in-eventN(ti18nRRt__init__t#_CasePopupMenuItem__init_attributest"_CasePopupMenuItem__set_propertiest&_CasePopupMenuItem__uppercase_menuitemtconnectt%_CasePopupMenuItem__popup_activate_cbt_CasePopupMenuItem__signal_id_1t&_CasePopupMenuItem__lowercase_menuitemt_CasePopupMenuItem__signal_id_2t&_CasePopupMenuItem__titlecase_menuitemt_CasePopupMenuItem__signal_id_3t%_CasePopupMenuItem__swapcase_menuitemt_CasePopupMenuItem__signal_id_4t&_CasePopupMenuItem__popup_map_event_cbt_CasePopupMenuItem__signal_id_5t_CasePopupMenuItem__signal_id_6t_CasePopupMenuItem__signal_id_7t_CasePopupMenuItem__signal_id_8t_CasePopupMenuItem__editorttextviewt(_CasePopupMenuItem__popup_focus_event_cbt_CasePopupMenuItem__signal_id_9(tselfteditorR((splugins/Case/PopupMenuItem.pyR's   c Csddkl}l}l}ddkl}ddkl}ddkl}l }l } |ƒ|_ |i i d| ƒ||_ |ƒ|_||ƒ|_||ƒ|_||ƒ|_||ƒ|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS(sê Initialize the menu item's data attributes. @param self: Reference to the CasePopupMenuItem instance. @type self: A CasePopupMenuItem object. @param editor: Reference to the text editor. @type editor: An Editor object. iÿÿÿÿ(tmsg0010tmsg0011tmsg0012(tmsg0013(tcreate_menuitem(tMenutImagetSTOCK_SORT_DESCENDINGtstockN(RRRRR t SCRIBES.utilsR!tgtkR"R#R$t_CasePopupMenuItem__imaget set_propertyRt_CasePopupMenuItem__menuRR RRtNoneR R RRRRRRR( RRRRRR R!R"R#R$((splugins/Case/PopupMenuItem.pyt__init_attributes?s,             cCs‘|i|iƒ|i|iƒ|ii|iƒ|ii|iƒ|ii|iƒ|ii|iƒ|i i o|i dt ƒndS(s” Define the properties of the menu item. @param self: Reference to the CasePopupMenuItem instance. @type self: A CasePopupMenuItem object. t sensitiveN( t set_imageR(t set_submenuR*tappendRR RRRt is_readonlyR)tFalse(R((splugins/Case/PopupMenuItem.pyt__set_properties`s cCs ||ijo|iiidƒnv||ijo|iiidƒnO||ijo|iiidƒn(||ijo|iiidƒntS(sP Handles callback when the "activate" signal is emitted. @param self: Reference to the CasePopupMenuItem instance. @type self: A CasePopupMenuItem object. @param menuitem: The popup menu's menuitem. @type menuitem: A gtk.MenuItem object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. t uppercaset lowercaset titlecasetswapcase(RRttriggermanagerttriggerR RRtTrue(Rtmenuitem((splugins/Case/PopupMenuItem.pyt__popup_activate_cbqs cCstS(sQ Handles callback when the "map-event" signal is emitted. @param self: Reference to the CasePopupMenuItem instance. @type self: A CasePopupMenuItem object. @param menuitem: The popup menu's menuitem. @type menuitem: A gtk.MenuItem object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. (R:(RR;tevent((splugins/Case/PopupMenuItem.pyt__popup_map_event_cbˆscCs|io-|ii|iƒo|ii|iƒn|io-|ii|iƒo|ii|iƒn|io-|ii|iƒo|ii|iƒn|io-|i i|iƒo|i i|iƒn|i o-|ii|i ƒo|ii|i ƒn|i o-|ii|i ƒo|ii|i ƒn|i o-|ii|i ƒo|ii|i ƒn|i o-|i i|i ƒo|i i|i ƒn|io3|iii|iƒo|iii|iƒn|io|iiƒn|io|iiƒn|io|iiƒn|i o|i iƒn|io|iiƒn|io|iiƒn|iƒ|`|`|`|` |`|`|`|`|` |` |` |` |`|`|`|`~d}tS(sÎ Handles callback when the "focus-in-event" signal is emitted. @param self: Reference to the CasePopupMenuItem instance. @type self: A CasePopupMenuItem object. @param textview: Reference to the editor's textview. @type textview: A ScribesTextView object. @param event: An event that occurs when the editor's view is focused. @type event: A gtk.Event object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. N(R Rthandler_is_connectedt disconnectR R RRRRRRRRRRRtdestroyR*R(R+R2(RRR=((splugins/Case/PopupMenuItem.pyt__popup_focus_event_cb›sP        #         ( t__name__t __module__t__doc__RRRR RR(((splugins/Case/PopupMenuItem.pyR"s  !   N(RER'RR(((splugins/Case/PopupMenuItem.pyss