Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classAngleSpinBox.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:27:26 2014 Кодировка: ISO8859-5 Поисковые слова: reflection nebula |
Stellarium 0.12.3
|
A spin box for displaying/entering angular values. More...
#include <AngleSpinBox.hpp>
Public Types | |
enum | DisplayFormat { DMSLetters, DMSSymbols, HMSLetters, HMSSymbols, DecimalDeg } |
Used to decide how to display the angle. More... | |
enum | PrefixType { Normal, NormalPlus, Longitude, Latitude, Unknown } |
Determines how positive and negative values are indicated. More... | |
Public Slots | |
virtual void | clear () |
Set the value to default 0 angle. More... | |
void | setRadians (double radians) |
Set the value of the spin box in radians. More... | |
void | setDegrees (double degrees) |
Set the value of the spin box in decimal degrees. More... | |
Signals | |
void | valueChanged () |
Emitted when the value changes. More... | |
Public Member Functions | |
AngleSpinBox (QWidget *parent=0, DisplayFormat format=DMSSymbols, PrefixType prefix=Normal) | |
virtual void | stepBy (int steps) |
virtual QValidator::State | validate (QString &input, int &pos) const |
double | valueRadians () |
Get the angle held in the AngleSpinBox. More... | |
double | valueDegrees () |
Get the angle held in the AngleSpinBox. More... | |
void | setDecimals (int places) |
Set the number of decimal places to express float values to (e.g. More... | |
int | decimals () |
Get the number of decimal places to express float values to (e.g. More... | |
void | setDisplayFormat (DisplayFormat format) |
Set the display format. More... | |
DisplayFormat | displayFormat () |
Get the current display format. More... | |
void | setPrefixType (PrefixType prefix) |
Set the prefix type. More... | |
PrefixType | prefixType () |
Get the current display format. More... | |
Protected Member Functions | |
virtual StepEnabled | stepEnabled () const |
A spin box for displaying/entering angular values.
This class can accept angles in various formats commonly used in astronomy including decimal degrees, DMS and HMS.
Definition at line 30 of file AngleSpinBox.hpp.
Used to decide how to display the angle.
Definition at line 37 of file AngleSpinBox.hpp.
Determines how positive and negative values are indicated.
Definition at line 48 of file AngleSpinBox.hpp.
|
virtualslot |
Set the value to default 0 angle.
|
inline |
Get the number of decimal places to express float values to (e.g.
seconds in DMSLetters format).
Definition at line 77 of file AngleSpinBox.hpp.
|
inline |
Get the current display format.
Definition at line 85 of file AngleSpinBox.hpp.
|
inline |
Get the current display format.
Definition at line 93 of file AngleSpinBox.hpp.
|
inline |
Set the number of decimal places to express float values to (e.g.
seconds in DMSLetters format).
places | the number of decimal places to use. |
Definition at line 73 of file AngleSpinBox.hpp.
|
slot |
Set the value of the spin box in decimal degrees.
degrees | the value to set, in decimal degrees. |
|
inline |
Set the display format.
format | the new format to use. |
Definition at line 81 of file AngleSpinBox.hpp.
|
inline |
Set the prefix type.
prefix | the new prefix type to use. |
Definition at line 89 of file AngleSpinBox.hpp.
|
slot |
Set the value of the spin box in radians.
radians | the value to set, in radians. |
|
signal |
Emitted when the value changes.
double AngleSpinBox::valueDegrees | ( | ) |
Get the angle held in the AngleSpinBox.
double AngleSpinBox::valueRadians | ( | ) |
Get the angle held in the AngleSpinBox.