• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Slots | Signals | Public Member Functions | Protected Slots | List of all members
TimeSpinBox Class Reference

#include <timespinbox.h>

Inheritance diagram for TimeSpinBox:
Inheritance graph
[legend]

Public Slots

void changeScale (float s)
 

Signals

void scaleChanged (float s)
 

Public Member Functions

 TimeSpinBox (QWidget *parent, bool daysOnly=false)
 
 ~TimeSpinBox ()
 
bool daysOnly () const
 
void setDaysOnly (bool daysonly)
 
virtual QString textFromValue (int value) const
 
float timeScale () const
 
virtual int valueFromText (const QString &text) const
 

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 32 of file timespinbox.h.

Constructor & Destructor Documentation

TimeSpinBox::TimeSpinBox ( QWidget *  parent,
bool  daysOnly = false 
)
explicit

Constructor.

Definition at line 43 of file timespinbox.cpp.

TimeSpinBox::~TimeSpinBox ( )
inline

Destructor (empty)

Definition at line 38 of file timespinbox.h.

Member Function Documentation

void TimeSpinBox::changeScale ( float  s)
slot

Definition at line 200 of file timespinbox.cpp.

bool TimeSpinBox::daysOnly ( ) const
inline

Definition at line 58 of file timespinbox.h.

void TimeSpinBox::reportChange ( )
protectedslot

Definition at line 219 of file timespinbox.cpp.

void TimeSpinBox::scaleChanged ( float  s)
signal
void TimeSpinBox::setDaysOnly ( bool  daysonly)

Definition at line 70 of file timespinbox.cpp.

QString TimeSpinBox::textFromValue ( int  value) const
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

Definition at line 189 of file timespinbox.cpp.

float TimeSpinBox::timeScale ( void  ) const
Returns
the current TimeStep setting

Definition at line 215 of file timespinbox.cpp.

int TimeSpinBox::valueFromText ( const QString &  text) const
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

Definition at line 180 of file timespinbox.cpp.


The documentation for this class was generated from the following files:
  • timespinbox.h
  • timespinbox.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal