20 #ifndef _ASTROCALCDIALOG_HPP_
21 #define _ASTROCALCDIALOG_HPP_
24 #include <QTreeWidget>
25 #include <QTreeWidgetItem>
28 #include "StelDialog.hpp"
29 #include "StelCore.hpp"
32 class Ui_astroCalcDialogForm;
81 Ui_astroCalcDialogForm *ui;
85 void currentPlanetaryPositions();
86 void selectCurrentPlanetaryPosition(
const QModelIndex &modelIndex);
89 void generateEphemeris();
90 void selectCurrentEphemeride(
const QModelIndex &modelIndex);
93 void calculatePhenomena();
94 void selectCurrentPhenomen(
const QModelIndex &modelIndex);
102 void setPlanetaryPositionsHeaderNames();
104 void setEphemerisHeaderNames();
106 void setPhenomenaHeaderNames();
109 void initListPlanetaryPositions();
111 void initListEphemeris();
113 void initListPhenomena();
119 void populateCelestialBodyList();
121 void populateEphemerisTimeStepsList();
123 void populateMajorPlanetList();
125 void populateGroupCelestialBodyList();
131 QMap<double, double> findClosestApproach(PlanetP& object1, PlanetP& object2,
double startJD,
double stopJD,
float maxSeparation,
bool opposition);
132 double findDistance(
double JD, PlanetP object1, PlanetP object2,
bool opposition);
133 bool findPrecise(QPair<double, double>* out, PlanetP object1, PlanetP object2,
double JD,
double step,
int prevSign,
bool opposition);
134 void fillPhenomenaTable(
const QMap<double, double> list,
const PlanetP object1,
const PlanetP object2,
bool opposition);
142 : QTreeWidgetItem(parent)
147 bool operator < (
const QTreeWidgetItem &other)
const
149 int column = treeWidget()->sortColumn();
153 return text(column).toFloat() < other.text(column).toFloat();
157 return text(column).toLower() < other.text(column).toLower();
162 #endif // _ASTROCALCDIALOG_HPP_
EphemerisColumns
Defines the number and the order of the columns in the ephemeris table.
date and time of ephemeris
Main class for Stellarium core processing.
Base class for all the GUI windows in Stellarium.
PhenomenaColumns
Defines the number and the order of the columns in the phenomena table.
This StelObjectModule derivative is used to model SolarSystem bodies.
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
date and time of ephemeris
Manage the selection and queries on one or more StelObjects.
PlanetaryPositionsColumns
Defines the number and the order of the columns in the table that lists planetary positions...