PiRSquared17 / xbmc-addons-chinese

Automatically exported from code.google.com/p/xbmc-addons-chinese
0 stars 0 forks source link

ChineseKeyboard obscured by xbmc directory loading dialog (Youtube Plugin) #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Added the ChineseKeyboard (v1.0.1) to xbmc(v10.1) Youtube plug-in. 
Implementation works except the keyboard panel is obscured by the xbmc "Loading 
Directory Dialog" see attached. Otherwise the ChineseKeyboard takes focus and 
accepts user input correctly.

Original xbmc.keyboard is able to place itself as top-level window, putting the 
xbmc "Loading Directory Dialog" window behind it. So it works.

Youtube requires user input to search and list the new found items, so the 
"Loading Directory Dialog" is required.

Original issue reported on code.google.com by en...@singnet.com.sg on 28 Nov 2011 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
Found the solution for it. Just add the "<zorder>1</zorder>" in the 
DialogKeyboardChinese.xml file as shown below.

<window id="103">
  <defaultcontrol always="true">300</defaultcontrol>
    <include>dialogeffect</include>
      <zorder>1</zorder>
      <coordinates>
    <system>2</system>
    <posx>255</posx>
    <posy>120</posy>
      </coordinates>

Original comment by en...@singnet.com.sg on 28 Nov 2011 at 2:22

GoogleCodeExporter commented 9 years ago
Patches for chinese text entry in Youtube plugin search function.

For windows 7, navigate to the following directory:
C:\Users\<user_name>\AppData\Roaming\XBMC\addons

<user_name> = your windows loginin name
Appdata = hidden directory, needs to key in to find the directory.

Unzip the files and overwritten the original files in the respectively 
directories as indicated in the zipped directories.

If you decide to go back to English Keyboard, just edit the following text as 
shown below in YouTubeNavigation.py.

    def getUserInput(self, title = "Input", default="", hidden=False):
     .....
        keyboard = xbmc.Keyboard(default, title)
        keyboard.setHiddenInput(hidden)
    #       keyboard = ChineseKeyboard.Keyboard('','请输入搜索内容')
     ........

Original comment by en...@singnet.com.sg on 28 Nov 2011 at 11:48

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Taxigps,

I think you can close this issue as the problem is also reported and tracked in 
issue 13. The patch descirbed here i.e. "<zorder>1</zorder>" work for xbmc 
Dharma.

Note: Although "<zorder>2</zorder>" graphically works for Eden, the system 
"directory loading" menu hidden behind, captures all the user inputs. Hence it 
is not working in operation.

Original comment by en...@singnet.com.sg on 19 Jan 2012 at 9:23

GoogleCodeExporter commented 9 years ago
see issue 13

Original comment by taxi...@sina.com on 20 Jan 2012 at 2:05

GoogleCodeExporter commented 9 years ago
All dialogs by default have zorder 1. See here: 
http://wiki.xbmc.org/index.php?title=XBMC_Skinning_Manual#Window_Structure

Original comment by taxi...@sina.com on 20 Jan 2012 at 2:10

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the link - also the same link I got the zorder idea from.
Not sure the reason. Somehow under XBMC Dharma, without the <zorder>1</zorder> 
arguement specified, the xbmc puts the youtube dialog box on top of the chinese 
keypad. I try to specify <type>dialog</type> but also does not work. Maybe when 
xmbc see two dialog boxes i.e. chinese keyboard & youtube system dialog box, it 
gives priority to system dialog box if custom window does not have the zorder 
specified - only a guess.
Note: Eden behaves differently from Dharma. So zorder does not work.

Original comment by en...@singnet.com.sg on 21 Jan 2012 at 2:03