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

kstars

dmsbox.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           dmsbox.h  -  description
00003                              -------------------
00004     begin                : Wed Dec 19 2002
00005     copyright            : (C) 2001-2002 by Pablo de Vicente
00006     email                : vicente@oan.es
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 DMSBOX_H
00019 #define DMSBOX_H
00020 
00021 #include <klineedit.h>
00022 
00023 #include "dms.h"
00024 
00043 class dmsBox : public KLineEdit  {
00044 Q_OBJECT
00045 Q_PROPERTY (bool degType READ degType WRITE setDegType)
00046 
00047 public:
00054     dmsBox(QWidget *parent, const char *ni=0, bool deg=TRUE);
00055 
00057     ~dmsBox();
00058 
00062     void showInHours(dms t);
00068     void showInHours(const dms *t);
00069 
00073     void showInDegrees(dms t);
00079     void showInDegrees(const dms *t);
00080 
00087     void show(dms t, bool deg=TRUE);
00096     void show(const dms *t,bool deg=TRUE);
00097 
00102     void setDMS(QString s) { setText(s); }
00103 
00114     dms createDms(bool deg=TRUE, bool *ok=0);
00115 
00118     bool degType(void) const {return deg;}
00119 
00124     void setDegType( bool t );
00125 
00128     void clearFields (void) { setDMS(""); }
00129 
00130 protected:
00131     void focusInEvent( QFocusEvent *e );
00132     void focusOutEvent( QFocusEvent *e );
00133 
00134 private slots:
00135     void slotTextChanged( const QString &t );
00136 
00137 private:
00138     void setEmptyText();
00139 
00140     int degree, minute, hour;
00141     double second;
00142     int second_int, msecond;
00143     bool deg, EmptyFlag;
00144     dms degValue;
00145 };
00146 
00147 #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