
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
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
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
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
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
Report
robster1
17 years ago
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
Report
trash_double
17 years ago
please help
Report
robster1
17 years ago
Report
ronie
17 years ago
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
Report
wheely
17 years ago
Report
kola
17 years ago
Report
optikSmoke
17 years ago
Report
sourcexx
17 years ago
rgds
marc'O
Report
radiz
17 years ago
Report
caribbean
17 years ago
Report
radiz
17 years ago
Report
SatanicTux
17 years ago
cd /root./karamba-0.17/
./config
This Does Not:
make
Report
ageitgey
17 years ago
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
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
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
Report
BOSSoNe
17 years ago
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 again!
Report
BOSSoNe
17 years ago
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 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
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