summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/telescopeprop.h
blob: ce7347f9ba715577123575401430dc8b393448cb (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
/***************************************************************************
                          telescopeprop.cpp  -  description
                             -------------------
    begin                : Wed June 8th 2005
    copyright            : (C) 2005 by Jasem Mutlaq
    email                : mutlaqja@ikarustech.com
 ***************************************************************************/

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

class KStars;
class INDIDriver;

#include "telescopepropui.h"

class telescopeProp : public scopeProp
{
  Q_OBJECT

public:
  telescopeProp(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
  ~telescopeProp();
  /*$PUBLIC_FUNCTIONS$*/

public slots:
  void newScope();
  void saveScope();
  void updateScopeDetails(int index);
  void removeScope();
  /*$PUBLIC_SLOTS$*/

protected:
  /*$PROTECTED_FUNCTIONS$*/

protected slots:
  /*$PROTECTED_SLOTS$*/

 private:
  int findDeviceIndex(int listIndex);

  bool newScopePending;
  KStars *ksw;
  INDIDriver *indi_driver;

};

#endif