Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

8
Become a Fan
5.0

Description:
This plasmoid let you put some blank space between the other applets located in a panel. You can set a minimum fixed size and/or allow the spacer
to stretch if there is free space on the right. Optionally, you can display a thin separator line.

This is useful if you want to place a plasmoid on the right in a panel, if you want to do logical groups of icons in your panel, etc.


Some ideas : there should be an easy way to do that in Plasma (maybe something to set the stretch factor or the minimal/maximal size of an applet directly from the panel-settings-toolbar ?). Moreover, maybe the plasma theme specs should be extended to include a SVG for separators.

Comments, patchs, code review (I'm quite new to this) are welcome

---------------------------------
0.1
- Kubuntu Intrepid package (checkinstall)
- Fedora 9 package by Phobeus, thanks ! More info here : http://www.floriansievert.de/linux/repo/english.html
- Kubuntu Hardy package (done with Checkinstall. It install in /usr/lib/kde4).
- Gentoo Ebuild, thanks Devel0per
Last changelog:

-0.2 (source only)
This is the version from Kde SVN playground. Some code cleanup and an improved calculation of the max stretch size (thanks Petri)

- 0.1 first release


Ratings & Comments

62 Comments

itsjustarumour2

Fedora download link appears to be broken, unfortunately.

corwin78

I think that Panel Spacer is not needed anymore, because this functionality is already integrated directly into Panels functionality in new KDE 4.x.x releases.

itsjustarumour2

Ah, so it is, somehow some of my plasmoids had get uninstalled and I missed it. Thanks! :)

jerryru

I'am using kde 4.4.1 I need spacer to center task widget on panel, but when I put spacer(on both sides of task widget) I see "thin vertical lines". What wrong?

ZigmunD
-luk-

Hi, i've some problems to install it throught the debian package and the source. Panel Space is also for 4.3? Thanks

DanaKil

no idea if it works with 4.3. I will give it a try when I will have some free time

mkyral

In Kde 4.3 is spacer included.

-luk-

Oh thanks, it works :)

Gen2ly

I'f I set the size to below default value the spacer(s) will change place when I log in again. Tried with new plasma configs and problem persists.

DanaKil

Hi, I don't think this is directly related to Panel spacer because it don't manage its own positioning... so it's likely a plasma bug. Please report it if you can, thanks :)

TheAbu

Very useful, thanks a lot :)

rgheck

After a fair bit of work, I was able to compile the 0.2 sources on F11. Here's what I had to do. First, remove the line: find_package(Plasma REQUIRED) On line 19, change PLASMA_LIBS to KDE4_PLASMA_LIBS And then, most importantly, edit the file /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake and comment out the line producing the line reading: message(FATAL_ERROR "Qt compiled without support for -fvisibility=hidden. This will break plugins and linking of some applications. Please fix your Qt installation.") This should probably get changed back...

Grindcore

I always had this error, when trying to compile the source here under Kubuntu 9.10. Now finally with your instructions it worked for me. Thank you =)!

Grindcore

I have a quite stupid problem: The build/install process was succesful and I can open the plasmoid the usual way through the "add plasmoid"-menu. It adds a thin vertical line to my panel (that's good) but it's so small, that I just don't manage to open the preferences when clicking right and trying to hit it probably (that's bad ^^). Any ideas :S? Thanks

Grindcore

Me failed hard... Just ignore my post. Sorry ^^

hurricanek

kde 4.3beta seems can not have correct alignment, this with stasks will make sense!

marcosgildavid

Hello Can you please help me? I'm having some trouble compiling this app: $make Generating panelspacer.moc [ 0%] Built target plasma_applet_panelspacer_automoc [ 33%] Generating ui_panelspacerConfig.h [ 66%] Building CXX object CMakeFiles/plasma_applet_panelspacer.dir/plasma_applet_panelspacer_automoc.o [100%] Building CXX object CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o Linking CXX shared module lib/plasma_applet_panelspacer.so CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o: In function `PanelSpacer::qt_metacast(char const*)': /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/build/panelspacer.moc:71: undefined reference to `Plasma::Applet::qt_metacast(char const*)' CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o: In function `PanelSpacer::slotSpacerSizeChanged(int)': /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/panelspacer.cpp:260: undefined reference to `Plasma::Applet::updateConstraints(QFlags<Plasma::Constraint>)' CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o: In function `PanelSpacer::slotSeparatorPositionChanged(int)': /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/panelspacer.cpp:242: undefined reference to `Plasma::Applet::updateConstraints(QFlags<Plasma::Constraint>)' CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o: In function `PanelSpacer::slotSpacerStretchChanged(bool)': /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/panelspacer.cpp:236: undefined reference to `Plasma::Applet::updateConstraints(QFlags<Plasma::Constraint>)' CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o: In function `PanelSpacer::slotSeparatorStyleChanged(int)': /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/panelspacer.cpp:254: undefined reference to `Plasma::Applet::updateConstraints(QFlags<Plasma::Constraint>)' CMakeFiles/plasma_applet_panelspacer.dir/panelspacer.o: In function `PanelSpacer': /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/panelspacer.cpp:35: undefined reference to `Plasma::Applet::Applet(QObject*, QList<QVariant> const&)' /home/mdavid/downloads/lookandfeel/plasma/Panelspacer_from_svn_pour_kdelook-tmp/panelspacer.cpp:35: undefined reference to `Plasma::Applet::Applet(QObject*, QList<QVariant> const&)' I'm using latest KDE (kdebase4-4.2.68.svn945504-1.2) Thanks in advance.

rizwanrafique

Here is how to compile it on Kubuntu with KDE 4.2. I couldn't compile the source downloaded from here. The one from KDE trunk/playground should work fine. Quote:

mkdir ~/tmp cd ~/tmp sudo apt-get install libkonq5-dev libkonq5 cmake libplasma-dev kdelibs5-dev g++ kdebase-dev subversion svn co svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/panelspacer cd panelspacer mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. make sudo make install
Then add it usually from Panel Settings -> Add Widgets

corwin78

Thank you very much, it is working perfectly.

pavel23

Alas, no go. The build/install worked smoothly, but the applet is nowhere to be found in the applet-installer. Any thougths on how to get it working? (Kubuntu 9.04 with KDE 4.2.3) regards, Paul

Grindcore

Have you already tried to restart Plasma? Quote:

kquitapp plasma plasma

rizwanrafique

Here is how to compile it on Kubuntu with KDE 4.2. I couldn't compile the source downloaded from here. The one from KDE trunk/playground should work fine. Quote:

mkdir ~/tmp cd ~/tmp sudo apt-get install libkonq5-dev libkonq5 cmake libplasma-dev kdelibs5-dev g++ kdebase-dev subversion svn co svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/panelspacer cd panelspacer mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. make sudo make install
Then add it usually from Panel Settings -> Add Widgets

corwin78

Hello, I trying compile it under Kubuntu 8.10 64bit and KDE 4.2.1, but I got following message: Make Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in /home/breskmic/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps Call Stack (most recent call first): CMakeLists.txt:5 (find_package) -- Configuring incomplete, errors occurred! I think that maybe some DEV package is missing. Can you give me some advice which can be it? Thanks.

devel0per

Ebuild with kde-4.2 build patch is pushed into gentoo overlay - kde-testing. http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commitdiff;h=443a9e8a4ac9e6b917b6799840699da131abe711

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Plasma 4 Extensions from DanaKil:

ActiveWindow Control
DanaKil
last update date: 16 years ago

Score 6.1

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0