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
6.8
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

13 years ago

Oh, and no, no Lanham port. I haven't asked, but I don't think I've done it justice.

Report

C

maitre

13 years ago

It does respect the KDE Control Center's color settings. What made you think otherwise?

Report

peppelorum

13 years ago

Ah, I did miss the "Use KDE color settings", just saw the color selection boxes (or what to call them) and thought they were for the coloring. But now I understand how it works (pretty obvious if you look at the picture, which I obvious didn't do;-)

Report

pootie

13 years ago

Thanks for another great release. The colorize function is very nice, it is very well implemented and done quite tastefully in my opinion. My only wish now is for more configuration options when coloring the buttons. Great job! thanks a million.

Report

RedShirt

13 years ago

After installing png2qrgb on SuSE 10, it is not a valid command, it is however runable from /usr/local/kde/bin. I cannot generate headers(super.h is made blank). Any help?

Report

C

maitre

13 years ago

By default the configure script for most autotooled software installs to /usr/local -- I'd suggest becoming familiar with your distributions installation prefixes.

If you're on SuSE, I _think_ it's something to the tune of /opt/kde3.4?
So...
./configure --prefix=/opt/kde3.4

What's happening is png2qrgb is not in your path, you could also:
export PATH=/usr/local/kde/bin:$PATH

I'd go to the root of the problem though. Change your installation prefixes.

Report

mattepiu

13 years ago

hum, I did all similar to the example session (after modifying some pngs), I
did make, and now? how may I test the final result, what I need to package to redistribute a theme????
(I just tarred myfirsttheme directory....)

Report

C

maitre

13 years ago

sudo make install or as root, make install...

then if you're happy, run "make distclean" and tarball or zip it up!

Report

Devilz

13 years ago

I tried it on SuSE 10, but got several widget problems.

the complete error list here -> http://nopaste.snit.ch:8002/4557

Report

C

maitre

13 years ago

Your installation is missing KDE's development packages:

>test.h:49:25: error: kdecoration.h: No such file or directory
> test.h:50:32: error: kdecorationfactory.h: No such file or directory

Should be included in the kdelibs-devel package I think. Check YaST for KDE development stuff.

Report

deathguppie

13 years ago

Ya, I changed the tiles.h.stripped file, then renamed it tiles.h..

This time it builds but then crashes control center when I try to load it..

Is there a limit to the widget size?

I tried making them 16X16 instead o 14X14.. Is there something that must be edited to change this.. or doesn't it just use whatever you give it..

Report

C

maitre

13 years ago

Send me what you've got.

Report

chavo

13 years ago

I've made one with 22x20 buttons, no problem. Here's a shot -> http://www.neowin.net/forum/index.php?act=Attach&type=post&id=142075

Report

C

maitre

13 years ago

Very cool! Apparently you're a David Lanham fan too? (http://www.dlanham.com)

Report

deathguppie

13 years ago

I made some custom icons.. and titlebar etc. and the damn thing just shows the grey icons n matter what?

I don't get it?

I am in the directory in question when I run the script, and still no go..

My icons and colors do not show up!

Report

C

maitre

13 years ago

So after you came up with the images, did you run generate_header.sh and merge it with tiles.h?

You *did* read the documentation right?
;)

Report

mattepiu

13 years ago

In the docs there isn't the step on
merging with tiles.h .......

Report

deathguppie

13 years ago

no.. I actually merged it with tiles.h.stripped.. like the documentation says..

Quote:(Now rip out the bottom 26 lines from super.h (the image names) and insert
between lines 21 and 22 of kwin/tiles.h.stripped.)

I will try remaming it just tiles.h ...

Report

C

maitre

13 years ago

3468 downloads? And not one generated yet? Come on, all those window decoration concept / prototypes can be made now!

Report

pootie

13 years ago

Well, I am trying to make one, but it isn't really as straight forward as I had hoped. The template buttons are all one size, what if you want to make a different shape/size? There doesn't seem to be anything in the documentation about it. Also when making rounded corners on a windec, would you leave to rest of the .png transparent?

Report

C

maitre

13 years ago

For the buttons, I would keep the height of the biggest button to be less than the height of the titlebar. Other than that, size is up to you. Alter the button sizes of the template and see what happens.

For rounding corners and transparencies (like the third screenshot) you have to adjust the masks by hand. Its up to you whether or not you want to make the png transparent. For reference I would, but the masks are handling transparencies. (FYI masks are handled and documented in your kwin/packagename.cpp file).

Report

macp

13 years ago

nice project !!! it works great on my gentoo with kde3.4 but I have to specify where are the kde headers during the generated ./configure, cause the script doesn't find them

Could i ask you where I can find png you used to render the decoration on the first screenshot ??? it's look realy smooth :D

10/10

macp

Report

C

maitre

13 years ago

Created the pngs by hand from screenshots on deviantart.com of the element window decoration.

Thanks for the comments, what changes did you make to the script?

Report

macp

13 years ago

I did not modify your script I just had to specify kde headers dir with the "--prefix" parameter
could i ask you to send me png you use =)) ?????

Report

motyR

13 years ago

way Kooler than i thought it would be:) but if i may ask for one improvement i would have to say that the colors should not be hard coded as they were for akdc, i know that rafael had a problem in colorizing complicated deco's like for example Nvidia, but i offered some solution by painting in layers ( http://kde-look.org/content/preview.php?preview=1&id=16390&file1=16390-1.png&file2=&file3=&name=Glass ), hope u got what i mean :) anyway as i was saying Kool, Kool stuff man ;-)

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 Count:384 Rating: 6.75
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.5
updated Jan 08 2006
added Sep 09 2005
downloads today
0
page views today 1
System Tags linux theme unix