wxGenerator is a simple code generator
for wxWidgets. It will support several languages, but currently in only
supports C++. It is written in python. It is exceptionally good at
handling those repedative tasks in making a well abstracted window
class.
The starting point behind wxGenerator was to turn small, simple
syntaxed dialog files and convert them into C++ code. The idea has now
become a reality, and the generator can handle a variety widgets. It
has built in production of event handling code, it automatically deals
with id's, and ofcoarse, constructs the dialog perfectly so it would be
viewable without modification. But it is not perfect. It will require
some modification in order to properly input and output code from and
to the dialog. If you would like to see a demonstration of wxGenerator,
see below, yo won't be disapointed Please go to
the sourceforge
page now.
It was orginaly made to increase the development spead of my other
project, yarse. It takes me expansive amounts of time to set everything
up in a new dialog and is the core thing that slows me down during
Recipe Search Engines development.
Table Of Contents:
News:
Augast 3 2005:
Im officially releasing version 0.1
today! This version has the preliminary gui editor, and the text based
utility for making dialogs! The package comes in two programs,
wxgenerator, and wxgenerator-gui, both installed soundly with Python's
Dist Utills.
Augast 1 2005:
Work is nearly complete on the new
dialog method of creating files, allot of code refactoring has taken
place recently and the new action code engine is being created. All of
our controls now support the ability to set and get their values using
functions they add to their base class. The dialog is now capable of
loading dialog files as well as saving them so is complete on that
scale. Now some basic interfaces to wxGenerator are being planned to be
unsimplified.
June 27 2005:
Work has begun on a new dialog based
way to create dialog files, as opposed to manually creating them, which
some may prefer, this dialog allows the user to see what values go
where and seek help for what values mean what all in one place. Its
also written in wxWidgets, and in the future will be the primary way to
create dialog files for the non-manual people.
June 19 2005:
The cvs is being populated! There is in
fact work being done on the project, and progress is being made.
Currently, wxGenerator supports a variety of the basic wxWidgets
controls. It also supports wxNotebook, wxPanel (as a child not a top
level window), and wxDialog (as a top level window). Full validator
support is still iffy, all though its currently usable with custom
validators and wxGenericValidator alike. It also automatically handles
the setup of event handlers.
Contacts:
GeniXPro - The creator and maintainer
of wxGenerator and its website - genixpro@gmail.com
Sadly there aren't any other contacts.
Demonstration:
The following demonstration uses some
classes (Cookbook and Section) that are defined in headers that are
added to the #includes in the file result. "cookbook.dlg" was the input
file
The output should speak for itself but
I'll highlight some major points for you. First of all, the output is
almost 5 times larger than the input, saving you countless hours of
typing. Second, event handlers are already set up, and responce
functions already existant. Thirdly, the window contains in the range
of 60 controls, a number no handcoder would willfully touch without a
shot of alcohol. Fourthly, Set and Get functions that allow access to
the contents of controls are also already existant. This isn't
neccecarely required for this large window that uses validators, but
for smaller windows this may be just what one needs. Fifthly, all
windows have got their name put into the window name variable, not
something most people will fill, which allows one to use the FindWindow
methods to access elements.
Screenshots:
Sadly, we have only one screenshot for
now, but it pretty much sums up
the gui frontend to wxGenerator. It is showing the editing of the above
demonstration, which was in reality created without it.
Screenshot -
screenshot.png
Downloads:
The current release of wxGenerator
is
0.1. The package comes
in 5 file formats so far.
wxGenerator-0.1-1.noarch.rpm
- A simple rpm that installs the python package, and executable scripts.
wxGenerator-0.1-1.src.rpm
- A source rpm that has the complete source to the program and gui and
installs the executable scripts as well.
wxGenerator-0.1.tar.bz2
- The smallest of all the files, has the complete source inside of it.
The program may be installed be executing `python setup.py install` in
the unpacked directory as root.
wxGenerator-0.1.tar.gz
- Same as the bz2 file except slightly larger.
wxGenerator-0.1.zip
- Mainly for Windows users, this one contains the complete python
source like the other packages.