summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcequinox.h
blob: 03fdf30d1e38f241eac2c49a9c4f6dc0e5039775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/***************************************************************************
                          modcalcazel.h  -  description
                             -------------------
    begin                : mier abr 20 2004
    copyright            : (C) 2004 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 MODCALCEQUINOX_H
#define MODCALCEQUINOX_H

#include <tdeapplication.h>
#include <tqwidget.h>
#include "modcalcequinoxdlg.h"

class TQWidget;
class TQTextStream;

/**
  *@author Pablo de Vicente
  */

class modCalcEquinox : public modCalcEquinoxDlg  {

Q_OBJECT
  

public: 
	modCalcEquinox(TQWidget *p, const char *n);
	~modCalcEquinox();
	
public slots:

	void slotComputeEquinoxesAndSolstices(void);
	void slotClear(void);
	void slotYearCheckedBatch();
	void slotInputFile();
	void slotOutputFile();
	void slotRunBatch();

private:

	int getYear (TQString eName);
	void showCurrentYear (void);
	void showStartDateTime(long double jd);
	void showSeasonDuration(float deltaJd);
	void processLines( TQTextStream &istream );
  
};

#endif