/***************************************************************************
                          modcalcaltaz.h  -  description
                             -------------------
    begin                : sáb oct 26 2002
    copyright            : (C) 2002 by Pablo de Vicente
    email                : pvicentea@wanadoo.es
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef MODCALCALTAZ_H_
#define MODCALCALTAZ_H_

#include "ui_modcalcaltaz.h"

class QWidget;
class GeoLocation;
class dms;

/**
  *@author Pablo de Vicente
  */
class modCalcAltAz : public QFrame, public Ui::modCalcAltAz  {

    Q_OBJECT

public:
    modCalcAltAz(QWidget *p);
    ~modCalcAltAz();

public slots:
    void slotCompute();
    void slotNow();
    void slotLocation();
    void slotObject();
    void slotDateTimeChanged(const QDateTime&);

    void slotUtChecked();
    void slotDateChecked();
    void slotRaChecked();
    void slotDecChecked();
    void slotEpochChecked();
    void slotLongChecked();
    void slotLatChecked();
    void slotAzChecked();
    void slotElChecked();
    void slotInputFile();
    void slotOutputFile();
    void slotRunBatch();

private:
    void horNoCheck();
    void equNoCheck();
    void processLines( QTextStream &istream );

    GeoLocation *geoPlace;
    dms LST;
    bool horInputCoords;
};

#endif
