Mirror reflection library 0.5.13
|
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.
triangle
's c
parameter.
triangle
's c
parameter.
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.