• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

TimeSpinBox Class Reference

Custom spinbox to handle selection of timestep values with variable units. More...

#include <timespinbox.h>

Inheritance diagram for TimeSpinBox:

Inheritance graph
[legend]

List of all members.


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.
Author:
Jason Harris
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 
)

Constructor.

Definition at line 40 of file timespinbox.cpp.

TimeSpinBox::~TimeSpinBox (  )  [inline]

Destructor (empty).

Definition at line 37 of file timespinbox.h.


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

Returns:
the current TimeStep setting

Definition at line 204 of file timespinbox.cpp.


The documentation for this class was generated from the following files:
  • timespinbox.h
  • timespinbox.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal