Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreTabOrder.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_TAB_ORDER__
8#define __HDI_CORE_TAB_ORDER__
9
10#include <list>
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace core
17 {
18 class Widget;
19
24 {
25 public:
26 typedef std::list< std::shared_ptr<Widget> > WidgetList;
27
36 virtual bool operator==(const TabOrder& rhs_) const;
37
46 virtual bool operator!=(const TabOrder& rhs_) const;
47
56 virtual bool hasWidget(const Widget& widget_) const;
57
65 virtual const WidgetList widgets() const;
66
74 virtual std::shared_ptr<Widget> front() const;
75
83 virtual void pushFront(const Widget& widget_);
84
93 virtual bool popFront(std::unique_ptr<Widget>& widget__);
94
102 virtual std::shared_ptr<Widget> back() const;
103
111 virtual void pushBack(const Widget& widget_);
112
121 virtual bool popBack(std::unique_ptr<Widget>& widget__);
122
131 virtual void focusNext(const Widget& position_);
132
141 virtual void focusPrevious(const Widget& position_);
142
155
169
170
171 private:
172 friend class Panel;
173 friend class Window;
174
178 void* __data;
179
185 TabOrder();
186
192 TabOrder(const TabOrder&);
193
199 virtual ~TabOrder();
200
206 virtual TabOrder& operator=(const TabOrder&);
207 };
208 }
209}
210
211#endif
212// __HDI_CORE_TAB_ORDER__
Used to add a panel to Illustrator's UI and contain various UI widgets.
Definition: hdicorePanel.h:36
Allows for finer control of widget focus/tab key ordering.
Definition: hdicoreTabOrder.h:24
virtual const WidgetList widgets() const
Gets the list of widgets affected by the target TabOrder object.
virtual bool popBack(std::unique_ptr< Widget > &widget__)
Gets the Widget at the back of the target TabOrder, and pops it.
virtual void pushBack(const Widget &widget_)
Pushes a new Widget object on the back of the list for the target TabOrder.
bool fireValueChangedIfOnlyOneAvailable() const
Gets whether the target TabOrder object should fire a value-changed callback on a widget if a) the us...
virtual bool operator==(const TabOrder &rhs_) const
Tests whether a given TabOrder object is the same as another.
virtual std::shared_ptr< Widget > back() const
Gets the Widget object that is at the back of the target TabOrder object.
virtual void pushFront(const Widget &widget_)
Pushes a new Widget object on the front of the list for the target TabOrder.
virtual std::shared_ptr< Widget > front() const
Gets the Widget object that is at the front of the target TabOrder object.
void setFireValueChangedIfOnlyOneAvailable(const bool fire_)
Sets whether the target TabOrder object should fire a value-changed callback on a widget if a) the us...
virtual bool popFront(std::unique_ptr< Widget > &widget__)
Gets the Widget at the front of the target TabOrder, and pops it.
virtual void focusNext(const Widget &position_)
Focuses the next (enabled) widget after the one provided.
virtual bool operator!=(const TabOrder &rhs_) const
Tests whether a given TabOrder object is not the same as another.
virtual bool hasWidget(const Widget &widget_) const
Checks whether the target TabOrder object already contains a given widget.
virtual void focusPrevious(const Widget &position_)
Focuses the previous (enabled) widget before the one provided.
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 a wide variety of necessary typedefs, enums, and forwards declarations.