QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RTextLabel.h
Go to the documentation of this file.
1 #ifndef RTEXTLABEL_H
2 #define RTEXTLABEL_H
3 
4 #include "RPoint.h"
5 #include "RVector.h"
6 #include "RBox.h"
7 
8 #ifndef RDEFAULT_QVARIANT
9 #define RDEFAULT_QVARIANT QVariant()
10 #endif
11 
21 class RTextLabel: public RPoint {
22 public:
23  RTextLabel();
24  RTextLabel(const RVector& position, const QString& text, const QVariant& userData = RDEFAULT_QVARIANT);
25  virtual ~RTextLabel();
26 
27  virtual RTextLabel* clone() const {
28  return new RTextLabel(*this);
29  }
30 
31  QString getText() const;
32  QVariant getUserData() const;
33 
34 protected:
35  virtual void print(QDebug dbg) const;
36 
37 public:
38  QString text;
39  QVariant userData;
40 };
41 
44 Q_DECLARE_METATYPE(QSharedPointer<RTextLabel>)
45 Q_DECLARE_METATYPE(QSharedPointer<RTextLabel>*)
47 
48 #endif