summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/fovdialog.h
blob: 8f7b6de821bbe9a05a7c27252e67b0600d91165c (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/***************************************************************************
                          fovdialog.h  -  description
                             -------------------
    begin                : Fri 05 Sept 2003
    copyright            : (C) 2003 by Jason Harris
    email                : kstars@30doradus.org
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 FOVDIALOG_H
#define FOVDIALOG_H

#include <tqptrlist.h>
#include <kdialogbase.h>
#include "fov.h"

/**@class FOVDialog Dialog to select a Field-of-View indicator (or create a new one)
	*@author Jason Harris
	*@version 1.0
	*/

class KStars;
class FOVDialogUI;
class NewFOVUI;

class FOVDialog : public KDialogBase
{
	Q_OBJECT
public:
	FOVDialog( TQWidget *parent=0 );
	~FOVDialog();
	unsigned int currentItem() const;
	TQPtrList<FOV> FOVList;

protected:
	void paintEvent( TQPaintEvent * );

private slots:
	void slotNewFOV();
	void slotEditFOV();
	void slotRemoveFOV();
	void slotSelect(TQListBoxItem*);

private:
	void initList();

	KStars *ks;
	FOVDialogUI *fov;
};

/**@class NewFOV Dialog for defining a new FOV symbol
	*@author Jason Harris
	*@version 1.0
	*/
class NewFOV : public KDialogBase
{
	Q_OBJECT
public:
	NewFOV( TQWidget *parent=0 );
	~NewFOV() {}
	NewFOVUI *ui;

public slots:
	void slotUpdateFOV();
	void slotComputeFOV();

protected:
	void paintEvent( TQPaintEvent * );

private:
	FOV f;
};

#endif