Public Types | Public Member Functions | Static Public Member Functions
TapePoint Class Reference

Brief description of class still missing. More...

#include <TapePoint.h>

Inheritance diagram for TapePoint:
QGpCoreTools::NamedPoint QGpCoreTools::Point QGpCoreTools::Point2D

List of all members.

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)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Enumeration Documentation

Enumerator:
Fixed 
North 
Eastward 
Free 

Constructor & Destructor Documentation

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;}

Member Function Documentation

void TapePoint::operator= ( const Point2D o)

Reimplemented from QGpCoreTools::NamedPoint.

References TRACE.

void TapePoint::setType ( Type  t) [inline]

Referenced by TapeCoordinateItem::setData().

{_type=t;}
void TapePoint::setType ( const QString &  t) [inline]

References setType(), and type().

Referenced by setType().

{setType(type(t));}
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]

References Eastward, Fixed, Free, North, QGpCoreTools::tr(), and TRACE.

Referenced by TapeCoordinateItem::data().

{
  TRACE;
  switch(t) {
  case Fixed:
    return tr("Fixed");
  case North:
    return tr("North");
  case Eastward:
    return tr("Eastward");
  case Free:
    break;
  }
  return tr("Free");
}
QString TapePoint::typeString ( ) const [inline]

References typeString().

Referenced by TapeCoordinateDelegate::setModelData(), and typeString().

{return typeString(_type);}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines