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

gguerini

17 years ago

[guillermo@sabola karamba-0.17]$ ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... no
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

Report

trash_double

17 years ago

Where can i download qt-devel 3.0???my mandrake 8.2 distribution has only qt-devel 2.5.

Report

robster1

17 years ago

The configure script output ends thus:

checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

Please help!

Report

VJoeB

17 years ago

Install the qt-devel package. Rinse and repeat.

Report

trash_double

17 years ago

Where can i get Qt-devel 3.0 package???,i checked my linux cd and it only has 2.5-1 mdk which i installed and it still is not working.

please help

Report

robster1

17 years ago

I'm running a Woody/Sarge box, and can't even get through the configure script! Karamba compiled without a hitch. I tried installing libqt3-dev, but still no go. Does any Debian user know what packages I need to apt-get?

Report

ronie

17 years ago

Hi BOSSoNe,
Your latest correction indeed solved my problem :)
but....
When I use the MOVE function I get exactly the same problem again :(

Report

starman71taylor

17 years ago

Can anybody give Karamba the "rolling" elegance of say... YZDock in Windoze? Check it out. It has all these nifty effects, much like OSX but however still very different. Karamba could stand to gain from this sort of playful fun as well. Just my 2 cents.

Report

wheely

17 years ago

This looks like a fork of karamba to me.

Report

kola

17 years ago

I hope the patch is incorporated in the original karamba... this is after all a patched version only, not a significant work in a different direction

Report

optikSmoke

17 years ago

Hrmmm...... I've been playing around with adding some of the effects in this patch to slickbar (this patch, btw, is wonderful), but I've hit a snag: YROLL is ignored if its 0, even though Y=0 works fine for other elements (including images). This is only a little annoying, but is definitely something you should look at (I haven't checked XROLL).

Report

sourcexx

17 years ago

hi .. as far as i can see the nicetime switch for the cpu sensor only shows the system nicetime? - would be great if there is a way to add also the usernicetime as separate function.

rgds
marc'O

Report

radiz

17 years ago

It should be cool if it looked like this: http://www.jonmega.com/~iceman/stuff/flashdock/prevdock/dock.html

Report

caribbean

17 years ago

Wow, how did you get that? So cool

Report

radiz

17 years ago

I didn't that, it's coded in flash and is a deskmod for the "active desktop" on winslow98 machines.

Report

SatanicTux

17 years ago

These Word Properly:
cd /root./karamba-0.17/
./config

This Does Not:
make

Report

ageitgey

17 years ago

You need to run ./configure not ./config - ./configure will generate the Makefile so that typing "make" will do something.

And you need to make sure ./configure says something along the lines of "Good! Confingure Finished" or whatever it says for kde programs. Otherwise, look at what error it gave and post that.

Report

SatanicTux

17 years ago

These Word Properly:
cd /root./karamba-0.17/
./config

This Does Not:
make

It Gives Me This:

make all-recursive
make[1]: Entering directory `/root/karamba-0.17'
Making all in doc
make[2]: Entering directory `/root/karamba-0.17/doc'
Making all in .
make[3]: Entering directory `/root/karamba-0.17/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/karamba-0.17/doc'
Making all in en
make[3]: Entering directory `/root/karamba-0.17/doc/en'
make[3]: Circular index.cache.bz2

Report

caribbean

17 years ago

Don't know if this is only to my theme.
I am using the Mac OS X theme with karamba. I have some text object on the top bar, like "search, logout,etc". It was working great when I use 0.17a (the version with icon rollover support).
If I use 0.17c to load the theme, the text objects won't display properly. It seems random that which text objects will show up and where they will showup.. And you can reload the configuration, different text objects show up, but seldom all show up together and at the right locations...
Thanks for the great work, though!

Report

caribbean

17 years ago

After playing with it for a while, this problem might have sth to do with the text scrolling...

Report

BOSSoNe

17 years ago

see the previous tread, i've found the bug.
this is the diff which correct the bug:
--- karamba-0.17_c/src/textlabel.cpp 2003-04-18 20:05:59.000000000 +0200
+++ karamba-0.17/src/textlabel.cpp 2003-04-18 15:23:46.000000000 +0200
@@ -154,7 +154,6 @@
{
int i = 0; //lineHeight;
int row = 1;
- int nx;
if(move != 0){
if(maxmove == 0){
maxmove = 300;
@@ -175,10 +174,6 @@
position += move;
}
}
- nx = position + x;
- }
- else{
- nx = x;
}
p->setFont(font);
QStringList::Iterator it = value.begin();
@@ -187,11 +182,11 @@
if( shadow != 0)
{
p->setPen( bgColor );
- p->drawText(nx+shadow, y+i+shadow, width,
+ p->drawText(position+x+shadow, y+i+shadow, width,
height, alignment | clip | Qt::ExpandTabs,*it);
}
p->setPen( color );
- p->drawText(nx,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
+ p->drawText(position+x,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
i += lineHeight;
it++;
row++;

Report

caribbean

17 years ago

Thanks very much for working so hard on it:) I wasn't able to patch the testlabel.cpp, maybe it's because we didn't have the same original file. Can you send me the whole file textlabel.cpp to yychen@glue.umd.edu
thanks again!

Report

BOSSoNe

17 years ago

i'm very tired today :(
my patch was invert, this one is correct !!
put it in the src dir and do
patch -p0 !setFont(font);
QStringList::Iterator it = value.begin();
@@ -182,11 +187,11 @@
if( shadow != 0)
{
p->setPen( bgColor );
- p->drawText(position+x+shadow, y+i+shadow, width,
+ p->drawText(nx+shadow, y+i+shadow, width,
height, alignment | clip | Qt::ExpandTabs,*it);
}
p->setPen( color );
- p->drawText(position+x,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
+ p->drawText(nx,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
i += lineHeight;
it++;
row++;

Report

BOSSoNe

17 years ago

--- textlabel.cpp 2003-04-18 22:35:00.000000000 +0200
+++ textlabel.cpp 2003-04-18 20:05:59.000000000 +0200
@@ -154,6 +154,7 @@
{
int i = 0; //lineHeight;
int row = 1;
+ int nx;
if(move != 0){
if(maxmove == 0){
maxmove = 300;
@@ -174,6 +175,10 @@
position += move;
}
}
+ nx = position + x;
+ }
+ else{
+ nx = x;
}
p->setFont(font);
QStringList::Iterator it = value.begin();
@@ -182,11 +187,11 @@
if( shadow != 0)
{
p->setPen( bgColor );
- p->drawText(position+x+shadow, y+i+shadow, width,
+ p->drawText(nx+shadow, y+i+shadow, width,
height, alignment | clip | Qt::ExpandTabs,*it);
}
p->setPen( color );
- p->drawText(position+x,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
+ p->drawText(nx,y+i,width,height, alignment | clip | Qt::ExpandTabs,*it);
i += lineHeight;
it++;
row++;

Report

ronie

17 years ago

Hi this seems like a great bunch of patches,
but I have a minor problem.

When I use this with the news theme,
some of the news headlines aren't aligned to the left.
Others don't even appear.

If I do a Reload Configuration, some lines come back, but others will disappear.

(the news theme works great with the unpatched karamba 0.17)

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
product-maker Base: 4 x 5.0 Ratings
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 0