kstars
TimeSpinBox Class Reference
Custom spinbox to handle selection of timestep values with variable units. More...
#include <timespinbox.h>
Inheritance diagram for TimeSpinBox:

Public Slots | |
void | changeScale (float s) |
Signals | |
void | scaleChanged (float s) |
Public Member Functions | |
bool | daysOnly () const |
virtual int | mapTextToValue (bool *ok) |
virtual QString | mapValueToText (int value) |
void | setDaysOnly (bool daysonly) |
float | timeScale () const |
TimeSpinBox (QWidget *parent, const char *name=0, bool daysOnly=false) | |
~TimeSpinBox () | |
Protected Slots | |
void | reportChange () |
Detailed Description
Custom spinbox to handle selection of timestep values with variable units.
- Note:
- this should only be used internally, embedded in a TimeStepBox widget.
- Version:
- 1.0
Definition at line 31 of file timespinbox.h.
Constructor & Destructor Documentation
TimeSpinBox::TimeSpinBox | ( | QWidget * | parent, | |
const char * | name = 0 , |
|||
bool | daysOnly = false | |||
) |
TimeSpinBox::~TimeSpinBox | ( | ) | [inline] |
Member Function Documentation
void TimeSpinBox::changeScale | ( | float | s | ) | [slot] |
Definition at line 189 of file timespinbox.cpp.
bool TimeSpinBox::daysOnly | ( | ) | const [inline] |
Definition at line 57 of file timespinbox.h.
int TimeSpinBox::mapTextToValue | ( | bool * | ok | ) | [virtual] |
Convert the displayed string to an internal value.
- Note:
- reimplemented from QSpinBox
ok
bool pointer set to TRUE if conversion was successful
- Returns:
- internal value converted from displayed text
Reimplemented from QSpinBox.
Definition at line 168 of file timespinbox.cpp.
QString TimeSpinBox::mapValueToText | ( | int | value | ) | [virtual] |
Convert the internal value to a display string.
- Note:
- reimplemented from QSpinBox
value
the internal value to convert to a display string
- Returns:
- the display string
Reimplemented from QSpinBox.
Definition at line 179 of file timespinbox.cpp.
void TimeSpinBox::reportChange | ( | ) | [protected, slot] |
Definition at line 208 of file timespinbox.cpp.
void TimeSpinBox::scaleChanged | ( | float | s | ) | [signal] |
void TimeSpinBox::setDaysOnly | ( | bool | daysonly | ) |
Definition at line 63 of file timespinbox.cpp.
float TimeSpinBox::timeScale | ( | void | ) | const |
The documentation for this class was generated from the following files: