ó C…#Wc@sÎdZddlZddlmZddlmZddlmZddlm Z ddl m Z m Z ddl mZdd lmZdd lmZdd lmZdad Zd efd„ƒYZdS(s Keyboard selection screen iÿÿÿÿN(trun(t InstallEngine(tINSTALL_LOGGER_NAME(tSystemConfiguration(t_tSCI_HELP(t BaseScreen(tListItem(t ScrollWindow(t WindowAreas /usr/bin/kbdtKeyboardScreencBsceZdZedƒZedƒZededƒfZdZdZ d„Z d„Z d„Z RS( s0 Allow user to select their keyboard layout tKeyboardsSelect your keyboard.s/%s/keyboard.txtis+/usr/share/lib/keytables/type_6/kbd_layoutscCs”tdkr"tjtdƒantt|ƒj|ƒd|_d|_ d|_ d|_ t j ƒj|_|jjdtdtƒd|_dS(Ns .sysconfigit class_typetnot_found_is_err(tLOGGERtNonetloggingt getLoggerRtsuperR t__init__tcurrent_layoutt current_namet current_indext scroll_regionRt get_instancetdoctget_descendantsRtTruetsc(tselftmain_win((s keyboard.pyR9s     c CsÁ|jdkrvtdg}t|ƒ}xL|jjƒD]8}|jdƒr7|jdƒdjƒd|_q7q7Wntt j dƒª}g}xš|j ƒjƒD]†}|j ƒr¤|jdƒ r¤|jdƒ\}}|j dkr|jjdkr||jkr||_ qn|j|ƒq¤q¤WWdQXtjd d j|ƒƒd}||jjt j|ƒ7}|d7}td dd |d t|ƒdƒ} |j|| _|j| _t| dtd|jƒ|_x©t |ƒD]›\} } |j!dkr| |j kr| |_!ntdt| ƒd| dt j"ƒ} t#| d|jd| d| ƒ| |jj$| j%ƒ<|d7}qåW|j&j'ƒ|jj(|jƒ|jj)|j!dtƒdS(s- Create the list of keyboard layouts s-ltlayoutt=iitrt#Ns kbd_list: %ss, tx_locty_loctscrollable_linesitenable_spelldicttwindowttexttdata_objt force_to_top(*RRtKBDRtstdoutt splitlinest startswithtsplittopenR t KBD_LAYOUTStreadtstripRRt sc_keymaptappendRtdebugtjoint center_wint add_paragrapht PARAGRAPHR tlent win_size_ytlinest win_size_xtcolumnsRRRt enumerateRt SCROLL_SIZERt spell_dicttlowerRt do_updatetactivate_objecttactivate_object_force( Rtcmdtptlinetfhtkbd_listtnametnumberR$tareatindexRtwin_area((s keyboard.pyt_showHsL  *!     cCs+|jj|_|jjƒj|j_dS(s6 Save the selected keyboard layout to the DOC N(Rt active_objectRtget_active_objectR)RR4(R((s keyboard.pyton_change_screen{s( t__name__t __module__t__doc__Rt HEADER_TEXTR:Rt HELP_DATARAR1RRQRT(((s keyboard.pyR -s    3(RWRtsolaris_installRtsolaris_install.engineRtsolaris_install.loggerRt!solaris_install.sysconfig.sc_specRtsolaris_install.sysconfig.utilRRt&solaris_install.terminalui.base_screenRt$solaris_install.terminalui.list_itemRt(solaris_install.terminalui.scroll_windowRt&solaris_install.terminalui.window_areaR RRR+R (((s keyboard.pyts