Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreFloatingDialog.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_FLOATING_DIALOG__
8#define __HDI_CORE_FLOATING_DIALOG__
9
10#include "hdicoreSize.h"
11#include "hdicoreWindow.h"
12
13namespace hdi
14{
15 namespace core
16 {
17 class Callback;
18 class Widget;
19
24 class FloatingDialog : public Window
25 {
26 public:
39
48
59 FloatingDialog(const std::string& name_, const Size& size_);
60
66 virtual ~FloatingDialog();
67
77
92 virtual FloatingDialog* clone() const;
93
104 virtual void destroy();
105
117 virtual PlatformFloatingDialogPtr platformFloatingDialog() const;
118
126 virtual bool visible() const;
127
133 virtual void show();
134
140 virtual void hide();
141
150 virtual bool addWidget(const Widget& widget_);
151
160 virtual bool removeWidget(const Widget& widget_);
161
169 virtual std::string title() const;
170
178 virtual void setTitle(const std::string& title_);
179
187 virtual Size size() const;
188
196 virtual void setSize(const Size& size_);
197
203 virtual void update() const;
204
212 virtual Callback* const closeCallback() const;
213
221 virtual void setCloseCallback(const Callback& cb_);
222
230 virtual Callback* const focusCallback() const;
231
239 void setFocusCallback(const Callback& cb_);
240
248 virtual Callback* const blurCallback() const;
249
257 void setBlurCallback(const Callback& cb_);
258 };
259
260 typedef std::unique_ptr<FloatingDialog> FloatingDialogUP;
261 typedef std::shared_ptr<FloatingDialog> FloatingDialogSP;
262 typedef std::weak_ptr<FloatingDialog> FloatingDialogWP;
263 }
264}
265
266#endif
267// __HDI_CORE_FLOATING_DIALOG__
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Used to create and display a floating dialog to the user, which is similar to a modal dialog but non-...
Definition: hdicoreFloatingDialog.h:25
virtual void setCloseCallback(const Callback &cb_)
Sets the close button callback for the dialog.
virtual Callback *const blurCallback() const
Gets the current dialog blur callback.
virtual Callback *const closeCallback() const
Gets the current close button callback.
virtual FloatingDialog * clone() const
Convenience method to clone a FloatingDialog object on the heap.
virtual FloatingDialog & operator=(const FloatingDialog &rhs_)
Allows one FloatingDialog object to be assigned from another.
FloatingDialog(const FloatingDialog &fd_)
Constructs a new FloatingDialog object from an existing FloatingDialog object (copy constructor)
virtual Size size() const
Gets the floating dialog's size.
virtual void setTitle(const std::string &title_)
Sets the current floating dialog title.
virtual void hide()
Hides the floating dialog.
virtual ~FloatingDialog()
Destructs a FloatingDialog object.
FloatingDialog()
Constructs an empty FloatingDialog object.
virtual void update() const
Forces the widgets in the floating dialog to update/redraw.
virtual void show()
Shows the floating dialog.
virtual bool addWidget(const Widget &widget_)
Adds a widget (label, button, text field, etc.) to the floating dialog.
virtual PlatformFloatingDialogPtr platformFloatingDialog() const
Gets the platform-specific floating dialog, around which the target object is wrapped.
virtual bool removeWidget(const Widget &widget_)
Removes a widget (label, button, text field, etc.) from the floating dialog.
virtual void destroy()
Destroys the UI floating dialog, converting the target object to an empty FloatingDialog object (see ...
virtual bool visible() const
Gets whether the dialog is visible.
virtual void setSize(const Size &size_)
Sets the floating dialog's size.
virtual std::string title() const
Gets the current floating dialog title.
void setBlurCallback(const Callback &cb_)
Sets the dialog blur callback.
FloatingDialog(const std::string &name_, const Size &size_)
Constructs a FloatingDialog object with a given name and size.
void setFocusCallback(const Callback &cb_)
Sets the dialog focus callback.
virtual Callback *const focusCallback() const
Gets the current dialog focus callback.
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:25
Base class for all interface widgets; handles many common needs, e.g. text, position,...
Definition: hdicoreWidget.h:30
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.