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

C

uddw

16 years ago

It would be possible, since it doesn't have to many dependencies. Besides kdelibs you only need the libGL. The biggest problem is probably the need for OpenGL. Some people seem to have problems because of buggy drivers and KDE may run on platforms without OpenGL at all.
And the applet isn't as lightweight as I was hoping at first, so I don't know if it would be a good idea to integrate it into the standard clock.

But maybe I can move it to kdeextragear eventually. Pro: More likely to get packaged, translations. Contra: I would have to use CVS instead of Subversion. Hmmm...

Report

chilly

16 years ago

this little handy and very nice thing crashes when pressing "Configure..." from menu...
any ideas? i have Gentoo and KDE 3.2.3 compiled by myself

Using host libthread_db library "/lib/libthread_db.so.1".
0x412d9968 in waitpid () from /lib/libpthread.so.0
#0 0x412d9968 in waitpid () from /lib/libpthread.so.0
#1 0x4086adc4 in __JCR_LIST__ () from /usr/install/kde/lib/libkdecore.so.4
#2 0x4079d1d8 in KCrash::defaultCrashHandler(int) ()
from /usr/install/kde/lib/libkdecore.so.4
#3 0x412d8653 in __pthread_clock_settime () from /lib/libpthread.so.0
#4
#5 0x4144f741 in kill () from /lib/libc.so.6
#6 0x412d5be0 in pthread_kill () from /lib/libpthread.so.0
#7 0x412d5f3b in raise () from /lib/libpthread.so.0
#8 0x4144f322 in raise () from /lib/libc.so.6
#9 0x41450b9c in abort () from /lib/libc.so.6
#10 0x41448789 in __assert_fail () from /lib/libc.so.6
#11 0x40833761 in KConfigDialogManager::parseChildren(QWidget const*, bool) ()
from /usr/install/kde/lib/libkdecore.so.4
#12 0x40832d3e in KConfigDialogManager::parseChildren(QWidget const*, bool) ()
from /usr/install/kde/lib/libkdecore.so.4
#13 0x40832a4e in KConfigDialogManager::addWidget(QWidget*) ()
from /usr/install/kde/lib/libkdecore.so.4
#14 0x40608a8f in KConfigDialog::addPage(QWidget*, QString const&, QString const&, QString const&, bool) () from /usr/install/kde/lib/libkdeui.so.4
#15 0x41890efc in StyleConfigDialog::StyleConfigDialog(QWidget*, Prefs*, ClockPaintView*) () from /usr/install/kde/lib/libstyleclock.so
#16 0x4188c8cc in StyleClock::preferences() ()
from /usr/install/kde/lib/libstyleclock.so
#17 0x4188c824 in StyleClock::slotShowPreferences() ()
from /usr/install/kde/lib/libstyleclock.so
#18 0x418975cf in StyleClock::qt_invoke(int, QUObject*) ()
from /usr/install/kde/lib/libstyleclock.so
#19 0x40b888bc in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/qt/3/lib/libqt-mt.so.3
#20 0x40eb86aa in QSignal::signal(QVariant const&) ()
from /usr/qt/3/lib/libqt-mt.so.3
#21 0x40ba261d in QSignal::activate() () from /usr/qt/3/lib/libqt-mt.so.3
#22 0x40c8b585 in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
from /usr/qt/3/lib/libqt-mt.so.3
#23 0x40bbe0d7 in QWidget::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3
#24 0x40b2d3af in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/qt/3/lib/libqt-mt.so.3
#25 0x40b2c870 in QApplication::notify(QObject*, QEvent*) ()
from /usr/qt/3/lib/libqt-mt.so.3
#26 0x406f7b18 in KApplication::notify(QObject*, QEvent*) ()
from /usr/install/kde/lib/libkdecore.so.4
#27 0x40ac308b in QETWidget::translateMouseEvent(_XEvent const*) ()
from /usr/qt/3/lib/libqt-mt.so.3
#28 0x40ac1100 in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/qt/3/lib/libqt-mt.so.3
#29 0x40ad7f41 in QEventLoop::processEvents(unsigned) ()
from /usr/qt/3/lib/libqt-mt.so.3
#30 0x40b3f3c8 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#31 0x40b3f278 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#32 0x40b2d601 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#33 0x415c7511 in kdemain ()
from /usr/install/kde/lib/libkdeinit_appletproxy.so
#34 0x415c1936 in kdeinitmain () from /usr/install/kde/lib/kde3/appletproxy.so
#35 0x0804cdd1 in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#36 0x0804e394 in handle_launcher_request(int) ()
#37 0x0804e8e0 in handle_requests(int) ()
#38 0x0804f9c7 in main ()

Report

C

uddw

16 years ago

I can't reproduce this error. Does it happen every time or only under certain (which?) conditions? With all themes, with all kicker orientations.. uhm.. so far I'm clueless.

Report

yglodt

16 years ago

Nice clock!

Any debs around...?

Report

C

uddw

16 years ago

I build some debs for myself, but I haven't published them. You can easily build your own. Unpack it, "cd styleclock-0.4.0", and then something like "fakeroot debian/rules binary".

Report

yglodt

16 years ago

I know I could do that, but in fact I
am on dial-up and have not installed
any k-development stuff at all... :-(

Report

The-Q

16 years ago

i get so many compiling errors on many files.
did anyone succeeded compiling 0.4.0?

Report

The-Q

16 years ago

well, 0.3.1 compiles.
it must be something in 0.4.0 changes.

Report

C

uddw

16 years ago

But I guess you understand that I can't help a lot when the only thing I know is that it's not compiling.. which distribution, which KDE version, which OpenGL-driver and most importanly - what compiler errors?

Report

Renze

16 years ago

KDE 3.2.1 built from source, on a home-made distro.

I get the following:

In file included from styleclock.cpp:21:
styleconfigdlg.h:41: syntax error before `;'
In file included from /usr/local/kde3.2.1/include/kjs/value.h:30,
from styleclockwidget/clockpaintview.h:15,
from styleclock.cpp:24:
/usr/local/kde3.2.1/include/kjs/ustring.h:69: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:99: syntax error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h:100: syntax error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h:101: syntax error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h:102: syntax error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h:103: syntax error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h:121: parse error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:121: missing ';' before right brace
/usr/local/kde3.2.1/include/kjs/ustring.h:122: semicolon missing after declaration of
`KJS::UCharReference'
/usr/local/kde3.2.1/include/kjs/ustring.h:130: syntax error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:134: non-member function `unicode ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `short unsigned int unicode ()':
/usr/local/kde3.2.1/include/kjs/ustring.h:134: `ref' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h:134: (Each undeclared identifier is reported only once for
each function it appears in.)
/usr/local/kde3.2.1/include/kjs/ustring.h: At top level:
/usr/local/kde3.2.1/include/kjs/ustring.h:138: non-member function `low ()' cannot have `const' method
qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:142: non-member function `high ()' cannot have `const' method
qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:146: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:150: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:155: syntax error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:156: syntax error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:158: parse error before `}'
/usr/local/kde3.2.1/include/kjs/ustring.h:160: syntax error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h:202: `UChar' was not declared in this scope
/usr/local/kde3.2.1/include/kjs/ustring.h:202: `d' was not declared in this scope
/usr/local/kde3.2.1/include/kjs/ustring.h:202: parse error before `)'
/usr/local/kde3.2.1/include/kjs/ustring.h:205: syntax error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:206: semicolon missing after declaration of `UString::Rep'
/usr/local/kde3.2.1/include/kjs/ustring.h:206: extraneous `int' ignored
/usr/local/kde3.2.1/include/kjs/ustring.h:210: parse error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:216: syntax error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h: In method `UString::Rep UString::size () const':
/usr/local/kde3.2.1/include/kjs/ustring.h:206: conversion from `const int' to non-scalar type
`UString::Rep' requested
/usr/local/kde3.2.1/include/kjs/ustring.h: In method `int UString::hash () const':
/usr/local/kde3.2.1/include/kjs/ustring.h:208: `dat' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h: In method `void UString::deref ()':
/usr/local/kde3.2.1/include/kjs/ustring.h:214: no matching function for call to `destroy ()'
/usr/include/g++-3/stl_construct.h:81: candidates are: void destroy
(char *, char *)
/usr/include/g++-3/stl_construct.h:82: void destroy
(__wchar_t *, __wchar_t *)
/usr/local/kde3.2.1/include/kjs/ustring.h: At top level:
/usr/local/kde3.2.1/include/kjs/ustring.h:228: parse error before `public'
/usr/local/kde3.2.1/include/kjs/ustring.h:236: parse error before `char'
/usr/local/kde3.2.1/include/kjs/ustring.h:240: parse error before `const'
/usr/local/kde3.2.1/include/kjs/ustring.h:245: parse error before `const'
/usr/local/kde3.2.1/include/kjs/ustring.h:252: parse error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:256: parse error before `const'
/usr/local/kde3.2.1/include/kjs/ustring.h:264: parse error before `const'
/usr/local/kde3.2.1/include/kjs/ustring.h:268: parse error before `const'
/usr/local/kde3.2.1/include/kjs/ustring.h:272: parse error before `const'
/usr/local/kde3.2.1/include/kjs/ustring.h:277: destructors must be member functions
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `void UString ()':
/usr/local/kde3.2.1/include/kjs/ustring.h:277: `release' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h: At top level:
/usr/local/kde3.2.1/include/kjs/ustring.h:282: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:286: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:290: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:294: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:299: syntax error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:304: non-member function `cstring ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:312: non-member function `ascii ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:316: non-member function `string ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:320: non-member function `qstring ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:324: non-member function `qconststring ()' cannot have
`const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:329: syntax error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:330: syntax error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:334: syntax error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:339: syntax error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:343: non-member function `isNull ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `bool isNull ()':
/usr/local/kde3.2.1/include/kjs/ustring.h:343: `rep' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h:343: `Rep' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h:343: parse error before `::'
/usr/local/kde3.2.1/include/kjs/ustring.h: At top level:
/usr/local/kde3.2.1/include/kjs/ustring.h:347: non-member function `isEmpty ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:355: non-member function `is8Bit ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:359: non-member function `size ()' cannot have `const' method
qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:363: syntax error before `operator'
/usr/local/kde3.2.1/include/kjs/ustring.h:367: `operator[] (int)' must be a nonstatic member function
/usr/local/kde3.2.1/include/kjs/ustring.h:367: `operator[] (int)' must take exactly two arguments
/usr/local/kde3.2.1/include/kjs/ustring.h:377: non-member function `toDouble (bool, bool)' cannot have
`const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:378: non-member function `toDouble (bool)' cannot have
`const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:379: non-member function `toDouble ()' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:385: non-member function `toULong (bool *, bool)' cannot have
`const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:386: non-member function `toULong (bool *)' cannot have
`const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:388: non-member function `toStrictUInt32 (bool *)' cannot
have `const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:396: non-member function `toArrayIndex (bool *)' cannot have
`const' method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:401: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:405: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:410: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:410: non-member function `find (...)' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:411: `UChar' was not declared in this scope
/usr/local/kde3.2.1/include/kjs/ustring.h:411: parse error before `='
/usr/local/kde3.2.1/include/kjs/ustring.h:411: non-member function `find (...)' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:417: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:417: non-member function `rfind (...)' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:418: `UChar' was not declared in this scope
/usr/local/kde3.2.1/include/kjs/ustring.h:418: parse error before `)'
/usr/local/kde3.2.1/include/kjs/ustring.h:418: non-member function `rfind (...)' cannot have `const'
method qualifier
/usr/local/kde3.2.1/include/kjs/ustring.h:422: syntax error before `('
/usr/local/kde3.2.1/include/kjs/ustring.h:426: syntax error before `;'
/usr/local/kde3.2.1/include/kjs/ustring.h:435: `r' was not declared in this scope
/usr/local/kde3.2.1/include/kjs/ustring.h:435: variable or field `attach' declared void
/usr/local/kde3.2.1/include/kjs/ustring.h:437: `void release ()' used prior to declaration
/usr/local/kde3.2.1/include/kjs/ustring.h:438: syntax error before `*'
/usr/local/kde3.2.1/include/kjs/ustring.h:441: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:441: `operator== (...)' must have an argument of class or
enumerated type
/usr/local/kde3.2.1/include/kjs/ustring.h:441: `operator== (...)' must take exactly two arguments
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `bool operator== (...)':
/usr/local/kde3.2.1/include/kjs/ustring.h:442: `c1' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h:442: `c2' undeclared (first use this function)
/usr/local/kde3.2.1/include/kjs/ustring.h: At top level:
/usr/local/kde3.2.1/include/kjs/ustring.h:444: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:444: `operator!= (...)' must have an argument of class or
enumerated type
/usr/local/kde3.2.1/include/kjs/ustring.h:444: `operator!= (...)' must take exactly two arguments
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `bool operator!= (...)':
/usr/local/kde3.2.1/include/kjs/ustring.h:445: `operator==' undeclared in namespace `KJS'
/usr/local/kde3.2.1/include/kjs/ustring.h: At top level:
/usr/local/kde3.2.1/include/kjs/ustring.h:447: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:447: `operator== (...)' must have an argument of class or
enumerated type
/usr/local/kde3.2.1/include/kjs/ustring.h:447: `operator== (...)' must take exactly two arguments
/usr/local/kde3.2.1/include/kjs/ustring.h:448: parse error before `&'
/usr/local/kde3.2.1/include/kjs/ustring.h:448: `operator!= (...)' must have an argument of class or
enumerated type
/usr/local/kde3.2.1/include/kjs/ustring.h:448: `operator!= (...)' must take exactly two arguments
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `bool operator!= (...)':
/usr/local/kde3.2.1/include/kjs/ustring.h:448: redefinition of `bool operator!= (...)'
/usr/local/kde3.2.1/include/kjs/ustring.h:444: `bool operator!= (...)' previously defined here
/usr/local/kde3.2.1/include/kjs/ustring.h: In function `bool operator!= (...)':
/usr/local/kde3.2.1/include/kjs/ustring.h:448: confused by earlier errors, bailing out

Report

C

uddw

16 years ago

For the first error it might help to add
#include <map> in styleconfigdlg.h

I can't check what could be wrong in kjs/value.h, since I'm not a home atm.

Report

Renze

16 years ago

That fixed everything. Thanks.

Report

C

uddw

16 years ago

yes

Report

tanhnhi

16 years ago

How can I launch the styleClock as a linux standalone application. In fact, my taskbar is pretty small for the clock and I don't want to make it (the task bar) bigger. So I want to start the clock as an application with customize size

Report

C

uddw

16 years ago

You can run it (like every other kicker applet) with the command "appletproxy styleclock". You will get a freely resizeable window with an ugly gray background. No transparency, and I'm not quite sure where the settings are saved (try appletproxy --help).

If I were you I would simply use a digital clock instead - styleclock will get a digital theme too btw. Ther infrastructure is there, now we need a good design.

Whatever, it's your choice ;)

Report

tanhnhi

16 years ago

thanks a lot! That's exactly what I want to do (using appletproxy). Again, thanks!

Report

Bam0112

16 years ago

Finally I have a nice looking clock on my kicker. Thanks for the nice piece of eye candy. Great little app!!!

Report

juanjux

16 years ago

You forgot to add:

#include in styleclock.cpp (if you don't include it it fails to know about std::sort).

Report

oshogg

16 years ago

I am unable to compile the 0.3 version. I tried including algorithms.h but it said can not find any such .h file.. which package will I need to install to get the algorithms.h ?


thanks,
Osho

Report

juanjux

16 years ago

Sorry, the forum eats the included file (probably because of the brackets), the file is "algorithms" (where sort is defined.)

Report

C

uddw

16 years ago

Hm, on debian it even compiles without it, but your right of course, thx.
Fixed in 0.3.1.

Report

managementboy

16 years ago

Hi, got it to compile (0.3) on KDE 3.3beta1 on SuSE 9.0

But I found a bug: When running other OpenGL programs like 3ddesktop the bitmaps get totally broken.

Otherwise it works great!

Report

mseiwert

16 years ago

Very, very nice app !!! Sometimes I have some funny effects with initial resizing. The clock(crystal) is looking somewhat stretched. :-)

Good work !

Michael

Report

peppelorum

16 years ago

Nice app, now I don't have to start "Tea cooker" just to make a countdown=)

Report

DoNny

16 years ago

hi, i have the same errors with fedora core 2, i also have the nvidia driver!!

here my configuration:
qt: 3.3.2
kde:3.2.3
lastest nvidia driver

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