Knifty (KDE >= 3.2)

KDE 3.x Window Decorations

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
Score 50.0%
Description:

Knifty for KDE version 3.2 and above.
Last changelog:

15 years ago

0.4.2
- Fix compile for gcc 3.4.x
- Make titlebar buttons only react on left-click, if they have one function
only. (Bug #58220)
- Set the correct state for OnAllDesktop/Maximize buttons in the initialization.
- Some minor cleanups...
0.4.1
- Update to recent API changes in KWin CVS.
0.4.0
- Ported to the KDE 3.2 window decoration API (thank
you Michael Pyne!).
- Cleaned up the configuration dialog:
- Removed the "shrink borders" setting. (use KWin's
"allow moving and resizing of maximized windows"
setting.)
- Removed the "border size" setting. (Configurable
globally in KWin now.)
- Removed the "titlebar height" setting. (Overlapping
with the font size setting & quite limited space for
the config dialog :) )

ultr

10 years ago

Nice theme.
But it's too bad not all the buttons are available :/ I use KeepAbove and Shade buttons in my decorations.

Report

MoOnShIn3

11 years ago

during the make command it aborts installation...

----------
make[3]: Betrete Verzeichnis '/tmp/kompile-tmp/knifty-0.4.2/client' source='knifty.cpp' object='knifty.lo' libtool=yes \ depfile='.deps/knifty.Plo' tmpdepfile='.deps/knifty.TPlo' \ depmode=gcc3 /bin/bash ../admin/depcomp \ /bin/bash ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I. -I/usr/include/kde/kwin -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_PLUGIN -c -o knifty.lo `test -f 'knifty.cpp' || echo './'`knifty.cpp
In file included from knifty.cpp:12
:
knifty.h:13:25:
error: kdecoration.h: No such file or directory knifty.h:14:32: error: kdecorationfactory.h: No such file or directory
knifty.h:30: error: expected class-name before '{' token

knifty.h:35: error: ISO C++ forbids declaration of 'KDecoration' with no type

knifty.h:35: error: 'KDecoration' declared as a 'virtual' field

knifty.h:35: error: expected ';' before '*' token

knifty.h:30: warning: 'class KNifty::KniftyHandler' has virtual functions but non-virtual destructor

kniftyclient.h:25: error: expected class-name before '{' token kniftyclient.h:28: error: expected `)' before '*' token kniftyclient.h:55: error: 'Position' does not name a type kniftyclient.h:25: warning: 'class KNifty::KniftyClient' has virtual functions but non-virtual destructor kniftyclient.h: In member function 'QPixmap KNifty::KniftyClient::getTitleBarTile(bool) const': kniftyclient.h:34: error: return type 'struct QPixmap' is incomplete knifty.cpp: At global scope: knifty.cpp:43: error: expected constructor, destructor, or type conversion before '*' token knifty.cpp: In member function 'virtual bool KNifty::KniftyHandler::reset(long unsigned int)': knifty.cpp:51: error: 'options' was not declared in this scope knifty.cpp:61: error: 'resetDecorations' was not declared in this scope knifty.cpp: In member function 'bool KNifty::KniftyHandler::readConfig()': knifty.cpp:77: error: 'KDecoration' has not been declared knifty.cpp:78: error: 'BorderTiny' was not declared in this scope knifty.cpp:81: error: 'Bor
make[3]: Verlasse Verzeichnis '/tmp/kompile-tmp/knifty-0.4.2/client'
derLarge' was not declared in this scope knifty.cpp:84: error: 'BorderVeryLarge' was not declared in this scope knifty.cpp:87: error: 'BorderHuge' was not declared in this scope knifty.cpp:90: error: 'BorderVeryHuge' was not declared in this scope knifty.cpp:93: error: 'BorderOversized' was not declared in this scope knifty.cpp:96: error: 'BorderNormal' was not declared in this scope knifty.cpp: At global scope: knifty.cpp:131: error: expected constructor, destructor, or type conversion before '*' token knifty.cpp:127: warning: 'handler' defined but not used
make[2]: Verlasse Verzeichnis '/tmp/kompile-tmp/knifty-0.4.2/client'
make[3]: *** [knifty.lo] Fehler 1
make[1]: Verlasse Verzeichnis '/tmp/kompile-tmp/knifty-0.4.2'
make[2]: *** [all-recursive] Fehler 1
make[1]: *** [all-recursive] Fehler 1
make: *** [all] Fehler 2
Error during sources build. Installation aborted!
----------

what's the reason? =(

Report

prostetnik

12 years ago

...but unfortunately all scroll-functions on the title-bar are disabled.

Nevertheless I love it!
thank You!
prostetnik

Report

prostetnik

12 years ago

...correction:
The wheel-function!

Report

hatemath

13 years ago

nice work,thank you.

Report

nielsadb

13 years ago

Nice deco, very clean and functional.

However, using the mouse on the title bar doesn't give the expected result of executing the action defined under 'window behaviour'.

This was quite trivially fixed by adding a wheel event handler in the kniftyclient source. For those interested: a patch can be found here:
http://home.student.utwente.nl/n.h.m.aandebrugh/wheel_events.diff
Applying is done like this:
..../knifty-0.4.2$ patch -p1 < /path/to/mouse_events.diff

Report

poison

14 years ago

/me tries not to drool on your windeco
^^
i love it !
any chance for keep above others /below other button support ?
thank you ^^

Report

DavidA

13 years ago

yes, that's what i am missing, too.
Please add those missing buttons to the really best windeco for kde!

Report

tmtravolta

14 years ago

Oh yes, nice! But... can you limit the smallest possible title font? Now in some cases Utility windows got way too small font and become unreadable

Report

Molinman

14 years ago

I finally found a real clean and still interesting window decoration!

Thanks!

Report

flow

14 years ago

Best windecoration for KDE !
Great Work !

Report

PapaSkunk

14 years ago

Under KDE 3.3, I get the following error:

config.cpp:110:22: config.moc: No such file or directory
make[3]: *** [config.lo] Error 1
make[3]: Leaving directory `/home/ryan/knifty/client/config'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ryan/knifty/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ryan/knifty'
make: *** [all] Error 2

So, I tried:

# moc config.h -o config.moc

And got this:

config.h:0: Warning: No relevant classes found. No output generated.

Moc generated an empty config.moc however, which of course generated even more errors (tried to make it just to see what would hapen). Not exactly sure what's going on here...

Report

tpz

14 years ago

here the link for the debian package
http://tpz.no-ip.com/download/knifty-0.4.1_1-1_i386.deb

Report

RikRat

14 years ago

Works great, thanks!

Report

wdmy

14 years ago

I am a beginner of linux.
I start to install this theme ,when I type ./configure,
it will ends at
"checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!"
what's wrong?or maybe I must install some other software?

Report

sarahb523

14 years ago

please include the 4 new kde 3.3 title bar buttons. thx

Report

sindre

15 years ago

In the early versions of knifty you could resize the vertical height of the window decoration without increasing the font-size. Is there a way to still do this? I can't stand big fonts, but I think the window decoration is too small using my preferred font size.

Report

N3xt

14 years ago

yup, that's the only thing stopping me from using this decoration :/

Report

l1nx

15 years ago

yea...i agree to!

Report

nbensa

15 years ago

Hello,

I'm moving to kde3.3, will knifty work with it?

Thanks,
Norberto

Report

C

ceebx

15 years ago

Yes, works fine.

Report

rfujimoto

15 years ago

Compile failed on gcc-3.4.0 with this error message:

make[3]: Entering directory `/home/rfujimoto/work/knifty-0.4.1/client'
source='kniftyclient.cpp' object='kniftyclient.lo' libtool=yes \
depfile='.deps/kniftyclient.Plo' tmpdepfile='.deps/kniftyclient.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I. -I/usr/kde/3.3/include/kwin -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_PLUGIN -c -o kniftyclient.lo `test -f 'kniftyclient.cpp' || echo './'`kniftyclient.cpp
kniftyclient.cpp: In member function `void KNifty::KniftyClient::update_captionBuffer()':
kniftyclient.cpp:796: error: no match for call to `(QString) ()'
distcc[14752] ERROR: compile on localhost failed
make[3]: *** [kniftyclient.lo] Error 1
make[3]: Leaving directory `/home/rfujimoto/work/knifty-0.4.1/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rfujimoto/work/knifty-0.4.1/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rfujimoto/work/knifty-0.4.1'
make: *** [all] Error 2

---------------------

I was able to successfully compile with gcc-3.3.3 but not 3.4.0 - Thanks for the windeco :)

Report

LightStruk

15 years ago

The screenshot looks great, but I'm having lots of trouble matching it on my system. I've successfully emerged Knifty 0.4.1, and I can now select it in my Window Decorations control panel. Does anybody know what settings the author is using in the screenshot? What widget style, color scheme, fonts, etc. Of course, if anybody has better suggestions, I'll try them out.

Report

C

ceebx

15 years ago

The widget style is Plastik, but I'm not sure about the color sheme. I think it's the old sheme included in Plastik 0.3.9. The font is Bitstream Vera Sans, the ebuild is called "ttf-bitstream-vera".
I don't remember the name of the wallpaper, I found it on this site.

Report

Ekardnam

15 years ago

Please remove the blue/grey (?) line at
top, otherwise I think I'll use knifty!

Report

15 years ago

0.4.2
- Fix compile for gcc 3.4.x
- Make titlebar buttons only react on left-click, if they have one function
only. (Bug #58220)
- Set the correct state for OnAllDesktop/Maximize buttons in the initialization.
- Some minor cleanups...
0.4.1
- Update to recent API changes in KWin CVS.
0.4.0
- Ported to the KDE 3.2 window decoration API (thank
you Michael Pyne!).
- Cleaned up the configuration dialog:
- Removed the "shrink borders" setting. (use KWin's
"allow moving and resizing of maximized windows"
setting.)
- Removed the "border size" setting. (Configurable
globally in KWin now.)
- Removed the "titlebar height" setting. (Overlapping
with the font size setting & quite limited space for
the config dialog :) )

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.4.2
updated Jul 21 2004
added Nov 09 2003
downloads 24h
0
page views 24h 13
System Tags linux unix