Need to know more about myHome.xml file (1 Viewer)

Surekha Kamble

Portal Member
June 23, 2011
5
0
Home Country
India India
Hello MP team,

I've gone through the myHome.xml file in the MP Skin-Editor , i find over there the Main Menu options which are displayed as TV,Videos,Music etc are displayed using the Menu control.

But I didnot see anywhere from how those menu items names are displayed in the Hoem page, when clicked on it which page opens up, when moved the mouse pointer on it how the background changes etc.

Could you please let me know about this in detail?

Awaiting a reply at the earliest. It would be of great help.

Thanks,

Regards,
Surekha.
 

Surekha Kamble

Portal Member
June 23, 2011
5
0
Home Country
India India
Hello MP Team,

I've gone through the documentation, i want to know exactly when I click on Tv or Video option in the Home Page , where is the event triggered from, as in the myHome.xml , we see only the xml code pertaining to the UI, but where I can find the code behind??


Regards,
Surekha.
 

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    myHome uses GUIMenuControl filled with plugins data (window IDs, names and such). So when you click TV or Videos, this control takes care that proper plugin is shown.

    - Filling this menu control is done from WindowPlugins/home/myHome.cs
    - Actions are handled in Core/guilib/GUIMenuControl.cs, OnAction method; case Action.ActionType.ACTION_SELECT_ITEM & case Action.ActionType.ACTION_MOUSE_CLICK
    - After control handles action it fires GUI_MSG_CLICKED message to parent window
    - This message is handled in WindowPlugins/home/GUIHomeBaseWindow.cs; OnMessage method; case GUIMessage.MessageType.GUI_MSG_CLICKED
    - The message handler fires another message - GUI_MSG_GOTO_WINDOW
    - This message is handled in MediaPortal.Application/MediaPortal.cs, OnMessage method; case GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW
    - The message handler then calls GUIWindowManager.ActivateWindow(message.Param1); in message.Param1 there is window ID of new plugin window.
    - The ActivateWindow is in Core/guilib/GUIWindowManager.cs
     

    Surekha Kamble

    Portal Member
    June 23, 2011
    5
    0
    Home Country
    India India
    Thank you very much Anthrax for your quick reply.

    The information whatever you have passed is related to the MediaPortal Source Code, i must have that source code, Am I right?
    Can I know from where can i download the source code, because when we have downloaded a Skin, we get only the XML files but not the code behind, Am I right?

    My requirements are something like this,
    1. In the HoemPage when MediaPortal starts, I want a list of options i.e. Main Menu scrolling in a particual fashion like the Carousel, have attached the screenshot. The menu must be displayed vertically as shown in the screenshot.
    2. The list of options will be TV,Shopping,Communication,News,My Content etc
    3. When I click on TV, the sub options of TV must be displayed just before the TV option vertically as shown in the attachment.The Main Menu & Sub Menu must be displayed in the same page/window.
    4. The location of the submenu options must be in the same position.
    4. When I click on Shopping, the sub options of Shopping must be displayed in the same page, & so on

    Could you please check iy & let me know about this.

    Awaiting a reply.

    Regards,
    Surekha.
     

    Anthrax

    Portal Pro
    February 15, 2007
    157
    48
    pretty much in the center
    Home Country
    Germany Germany
    AW: Re: Need to know more about myHome.xml file

    Hello Surekha,

    I'm still unable to understand your problem. MediaPortal is a community driven open source project, therefore the code is open to anyone without further ado.

    The MediaPortal copy right disclaimer cleary states this and reads the following:

    Code:
    // Copyright (C) 2005-2011 Team MediaPortal
    // https://www.team-mediaportal.com
    // 
    // MediaPortal is free software: you can redistribute it and/or modify
    // it under the terms of the GNU General Public License as published by
    // the Free Software Foundation, either version 2 of the License, or
    // (at your option) any later version.
    // 
    // MediaPortal is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    // GNU General Public License for more details.
    // 
    // You should have received a copy of the GNU General Public License
    // along with MediaPortal. If not, see <http://www.gnu.org/licenses/>.

    The link regarding Development - MediaPortal Wiki covers everything a developer who want's to extend and fix MediaPortal or develop new plugins and skins must know. Including a well documented section on how to obtain the source code from the Subversion repository.

    And SilentException already pointed you to the source files and inner workings regarding your initial question.

    As you mentioned requirements, are we talking about contributing to MediaPortal's core funtionality or extending it by the means of plugin development? Or are we talking about a totally different (commercial even) product?
    From what I can see in the screenshot it could mean anything from a new skin, a new suite of plugins or even a new standalone branch of MediaPortal... Are you trying to make MediaPortal look like in the screenshot, or is this already a mediaportal skin?

    So in order to help you we might need a little more insight...


    king regards
    Anthrax
     

    Surekha Kamble

    Portal Member
    June 23, 2011
    5
    0
    Home Country
    India India
    Sorry for the confusion.

    Here is what I need.
    1. I need to show the Main menu (which has TV, Radio, etc) + their respective Sub menus (for ex: Channels of the TV option - if TV menu is highlighted) on the SAME PAGE & View.

    2. The menus should be Carousal.

    Is this doable?

    Thanks once again!
     

    Anthrax

    Portal Pro
    February 15, 2007
    157
    48
    pretty much in the center
    Home Country
    Germany Germany
    AW: Need to know more about myHome.xml file

    Well, I've seen some very sweet MediaPortal skins around these shores...
    I think it is definitely possible to do what you are trying.
    It might even be possible with skinning only, but you'll might have to ask in the skinner's (lot's of bright creative minds over there as well) sub forum for any advice on how to make things spin ;-)

    And I also recommend you do some research on the existing skins first and see how they work (the sub-menu structure you describe has already been done in a lot of skin imho).
    The spinning might just be an animation effect within the skinfiles (have a look at the skinning documentation in the wiki)...

    cheers
    Anthrax
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Out the box this is not possible. You would need to write a plugin in combination with a skin file to achieve this.

    I suggest you have a look at some existing skins which replace basic home (try Maya, StreamedMP and possibly some others that include a menu editor)
     

    Users who are viewing this thread

    Top Bottom