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

kstars

timespinbox.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           timespinbox.h  -  description
00003                              -------------------
00004     begin                : Sun Mar 31 2002
00005     copyright            : (C) 2002 by Jason Harris
00006     email                : kstars@30doradus.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef TIMESPINBOX_H
00019 #define TIMESPINBOX_H
00020 
00021 #include <qspinbox.h>
00022 #include <qstringlist.h>
00023 
00031 class TimeSpinBox : public QSpinBox  {
00032 Q_OBJECT
00033 public:
00035     TimeSpinBox( QWidget *parent, const char* name=0, bool daysOnly = false );
00037     ~TimeSpinBox() {}
00038 
00044     virtual QString mapValueToText( int value );
00045     
00051     virtual int mapTextToValue( bool *ok);
00052 
00054     float timeScale() const;
00055 
00056     void setDaysOnly( bool daysonly );
00057     bool daysOnly() const { return DaysOnly; }
00058 
00059 signals:
00060     void scaleChanged( float s );
00061 
00062 public slots:
00063     void changeScale( float s );
00064 
00065 protected slots:
00066     void reportChange();
00067 
00068 private:
00069     bool DaysOnly;
00070     float TimeScale[42];
00071     QStringList TimeString;
00072 };
00073 
00074 #endif

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