This forum has been archived. All content is frozen. Please use KDE Discuss instead.

add new type of visibility to panels

Tags: None
(comma "," separated)
mojtababaghban
Registered Member
Posts
5
Karma
0

add new type of visibility to panels

Thu Jan 16, 2014 11:33 pm
Hi every one.
Excuse me for my bad English.
I want to add new type of visibility (always visible, auto-hide, window can cover, window go below) to panels.
I downloaded kde-workspace source code, but I can't find where panel define visibility type.
Please help me.
mojtababaghban
Registered Member
Posts
5
Karma
0
Please answer.
luebking
Karma
0
a) in general, this kind of question is better asked on developer mailing lists
b) man:grep - will help you a big deal
c) kde-workspace/plasma/desktop/shell/panelview.* - found with grep in < 5 secs ...
mojtababaghban
Registered Member
Posts
5
Karma
0
Thank you.
a)I'm sorry
b&c) I used grep -ir but I didn't found 'window can cover' in files.
luebking
Karma
0
grepped for "autohide" - grepping for strings with blanks in sourcecode isn't a good idea (since "windows can cover" is no legal descriptor and needed to be comment or some visible string that could be fetched from/belong to somewhere else)
mojtababaghban
Registered Member
Posts
5
Karma
0
I could find 'windows can cover' in compiled workspace in a lib file, but I can't find it in source code.
luebking
Karma
0
****:/KDE4/kde-workspace/plasma/> grep -ri "can cover" *
design/notifications:* JobsOverview is shown on top of every other window at first, but other windows that gain focus after it can cover the JobsOverview window
desktop/shell/panelcontroller.cpp: m_underWindowsTool = addTool("view-fullscreen", i18n("Windows can cover"), modeFrame, Qt::ToolButtonTextBesideIcon, true);
desktop/shell/panelview.cpp: //TODO: force "windows can cover" in those cases?

in 4.11 branch
mojtababaghban
Registered Member
Posts
5
Karma
0
Thanks for your responsibility.
I have downloaded source code from official website https://projects.kde.org and there didn't have panelcontroller.cpp. and wasn't in api.kde.org. just was in gitorious.org but it was old (it was for 2012).
finally I found panelcontroller.cpp in source code in http://www.kde.org/info/4.11.5.php
Thank you very much.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar