Karamba patched

Karamba & Superkaramba

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

0
5 .0
Description:

Patched version of Karamba includes the following patches:
1) Drop down calendar (KDatePicker) widget
2) Image rollover (to achieve icon zooming effect)
3) Image tooltip support
4) Scrolling text for text sensor


the IMAGE tag has three new parameters:
PATHROLL, XROLL, and YROLL
PATHROLL should point to the image to load when the mouse is rolled over on top. XROLL and YROLL are optional and specify the X,Y position of the rollover image (i.e.: if you need to offset it, if you're doing the icon zooming effect for example). If XROLL and YROLL aren't specified, then it will use the X,Y position specified for the regular image.

IMAGE also now has a TOOLTIP parameter which will show a KDE/Qt tooltip if the cursor is hovering over IMAGE.

To use the drop-down calendar, you specify a click area to the TIME sensor by specifying two paramters: CALWIDTH and CALHEIGHT. These define a click area which, when clicked in, will drop down the calendar.

Text scrolling can be done with two new parameters to the TEXT tag:
MOVE which needs a integer value (positive or negative). this param determines how many pixel the text can move for each refresh.
MAXMOVE limit the width of the movement zone.
e.g.: TEXT X=0 Y=0 SENSOR=XMMS COLOR=240,240,240 BGCOLOR=60,60,60 FONTSIZE=13 FONT="Spacesuit" SHADOW=2 FORMAT="%title" MOVE=-2 MAXMOVE=640
Last changelog:

17 years ago

0.17c
Fixed Cyril's patch. I didn't have time to test it out, sorry....

Cyril Bosselut gave a very cool patch to allow text scrolling for the TEXT sensor.
----------
0.17b
Whoops. Added the tarball this time. :)

Added tooltip support to the IMAGE tag. You can specify a TOOLTIP="sdlfjklsd" parameter to the IMAGE now. Tooltips only pop up when the Karamba window is focused (meaning, you might have to click on it first)

Changed title to reflect that it also has the drop-down calendar, since I deleted that separate patch from KDE-look.
----------
0.17a
Fixed iostream include errour

C

donuthole

17 years ago

woohoo. upping the ante, eh? :)

i don't think that would be *that* hard to do, the main problem is that the MacOSX panel is strictly that: a panel. neighbours to the left and right are at fixed known positions.

karamba lets you paint icons wherever you want, so there isn't really a concept of a "neighbour"

i was thinking of making a PANEL tag that would take a fixed set of icons, and then i can use your parabolic zoom idea and *that* would work.

what do you think? is it worth trying to implement?

Report

VJoeB

17 years ago

Worth trying to implement?

WORTH? TRYING? TO? IMPLEMENT?????

That would be FANTASTIC!!! I've been l;ooking for something like that for some time now...ooh, at least 2 months...so, go on! You can have some web space for it if you want :D

Joe
(in awe)

Report

ageitgey

17 years ago

If image rollover doesn't work for you, the problem is most likely that you installed from an RPM previously. Most RPMs would put karamba in /usr/bin or /opt/kde3/bin or something like that.

If you compile it, by default it would go in /usr/local/bin. So if you just type karamba, the old version would be found first and loaded.

So just rpm -e the old rpm, or delete the old karamba binary if you compiled it yourself. Or configure the new one so that it installs over the old one. Like someone else mentioned, typing 'which karamba' will tell you which copy is being loaded when you type 'karamba'.

Report

luismml

17 years ago

I'm not using an rpm, i've compile the package like 5 different times, i've replace the karamba file in /opt/kde/bin
with the one in src.

But still doesn't work.

Report

caribbean

17 years ago

Only if it can show tooltip when mouseover the icons, it would be perfect.....

Report

C

donuthole

17 years ago

I just implemented this per your suggestion.
It seems to work fine, except tooltips only pop up if the application (Karamba in this case) has mouse focus. Since most users keep Karamba focused below, tooltips only pop up when the user brings focus to the Karamba window by clicking on it somewhere.

Other than that, it works fine. I'm sitting on this though until I can find a better way of doing it.

Report

caribbean

17 years ago

It worked instantly on me:)) We can now imitate the real Mac bar:)
Thanks

Report

luismml

17 years ago

It is on the same line

Report

MDonoughe

17 years ago

I don't have this installed, but try 'make clean' if you haven't already. './configure(with options if you need them)', 'make', it and 'make install' it.
If it still doesn't work, try 'which karamba' then find 'karamba' inside the patched karamba directory. Then 'cp karamba(in the karamba build directory) /opt/kde3/bin/karamba(or where whcih said karamba was).
I hope this helps, but I don't have this on my computer. Everybody else who got it to compile made it work, so this probably will fix it.

Report

C

donuthole

17 years ago

can you email me your theme with all its images and everything (tarball is fine) so i can try it out?

email it to steve@grommit.com

Report

luismml

17 years ago

Just give me a second.

Report

luismml

17 years ago

how do you use the pathroll parameter?
I used it like this but it doesn't work:

IMAGE X=10 Y=25 PATH="pics/Aqua/48x48/apps/xine.png" PATHROLL="pics/Aqua/64x64/apps/xine.png"

Report

C

donuthole

17 years ago

I can't tell if KDElook is word-wrapping your line or not, but the PATHROLL parameter should be on the same line as the IMAGE tag

Report

Peman

17 years ago

is it difficult to add some default effects like enlarge, fade, alpha or something?
and a tag EFFECT
it would be very nice.

Report

Peman

17 years ago

when i do make, i get this error:

imagelabel.cpp: In method `void ImageLabel::parseImages(QString, QString, int, int, int, int)':
imagelabel.cpp:172: `cerr' undeclared (first use this function)
imagelabel.cpp:172: (Each undeclared identifier is reported only once
imagelabel.cpp:172: for each function it appears in.)

do i need any special libraries or somethin?

Report

ageitgey

17 years ago

I covered this in the very first comment. Make the change I said there :)

Report

C

donuthole

17 years ago

try downloading it again. i fixed the cerr/iostream requirement

Report

Rodion

17 years ago

I trust that you have already sent this patch off to Hans, yes?

Report

C

donuthole

17 years ago

not yet. i sent him my drop-down calendar patch and he said he was away for about a week. when he gets back, i will send it to him to be incorporated into the regular karamba sources.

i just wanted to pre-release it to get some feedback/bug reports first.

but don't worry...it will be incorporated soon (assuming he accepts it)

Report

ageitgey

17 years ago

For anyone who is getting:

libtool: link: cannot find the library `/usr/lib/libfam.la'

you need to install libfam and header files. On mandrake you can just open up a terminal and then type:

su
urpmi libfam0-devel

This is all obvious to non-noobs but i just didn't want anyone to miss out on this program because of that stumbling block.

Report

ageitgey

17 years ago

The source you uploaded won't compile (at least on my system). It fails on imagelabel.cpp because you are missing an include file. To fix it, just add:

#include <iostream.h>

in imagelabel.cpp at the top of the file with the other #include lines.

Just letting everyone know if they aren't familiar with c++.

Report

wth

17 years ago

Actually, ISO C++ requires you to use "#include <iostream>" instead of "#include <iostream.h>".

Report

uga

17 years ago

And don't forget using namespace then ;-)

Report

C

donuthole

17 years ago

thanks...accidentally left a couple debugging things in there. it *shouldn't* require iostream anymore.

Report

17 years ago

0.17c
Fixed Cyril's patch. I didn't have time to test it out, sorry....

Cyril Bosselut gave a very cool patch to allow text scrolling for the TEXT sensor.
----------
0.17b
Whoops. Added the tarball this time. :)

Added tooltip support to the IMAGE tag. You can specify a TOOLTIP="sdlfjklsd" parameter to the IMAGE now. Tooltips only pop up when the Karamba window is focused (meaning, you might have to click on it first)

Changed title to reflect that it also has the drop-down calendar, since I deleted that separate patch from KDE-look.
----------
0.17a
Fixed iostream include errour

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.17c
updated Apr 18 2003
added Apr 17 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1