7#ifndef __HDI_CORE_MODAL_DIALOG__
8#define __HDI_CORE_MODAL_DIALOG__
32 UnknownButtonChosen = 0,
34 CancelButtonChosen = 2
89 const bool dismiss_ =
true,
90 const std::string& title_ =
""
188 const std::string& name_,
365 typedef std::unique_ptr<ModalDialog> ModalDialogUP;
366 typedef std::shared_ptr<ModalDialog> ModalDialogSP;
367 typedef std::weak_ptr<ModalDialog> ModalDialogWP;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Used to create and display a modal dialog to the user, blocking input to other UI elements.
Definition: hdicoreModalDialog.h:25
ModalDialog(const std::string &name_, const Size &size_)
Constructs a ModalDialog object with a given name and size.
virtual void show()
Shows the modal dialog, blocking user input.
std::unique_ptr< Button > cancelButton() const
Gets the cancel button created by the constructor (if the options indicated creation)
ModalDialog(const std::string &name_, const Size &size_, const ButtonOptions &okBtnOpts_, const ButtonOptions &cancelBtnOpts_)
Constructs a ModalDialog object with a given name, size, and buttons.
virtual void update() const
Forces the widgets in the modal dialog to update/redraw.
virtual ModalDialog * clone() const
Convenience method to clone a ModalDialog object on the heap.
virtual void setSize(const Size &size_)
Sets the modal dialog's size.
virtual void destroy()
Destroys the UI modal dialog, converting the target object to an empty ModalDialog object (see the de...
virtual ModalDialog & operator=(const ModalDialog &rhs_)
Allows one ModalDialog object to be assigned from another.
virtual ChosenButton chosenButton() const
Gets which button was used to dismiss the dialog.
virtual ~ModalDialog()
Destructs a ModalDialog object.
virtual bool visible() const
Gets whether the dialog is visible.
virtual std::string title() const
Gets the current modal dialog title.
virtual bool removeWidget(const Widget &widget_)
Removes a widget (label, button, text field, etc.) from the modal dialog.
virtual Size size() const
Gets the modal dialog's size.
ModalDialog()
Constructs an empty ModalDialog object.
virtual bool addWidget(const Widget &widget_)
Adds a widget (label, button, text field, etc.) to the modal dialog.
virtual void dismiss()
Forcefully dismisses a modal dialog.
ChosenButton
Identifies which button was clicked.
Definition: hdicoreModalDialog.h:31
virtual void setTitle(const std::string &title_)
Sets the current modal dialog title.
std::unique_ptr< Button > okButton() const
Gets the OK button created by the constructor (if the options indicated creation)
ModalDialog(const ModalDialog &md_)
Constructs a new ModalDialog object from an existing ModalDialog object (copy constructor)
virtual PlatformModalDialogPtr platformModalDialog() const
Gets the platform-specific modal dialog, around which the target object is wrapped.
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:25
Used as a base class for modal dialogs, panels, and control bars.
Definition: hdicoreWindow.h:26
Header file for describing 2D dimensions (width and height)
Header file for a class to create and manipulate plugin windows.