StyleClock

Various KDE 1.-4. Improvements

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

1
5.0
Available as/for: -
Description:

Styleclock is a themeable replacement for KDE's clock applet. It comes with an integrated alarm clock / timer.

The themes are bitmap based, so you can simply use gimp and a text editor to edit or create themes. These images are finally composed by a little ecmascript program, which makes it easy to create weird and innovative clock types.

To keep the cpu load low, styleclock uses OpenGL to scale and rotate the images.
Last changelog:

16 years ago

New in 0.5.1:
- New digital theme: Centurion by Daniel Dotsenko
- Enabled date switch (only used by centurion so far)

New in 0.5:
- New theme: clean by Clairvoyant
- New theme: station
- Hopefully no black windows anymore
- Better support for theme developers

New in 0.4:
- The first user-contributed themes:
blue, simple - thanks to Sami Vento :)
- New textual theme: glow
- Possibility to change theme colors.
Only used in "glow" and "simple" so far.
- Better resize behaviour

New in 0.3:
- Popup calendar like the original KDE clock
- Saves recently used countdown times
- Ability to display non-rectangular clocks and a binary clock to demonstrate it.

New in 0.2:
- Transparency support
- Simple & efficient alarm clock/timer
- Nice context menu

bfkeats

16 years ago

You need opengl support. Type glxinfo|less, and look for 'Direct Rendering'. If you don't have it, you need to get it. I'm not sure how to do that on debian. It will depend on your graphics card.

Report

Ekardnam

16 years ago

I just installed Slackware, "Install Styleclock!" But: (make)
/opt/kde/include/kjs/value.h:260: error: parse error before `protected'
/opt/kde/include/kjs/value.h:271: error: parse error before `{' token
/opt/kde/include/kjs/value.h:284: error: parse error before `&' token
/opt/kde/include/kjs/value.h:287: error: parse error before `*' token
/opt/kde/include/kjs/value.h:296: error: parse error before `{' token
/opt/kde/include/kjs/value.h:309: error: parse error before `&' token
/opt/kde/include/kjs/value.h:309: error: new declaration `Null dynamicCast(...)
'
/opt/kde/include/kjs/value.h:284: error: ambiguates old declaration `Undefined
dynamicCast(...)'
/opt/kde/include/kjs/value.h:312: error: parse error before `*' token
/opt/kde/include/kjs/value.h:318: error: parse error before `{' token
/opt/kde/include/kjs/value.h:331: error: parse error before `&' token
/opt/kde/include/kjs/value.h:331: error: new declaration `Boolean
dynamicCast(...)'
/opt/kde/include/kjs/value.h:309: error: ambiguates old declaration `Null
dynamicCast(...)'
/opt/kde/include/kjs/value.h:333: error: non-member function `bool value()'
cannot have `const' method qualifier
/opt/kde/include/kjs/value.h:334: error: parse error before `private'
/opt/kde/include/kjs/value.h:336: error: parse error before `*' token
/opt/kde/include/kjs/value.h:342: error: parse error before `{' token
/opt/kde/include/kjs/value.h:355: error: parse error before `&' token
/opt/kde/include/kjs/value.h:355: error: new declaration `String
dynamicCast(...)'
/opt/kde/include/kjs/value.h:331: error: ambiguates old declaration `Boolean
dynamicCast(...)'
/opt/kde/include/kjs/value.h:357: error: parse error before `)' token
/opt/kde/include/kjs/value.h:360: error: parse error before `*' token
/opt/kde/include/kjs/value.h:369: error: parse error before `{' token
/opt/kde/include/kjs/value.h:373: error: parse error before `unsigned'
/opt/kde/include/kjs/value.h:374: error: parse error before `double'
/opt/kde/include/kjs/value.h:375: error: parse error before `long'
/opt/kde/include/kjs/value.h:376: error: parse error before `long'
/opt/kde/include/kjs/value.h:378: error: non-member function `double value()'
cannot have `const' method qualifier
/opt/kde/include/kjs/value.h:378: error: new declaration `double value()'
/opt/kde/include/kjs/value.h:333: error: ambiguates old declaration `bool
value()'
/opt/kde/include/kjs/value.h:379: error: non-member function `int intValue()'
cannot have `const' method qualifier
/opt/kde/include/kjs/value.h:381: error: non-member function `bool isNaN()'
cannot have `const' method qualifier
/opt/kde/include/kjs/value.h:382: error: non-member function `bool isInf()'
cannot have `const' method qualifier
/opt/kde/include/kjs/value.h:393: error: parse error before `&' token
/opt/kde/include/kjs/value.h:393: error: new declaration `Number
dynamicCast(...)'
/opt/kde/include/kjs/value.h:355: error: ambiguates old declaration `String
dynamicCast(...)'
/opt/kde/include/kjs/value.h:396: error: parse error before `*' token
In file included from /opt/kde/include/kjs/completion.h:28,
from /opt/kde/include/kjs/types.h:24,
from /opt/kde/include/kjs/object.h:32,
from styleclockwidget/clockpaintview.h:16,
from styleclock.cpp:24:
/opt/kde/include/kjs/identifier.h:34: error: parse error before `*' token
/opt/kde/include/kjs/identifier.h:34: error: missing ';' before right brace
/opt/kde/include/kjs/identifier.h: In constructor `
KJS::Identifier::Identifier(const char*)':
/opt/kde/include/kjs/identifier.h:33: error: class `KJS::Identifier' does not
have any field named `_ustring'
/opt/kde/include/kjs/identifier.h:33: error: `add' undeclared (first use this
function)
/opt/kde/include/kjs/identifier.h: At global scope:
/opt/kde/include/kjs/identifier.h:35: warning: `explicit' is not at beginning
of declaration
/opt/kde/include/kjs/identifier.h:35: error: parse error before `&' token
/opt/kde/include/kjs/identifier.h:35: error: ISO C++ forbids defining types
within return type
/opt/kde/include/kjs/identifier.h:35: error: only declarations of constructors
can be `explicit'
/opt/kde/include/kjs/identifier.h:35: error: semicolon missing after
declaration of `class KJS::Identifier'
/opt/kde/include/kjs/identifier.h: In function `int KJS::Identifier(...)':
/opt/kde/include/kjs/identifier.h:35: error: only constructors take base
initializers
/opt/kde/include/kjs/identifier.h:35: error: `s' undeclared (first use this
function)
/opt/kde/include/kjs/identifier.h:35: error: `add' undeclared (first use this
function)
/opt/kde/include/kjs/identifier.h:35: confused by earlier errors, bailing out
make[3]: *** [styleclock.lo] Error 1
make[3]: Leaving directory `/home/hans/Program/KDE/styleclock-0.4.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hans/Program/KDE/styleclock-0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hans/Program/KDE/styleclock-0.4.0'
make: *** [all] Error 2

Slackware 10, KDE 3.2.3.

Report

C

uddw

16 years ago

Show us the text around the first error message please..

Report

dws160468

16 years ago

I'm also on Slackware 10, KDE 3.2.3 and get the same error.

The point where it appears to go awry (at least in my case) is:

if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT styleclock.lo -MD -MP -MF ".deps/styleclock.Tpo" \
-c -o styleclock.lo `test -f 'styleclock.cpp' || echo './'`styleclock.cpp; \
then mv -f ".deps/styleclock.Tpo" ".deps/styleclock.Plo"; \
else rm -f ".deps/styleclock.Tpo"; exit 1; \
fi
In file included from styleclock.cpp:21:
styleconfigdlg.h:41: error: syntax error before `;' token
In file included from /opt/kde/include/kjs/value.h:30,
from styleclockwidget/clockpaintview.h:15,
from styleclock.cpp:24:
/opt/kde/include/kjs/ustring.h:69: error: parse error before `&' token
/opt/kde/include/kjs/ustring.h:99: error: syntax error before `::' token

Report

minio

16 years ago

I have also Slackware 10 KDE3.2.3 and exactly the same error

Report

manguz

16 years ago

same here, slack 10 , kde 3.3.0, gcc 3.3.4 and qt 3.3.3---> may be this???

Report

dannya

16 years ago

This is a great applet - however, because the images are resized from 128x128, the themes often look blurry.

Perhaps each theme could have many sizes, such as 32x32, 48x48, etc. just as kde icon sets have.

This would probably solve the blurriness.

Good job!
Danny

Report

bfkeats

16 years ago

The clock shows up as a black square for me. I have opengl support (glxgears works fine). Any ideas how to debug this?

Brian

Report

C

uddw

16 years ago

I haven't seen this error before.. hmm, when you try the binary clock without using a transparent background, do you see several black rectangles or is the whole thing black? Do you have any other gl program that uses textures and works? qt3-examples probably? What gl driver? Anyone else having this problem?

Report

bfkeats

16 years ago

The binary clock without the transparent background is a solid black square. The qt3 texture example compiles and runs fine. My opengl driver is radeon (i think). By the way, I'm running kde 3.3 beta but hopefully that wouldn't cause a problem.

Report

bfkeats

16 years ago

I switched from Xfree86 to Xorg and everything is fine. I probably had opengl support configured incorrectly before.

This feature is great, very easy on the eyes!

Report

Signal-9

16 years ago

clockpaintview.cpp:509: error: `properties' undeclared (first use this
function)
clockpaintview.cpp:509: error: (Each undeclared identifier is reported only
once for each function it appears in.)
clockpaintview.cpp:512: warning: comparison between signed and unsigned integer
expressions
clockpaintview.cpp:523: error: `setProperties' undeclared (first use this
function)
clockpaintview.cpp: In member function `void ClockPaintView::reloadSettings()':
clockpaintview.cpp:575: error: `theme' undeclared (first use this function)
clockpaintview.cpp:582: error: `properties' undeclared (first use this
function)
clockpaintview.cpp:583: warning: comparison between signed and unsigned integer
expressions
clockpaintview.cpp:593: error: `showSeconds' undeclared (first use this
function)
clockpaintview.cpp:610:30: clockpaintview.moc: No such file or directory
make[3]: *** [clockpaintview.lo] Error 1
make[3]: Leaving directory `/home/s9/Downloads/styleclock-0.4.0/src/styleclockwidget'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/s9/Downloads/styleclock-0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/s9/Downloads/styleclock-0.4.0'
make: *** [all] Error 2
---------------------------------------

Report

C

uddw

16 years ago

Looks like a problem with the ecmascript engine. What KDE Version/Distribution are you using?

Report

C

uddw

16 years ago

Pardon, I have to correct myself. It looks like something went wrong during generating prefs.h. But the question remains - which KDE version are you using? Could you show me the contents of prefs.h (via mail..)?

Report

mcbain007

16 years ago

Won't make install on my mandrake 10... got following errors :

grep: /usr/X11R6/lib/libGL.la: No such file or directory
/bin/sed: kan /usr/X11R6/lib/libGL.la niet lezen: No such file or directory
libtool: link: `/usr/X11R6/lib/libGL.la' is not a valid libtool archive
make[2]: *** [libstyleclock.la] Fout 1
make[2]: Leaving directory `/home/linuxdude/Documents/styleclock-0.4.0/src'
make[1]: *** [install-recursive] Fout 1
make[1]: Leaving directory `/home/linuxdude/Documents/styleclock-0.4.0/src'
make: *** [install-recursive] Fout 1


Any ideas ? anyone ? All tips welcome... i wanna have that kick ass clock toooooo :)

Greetz,

mcBain

Report

Ekardnam

16 years ago

I think you need libGL.

Report

mcbain007

16 years ago

I've checked to find that the file needed to install is missing on my system... i do have another file libGLU.la... but not the ligGL.la... any ideas how to get it up and running ?

Any help is welcome :-) thank you !

Greetings,

McBain

Report

Ekardnam

16 years ago

Sorry I'm not really sure, since:
1. I'm a big n00b :P
2. I've switched to Slackware.

What do you get if you run "urpmi libgl"? (su)
If you get "Everything is already installed" then try the devel:
urpmi *.devel.

Report

unna

16 years ago

Compiles, installs and works flawlessly. And is quite useful, as well. I do no longer have to use kalarm in my systray, since the functionality is already in the clock (well... it accepts somes enhancements, as well -the possibility to define the alarm message, for example-).
Besides, the overall look and feel is very nice, exception made, perhaps for the binary theme, which uses very big bits and could use some explanation.
For the moment being, I've replaced the clock applet by the styleclock, I mean to stick to it. Good job!

Report

C

uddw

16 years ago

I don't think customized alarm message make sense. I want to keep it simple and fast, so I assume that everyone can remember why one set the alarm a while ago ;) If your situation is more complicated, you better use kalarm.

The binary clock actually needs some tweaking. I was hoping that someone how is enough of a geek to use a binary clock (which doesn't include me) could fix the javascript code of that theme.
I demand the right to be lazy!

Report

Ekardnam

16 years ago

It is very nice, a wonderful app!
No problems on my Mandrake 10.

Report

econ2011

16 years ago

Yes, I think it is a good idea to add chimes. My linuxbox runs 24/7 and it would be nice if it chimed hourly very much like having a clock. I do not sit in front of my linuxbox all the time and hearing the time makes sense, don't you think? May I suggest hourly, every 30 minutes for the chimes? That's fine if default set to off. This applet is great!

Report

econ2011

16 years ago

hourly chimes, half hour that plays sounds or chimes similar to Big Ben this would really be a super applet. Nice work!!!

Report

C

uddw

16 years ago

Are you sure that *that* would make it a great applet? ;)) I actually thought about it, but then I thought it's a complete waste of time.

It wouldn't be hard though. I will add a standard notifications config dialog anyway to configure the alarm sound, then I can also add a possibility to play sounds every hour or such. But please forgive me if it will be turned off by default *g*.

I've always avoided to buy noisy clocks, so I'm not sure what intervals would be needed. Are four distinct sounds (full hour, :15 , :30, :45) enough?

Report

TimLinux

16 years ago

Compiled for me no problem under suse 9.1. It beautiful - I hope it gets included into core kde!

Report

16 years ago

New in 0.5.1:
- New digital theme: Centurion by Daniel Dotsenko
- Enabled date switch (only used by centurion so far)

New in 0.5:
- New theme: clean by Clairvoyant
- New theme: station
- Hopefully no black windows anymore
- Better support for theme developers

New in 0.4:
- The first user-contributed themes:
blue, simple - thanks to Sami Vento :)
- New textual theme: glow
- Possibility to change theme colors.
Only used in "glow" and "simple" so far.
- Better resize behaviour

New in 0.3:
- Popup calendar like the original KDE clock
- Saves recently used countdown times
- Ability to display non-rectangular clocks and a binary clock to demonstrate it.

New in 0.2:
- Transparency support
- Simple & efficient alarm clock/timer
- Nice context menu

12345678910
Be the first to comment
obelix
Dec 12 2009
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.5.1
updated Dec 13 2004
added Jul 14 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3