• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • dialogs
fovdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  fovdialog.h - description
3  -------------------
4  begin : Fri 05 Sept 2003
5  copyright : (C) 2003 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef FOVDIALOG_H_
19 #define FOVDIALOG_H_
20 
21 #include <QPaintEvent>
22 #include <kdialog.h>
23 
24 #include "fov.h"
25 #include "ui_fovdialog.h"
26 #include "ui_newfov.h"
27 
33 class KStars;
34 class FOVWidget;
35 
36 class FOVDialogUI : public QFrame, public Ui::FOVDialog {
37  Q_OBJECT
38 public:
39  explicit FOVDialogUI( QWidget *parent=0 );
40 };
41 
42 class NewFOVUI : public QFrame, public Ui::NewFOV {
43  Q_OBJECT
44 public:
45  explicit NewFOVUI( QWidget *parent=0 );
46 };
47 
48 class FOVDialog : public KDialog
49 {
50  Q_OBJECT
51 public:
52  explicit FOVDialog( QWidget *parent = 0 );
53  virtual ~FOVDialog();
55  void writeFOVList();
56 private slots:
57  void slotNewFOV();
58  void slotEditFOV();
59  void slotRemoveFOV();
60  void slotSelect(int);
61 private:
63  QListWidgetItem* addListWidget(FOV* f);
64 
65  unsigned int currentItem() const;
66  FOVDialogUI *fov;
67  static int fovID;
68 };
69 
74 class NewFOV : public KDialog
75 {
76  Q_OBJECT
77 public:
82  explicit NewFOV( QWidget *parent=0, const FOV* fov = 0);
83  ~NewFOV() {}
85  const FOV& getFOV() const { return f; }
86 
87 public slots:
88  void slotBinocularFOVDistanceChanged( int index );
89  void slotUpdateFOV();
90  void slotComputeFOV();
91  void slotEyepieceAFOVChanged( int index );
92  void slotComputeTelescopeFL();
93 
94 private:
95  FOV f;
96  NewFOVUI *ui;
97 };
98 
105 class TelescopeFL : public KDialog
106 {
107  Q_OBJECT;
108  public:
113  explicit TelescopeFL( QWidget *parent = 0 );
114 
115  ~TelescopeFL() { }
116 
121  double computeFL() const;
122 
123  private:
124  KDoubleNumInput *aperture, *fNumber;
125  KComboBox *apertureUnit;
126 };
127 
128 #endif
NewFOV::slotUpdateFOV
void slotUpdateFOV()
Definition: fovdialog.cpp:237
FOV
class encapulating a Field-of-View symbol
Definition: fov.h:32
FOVDialog
select a Field-of-View indicator (or create a new one)
Definition: fovdialog.h:48
NewFOV::slotComputeFOV
void slotComputeFOV()
Definition: fovdialog.cpp:263
TelescopeFL::computeFL
double computeFL() const
Compute and return the focal length in mm.
Definition: fovdialog.cpp:337
FOVWidget
Definition: fovwidget.h:25
QWidget
KDialog
KStars
This is the main window for KStars.
Definition: kstars.h:94
NewFOV::slotBinocularFOVDistanceChanged
void slotBinocularFOVDistanceChanged(int index)
Definition: fovdialog.cpp:232
NewFOV::getFOV
const FOV & getFOV() const
Return reference to FOV.
Definition: fovdialog.h:85
NewFOV::slotEyepieceAFOVChanged
void slotEyepieceAFOVChanged(int index)
Definition: fovdialog.cpp:288
fov.h
NewFOVUI::NewFOVUI
NewFOVUI(QWidget *parent=0)
Definition: fovdialog.cpp:71
NaN::f
const float f
Definition: nan.h:36
NewFOV
defining a new FOV symbol
Definition: fovdialog.h:74
NewFOV::~NewFOV
~NewFOV()
Definition: fovdialog.h:83
FOVDialog::writeFOVList
void writeFOVList()
Write list of FOVs to disk.
Definition: fovdialog.cpp:113
FOVDialogUI
Definition: fovdialog.h:36
NewFOV::slotComputeTelescopeFL
void slotComputeTelescopeFL()
Definition: fovdialog.cpp:300
NewFOV::NewFOV
NewFOV(QWidget *parent=0, const FOV *fov=0)
Create new dialog.
Definition: fovdialog.cpp:170
TelescopeFL::~TelescopeFL
~TelescopeFL()
Definition: fovdialog.h:115
FOVDialogUI::FOVDialogUI
FOVDialogUI(QWidget *parent=0)
Definition: fovdialog.cpp:67
NewFOVUI
Definition: fovdialog.h:42
KDoubleNumInput
FOVDialog::~FOVDialog
virtual ~FOVDialog()
Definition: fovdialog.cpp:98
FOVDialog::FOVDialog
FOVDialog(QWidget *parent=0)
Definition: fovdialog.cpp:76
TelescopeFL
calculating telescope focal length from f-number and diameter
Definition: fovdialog.h:105
TelescopeFL::TelescopeFL
TelescopeFL(QWidget *parent=0)
Create a telescope focal length dialog.
Definition: fovdialog.cpp:313
QFrame
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal