On Donnerstag, 8. Oktober 2015 17:59:00 CEST, Stéphane ancelot wrote:
Hi,
We are migrating our application, from gnome to kde.
have a look at my application snapshot (it was gnome..):
https://drive.google.com/file/d/0B2bN5i_rCBsIczdFb1A4R0Q5Um8/view?usp=sharing
I frankly do no way understand what you want to do.
By "panel" you refer to some sort of desktop (plasmashell) panel?
Or is this all inside one application window?
In the latter case, use QMainWindow and setDockNestingEnabled(bool enabled);
then put to docks on the bottom edge.
If you want to use a "desktop" panel, please first be aware that there's no guarantee
there's a "default" panel on the bottom or anywhere.
You'd simply create your toplevel dock typed window and align it to the bottom
of the strutted workspace area, then update the strut property on your panel
(to constrain the workspace more) and ultimately watch _NET_WORKAREA on the
root window to catch any further changes (how to do this depends much on the
used toolkit libraries)
The last step isn't entirely robust since if eg. a bottom panel grows (and you
want to indent your panel more in return) but stays below the padding of your
strutting panel, you won't notice that.
Ultimately, you would have to listen to un/map events of windows, check whether
they're dock type, if they are, fetch their _NET_WM_STRUT*'s (and watch that
property) and calculate you offset from that.
There's no difference in requirements between KDE and Gnome itr though, so if
you wanted to do that, it should already work anyway...
Thomas
Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<