Developer documentation | Axl-2.5.1

axlInteger.h
Go to the documentation of this file.
1 /* axlInteger.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2013 - Anais Ducoffe, Inria.
5  */
6 
7 /* Commentary:
8  *
9  */
10 
11 /* Change log:
12  *
13  */
14 
15 #ifndef AXLINTEGER_H
16 #define AXLINTEGER_H
17 
18 #include "axlCoreExport.h"
19 
20 #include "axlAbstractData.h"
21 
22 #include <QtCore>
23 
24 class axlPoint;
25 
26 class axlIntegerPrivate;
27 
29 {
30  Q_OBJECT
31 
32 public:
33  axlInteger(QObject *parent = 0);
34  axlInteger(int value, QObject *parent = 0);
35  axlInteger(const axlInteger& other);
36  ~axlInteger(void);
37 
38  virtual QString description(void) const;
39  virtual QString identifier(void) const;
40 
41  int value(void) const;
42 
46  QVariantList convertDataToQVariant(void) const;
50  int convertQVariantToData(const QVariantList &data);
51 
52 public slots :
53  void setValue(int newValue);
54 
55 public :
56  axlInteger& operator =(const axlInteger& other);
57 
58 
59  friend QDebug operator<<(QDebug dbg, axlInteger line);
60  friend QDebug operator<<(QDebug dbg, axlInteger& line);
61  friend QDebug operator<<(QDebug dbg, axlInteger *line);
62 
63 
64 
65 private:
66  axlIntegerPrivate *d;
67 };
68 
69 dtkAbstractData *createaxlInteger(void);
70 
71 // /////////////////////////////////////////////////////////////////
72 // Debug operators
73 // /////////////////////////////////////////////////////////////////
74 
75 QDebug operator<<(QDebug dbg, axlInteger point);
76 QDebug operator<<(QDebug dbg, axlInteger& point);
77 QDebug operator<<(QDebug dbg, axlInteger *point);
78 
79 #endif // AXLINTEGER_H
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
QDebug operator<<(QDebug dbg, axlInteger point)
Definition: axlInteger.cpp:101
virtual int convertQVariantToData(const QVariantList &data)
Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was suc...
virtual QVariantList convertDataToQVariant(void) const
Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData...
dtkAbstractData * createaxlInteger(void)
Definition: axlInteger.cpp:154
Class axlInteger defines an integer.
Definition: axlInteger.h:28
#define AXLCORE_EXPORT
Class axlAbstractData defines an API for all type of axel data.