Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreStepper.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_STEPPER__
8 #define __HDI_CORE_STEPPER__
9 
10 #include "hdicoreWidget.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
16  class Callback;
17 
22  class Stepper : public Widget
23  {
24  public:
35  Stepper();
36 
44  Stepper(const Stepper& stepper_);
45 
53  Stepper(const Point& loc_);
54 
60  virtual ~Stepper();
61 
70  virtual Stepper& operator=(const Stepper& rhs_);
71 
85  virtual Stepper* clone() const;
86 
97  virtual Stepper* duplicate() const;
98 
106  virtual Callback* const upClickCallback() const;
107 
115  virtual void setUpClickCallback(const Callback& callback_);
116 
124  virtual Callback* const downClickCallback() const;
125 
133  virtual void setDownClickCallback(const Callback& callback_);
134  };
135 
136  typedef std::auto_ptr<Stepper> StepperAP;
137  }
138 }
139 
140 #endif
141 // __HDI_CORE_STEPPER__
virtual Stepper * clone() const
Convenience method to clone a Stepper object on the heap.
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
virtual Stepper * duplicate() const
Convenience method to duplicate a Stepper object, creating a new and identical UI element to the targ...
Stepper widget, which has a up/down button interface to allow for increasing/decreasing values of oth...
Definition: hdicoreStepper.h:22
virtual void setDownClickCallback(const Callback &callback_)
Sets the down-click callback.
Base class for templated __Callback class.
Definition: hdicoreCallback.h:67
virtual Callback *const upClickCallback() const
Gets the up-click callback for the stepper.
virtual Stepper & operator=(const Stepper &rhs_)
Allows one Stepper object to be assigned from another.
Definition: hdicoreaiArray.h:12
Header file for Illustrator user interface widgets.
Stepper()
Constructs an empty Stepper object.
virtual ~Stepper()
Stepper destructor.
virtual void setUpClickCallback(const Callback &callback_)
Sets the up-click callback.
virtual Callback *const downClickCallback() const
Gets the down-click callback for the stepper.