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 :) )

jazzesnee

15 years ago

i just compiled the knifty window decoration for my kde 3.2. compilation and make install worked fine, except that the files were copied to /usr/local/kde/lib/kde3 instead of /usr/lib/kde3. so i moved them manually into that directory. but when i want to select knifty in the drop-down-list in control center, it isn't there.
i've got exactly the same problem with the alloy window decoration, whereas the alloy style works fine...

Report

C

ceebx

15 years ago

Use the right --prefix (for example /usr) when you execute ./configure as it is (AFAIR) stated in the INSTALL doc.

Report

DXT

15 years ago

PARTIAL LOG (end of it, where i think the errors begin):

'knifty.cpp' || echo './'`knifty.cpp
knifty.cpp:127: warning: `KNifty::KniftyHandler*handler' defined but not used
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 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.2/include -I/usr/X11R6/include -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 -c -o kniftyclient.lo `test -f 'kniftyclient.cpp' || echo './'`kniftyclient.cpp
kniftyclient.cpp:27:28: kniftyclient.moc: No such file or directory
kniftyclient.cpp: In member function `void
KNifty::KniftyClient::menuButtonPressed()':
kniftyclient.cpp:724: error: incomplete type 'QApplication' cannot be used to
name a scope
make[3]: *** [kniftyclient.lo] Error 1
make[3]: Leaving directory `/home/michael/downloads/knifty-0.4.1/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/michael/downloads/knifty-0.4.1/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/michael/downloads/knifty-0.4.1'
make: *** [all] Error 2

COMPLETE LOG HERE: http://www.angelfire.com/ultra/dxt/output


I'm running FC1 + KDE 3.2.
help plz :( this window decoration will suite my Plastik style perfectly :)

Report

DXT

15 years ago

yey, it worked. thanks man.

it looks awesome! keep up the good work

Report

C

ceebx

15 years ago

I don't know why kniftyclient.moc hasn't been created automatically for you, but as a work-around you can create it by hand with "moc kniftyclient.h -o kniftyclient.moc" in the source folder.

Report

randomizer

15 years ago

I tried typing the suggested command:
moc kniftyclient.h -o kniftyclient.moc
in the client folder and it says that command moc not found.
What does moc stand here for

Report

C

ceebx

15 years ago

Moc is the Qt meta object compiler. It should come with your Qt installation...

Report

DXT

15 years ago

bah, sorry for the double post, it's probably 'cos i refreshed

Report

DXT

15 years ago

PARTIAL LOG (end of it, where i think the errors begin):

'knifty.cpp' || echo './'`knifty.cpp
knifty.cpp:127: warning: `KNifty::KniftyHandler*handler' defined but not used
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 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.2/include -I/usr/X11R6/include -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 -c -o kniftyclient.lo `test -f 'kniftyclient.cpp' || echo './'`kniftyclient.cpp
kniftyclient.cpp:27:28: kniftyclient.moc: No such file or directory
kniftyclient.cpp: In member function `void
KNifty::KniftyClient::menuButtonPressed()':
kniftyclient.cpp:724: error: incomplete type 'QApplication' cannot be used to
name a scope
make[3]: *** [kniftyclient.lo] Error 1
make[3]: Leaving directory `/home/michael/downloads/knifty-0.4.1/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/michael/downloads/knifty-0.4.1/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/michael/downloads/knifty-0.4.1'
make: *** [all] Error 2

COMPLETE LOG HERE: http://www.angelfire.com/ultra/dxt/output


I'm running FC1 + KDE 3.2.
help plz :( this window decoration will suite my Plastik style perfectly :)

Report

Flameeyes

15 years ago

I made an unofficial gentoo ebuild for this windeco. If there are no problems with this ebuild, I'll submit it to Gentoo for update.

The ebuild can be downloaded, among with many others, from my site http://flameeyes.web.ctonet.it/

Report

seraphyn

15 years ago

bute please change all the calls for 1.6 to normal like automake....

I got 1.7 and must set all the times new lns

greetz

Seraphyn

Report

seraphyn

15 years ago

Sorry,

i was wrong and learned something new,that was never happend before.

If somebody having that Problem try:
aclocal
automake and the ./configure ...

Report

keefaz

15 years ago

Yes, this is a very cool windows deco.

But on slackware 9.1, make complains that can't find /usr/lib/libfreetype.la

ln -s /usr/X11R6/lib/libfreetype.la /usr/lib/
...did solve the problem anyway but where I can change the link to /usr/lib/libfreetype.la in the knifty source files please? So I can perform a make without link the libfreetype.la library.

Thanks for this stylistic design again ;)

Report

FoundDeathX

15 years ago

see this error:
libtool: link: `/usr/lib/libGL.la' is not a valid libtool archive
make[3]: *** [kwin_knifty_config.la.closure] Error 1
------------------------------------------
any ideas?

Report

captainhaddock

15 years ago

I must say, this is the nicest, cleanest KDE theme I have ever seen. It'll be a permanent part of my desktop.

Report

connyosis

15 years ago

This is the best looking win deco I've seen. It's simple yet so incredibly elegant. Super work, keep it up!

Report

aaron

15 years ago

Compiles and installs fine, but when I use the window dec, it resizes then windows when i click on the top to drag them. Using KDE-cvs and i'd also like to say that mandrake-galaxy windec does the same thing - Looks fine, but going to move the window resizes it, can only move by right->clicking and selecting the move option. Can't wait till this is final though, keep up the good work.

Report

C

ceebx

15 years ago

Sounds like a bug in KWin. Actually, I've seen this a few weeks ago too but now it's gone. If the problem still remains reproducable with current CVS, please fill a bug report.

Report

jimmymallmann

15 years ago

happens to me... i have to switch back to other windeco then choose it again...

Report

jimmymallmann

15 years ago

i've got this error when compiling...

any idea?

++++++++++++++++++++++++++++++++++++++
kniftyclient.h:55: error: ISO C++ forbids declaration of `Position' with no
type
kniftyclient.h:55: error: `Position' declared as a `virtual' field
kniftyclient.h:55: error: syntax error before `(' token
knifty.cpp: In member function `virtual KDecoration*
KNifty::KniftyHandler::createDecoration(KDecorationBridge*)':
knifty.cpp:46: error: cannot allocate an object of type `KNifty::KniftyClient'
knifty.cpp:46: error: because the following virtual functions are abstract:
/usr/include/kde/kdecoration.h:479: error: virtual
KDecorationDefines::MousePosition KDecoration::mousePosition(const QPoint&)
const
knifty.cpp: At top level:
knifty.cpp:127: warning: `KNifty::KniftyHandler*handler' defined but not used
make[4]: ** [knifty.lo] Erro 1
make[4]: Leaving directory `/root/Packages/kde-kwin-knifty-0.4.1/client'
make[3]: ** [all-recursive] Erro 1
make[3]: Leaving directory `/root/Packages/kde-kwin-knifty-0.4.1/client'
make[2]: ** [all-recursive] Erro 1
make[2]: Leaving directory `/root/Packages/kde-kwin-knifty-0.4.1'
make[1]: ** [all] Erro 2
make[1]: Leaving directory `/root/Packages/kde-kwin-knifty-0.4.1'
make: ** [build] Erro 2
++++++++++++++++++++++++++++++++++++++

Report

jimmymallmann

15 years ago

I HAVE FIXED IT... IT NEED THE CVS (UPDATED) VERSION OF KDE 3.1.94

Report

oshogg

15 years ago

Maybe now this should be moved to native kde 3.2 section.

Report

codarin

15 years ago

I'm Working with Redhat 9.0.
Kde 3.2b2 (kernel 2.6).

The configure --prefix=/usr isn't working for me and the error regards libz (it tells me that I have an outdated version of Xfree (of perhaps of zlib)).

I'm using XFree 4.3.0 (bundled with Redhat 9.0) and zlib-1.2.0.7-2.i386 getted from rpmfind.net.

Any Idea? The screenshots are beatyful... I wanna this deco.
Ivan

Report

C

ceebx

15 years ago

I've heard that XFree ships with an old version of libz. But there is most likely a newer version of libz shipped with your distribution, this may confuse ./configure...
What's the output of

find /usr/X11R6/ -iname 'libz*'

Report

archiesteel

15 years ago

I get the following error:

In file included from knifty.cpp:13:
kniftyclient.h:55: error: ISO C++ forbids declaration of `MousePosition' with no type
kniftyclient.h:55: error: `MousePosition' declared as a `virtual' field
kniftyclient.h:55: error: syntax error before `(' token
knifty.cpp: In member function `virtual KDecoration* KNifty::KniftyHandler::createDecoration(KDecorationBridge*)':
knifty.cpp:46: error: cannot allocate an object of type `KNifty::KniftyClient'
knifty.cpp:46: error: because the following virtual functions are abstract:
/usr/include/kdecoration.h:498: error: virtual KDecorationDefines::Position KDecoration::mousePosition(const QPoint&) const
/usr/include/c++/3.3.1/bits/stl_map.h: At top level:
knifty.cpp:127: warning: `KNifty::KniftyHandler*handler' defined but not used
make[3]: *** [knifty.lo] Erreur 1

Seems to complain about ISO C++...

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 MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.4.2
updated Jul 21 2004
added Nov 09 2003
downloads 24h
0
page views 24h 5
System Tags linux unix