kicad-developers team mailing list archive
Mailing list archive
Re: What tools are we using for wxWidgets if any?
Rob Frohne <rob.frohne@...>
Mon, 26 Oct 2009 05:00:15 -0700
Walla Walla Universisty
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:220.127.116.11) Gecko/20090817 Lightning/0.9 Thunderbird/18.104.22.168 Mnenhy/0.7.6.666
Thanks for the notes on wxFormBuilder. They are helpful.
jean-pierre charras - INPG wrote:
> Dick Hollenbeck a écrit :
> > Rob Frohne wrote:
> > > Hi Everyone,
> > >
> > > I checked out the source and have been looking at it a little. I'm not
> > > highly familiar with wxWidgets, but there seem to be a number of GUI
> > > design tools that developers have to use for more rapid development
> > with
> > > wxWidgets. Are any of these being used? Are there any docs on any
> > > guidelines on patches?
> > >
> > > Thanks,
> > >
> > > Rob
> > >
> > >
> > wxFormBuilder is being used.
> Yes, currently we use wxFormBuilder (a free and GPL tool to create
> dialogs for wxWidgets).
> Some previous dialogs were created using DialogBlocks, and the oldest
> dialogs were write "by hand"
> This fact explains some difference between the look of some dialogs.
> When an "old" dialog is modified, it is redesigned with wxFormBuilder .
> wxFormBuilder creates a "basic" dialog, and automatically creates the
> .cpp and .h corresponding files
> After changes in the dialog frame, it recreates these files.
> Therefore, in order to allow these changes without lost of code you must :
> 1 - create the basic dialog window, said named MY_DIALOG_BASE, (or
> MY_DIALOG_FBP) and create the corresponding files my_dialog_base.*
> (.fbp, .cpp and .h files)
> and *do not edit these files* by hand.
> 2 - create a derived class from MY_DIALOG_BASE, said MY_DIALOG and the
> corresponding files my_dialog.cpp and .h .
> This class includes only the specific methods and members not already
> created by wxFormBuilder, i.e. items that are not wxWidgets widgets.
> So when modify the dialog, my_dialog_base.cpp and my_dialog_base.h files
> are recreated, but the code made by hand is not destroy because it is
> only in my_dialog.cpp.
> Note also all strings that must be translated (like GUI messages) cannot
> *NOT* be static, because static strings are built by their constructor
> before the current locale is known.
> In cases where strings cannot be static ( cannot be created "on the fly"
> at run time) the wxGetTranslation must be called explicitely before
> using these string.
> Jean-Pierre CHARRAS
> Maître de conférences
> Directeur d'études 2ieme année.
> Génie Electrique et Informatique Industrielle 2
> Institut Universitaire de Technologie 1 de Grenoble
> BP 67, 38402 St Martin d'Heres Cedex
> Recherche :
> Grenoble Image Parole Signal Automatique (GIPSA - INPG)
> Grenoble France
Rob Frohne, Ph.D., P.E.
E.F. Cross School of Engineering
Walla Walla University
100 SW 4th Street
College Place, WA 99324
(509) 527-2075 http://people.wallawalla.edu/~rob.frohne
--------------090503030506000308060406 Content-Type: text/x-vcard; charset="utf-8"; name="frohro.vcf"
Content-Disposition: attachment; filename="frohro.vcf"
org:Walla Walla University;Engineering
adr:;;100 SW 4th Street;College Place;WA;99324;USA
tel;work:509 527 2075