Engauge Digitizer  2
DigitizeStateAxis.h
1 #ifndef DIGITIZE_STATE_AXIS_H
2 #define DIGITIZE_STATE_AXIS_H
3 
4 #include "DigitizeStateAbstractBase.h"
5 
6 class QTimer;
7 
11 {
12 public:
15  virtual ~DigitizeStateAxis();
16 
17  virtual QString activeCurve () const;
18  virtual void begin(DigitizeState previousState);
19  virtual QCursor cursor () const;
20  virtual void end();
21  virtual void handleCurveChange();
22  virtual void handleKeyPress (Qt::Key key,
23  bool atLeastOneSelectedItem);
24  virtual void handleMouseMove (QPointF posScreen);
25  virtual void handleMousePress (QPointF posScreen);
26  virtual void handleMouseRelease (QPointF posScreen);
27  virtual QString state() const;
28  virtual void updateModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve);
29  virtual void updateModelSegments(const DocumentModelSegments &modelSegments);
30 
31 private:
33 
34  void createTemporaryPoint (const QPointF &posScreen);
35 };
36 
37 #endif // DIGITIZE_STATE_AXIS_H
virtual void updateModelSegments(const DocumentModelSegments &modelSegments)
Update the segments given the new settings.
virtual void handleMouseMove(QPointF posScreen)
Handle a mouse move. This is part of an experiment to see if augmenting the cursor in Point Match mod...
virtual void handleMousePress(QPointF posScreen)
Handle a mouse press that was intercepted earlier.
DigitizeStateContext & context()
Reference to the DigitizeStateContext that contains all the DigitizeStateAbstractBase subclasses...
virtual QString activeCurve() const
Name of the active Curve. This can include AXIS_CURVE_NAME.
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
virtual QString state() const
State name for debugging.
Container for all DigitizeStateAbstractBase subclasses. This functions as the context class in a stan...
virtual void handleCurveChange()
Handle the selection of a new curve. At a minimum, DigitizeStateSegment will generate a new set of Se...
virtual void updateModelDigitizeCurve(const DocumentModelDigitizeCurve &modelDigitizeCurve)
Update the digitize curve settings.
virtual void handleKeyPress(Qt::Key key, bool atLeastOneSelectedItem)
Handle a key press that was intercepted earlier.
virtual void handleMouseRelease(QPointF posScreen)
Handle a mouse release that was intercepted earlier.
Model for DlgSettingsSegments and CmdSettingsSegments.
virtual QCursor cursor() const
Returns the state-specific cursor shape.
Base class for all digitizing states. This serves as an interface to DigitizeStateContext.
virtual void begin(DigitizeState previousState)
Method that is called at the exact moment a state is entered.
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
Digitizing state for digitizing one axis point at a time.