9#include <simgear/props/propsfwd.hxx>
10#include <simgear/structure/SGWeakReferenced.hxx>
55 virtual void applyValues(
const std::string& objectName =
"") = 0;
63 virtual const char *
getName() {
return ""; }
88 virtual void runCallback(
const std::string&
name, SGPropertyNode_ptr args = {}) = 0;
122 void updateFlagFromProperty(
WindowFlags f, SGPropertyNode* props, const std::
string&
name);
125 std::
string _translationDomain;
An XML-configured dialog box.
virtual void close()=0
Close the dialog.
FGDialog(SGPropertyNode *props, std::string translationDomain="core")
Construct a new GUI widget configured by a property tree.
std::string translationDomain() const noexcept
Return the translation domain of the dialog.
virtual void update()=0
Update state.
virtual void applyValues(const std::string &objectName="")=0
Apply the values of all GUI objects with a specific name, or all if an empty name is given (default)
virtual void bringToFront()
virtual const char * getName()
void setTranslationDomain(std::string domain) noexcept
Set the translation domain of the dialog.
bool isFlagSet(WindowFlags f) const
WindowStyle windowStyle() const
virtual ~FGDialog()
Destructor.
virtual void updateValues(const std::string &objectName="")=0
Update the values of all GUI objects with a specific name, or all if an empty name is given (default)...
virtual void runCallback(const std::string &name, SGPropertyNode_ptr args={})=0