boxee :: forums  

Go Back   boxee :: forums > boxee developers > boxee applications

Reply
 
Thread Tools Display Modes
  #1  
Old August 17th, 2011, 06:53 AM
Razorax Razorax is offline
Member
 
Join Date: Apr 2011
Posts: 69
Default Includes - do we have a replacement?

Hi (again).

I've read about the includes, it seems nice, but I can't get'em to work.

I finally found an explanation here http://forums.boxee.tv/showthread.php?t=9362.

Do we have any other means of reusing (homemade) skinning components?

I.e. if I wan't some fancy display of my app-name + version on all my windows, the copy-paste approach just isn't very sexy.
__________________
---
In theory, theory and practice are the same. In practice they're not.
http://razorax-repo.googlecode.com/svn/trunk/boxee
Reply With Quote
  #2  
Old August 17th, 2011, 07:23 AM
bartsidee bartsidee is offline
Senior Member
 
Join Date: Nov 2010
Posts: 484
Default

No it is a highly requested feature, but still not there yet. I also would not recommend to use boxee own skin includes as they might change over time. (as was with 0.9->1.0) Better to just copy the actual code and unfortunately copy it to where you need it.

Some tips to get your code clean:
- Use less windows, but use windows states instead
- Use dialogs wherever you can
- Smartly group your code in groupcontrols.

If you are handy with python you could come up with a build script that would replace the include tags with the includes and thus building the skin files on the fly. This is definitely doable but you probable have to take some time to construct it.
__________________
Have a look at my repo at www.bartsidee.nl

Last edited by bartsidee; August 17th, 2011 at 07:25 AM.
Reply With Quote
  #3  
Old August 17th, 2011, 09:36 AM
Razorax Razorax is offline
Member
 
Join Date: Apr 2011
Posts: 69
Default

Actually... not a bad idea...

Is it possible to have python code executed before BB actually loads the skin-files?

That way, I could actually write a "parseAndReplace" python module that replaces the include-tags directly in the skin-files at runtime (run-once).

Which will allow me to use "standard" skinning with self-defined includes, and just remove the "preprocessing" once the feature is officially implemented.

Alternatively the "compiling" would have to be done before "releasing", which will also be possible, but less "clean".

I think I will look into that solution soonishly

BTW. Do you have any good examples on using window-states?
__________________
---
In theory, theory and practice are the same. In practice they're not.
http://razorax-repo.googlecode.com/svn/trunk/boxee
Reply With Quote
  #4  
Old August 17th, 2011, 10:32 AM
bartsidee bartsidee is offline
Senior Member
 
Join Date: Nov 2010
Posts: 484
Default

You can"t create skin files on the fly as with xbmc. But you can compile it before release and packaging.

Have a look at some of my opensource apps for inspiration:
http://www.github.com/bartsidee
__________________
Have a look at my repo at www.bartsidee.nl
Reply With Quote
  #5  
Old August 27th, 2011, 10:29 AM
tmiranda tmiranda is offline
Member
 
Join Date: Jul 2011
Posts: 85
Default

Quote:
Originally Posted by Razorax View Post
Hi (again).

I've read about the includes, it seems nice, but I can't get'em to work.

I finally found an explanation here http://forums.boxee.tv/showthread.php?t=9362.

Do we have any other means of reusing (homemade) skinning components?

I.e. if I wan't some fancy display of my app-name + version on all my windows, the copy-paste approach just isn't very sexy.
I had the same thoughts and was pointed at something like this: http://velocity.apache.org

Copy and paste is a terrible option IMHO. If you get something working, even if it's a simple python script, please let me know.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:40 AM.


skin based on greenzero from vBSkins.com

 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2011, vBulletin Solutions, Inc.