Window Decoration Generator (decgen)

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

1
Score 50.0%
Description:

Window Decoration Generator

0.5 New! Added wheel event support (contributed by
Knut Morten Johansson, many thanks), fixed a few outstanding bugs, and bumped template to 0.2 including a complete images change. Read the ChangeLog!

0.4 adds a new configuration dialog to the generated window decorations as well as colorizing support (See screenshot 2).

With 0.3, decgen brings full automation to KDE window decoration generation. Prior to 0.3, after generating the header (super.h), it would have had to be integrated into the source tree manually. Now just run automerge and build your tree. If you can build a mockup, you can build a window decoration.

You'll need png2qrgb 0.3 and the decgen 0.4 download. And decent gimp'ing skills. ;)

Pay attention to README, CREATE, and COLORIZING within the decgen distribution. Any improved documentation, script hacks, or engine improvements, send them along.

Thank you come again.

"The bazaar software model doesn't work so well with everyone taking and not contributing back." - Fyodor
Last changelog:

13 years ago

2007-01-8 Nick Bargnesi

* tagged version 0.5

* template-0.2/kwin/template.h: mark-up the TOPSPACING variable

* template-0.2/kwin/template.cpp: modified to remove the help button as
the enfants decoration makes no use of it

* template-0.2/kwin/template.cpp: modified updateMask() to support the
enfants decoration

* images/*: defaulted to the enfants window decoration

2006-01-5 Nick Bargnesi

* template-0.2/kwin/template.h, template-0.2/kwin/template.cpp: added
WheelEvent support (TemplateClient::WheelEvent(QWheelEvent)) from Knut
Morten Johansson

* template-0.1.tar.bz2: migrated to version 0.2 with mouse wheel event
support

2005-09-11 Nick Bargnesi

* AUTHOR: added AUTHOR

* COLORIZING: added COLORIZING description

* template-0.1/kwin/config/templateconfig.ui: support colorizing options,
added tooltips, remade the configuration dialog

* template-0.1/kwin/temmplate.cpp: support colorizing, respecting KDE's
color settings

* CREATE: fixed more typos, probably introduced others, and added
documentation for automerge.sh

* automerge.sh: added automerge.sh to automate the tiles.h.stripped
step

* CREATE: clarified instructions to _not_ overwrite tiles.h.stripped
and ensure to save as tiles.h instead

* generate-header.sh: bail out if a super.h header already exists

* CREATE: fixed a typo

* transform.sh: Added -e option to transform script to support the
enable-libsuffix options to configure

* src/png2qrgb.cpp: Added error checking, verbose usage information, and
the --attr-only option to generate image width, height, names

* src/png2qrgb.1: Modified the man page source to reflect the new
attr-only option.

C

maitre

14 years ago

Ooh, okay. I'll have to check out Glass when I can. Maybe you could point me to where I could look within your source?

Report

tomoe

14 years ago

Hi.
Since i'm on a SuSE 64bit version i had to change transform.sh slightly to get it working.
Since i never used a 64bit version of another distributor i don't know if they also use libsuffix, but for SuSE it worked like this:

Changed
if bash configure --prefix=`kde-config --prefix` >/dev/null 2>&1; then

to
if bash configure --prefix=`kde-config --prefix` --enable-libsuffix=`kde-config --libsuffix` >/dev/null 2>&1; then

Since i don't have a 32bit version handy right now, i can't check if this line would also work on a 32bit system ...

Report

C

maitre

14 years ago

I'm on Gentoo in 64 bit, I remember that enable-libsuffix option from my days with Fedora though. How quickly I forget things like that when moving to Gentoo. :)

Thanks too, I'll incorporate a check for a 64 bit version when I can.

Report

felipe

14 years ago

What's the kwin theme in the third screenshot? It's awesome! I thought that by downloading the package i was actually getting *that*. Is it some sort of example created with dec-gen? If not, could you provide us with a download link? Many thanks :)

Report

C

maitre

14 years ago

Somatic-Red.

Report

janet

14 years ago

Can't wait ;)

Report

bitwit

14 years ago

way cool !
I was going to take Akwa (http://www.kde-look.org/content/show.php?content=17255
in this direction but I've been busy working ft.
the season is almost over and I'll have some time to compile, install, test.
I'll have some feedback for this proggie.
can't wait to get back to some coding.

Report

p0z3r

14 years ago

Now are the colors hardcoded into the windec based on the png's used or does it still honor the kde colors specified that non generated windecs use?

Report

C

maitre

14 years ago

More specifically and to the point, it's just like AKDC. Fancy shmancy but with the color restrictions. Care to hack the engine for me? ;)

Report

C

maitre

14 years ago

From what I can tell, the AKDC engine was about to include colorizing according to kcontrol but Rafael never got around to it. So currently there hard-coded to the PNGs.

So yeah, the color restriction is there but to be able to crank out window decorations from PNGs, fully native, is even simpler than the ice's decorations. And I've got the added benefits of transparency (screenshot 3). Something sorely missed in the kde icewm engine.

Report

chareos

14 years ago

Does this take a performance hit compared to kwin decorations ?

Report

C

maitre

14 years ago

what are you comparing to kwin decorations?

the packages I generate? Because they _are_ kwin decorations...

Report

GreatRedShark

14 years ago

I'm not at home so I can't try it right now, but if I understand, is this a shell script and a windeco template that can be executed by a user to create new windecos with little/no programming? if so, that is a damn cool idea! how much of the windeco can be customized through the script? I've played around with making my own windecos a little... this would be a very popular tool, especially with a nice GUI on the front.
can't wait to try this out, and then see more...

Report

C

maitre

14 years ago

That's exactly what it is. No frontends or anything but I'm pretty notorious for making things simple and easy to use.

I can currently generate a window decoration in the form of a tarball with a customized name. Once I get to a releasable version, it should be as simple as creating 26 individual PNG images used for the window borders and titlebars and running a script.

Report

kism

14 years ago

And follows these windecos the KDE color style?

Report

GreatRedShark

14 years ago

I guess it compiles the code for each new windeco? would it be possible to leave slots open so PowerUsers could write little callback functions that get added to the windeco?

This idea has a lot of potential...

Report

C

maitre

14 years ago

I'm using the AKDC engine by Rafael Castillo Huggins under the QPL license. My intentions are to let gimp users who want to build KDE window decorations (i.e., me :) build full native packages based on the PNG images supplied. The end result is a tarball (non-binary, redistributable) to be configured and built. So essentially, if you can hack on the AKDC or any KWin engine for that matter, you've got a good start with this method.

Report

RND

14 years ago

wheres the download? I just get a screenshot when clicking on the download link.

Report

aVirulence

14 years ago

I would say that is because he is almost finished

Report

ZIOlele

14 years ago

Could you please point me to the icons and colors' scheme you are using? I like 'em.

Thanks

Report

C

maitre

14 years ago

Icons are available here:
http://www.dlanham.com

Color scheme isn't anything special, its probably the hacked version of Lipstik you're looking at with interest. I could generate a patch for that.

Report

inckie

14 years ago

Hey! That's a port of Luna Element for Windows XP! >:-(

http://www.deviantart.com/deviation/18552868/

But I agree it's cool... that's what I use in Windows, that's what I'll use in KDE. Yay! ^_^

Report

angrymob

14 years ago

That is one sweet style... I would be using that in a heartbeat if someone ported that to KDE... willing/able to release it, maitre?

Report

C

maitre

14 years ago

Sure is! But the point is that hopefully I can come up with mechanisms that allow the gimps among us to create and port window decorations with limited if not 0% coding.

Report

djworld

14 years ago

Nice. It looks very similar to the Suse 9.3 windeco:

http://www.kde-look.org/content/show.php?content=23579

Report

13 years ago

2007-01-8 Nick Bargnesi

* tagged version 0.5

* template-0.2/kwin/template.h: mark-up the TOPSPACING variable

* template-0.2/kwin/template.cpp: modified to remove the help button as
the enfants decoration makes no use of it

* template-0.2/kwin/template.cpp: modified updateMask() to support the
enfants decoration

* images/*: defaulted to the enfants window decoration

2006-01-5 Nick Bargnesi

* template-0.2/kwin/template.h, template-0.2/kwin/template.cpp: added
WheelEvent support (TemplateClient::WheelEvent(QWheelEvent)) from Knut
Morten Johansson

* template-0.1.tar.bz2: migrated to version 0.2 with mouse wheel event
support

2005-09-11 Nick Bargnesi

* AUTHOR: added AUTHOR

* COLORIZING: added COLORIZING description

* template-0.1/kwin/config/templateconfig.ui: support colorizing options,
added tooltips, remade the configuration dialog

* template-0.1/kwin/temmplate.cpp: support colorizing, respecting KDE's
color settings

* CREATE: fixed more typos, probably introduced others, and added
documentation for automerge.sh

* automerge.sh: added automerge.sh to automate the tiles.h.stripped
step

* CREATE: clarified instructions to _not_ overwrite tiles.h.stripped
and ensure to save as tiles.h instead

* generate-header.sh: bail out if a super.h header already exists

* CREATE: fixed a typo

* transform.sh: Added -e option to transform script to support the
enable-libsuffix options to configure

* src/png2qrgb.cpp: Added error checking, verbose usage information, and
the --attr-only option to generate image width, height, names

* src/png2qrgb.1: Modified the man page source to reflect the new
attr-only option.

12345678910
product-maker Base: 4 x 5.0 Ratings
nitrofurano
Feb 12 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.5
updated Jan 08 2006
added Sep 09 2005
downloads 24h
0
pageviews 24h 5
System Tags linux unix