Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 
14 namespace hdi
15 {
16  namespace core
17  {
18  class Widget;
19 
23  class TabOrder
24  {
25  public:
26  typedef std::list< 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 Widget* const front() const;
75 
83  virtual void pushFront(const Widget& widget_);
84 
93  virtual bool popFront(std::auto_ptr<Widget>& widget__);
94 
102  virtual Widget* const back() const;
103 
111  virtual void pushBack(const Widget& widget_);
112 
121  virtual bool popBack(std::auto_ptr<Widget>& widget__);
122 
131  virtual void focusNext(const Widget& position_);
132 
141  virtual void focusPrevious(const Widget& position_);
142 
143 
144  private:
145  friend class Window;
146 
150  void* __data;
151 
157  TabOrder();
158 
164  TabOrder(const TabOrder&);
165 
171  virtual ~TabOrder();
172 
178  virtual TabOrder& operator=(const TabOrder&);
179  };
180  }
181 }
182 
183 #endif
184 // __HDI_CORE_TAB_ORDER__
virtual bool popFront(std::auto_ptr< Widget > &widget__)
Gets the Widget at the front of the target TabOrder, and pops it.
Allows for finer control of widget focus/tab key ordering.
Definition: hdicoreTabOrder.h:23
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
virtual void focusNext(const Widget &position_)
Focuses the next (enabled) widget after the one provided.
virtual void focusPrevious(const Widget &position_)
Focuses the previous (enabled) widget before the one provided.
virtual void pushBack(const Widget &widget_)
Pushes a new Widget object on the back of the list for the target TabOrder.
virtual Widget *const front() const
Gets the Widget object that is at the front of the target TabOrder object.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
virtual const WidgetList widgets() const
Gets the list of widgets affected by the target TabOrder object.
virtual bool operator==(const TabOrder &rhs_) const
Tests whether a given TabOrder object is the same as another.
virtual void pushFront(const Widget &widget_)
Pushes a new Widget object on the front of the list for the target TabOrder.
Definition: hdicoreaiArray.h:12
virtual bool hasWidget(const Widget &widget_) const
Checks whether the target TabOrder object already contains a given widget.
virtual bool operator!=(const TabOrder &rhs_) const
Tests whether a given TabOrder object is not the same as another.
virtual Widget *const back() const
Gets the Widget object that is at the back of the target TabOrder object.
Used as a base class for modal dialogs, panels, and control bars.
Definition: hdicoreWindow.h:25
virtual bool popBack(std::auto_ptr< Widget > &widget__)
Gets the Widget at the back of the target TabOrder, and pops it.