cut  1.2.2-pre1
Public Slots | Signals | Public Member Functions | Properties | List of all members
QeHmsLabel Class Reference

A text label that prints from a radian, it representation in Hours/Minute/Seconds notation. More...

#include <CutWidgets.h>

Inheritance diagram for QeHmsLabel:

Public Slots

void setRadians (double newValue)
 

Signals

void radiansChanged (double newValue)
 Signal emitted when the value represented by the widget has changed. More...
 
void precisionChanged (int newValue)
 Signal emitted when the precision of the widget has changed. More...
 

Public Member Functions

 QeHmsLabel (QWidget *parent=Q_NULLPTR)
 Constructor for QeHmsLabel. More...
 
 ~QeHmsLabel ()
 
double getRadians ()
 
double getPrecision ()
 
void setPrecision (int newValue)
 
void update ()
 

Properties

double radians
 Value to represent in radians @accessors getRadians(), setRadians(double) More...
 
int precision
 Precision used in the subsecond section of the label. More...
 

Detailed Description

A text label that prints from a radian, it representation in Hours/Minute/Seconds notation.

QeDmsLabel allows to represent in +-HH:MM:SS.sss format an angle. This representation is used for Right Ascension coordinates. It uses slalib for conversions.

Constructor & Destructor Documentation

◆ QeHmsLabel()

QeHmsLabel::QeHmsLabel ( QWidget *  parent = Q_NULLPTR)
explicit

Constructor for QeHmsLabel.

Parameters
parentReference to the QWidget that contains this new widget. Used by Qt to delete widgets allocated dynamically when parent widget is deleted.

◆ ~QeHmsLabel()

QeHmsLabel::~QeHmsLabel ( )

Member Function Documentation

◆ getPrecision()

double QeHmsLabel::getPrecision ( )
inline

◆ getRadians()

double QeHmsLabel::getRadians ( )
inline

◆ precisionChanged

void QeHmsLabel::precisionChanged ( int  newValue)
signal

Signal emitted when the precision of the widget has changed.

◆ radiansChanged

void QeHmsLabel::radiansChanged ( double  newValue)
signal

Signal emitted when the value represented by the widget has changed.

◆ setPrecision()

void QeHmsLabel::setPrecision ( int  newValue)
inline

◆ setRadians

void QeHmsLabel::setRadians ( double  newValue)
inlineslot

◆ update()

void QeHmsLabel::update ( )

Property Documentation

◆ precision

int QeHmsLabel::precision
readwrite

Precision used in the subsecond section of the label.

By default, millisecond precision is used. @accessors getPrecision(), setPrecision(int)

◆ radians

double QeHmsLabel::radians
readwrite

Value to represent in radians @accessors getRadians(), setRadians(double)


The documentation for this class was generated from the following files: