[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to make a window/widget work/behave like a panel?
From: Sebastian =?utf-8?q?K=C3=BCgler?= <sebas () kde ! org>
Date: 2010-08-16 18:15:21
Message-ID: 201008162015.21866.sebas () kde ! org
[Download RAW message or body]
On Monday 16 August 2010 17:13:49 Yogesh Marwaha wrote:
> On 16 August 2010 20:21, Sebastian Kügler <sebas@kde.org> wrote:
> > On Monday 16 August 2010 13:29:10 Yogesh Marwaha wrote:
> >> Hi,
> >>
> >> I want to make a window of my application work/behave like a panel
> >> i.e. it will stick to either top/bottom or left/right sides and the
> >> desktop will shrink/expand based on that and size of window. Can you
> >> guide me how to achieve that? Any documentation or something similar?
> >
> > Thomas explains the low-level calls to turn a window into a panel.
> >
> > What you could also do is write your application as a Plasma::Applet or
> > Plasma::Containment and use Plasmas to put it into the panel. That will
> > likely lead to much better integration into your target system than if
> > you "mimic" the behavior. Your brief explanation sounds like Plasma is
> > by far the easiest way to go about that.
> >
> > The real question is: What is your goal, what is it that you want to do?
> > Maybe your root assumption are wrong or incomplete?
>
> I was thinking of adding a ui plugin for my sparkle media player which will
> dock vertically/horizontally; more importantly vertically given the fact
> that most of the lcd monitors in the market are wide screen and one can
> dedicate a fair amount of screen space to one's favourite app.
> Its just an idea though, might not be practical, but I want to implement
> this... for sure.
You can actually do something like this today, without writing a single line
of code. Here's how:
- Add a new panel (whereever you want it)
- Set it up to autohide
- add the now playing widget to it
The Now Playing widget uses the MPRIS protocol to talk to a number of media
players. If yours implements this protocol, it'll just work.
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic