20 #ifndef _OCULARDIALOG_HPP_
21 #define _OCULARDIALOG_HPP_
26 #include "PropertyBasedTableModel.hpp"
27 #include "StelDialog.hpp"
28 #include "StelStyle.hpp"
29 #include "Telescope.hpp"
32 class Ui_ocularDialogForm;
35 class QDataWidgetMapper;
36 class QDoubleValidator;
38 class QRegExpValidator;
40 class QStandardItemModel;
50 OcularDialog(
Oculars* plugin, QList<CCD *>* ccds, QList<Ocular *>* oculars, QList<Telescope *>* telescopes, QList<Lens *>* lense);
58 void deleteSelectedCCD();
59 void deleteSelectedOcular();
60 void deleteSelectedTelescope();
61 void deleteSelectedLens();
63 void insertNewOcular();
64 void insertNewTelescope();
66 void moveUpSelectedSensor();
67 void moveUpSelectedOcular();
68 void moveUpSelectedTelescope();
69 void moveUpSelectedLens();
70 void moveDownSelectedSensor();
71 void moveDownSelectedOcular();
72 void moveDownSelectedTelescope();
73 void moveDownSelectedLens();
77 void requireSelectionChanged(
bool state);
78 void scaleImageCircleChanged(
bool state);
83 Ui_ocularDialogForm* ui;
86 void keyBindingTogglePluginChanged(
const QString& newString);
87 void keyBindingPopupNavigatorConfigChanged(
const QString& newString);
89 void requireSelectionStateChanged(
int state);
90 void scaleImageCircleStateChanged(
int state);
95 QDataWidgetMapper* ccdMapper;
98 QDataWidgetMapper* ocularMapper;
99 QList<Ocular *>* oculars;
101 QDataWidgetMapper* telescopeMapper;
102 QList<Telescope *>* telescopes;
104 QDataWidgetMapper* lensMapper;
105 QList<Lens *>* lense;
107 QDoubleValidator* validatorOcularAFOV;
108 QDoubleValidator* validatorOcularEFL;
109 QDoubleValidator* validatorTelescopeDiameter;
110 QDoubleValidator* validatorTelescopeFL;
111 QDoubleValidator* validatorLensMultipler;
112 QRegExpValidator* validatorName;
113 QIntValidator* validatorPositiveInt;
114 QDoubleValidator* validatorPositiveDouble;
117 #endif // _OCULARDIALOG_HPP_