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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • widgets
timestepbox.h
Go to the documentation of this file.
1 /***************************************************************************
2  timestepbox.h - description
3  -------------------
4  begin : Sat Apr 13 2002
5  copyright : (C) 2002 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef TIMESTEPBOX_H
19 #define TIMESTEPBOX_H
20 
21 #include <QHBoxLayout>
22 #include "timespinbox.h"
23 #include "timeunitbox.h"
24 
34 class TimeStepBox : public QWidget {
35  Q_OBJECT
36 public:
38  explicit TimeStepBox( QWidget *parent=0, bool daysonly=false );
40  ~TimeStepBox() {}
41 
43  TimeSpinBox* tsbox() const { return timeBox; }
44 
46  TimeUnitBox* unitbox() const { return unitBox; }
47 
48  bool daysOnly() const { return DaysOnly; }
49  void setDaysOnly( bool daysonly );
50 
51 signals:
52  void scaleChanged( float );
53 
54 private slots:
57  void changeUnits( void );
58 
61  void syncUnits( int );
62 private:
63  bool DaysOnly;
64  QHBoxLayout *hlay;
65  TimeSpinBox *timeBox;
66  TimeUnitBox *unitBox;
67 };
68 
69 #endif
TimeSpinBox
Custom spinbox to handle selection of timestep values with variable units.
Definition: timespinbox.h:32
QWidget
TimeStepBox::~TimeStepBox
~TimeStepBox()
Destructor.
Definition: timestepbox.h:40
timeunitbox.h
TimeStepBox::TimeStepBox
TimeStepBox(QWidget *parent=0, bool daysonly=false)
Constructor.
Definition: timestepbox.cpp:27
TimeStepBox::setDaysOnly
void setDaysOnly(bool daysonly)
Definition: timestepbox.cpp:69
TimeStepBox
This composite widget consists of a TimeSpinBox (a QSpinBox), coupled with a TimeUnitBox (a second pa...
Definition: timestepbox.h:34
TimeStepBox::tsbox
TimeSpinBox * tsbox() const
Definition: timestepbox.h:43
TimeUnitBox
A pair of buttons, arranged one above the other, labeled "+"/"-".
Definition: timeunitbox.h:45
TimeStepBox::daysOnly
bool daysOnly() const
Definition: timestepbox.h:48
TimeStepBox::unitbox
TimeUnitBox * unitbox() const
Definition: timestepbox.h:46
TimeStepBox::scaleChanged
void scaleChanged(float)
timespinbox.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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