Mirror reflection library 0.5.13

Examples of GUI generated by the wx_gui_factory

Here can be found some examples of wxWidgets-based GUI dialogs generated by the factory generator utility with the wx_gui_factory plugin. These input dialogs are a part of a object factory and serve as the input for data that are to be converted to parameters for the constructors. Furthermore the dialog also allows to choose which constructor should be used for the construction of a particular instance. The dialogs also support localization and input data validation. The screenshots show how the dialogs look in different operating systems with different window managers.

The following few dialogs are used for the construction of instances of the tetrahedron class, also using the triangle and vector classes with the following declaration:

 struct vector
 {
     double x,y,z;

      vector(double _x, double _y, double _z)
      : x(_x)
      , y(_y)
      , z(_z)
     { }

     vector(double _w)
      : x(_w)
      , y(_w)
      , z(_w)
     { }

     vector(void)
      : x(0.0)
      , y(0.0)
      , z(0.0)
     { }

     ...
 };

 struct triangle
 {
     vector a, b, c;

     triangle(const vector& _a, const vector& _b, const vector& _c)
      : a(_a)
      , b(_b)
      , c(_c)
     { }

     triangle(void){ }

     ...
 };

 struct tetrahedron
 {
     triangle base;
     vector apex;

     tetrahedron(const triangle& _base, const vector& _apex)
      : base(_base)
      , apex(_apex)
     { }

     tetrahedron(
         const vector& a,
         const vector& b,
         const vector& c,
         const vector& d
     ): base(a, b, c)
      , apex(d)
     { }

     ...
 };

In the dialog below the red color of the input component indicates that the input is invalid. In such state the dialog cannot be closed by clicking on OK, instead a hint is shown saying that there is invalid input data.

wx_gui_dialog_01.png
The same dialog as above, with a different constructor selected for the construction of the triangle 's c parameter.

wx_gui_dialog_02.png
Here the default constructor has been selected for the construction of the triangle 's c parameter.

wx_gui_dialog_03.png
Here another constructor, taking four vectors, instead of a triangle and a vector is selected to construct the tetrahedron.

wx_gui_dialog_04.png
wx_gui_dialog_05.png
wx_gui_dialog_06.png
This is basically the same dialog using another book-control component to manage the individual constructors.

wx_gui_dialog_07.png
This is an older version of the same dialog as above, but this time in Vista.

wx_gui_dialog_08.png
wx_gui_dialog_09.png
wx_gui_dialog_10.png
Two more examples showing a generated dialog, this time for the construction of a person class. Here the localization / translation feature has been enabled and the basic class and parameter names are translated to a more user-friendly form.

wx_gui_dialog_11.png
wx_gui_dialog_12.png

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.