
Panel Spacer
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
12 years ago
-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
12 years ago
-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
itsjustarumour2
8 years ago
Report
corwin78
8 years ago
Report
itsjustarumour2
8 years ago
Report
jerryru
10 years ago
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?
Report
ZigmunD
11 years ago
http://download.opensuse.org/repositories/home:/Zigmund_Freud/openSUSE_11.2/
Report
-luk-
11 years ago
Thanks
Report
mkyral
11 years ago
Report
-luk-
11 years ago
Report
DanaKil
11 years ago
Report
Gen2ly
11 years ago
Report
DanaKil
11 years ago
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 :)
Report
TheAbu
11 years ago
Report
rgheck
11 years ago
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...
Report
Grindcore
11 years ago
Now finally with your instructions it worked for me.
Thank you =)!
Report
Grindcore
11 years ago
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
Report
Grindcore
11 years ago
Sorry ^^
Report
hurricanek
11 years ago
Report
marcosgildavid
11 years ago
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.
Report
rizwanrafique
11 years ago
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
Report
pavel23
11 years ago
Any thougths on how to get it working?
(Kubuntu 9.04 with KDE 4.2.3)
regards,
Paul
Report
Grindcore
11 years ago
Quote:kquitapp plasma
plasma
Report
corwin78
11 years ago
Report
rizwanrafique
11 years ago
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
Report
corwin78
11 years ago
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.
Report
devel0per
12 years ago
http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commitdiff;h=443a9e8a4ac9e6b917b6799840699da131abe711
Report