1 // dialog.hxx - XML-configured dialog box.
7 # error This library requires C++
14 * An XML-configured dialog box.
16 * The GUI manager stores only the property tree for the dialog
17 * boxes. This class creates a PUI dialog box on demand from
18 * the properties in that tree. The manager recreates the dialog
19 * every time it needs to show it.
34 * Update the values of all GUI objects with a specific name,
35 * or all if name is 0 (default).
37 * This method copies values from the FlightGear property tree to
40 * @param objectName The name of the GUI object(s) to update.
41 * Use the empty name for all unnamed objects.
43 virtual void updateValues (const char * objectName = 0) = 0;
47 * Apply the values of all GUI objects with a specific name,
48 * or all if name is 0 (default)
50 * This method copies values from the GUI object(s) to the
51 * FlightGear property tree.
53 * @param objectName The name of the GUI object(s) to update.
54 * Use the empty name for all unnamed objects.
56 virtual void applyValues (const char * objectName = 0) = 0;
60 * Update state. Called on active dialogs before rendering.
62 virtual void update () = 0;
66 * Construct a new GUI widget configured by a property tree.
68 * The configuration properties are not part of the main
69 * FlightGear property tree; the GUI manager reads them
70 * from individual configuration files.
72 * @param props A property tree describing the dialog.
74 FGDialog (SGPropertyNode * props);
80 #endif // __DIALOG_HXX