Browse The Web / Webbrowser (2 Viewers)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,654
    3,120
    Nuenen
    Home Country
    Netherlands Netherlands
    Oops! I'v tried investigate how transfer a static parameter from skin file to plugin enviroment (wihout user's activity) and must confess that don't know how. I'm afraid that's impossible. Therefore be better to change my requirement and add other requirements (catavolt's navigation bar):
    • add possibility to define browser window height (or end vertical possition) if status bar is visible (define by BrowseTheWeb setup)
    • add possibility to define browser window start vertical possition if navigation bar is visible (define by BrowseTheWeb setup)
    • add toogle key for show navigation bar (define by BrowseTheWeb setup - similary to existing "Show status bar" toogle key)
    • add some plugin inputs from skin (as Buttons or Text Input) for activities:
      • previous page - Button
      • next page - Button
      • home - Button
      • url input - Text Input
      • bookmark(1) - Button
      • bookmark(2) - Button
      • ...
    Would be nice do possibility to define Button(x) parameters in accordance with other bookmarks definition as quickly accesible bookmarks (QAB) - maybe as specific bookmarks group? Maximal count of QAB (or better named as "count of visible QAB") will be define by skin design process and will depend on the top bar structure and other control fields width, count and total design.


    Jiro.

    I'm willing to implement those questions, however I must confess I have absolutely no knowledge of skinning, and have only a vague idea how skins and plugincode interact. So I think I'm needing some help with this.

    It would be a welcome distraction, because I'm beginning to get quite fed-up with the mouse toggle (bin banging my head onto it far,far,far longer than I'd expected)
     

    JiRo

    MP Donator
  • Premium Supporter
  • May 1, 2009
    184
    44
    Prague
    Home Country
    Czech Republic Czech Republic
    I'm willing to implement those questions, however I must confess I have absolutely no knowledge of skinning, and have only a vague idea how skins and plugincode interact. So I think I'm needing some help with this.

    It would be a welcome distraction, because I'm beginning to get quite fed-up with the mouse toggle (bin banging my head onto it far,far,far longer than I'd expected)

    Yes I understand you! But I'm not right person that could help you. My last professional project was written in Macro11 for the operating system RSX11 (PDP11) more 20 years ago. Now I'm normal sales manager, know how sell it, don't know how make it... :(

    But I try to look at BrowseTheWeb code. Perhaps I would have found time to try something (develop enviroment installation, search the archiv, ...). The problem is that BrowseTheWeb isn't entirely standard plugin. Interaction between MediaPortal GUI and xulrunner makes it quite difficult and nonstandard task. You must know it! Am I right?

    JiRo.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,654
    3,120
    Nuenen
    Home Country
    Netherlands Netherlands
    I do know it's not standard :( , and that's why I'm moving the "toggle mousemode" to the "impossible" list...
    So unless anyone has ideas on how to properly restore focus to the mepo window after sending a mouseclick to the webbrowser (so it processes keypresses as it should be), I'm moving on to other features
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,654
    3,120
    Nuenen
    Home Country
    Netherlands Netherlands
    Onclicked is raised when someone clicks on a control. What I need is the other way around: perform a click on a control...

    Edit: and that click is working ok, but after that, no more keys are routed to the plugins onaction event
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,654
    3,120
    Nuenen
    Home Country
    Netherlands Netherlands
    Hehe, somehow, I made the impossible possible :)

    If toggle mouse works as it should be, is there still a need/use case for the "use mouse to browse" option?

    Also a question for a skinner: Do you know if it's possible to define an area in the skinfile on which the webbrowser component is drawn (f.e. like the videowindow), and how to get those coordinates in a plugin?

    This is for properly implementing the statusbar, as I don't think that statusbar should be drawn "over" the webbrowser, but instead, the webbrowsers area should be shrunk, and the statusbar shoud be put at the bottom (or anywhere the skinner likes).
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,959
    1,270
    Saratov
    Home Country
    Russian Federation Russian Federation
    Hehe, somehow, I made the impossible possible :)
    Also a question for a skinner: Do you know if it's possible to define an area in the skinfile on which the webbrowser component is drawn (f.e. like the videowindow), and how to get those coordinates in a plugin?
    And what it is actually? As I saw in the code it's a Window Form but maybe I'm wrong deinetely wrong. Seems like it's GUIGraphicsContext.form object. So definetely it should be possible to set winform size. And it's not a skinfile issue since it's not in it.
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,654
    3,120
    Nuenen
    Home Country
    Netherlands Netherlands
    I know it's possible to set the size and position of the browser control. just don't know how to get the coordinates where it should be placed
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,621
    10,625
    Königstein (Taunus)
    Home Country
    Germany Germany
    You have to put in a property for the browser window, then the skinner will use that property to place it where he wants it, e.g.

    <control>
    <description>BrowseTheWeb window</description>
    <type>browserwindow</type>
    <id>12345</id>
    <posX>0</posX>
    <posY>30</posY>
    <width>1366</width>
    <height>720</height>
    </control>

    In this example the skinner defines the browserwindow 30 pixels from the top with a height of 720 pixels and full width of 1366 pixels, giving him 30 pixels at the top for the navigation bar and 18 pixels at the bottom for the info bar ;)
    Just an example.
    You could also put in a property like "#BrowseTheWebBrowserWindow", then the skinner had to add the <texture> tag with this property in:
    <texture>#BrowseTheWebBrowserWindow</texture>

    This way it´s up to the skin designer how big he wants the browser window and if he wants to use navigation bar and/or status bar ;)
     
    Last edited:

    Users who are viewing this thread

    Top Bottom