
Icons!
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
Inspired by Apple's Icons screensaver which ships with Mac OS X, I've put together this little hack for KDE. It's designed to eventually do some of the things that the Apple screensaver does, but since so much is un-implemented, I've left it at the point where it just "zooms" random icons past you, one at a time. More work is definitely planned on making this more interesting, so bear with me. (Oh, as a side note, it works best with KDE3. KDE2's DesktopIcon() doesn't do proper scaling at load-time, unfortunately, and for me to do my own QMatrix() to scale the icon is too processor-intensive for a screensaver...) :) -dT-
19 years ago
* 1.0 - Initial release. Not extremely attractive, but it's a start....
19 years ago
* 1.0 - Initial release. Not extremely attractive, but it's a start....
visigoth
18 years ago
Report
sparkplug
18 years ago
Report
trotsane
19 years ago
gmake all-recursive
gmake[1]: Entering directory `/root/icons.kss'
Making all in src
gmake[2]: Entering directory `/root/icons.kss/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-2.3.1/include -I/usr/X11R6/include -UQT_NO_ASCII_CAST -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -c Icon.cpp
Icon.cpp: In method `void Icon::randomVector ()':
Icon.cpp:111: warning: passing `double' for argument 2 of
`QPoint::QPoint (int, int)'
Icon.cpp: In method `void Icon::movement ()':
Icon.cpp:153: `cos' undeclared (first use this function)
Icon.cpp:153: (Each undeclared identifier is reported only once for
each function it appears in.)
Icon.cpp:154: `sin' undeclared (first use this function)
Icon.cpp:157: warning: passing `double' for argument 1 of `QPoint::setX
(int)'
Icon.cpp:159: warning: comparison between signed and unsigned integer
expressions
Icon.cpp:170: warning: passing `float' for argument 1 of `QPoint::setY
(int)'
Icon.cpp:151: warning: `double Vx' might be used uninitialized in this
function
Icon.cpp: In method `void Icon::paintEvent (QPaintEvent *)':
Icon.cpp:219: warning: unused parameter `QPaintEvent *qpe'
gmake[2]: *** [Icon.o] Error 1
gmake[2]: Leaving directory `/root/icons.kss/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/icons.kss'
gmake: *** [all-recursive-am] Error 2
Report
bowfinger
18 years ago
hard work to learn! so don't spoil my
english *g*...
OK, I'm afraid I got the same results...
Is there anything to be careful about? (Libs, includes, anything non-standard-KDE?)
Report
bowfinger
18 years ago
math.h in Icons.cpp
CU
Report
detsaot
19 years ago
#include <math.h>
(that's (LESS THAN)math.h(GREATER THAN) in standard #include format)
then it should compile. I keep meaning to fix that and re-release it, but want to whack a couple of other things first. My apologies for the trouble.
:) -dT-
Report
halux
19 years ago
thanks.
Report