Changes to the skinning engine for XBMC Frodo

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #21
That one is in now.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #22
2012-06-02 Font.xml additions

Added support for uppercase / lowercase to be used in the <style> tag of Font.xml
Also allows more than one style to be set using a space separated list.

git commit: https://github.com/xbmc/xbmc/commit/0d2c...c8ef4bb9ee
pull-request: https://github.com/xbmc/xbmc/pull/966

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-06-02 15:31 by ronie.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #23
2012-06-02 New Infolabel

ListItem.DBID

ListItem.DBID provides the database ID for the selected item in a list or thumb control.
Mostly useful for skin/script interaction.

git commit: https://github.com/xbmc/xbmc/commit/8e8e...79d22e977f
pull-request: https://github.com/xbmc/xbmc/pull/1017
forum post: http://forum.xbmc.org/showthread.php?tid=131145

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-06-02 15:44 by ronie.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #24
2012-08-06 New Infolabel

ListItem.PictureDate

ListItem.PictureDate shows the localized date of the selected picture.

git commit: https://github.com/xbmc/xbmc/commit/d9ce...75b38d1afe

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #25
2012-09-05 PVR support

new dialogs:
DialogExtendedProgressBar.xml
DialogPVRChannelManager.xml
DialogPVRChannelsOSD.xml
DialogPVRGroupManager.xml
DialogPVRGuideInfo.xml
DialogPVRGuideOSD.xml
DialogPVRGuideSearch.xml
DialogPVRRecordingInfo.xml
DialogPVRTimerSettings.xml

new window:
MyPVR.xml

new control:
EpgGrid

new built-in commands:
ActivateWindowAndFocus(id,id)
InhibitIdleShutdown
AllowIdleShutdown

new boolean conditions:
ListItem.HasEpg
ListItem.HasTimer
ListItem.IsRecording
ListItem.IsEncrypted
Pvr.HasTimer
Pvr.HasNonRecordingTimer
Pvr.HasEpg
Pvr.HasTxt
Pvr.HasDirector
Pvr.ActStreamIsEncrypted
Pvr.IsPlayingTv
Pvr.IsPlayingRadio
Pvr.IsRecording
Pvr.IsPlayingRecording
System.IsInhibit
System.HasShutdown
VideoPlayer.HasEpg

new infolabels:
ListItem.StartTime
ListItem.EndTime
ListItem.StartDate
ListItem.EndDate
ListItem.NextTitle
ListItem.NextGenre
ListItem.NextPlot
ListItem.NextPlotOutline
ListItem.NextStartTime
ListItem.NextEndTime
ListItem.NextStartDate
ListItem.NextEndDate
ListItem.ChannelName
ListItem.ChannelNumber
ListItem.ChannelGroup
ListItem.Progress
MusicPlayer.ChannelName
MusicPlayer.ChannelNumber
MusicPlayer.ChannelGroup
VideoPlayer.EndTime
VideoPlayer.NextTitle
VideoPlayer.NextGenre
VideoPlayer.NextPlot
VideoPlayer.NextPlotOutline
VideoPlayer.NextStartTime
VideoPlayer.NextEndTime
VideoPlayer.NextDuration
VideoPlayer.ChannelName
VideoPlayer.ChannelNumber
VideoPlayer.ChannelGroup
VideoPlayer.ParentalRating
Pvr.NowRecordingTitle
Pvr.NowRecordingDateTime
Pvr.NowRecordingChannel
Pvr.NowRecordingChannelIcon
Pvr.NextRecordingTitle
Pvr.NextRecordingDateTime
Pvr.NextRecordingChannel
Pvr.NextRecordingChannelIcon
Pvr.BackendName
Pvr.BackendVersion
Pvr.BackendHost
Pvr.BackendDiskSpace
Pvr.BackendChannels
Pvr.BackendTimers
Pvr.BackendRecordings
Pvr.BackendNumber
Pvr.TotalDiscSpace
Pvr.NextTimer
Pvr.Duration
Pvr.Time
Pvr.Progress
Pvr.ActStreamClient
Pvr.ActStreamDevice
Pvr.ActStreamStatus
Pvr.ActStreamSignal
Pvr.ActStreamSnr
Pvr.ActStreamBer
Pvr.ActStreamUnc
Pvr.ActStreamVideoBitRate
Pvr.ActStreamAudioBitRate
Pvr.ActStreamDolbyBitRate
Pvr.ActStreamProgrSignal
Pvr.ActStreamProgrSnr
Pvr.ActStreamEncryptionName

new control in SettingsSystemInfo.xml:
Button Control id="99"


git commit: https://github.com/xbmc/xbmc/commit/d9d3...dbb906eecb
pull request: https://github.com/xbmc/xbmc/issues/1357
forum: http://forum.xbmc.org/forumdisplay.php?fid=136

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-12-05 00:10 by ronie.)
find quote
Hitcher Online
Skilled Skinner
Posts: 9,919
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #26
ActivateWindow(id)AndFocus(id) - was this PVR related and how does it differ from defaultcontrol/onload?

Thanks.

[Image: sig_zps3af3b48e.jpg]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #27
(2012-09-05 08:19)Hitcher Wrote:  ActivateWindow(id)AndFocus(id) - was this PVR related and how does it differ from defaultcontrol/onload?

yes it was part of the pvr merge.
looking at it again, i think the correct syntax is ActivateWindowAndFocus(id,id)

i have no info on how/why/when to use or what it's supposed to do.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #28
2012-09-08 New Infolabel

Skin.AspectRatio

Skin.AspectRatio returns the closest aspect ratio match using the resolution info from the skin's addon.xml file.


git commit: https://github.com/xbmc/xbmc/commit/96ce...62b275540d
pull-request: https://github.com/xbmc/xbmc/issues/1206

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,247
Joined: Jan 2009
Reputation: 108
Post: #29
2012-09-08 New Image

DefaultInProgressShows.png

This commit adds a new 'In progress TV shows' node to the TV Show library.
DefaultInProgressShows.png will be used to represent this node in the gui.

git commit: https://github.com/xbmc/xbmc/commit/d691...743e2afb5a
pull-request: https://github.com/xbmc/xbmc/issues/1349

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
pieh Offline
Team-XBMC Member
Posts: 655
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #30
2012-09-08 Changes to windows .xml loading mechanism - added KEEP_IN_MEMORY load type

Now xbmc can store window structure after window is closed. This speeds up loading windows as xbmc no longer have to load .xml file and parse it if window structure is already stored. In addition to storing window structure xbmc will also store xml file (to speed up loading windows that aren't KEEP_IN_MEMORY and to avoid loading xml file in case any condition used in conditional includes changed its value). Load type of window is controlled by xbmc, not skin files, so skins don't need any changes.

You can check if window is using new mechanism by checking log, as we now log type of load window is using:
Code:
Load types:
KEEP_IN_MEMORY - This mean that after first load of xml, structure of window will be stored, so next load will be faster.
LOAD_EVERY_TIME - This mean that we do NOT keep window structure (old behaviour).
LOAD_ON_GUI_INIT - Some dialogs we load and keep in memory on xbmc startup (DialogBusy.xml, DialogKaiToast.xml, DialogMuteBug.xml, DialogSeekBar.xml, DialogVolumeBar.xml and newly added with pvr DialogExtendedProgressBar.xml). We did it earlier so this is nothing new.

Log lines examples:
Loading skin file: Home.xml, load type: KEEP_IN_MEMORY
Loading skin file: Startup.xml, load type: LOAD_EVERY_TIME
Loading skin file: DialogBusy.xml, load type: LOAD_ON_GUI_INIT
Generally KEEP_IN_MEMORY is used in most of windows, except karaoke windows and newly added pvr windows (for full list of excluded windows see pull request description from link below).

Note: using ReloadSkin() will be needed when developing skin to force reload of xml file. If not used xbmc will use stored window structure or stored xml.

git commit: https://github.com/xbmc/xbmc/commit/2cc5...f881e3106d
pull-request: https://github.com/xbmc/xbmc/pull/1283

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
find quote
Post Reply