Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CallbackDocumentScrub.h
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2018 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef CALLBACK_DOCUMENT_SCRUB_H
8 #define CALLBACK_DOCUMENT_SCRUB_H
9 
10 class Point;
11 
12 #include "CallbackSearchReturn.h"
13 #include <QString>
14 
17 {
18 public:
21 
23  QString badPointName () const;
24 
26  CallbackSearchReturn callback (const QString &curveName,
27  const Point &point);
28 
30  bool success () const;
31 
32 private:
33 
34  bool m_success;
35  QString m_badPointName;
36 };
37 
38 #endif // CALLBACK_DOCUMENT_SCRUB_H
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:25
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CallbackSearchReturn
Return values for search callback methods.
bool success() const
Scrub overall result.
Callback for scrubbing Document. Any state error will be caught.
CallbackDocumentScrub()
Single constructor.
QString badPointName() const
Scrub result details. Applies when unsuccessful.