Skip to content

Refactor 'em All

Tuesday, 11 August 2009  |  Killerfox

The week before last into GSoC, and this is how things are:

Sadly I had very little time to work on the project last week because I had to be out of town for the most part. Despite of this setback though, there was a significant improvement, which is the user review widget. What this means is: Screenshot time!

Here I will be using the half-complete Private Implementation(Which takes a class, and converts it's private members to the PIMPL idiom) generator.

First off Is the selection of a context in a class:

(UPDATE: This image is apparently not displaying in a lot of cases, here is the link: Image)

Then either selecting the Private Implementation under Code, or using the Hotkey, the private implementation dialog pops up:

After setting the options, the generator runs, and the changes widget will pop up. If KDevelop is compiled with Kompare support (Which is only available if you have trunk KDE ATM), then the changes widget will start displaying the differences between the original file, and the generated one:

If you want to edit any part of the file(Or if you don't have Kompare support enabled), then by Clicking on the Edit button, the Kompare widget will switch over to a Kate widget, giving you freedom to edit the generated file before it is saved to the disk:

Clicking on the View button will now update the comparison between the original file, and the user edited file, all without a single write to the disk: By clicking Ok, the changes will be commited to the disk.

Last week of GSoC will be used to finish up the generator, and documentation on the tools available for automatic code generation.