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

archiesteel

15 years ago

I forgot to add that I'm using the KDE3.2beta2 (3.1.94) rpms for Mandrake (cooker).

Report

tpr

15 years ago

I'm getting the same error here :(

I'm using yesterdays CVS HEAD and qt-copy (3.3.0-snapshot-20031220) if it matters..

Report

tpr

15 years ago

Works now, thank you very much! :)

Report

Svyatogor

15 years ago

Works you say? Any deatils on how did u make it work, coz i'm getting exactly the same error.

Report

tpr

15 years ago

Well, I think I just downloaded 0.4.1, and it worked then. If you're already using 0.4.1, I don't know then, can't remember. :(

Report

Twiggy794

15 years ago

Found it ~ kwin_plastik.la and kwin_plastik.so never got installed. The config files were, but not these two.

Is there a way for me to grab these somehow?

Report

Twiggy794

15 years ago

I pinned down something that could be the cause of the problem.

My first install of 3.2 screwed up my KDM so bad I had to completely reinstall Suse, but this lemme do a fresh install this time.

This time around I built arts, qt, libs, and base and then ran KDE and then I built artwork. Without artwork I had plastik working as a style, when I had artwork I had it as a style and a deco. But when I installed network, it disappeared from style.

Is there a conflicting package here that could cause this?

Report

C

ceebx

15 years ago

Very strange.
But I don't think there is a conflict between plastik and kdenetwork, because I and many others are running them together without problems. That's the first time I hear of such a problem with plastik, sorry.

Report

Twiggy794

15 years ago

Compiling kdeartwork doesn't give me a style either. Just a window decoration (for Plastik)

Report

jimmymallmann

15 years ago

you have to manualy enter de widget style directory and make install...

it happened when building debian packages too....

Report

C

ceebx

15 years ago

I have no idea what's wrong with your installation. Files "plastik.la" and "plastik.so" anywhere? Make sure they are located in /usr/lib/kde3/plugins/styles/ resp. $KDEDIR/lib/kde3/plugins/styles/ - NOT /usr/local/* .

Report

Twiggy794

15 years ago

Yeah ~ They're there, I checked that last night. I'm gonna uninstall KDE and give it a whack one more time from scratch; there's many many mannny more serious problems that popped up when I installed that that coulda been avoided. Prolly has something to do with that.

Thankya!

Report

Twiggy794

15 years ago

Ackkk I'm on Suse 8.2, compiled and ran it fine but there's nothing popping up in my Style menu, only for the Window Decoration. I need the styyyyyyyyyllllleee

Any idea how to fix it?

Report

C

ceebx

15 years ago

There is no KNifty (widget) style, it's only a window decoration.
The widget style you can see on the screenshot is Plastik; get it from http://kde-look.org/content/show.php?content=7559 or from KDE 3.2 kdeartwork.

Report

Twiggy794

15 years ago

I have kdeartwork 3.2 and I see the Plastik folder in there, but Plastik only turns up as window decoration as well, I just re-compiled it twice with no luck. And the old Plastik doesn't work with 3.2.

Report

mattrogers

15 years ago

If you have compilation errors, you _NEED_ to be running KDE from one of two places, either CVS or from one of the beta packages. If you're running KDE 3.1 it won't compile since KWin got completely redesigned.

Matt

Report

reignbow

15 years ago

Yes yes yes! My pleas have been heard! Since all packaged styles apart from KDE2 and Keramik are totally unbearable (at least to me) the release of a 3.2-compatible style is truely a godsend. Thank you!

Report

pynm0001

15 years ago

Yeah, I felt the same way as you, that's why I eventually started on trying to get the port mostly finished. I figured that if I could at least get it to compile and run, then Sandro would have no choice but to clean it up and release it. :)

Report

mthaler

15 years ago

Thank you very much for this great window decoration. I still use KDE2 windows decoration and QtCurve, but now I consider to move to knifty/plastic:-) By the way, I like the background picture you use in the screenshot. Very can I get it from?
Thanks,
Michael

Report

C

ceebx

15 years ago

The wallpaper is called "kTrend" you can get it from http://kde-look.org/content/show.php?content=8102#c36329

Report

Deciare

15 years ago

Thanks for porting this! I've missed Knifty ever since the new API was merged in. As others have said, Plastik (the style and the windeco) is fabulous, but I find Knifty even more stylish.

Report

Savagearth

15 years ago

I can't compile under Mandrake 10.0 (Cooker)

here's my output:

knifty.h:13:25: kdecoration.h: No such file or directory
knifty.h:14:32: kdecorationfactory.h: No such file or directory
In file included from knifty.cpp:12:
knifty.h:30: error: syntax error before `{' token
knifty.h:33: error: destructors must be member functions
knifty.h:34: error: virtual outside class declaration
knifty.h:35: error: syntax error before `*' token
knifty.h: In function `bool KNifty::initialized()':
knifty.h:37: error: `m_initialized' undeclared (first use this function)
knifty.h:37: error: (Each undeclared identifier is reported only once for each function it appears in.)
knifty.h: In function `int KNifty::titleHeight()':
knifty.h:39: error: `m_titleHeight' undeclared (first use this function)
knifty.h: In function `int KNifty::titleHeightTool()':
knifty.h:40: error: `m_titleHeightTool' undeclared (first use this function)
knifty.h: In function `QFont KNifty::titleFont()':
knifty.h:41: error: `m_titleFont' undeclared (first use this function)
knifty.h: In function `QFont KNifty::titleFontTool()':
knifty.h:42: error: `m_titleFontTool' undeclared (first use this function)
knifty.h: In function `bool KNifty::titleShadow()':
knifty.h:43: error: `m_titleShadow' undeclared (first use this function)
knifty.h: In function `bool KNifty::shrinkBorders()':
knifty.h:44: error: `m_shrinkBorders' undeclared (first use this function)
knifty.h: In function `int KNifty::borderSize()':
knifty.h:45: error: `m_borderSize' undeclared (first use this function)
knifty.h: In function `bool KNifty::useTitleColor()':
knifty.h:46: error: `m_useTitleColor' undeclared (first use this function)
knifty.h: In function `bool KNifty::useHighContrastHoveredButtons()':
knifty.h:47: error: `m_useHighContrastHoveredButtons' undeclared (first use this function)
knifty.h: In function `bool KNifty::bordersBlendColor()':
knifty.h:48: error: `m_bordersBlendColor' undeclared (first use this function)
knifty.h: In function `Qt::AlignmentFlags KNifty::titleAlign()':
knifty.h:49: error: `m_titleAlign' undeclared (first use this function)
knifty.h: At global scope:
knifty.h:52: error: syntax error before `private'
knifty.h:55: error: `bool KNifty::m_titleShadow' used prior to declaration
knifty.h:56: error: `bool KNifty::m_shrinkBorders' used prior to declaration
knifty.h:57: error: `bool KNifty::m_useTitleColor' used prior to declaration
knifty.h:58: error: `bool KNifty::m_useHighContrastHoveredButtons' used prior to declaration
knifty.h:59: error: `bool KNifty::m_bordersBlendColor' used prior to declaration
knifty.h:60: error: `int KNifty::m_borderSize' used prior to declaration
knifty.h:61: error: `int KNifty::m_titleHeight' used prior to declaration
knifty.h:62: error: `int KNifty::m_titleHeightTool' used prior to declaration
knifty.h:63: error: `QFont KNifty::m_titleFont' used prior to declaration
knifty.h:64: error: `QFont KNifty::m_titleFontTool' used prior to declaration
knifty.h:65: error: `Qt::AlignmentFlags KNifty::m_titleAlign' used prior to declaration
knifty.h:67: error: `bool KNifty::m_initialized' used prior to declaration
knifty.h:72: error: syntax error before `}' token
In file included from knifty.cpp:13:
kniftyclient.h:25: error: syntax error before `{' token
kniftyclient.h:26: error: virtual outside class declaration
kniftyclient.h:26: error: non-member function `const char* className()' cannot have `const' method qualifier
kniftyclient.h:26: error: virtual outside class declaration
kniftyclient.h:26: error: virtual outside class declaration
kniftyclient.h:26: error: virtual outside class declaration
kniftyclient.h:26: error: virtual outside class declaration
kniftyclient.h: In function `QObject* qObject()':
kniftyclient.h:26: error: invalid use of `this' in non-member function
kniftyclient.h: At global scope:
kniftyclient.h:26: error: syntax error before `private'
kniftyclient.h:29: error: destructors must be member functions
kniftyclient.h:31: error: virtual outside class declaration
kniftyclient.h:34: error: non-member function `QPixmap getTitleBarTile(bool)' cannot have `const' method qualifier
kniftyclient.h: In function `QPixmap getTitleBarTile(bool)':
kniftyclient.h:34: error: return type `struct QPixmap' is incomplete
kniftyclient.h:35: error: `aTitleBarTile' undeclared (first use this function)
kniftyclient.h:35: error: `iTitleBarTile' undeclared (first use this function)
kniftyclient.h: At global scope:
kniftyclient.h:37: error: syntax error before `protected'
kniftyclient.h:39: error: virtual outside class declaration
kniftyclient.h:40: error: virtual outside class declaration
kniftyclient.h:41: error: virtual outside class declaration
kniftyclient.h:43: error: virtual outside class declaration
kniftyclient.h:44: error: virtual outside class declaration
kniftyclient.h:44: error: non-member function `void borders(int&, int&, int&, int&)' cannot have `const' method qualifier
kniftyclient.h:45: error: virtual outside class declaration
kniftyclient.h:46: error: virtual outside class declaration
kniftyclient.h:47: error: virtual outside class declaration
kniftyclient.h:48: error: virtual outside class declaration
kniftyclient.h:49: error: virtual outside class declaration
kniftyclient.h:49: error: non-member function `bool isTool()' cannot have `const' method qualifier
kniftyclient.h:51: error: virtual outside class declaration
kniftyclient.h:52: error: virtual outside class declaration
kniftyclient.h:53: error: virtual outside class declaration
kniftyclient.h:54: error: virtual outside class declaration
kniftyclient.h:54: error: non-member function `QSize minimumSize()' cannot have `const' method qualifier
kniftyclient.h:55: error: syntax error before `(' token
kniftyclient.h:61: error: syntax error before `private'
kniftyclient.h:77: error: `QPixmap*aTitleBarTile' used prior to declaration
kniftyclient.h:77: error: `QPixmap*iTitleBarTile' used prior to declaration
kniftyclient.h:82: error: syntax error before `*' token
kniftyclient.h:90: error: syntax error before `}' token
knifty.cpp:20: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:20: error: assignment (not initialization) in declaration
knifty.cpp:21: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:21: error: assignment (not initialization) in declaration
knifty.cpp:22: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:22: error: assignment (not initialization) in declaration
knifty.cpp:23: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:23: error: assignment (not initialization) in declaration
knifty.cpp:24: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:24: error: assignment (not initialization) in declaration
knifty.cpp:25: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:25: error: assignment (not initialization) in declaration
knifty.cpp:26: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:26: error: assignment (not initialization) in declaration
knifty.cpp:27: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:27: error: assignment (not initialization) in declaration
knifty.cpp:28: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:28: error: assignment (not initialization) in declaration
knifty.cpp:29: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:29: error: assignment (not initialization) in declaration
knifty.cpp:30: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:30: error: assignment (not initialization) in declaration
knifty.cpp:31: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:31: error: assignment (not initialization) in declaration
knifty.cpp:34: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:39: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp:43: error: syntax error before `*' token
knifty.cpp:50: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp: In member function `bool KNifty::KniftyHandler::reset(long unsigned int)':
knifty.cpp:51: error: `options' undeclared (first use this function)
knifty.cpp:58: error: `readConfig' undeclared (first use this function)
knifty.cpp:61: error: `resetDecorations' undeclared (first use this function)
knifty.cpp: At global scope:
knifty.cpp:69: error: invalid use of undefined type `class KNifty::KniftyHandler'
knifty.h:29: error: forward declaration of `class KNifty::KniftyHandler'
knifty.cpp: In member function `bool KNifty::KniftyHandler::readConfig()':
knifty.cpp:77: error: `KDecoration' undeclared (first use this function)
knifty.cpp:77: error: syntax error before `::' token
knifty.cpp:81: error: `BorderLarge' undeclared (first use this function)
knifty.cpp:81: error: case label `' not within a switch statement
knifty.cpp:84: error: `BorderVeryLarge' undeclared (first use this function)
knifty.cpp:84: error: case label `' not within a switch statement
knifty.cpp:87: error: `BorderHuge' undeclared (first use this function)
knifty.cpp:87: error: case label `' not within a switch statement
knifty.cpp:90: error: `BorderVeryHuge' undeclared (first use this function)
knifty.cpp:90: error: case label `' not within a switch statement
knifty.cpp:93: error: `BorderOversized' undeclared (first use this function)
knifty.cpp:93: error: case label `' not within a switch statement
knifty.cpp:96: error: `BorderNormal' undeclared (first use this function)
knifty.cpp:96: error: case label `' not within a switch statement
knifty.cpp:97: error: `default' label not within a switch statement
knifty.cpp: At global scope:
knifty.cpp:104: error: ISO C++ forbids declaration of `m_titleHeight' with no type
knifty.cpp:106: error: ISO C++ forbids declaration of `fm' with no type
knifty.cpp:106: error: conflicting types for `int fm'
knifty.cpp:101: error: previous declaration as `QFontMetrics fm'
knifty.cpp:109: error: ISO C++ forbids declaration of `m_titleHeightTool' with no type
knifty.cpp:109: error: request for member `height' in `fm', which is of non-aggregate type `int'
knifty.cpp:109: error: request for member `height' in `fm', which is of non-aggregate type `int'
knifty.cpp:111: error: `config' was not declared in this scope
knifty.cpp:112: error: syntax error before `if'
knifty.cpp:116: error: ISO C++ forbids declaration of `m_useHighContrastHoveredButtons' with no type
knifty.cpp:116: error: `config' was not declared in this scope
knifty.cpp:117: error: ISO C++ forbids declaration of `m_useTitleColor' with no type
knifty.cpp:117: error: `config' was not declared in this scope
knifty.cpp:118: error: ISO C++ forbids declaration of `m_bordersBlendColor' with no type
knifty.cpp:118: error: `config' was not declared in this scope
knifty.cpp:120: error: syntax error before `return'
knifty.cpp:127: error: syntax error before `*' token
knifty.cpp:131: error: syntax error before `*' token
kniftyclient.h:26: warning: `bool qt_static_property(QObject*, int, int, QVariant*)' declared `static' but never defined
kniftyclient.h:26: warning: `QMetaObject* staticMetaObject()' declared `static' but never defined
kniftyclient.h:26: warning: `QString tr(const char*, const char*)' declared `static' but never defined
kniftyclient.h:26: warning: `QString trUtf8(const char*, const char*)' declared `static' but never defined
knifty.h:37: warning: `bool KNifty::initialized()' defined but not used
knifty.h:39: warning: `int KNifty::titleHeight()' defined but not used
knifty.h:40: warning: `int KNifty::titleHeightTool()' defined but not used
knifty.h:41: warning: `QFont KNifty::titleFont()' defined but not used
knifty.h:42: warning: `QFont KNifty::titleFontTool()' defined but not used
knifty.h:43: warning: `bool KNifty::titleShadow()' defined but not used
knifty.h:44: warning: `bool KNifty::shrinkBorders()' defined but not used
knifty.h:45: warning: `int KNifty::borderSize()' defined but not used
knifty.h:46: warning: `bool KNifty::useTitleColor()' defined but not used
knifty.h:47: warning: `bool KNifty::useHighContrastHoveredButtons()' defined but not used
knifty.h:48: warning: `bool KNifty::bordersBlendColor()' defined but not used
knifty.h:49: warning: `Qt::AlignmentFlags KNifty::titleAlign()' defined but not used
knifty.h:57: warning: `bool KNifty::m_useTitleColor' defined but not used
knifty.h:58: warning: `bool KNifty::m_useHighContrastHoveredButtons' defined but not used
knifty.h:59: warning: `bool KNifty::m_bordersBlendColor' defined but not used
knifty.h:61: warning: `int KNifty::m_titleHeight' defined but not used
knifty.h:62: warning: `int KNifty::m_titleHeightTool' defined but not used
knifty.h:65: warning: `Qt::AlignmentFlags KNifty::m_titleAlign' defined but not used
make[3]: *** [knifty.lo] Error 1
make[3]: Leaving directory `/home/albator/Download/8841-knifty-0.4.0/knifty-0.4.0/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/albator/Download/8841-knifty-0.4.0/knifty-0.4.0/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/albator/Download/8841-knifty-0.4.0/knifty-0.4.0'
make: *** [all] Error 2

Can u help me plz,

regards, Savagearth.

Report

FndDth

15 years ago

How to compile on SuSE 9.0...
I try ./configure --prefix=/usr
make
but... on "make" show me some errors.

Report

solspin

15 years ago

It is ./configure --prefix=/opt/kde3

Report

pynm0001

15 years ago

Could you please post the output of the make command? At least the last few lines, starting with the first error. Perhaps the --prefix is wrong, but I'm not familiar with SuSE 9.0.

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 today
0
page views today 3
System Tags linux unix