Engauge Digitizer 2
Loading...
Searching...
No Matches
MimePoints.h
1/******************************************************************************************************
2 * (C) 2014 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 MIME_POINTS_H
8#define MIME_POINTS_H
9
10#include <QMimeData>
11
13class MimePoints : public QMimeData
14{
15public:
17 MimePoints();
18
20 MimePoints(const QString &csvGraph,
21 const QString &htmlGraph);
22
24 MimePoints (const QString &csvPoints);
25
27 MimePoints &operator=(const MimePoints &other);
28
30 virtual ~MimePoints ();
31
33 QString csvGraph () const;
34
36 QString csvPoints () const;
37
39 virtual QStringList formats() const;
40
42 QString htmlGraph () const;
43
44protected:
46 virtual QVariant retrieveData (const QString &format,
47 QVariant::Type preferredType) const;
48
49private:
50 QString m_csvGraph;
51 QString m_csvPoints;
52 QString m_htmlGraph;
53 QStringList m_formats;
54};
55
56#endif // MIME_POINTS_H
Custom mime type for separate treatment of graph coordinates and, when there is no transform,...
Definition MimePoints.h:14
virtual QStringList formats() const
Available formats, which depend on whether or not the transform is defined.
MimePoints()
Default constructor. Initial contents are overwritten by other constructors.
MimePoints & operator=(const MimePoints &other)
Assignment operator.
QString csvPoints() const
Get method for csvPoints.
virtual QVariant retrieveData(const QString &format, QVariant::Type preferredType) const
Returns a variant with the data for the specified format.
QString csvGraph() const
Get method for csvGraph.
virtual ~MimePoints()
Destructor.
QString htmlGraph() const
Get methjod for htmlGraph.