Author Topic: Re: Clutter Exercise: Media List - [X] DONE  (Read 31791 times)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Clutter Exercise: Media List - [X] DONE
« on: June 05, 2010, 03:21:12 am »
As a first experiment, let's try to build a media list, using Clutter or Qt.

How about the following:

* A Grid of thumbnails that stretch from left to right, and scroll off the bottom
* as you mouse over one of them, it pushes forward, becomes larger, and expands into a rectangle, containing the thumbnail. and some text.
* kinetic scrolling.

Go.

-Thom
« Last Edit: September 03, 2011, 07:21:19 pm by hari »

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Clutter Exercise: Media List
« Reply #1 on: June 05, 2010, 06:06:37 am »
Learning qt.

Can you point me to the lmce side to where to draw this off of DB? I am obviously green.

By scroll off of the bottom, do you mean simple up/down or left/right buttons... or do you mean more advanced scrolling like ui2?
I never quit... I just ping out.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Clutter Exercise: Media List
« Reply #2 on: June 05, 2010, 06:10:24 am »
Well, for now, just use some dummy data. Whatever will get you moving faster.

I am actually referring to kinetic scrolling, where dragging with the mouse, will scroll in a given direction... If you have another idea, have at it.. I was just trying to give some example ideas.

I don't want a scroll bar, if we can avoid it.

-Thom

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: Clutter Exercise: Media List
« Reply #3 on: June 07, 2010, 07:07:55 am »
Learning qt.

Can you point me to the lmce side to where to draw this off of DB? I am obviously green.

By scroll off of the bottom, do you mean simple up/down or left/right buttons... or do you mean more advanced scrolling like ui2?

there is a good example in the database section of those books i linked in irc, specifically c++ gui programming with qt4 should get you up and running allthough you may need to grab the qtmysql driver. Tschak pointed me in the right direction and it was just a matter of moving the .so from one place to another.

lastly, if your using qt-creator, you'll need to add
Code: [Select]
QT += sql
on its own line to your .pro file otherwise it wont include things properly.

In other news, i realized after this was all worked out that I would have to create an dummy mysql user for this to work properly. I could have used temp data, but i like the idea of working with data in a form that its going to live in to see what can be done.

-golgoj4
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Clutter Exercise: Media List
« Reply #4 on: June 07, 2010, 12:31:04 pm »
I was thinking of using smaller thumbs and including space for a resized pip for active video... I then realized that I am looking at a huge TV, and would have to keep in mind a smaller one. Would have to function differently than a mobile orbiter... or waste space.

Worthwhile for this exercise?
I never quit... I just ping out.

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: Clutter Exercise: Media List
« Reply #5 on: June 07, 2010, 02:52:53 pm »
there is a good example in the database section of those books i linked in irc, specifically c++ gui programming with qt4 should get you up and running allthough you may need to grab the qtmysql driver. Tschak pointed me in the right direction and it was just a matter of moving the .so from one place to another.

Could you provide that link here for those who were not on IRC at the time?

J.

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: Clutter Exercise: Media List
« Reply #6 on: June 07, 2010, 05:40:27 pm »
there is a good example in the database section of those books i linked in irc, specifically c++ gui programming with qt4 should get you up and running allthough you may need to grab the qtmysql driver. Tschak pointed me in the right direction and it was just a matter of moving the .so from one place to another.

Could you provide that link here for those who were not on IRC at the time?

J.

http://www.kdedevelopers.org/node/3526
the book only really covers the basics, but me being very new I found that its really helpful to get a good feel for how things work.

-golgoj4
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: Clutter Exercise: Media List
« Reply #7 on: June 07, 2010, 07:20:37 pm »
Thanks.

J.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Clutter Exercise: Media List
« Reply #8 on: July 11, 2010, 06:16:01 pm »
Has anyone attempted anything?

-Thom

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Clutter Exercise: Media List
« Reply #9 on: July 18, 2010, 10:28:05 pm »
Has anyone attempted anything?

-Thom

I did some very unimpressive things before I got sick. I am out of the hospital now and will spend the next 3 days doing this. I mean... the qt interface is pretty much drag and drop... so you can do really pretty things pretty easily... I was trying to get into alpha layering and PIP... so most of the time I have invested is just reading.

I will just do what you asked first so that there is at least some measure of progress.
I never quit... I just ping out.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Clutter Exercise: Media List
« Reply #10 on: August 06, 2010, 03:06:18 pm »
3 days, 3 weeks... you get the idea. Had to take on some projects to keep the people fed.
I never quit... I just ping out.

uplink

  • Administrator
  • Guru
  • *****
  • Posts: 192
  • Linux and LinuxMCE witchdoctor
    • View Profile
Re: Clutter Exercise: Media List
« Reply #11 on: August 27, 2010, 02:23:59 am »
And I clicked on the topic thinking I'll find something to drool on... Silly me :)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Clutter Exercise: Media List
« Reply #12 on: October 06, 2010, 11:21:29 pm »
Is anyone attempting this?

-Thom

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: Clutter Exercise: Media List
« Reply #13 on: October 07, 2010, 12:40:23 am »
Unfortunately not I.  In the time I do have right now I am re-learning c++ and looking at the linux TouchOrbiter among other things...  trying to get my head re-wrapped around pointers (and pointers to pointers).

J.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Clutter Exercise: Media List
« Reply #14 on: October 17, 2010, 05:32:03 pm »
Yes.

Every time I make headway my life folds in around me. Will have a working model before forever or never. Need a job.
I never quit... I just ping out.