Brief description of class still missing. More...
#include <TapePoint.h>
Public Types | |
enum | Type { Fixed, North, Eastward, Free } |
Public Member Functions | |
void | operator= (const Point2D &o) |
void | setType (Type t) |
void | setType (const QString &t) |
TapePoint () | |
TapePoint (const QString &name) | |
TapePoint (const TapePoint &o) | |
Type | type () const |
QString | typeString () const |
Static Public Member Functions | |
static Type | type (const QString &t) |
static QString | typeString (Type t) |
Brief description of class still missing.
Full description of class still missing
enum TapePoint::Type |
TapePoint::TapePoint | ( | ) | [inline] |
References Free.
: NamedPoint() {_type=Free;}
TapePoint::TapePoint | ( | const QString & | name | ) | [inline] |
References Free.
: NamedPoint(name, Point()) {_type=Free;}
TapePoint::TapePoint | ( | const TapePoint & | o | ) | [inline] |
: NamedPoint(o) {_type=o._type;}
void TapePoint::operator= | ( | const Point2D & | o | ) |
void TapePoint::setType | ( | Type | t | ) | [inline] |
Referenced by TapeCoordinateItem::setData().
{_type=t;}
void TapePoint::setType | ( | const QString & | t | ) | [inline] |
TapePoint::Type TapePoint::type | ( | const QString & | t | ) | [static] |
References Eastward, Fixed, Free, North, QGpCoreTools::tr(), and TRACE.
{ TRACE; if(t.count()>2) { switch(t[1].unicode()) { case 'i': if(t==tr("Fixed")) { return Fixed; } break; case 'o': if(t==tr("North")) { return North; } break; case 'a': if(t==tr("Eastward")) { return Eastward; } break; case 'r': if(t==tr("Free")) { return Free; } break; default: break; } } return Free; }
Type TapePoint::type | ( | ) | const [inline] |
Referenced by TapeCoordinateDelegate::setEditorData(), and setType().
{return _type;}
QString TapePoint::typeString | ( | Type | t | ) | [static] |
QString TapePoint::typeString | ( | ) | const [inline] |
References typeString().
Referenced by TapeCoordinateDelegate::setModelData(), and typeString().
{return typeString(_type);}