1 // dialog.hxx - XML-configured dialog box.
12 * An XML-configured dialog box.
14 * The GUI manager stores only the property tree for the dialog
15 * boxes. This class creates a PUI dialog box on demand from
16 * the properties in that tree. The manager recreates the dialog
17 * every time it needs to show it.
32 * Update the values of all GUI objects with a specific name,
33 * or all if an empty name is given (default).
35 * This method copies values from the FlightGear property tree to
38 * @param objectName The name of the GUI object(s) to update.
39 * Use the empty name for all objects.
41 virtual void updateValues(const std::string& objectName = "") = 0;
45 * Apply the values of all GUI objects with a specific name,
46 * or all if an empty name is given (default)
48 * This method copies values from the GUI object(s) to the
49 * FlightGear property tree.
51 * @param objectName The name of the GUI object(s) to update.
52 * Use the empty name for all objects.
54 virtual void applyValues(const std::string& objectName = "") = 0;
58 * Update state. Called on active dialogs before rendering.
60 virtual void update () = 0;
64 * Construct a new GUI widget configured by a property tree.
66 * The configuration properties are not part of the main
67 * FlightGear property tree; the GUI manager reads them
68 * from individual configuration files.
70 * @param props A property tree describing the dialog.
72 FGDialog (SGPropertyNode * props);
78 #endif // __DIALOG_HXX