Changeset View
Changeset View
Standalone View
Standalone View
kstars/tools/modcalcvizequinox.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 42 | private slots: | |||
---|---|---|---|---|---|
43 | void slotCompute(); | 43 | void slotCompute(); | ||
44 | void slotCheckFiles(); | 44 | void slotCheckFiles(); | ||
45 | void slotRunBatch(); | 45 | void slotRunBatch(); | ||
46 | void slotViewBatch(); | 46 | void slotViewBatch(); | ||
47 | 47 | | |||
48 | private: | 48 | private: | ||
49 | void processLines(QTextStream &istream); | 49 | void processLines(QTextStream &istream); | ||
50 | void addDateAxes(); | 50 | void addDateAxes(); | ||
51 | KStarsDateTime findEquinox(int year, bool Spring, KPlotObject *po); | 51 | void findSolsticeAndEquinox(uint32_t year); | ||
mutlaqja: What's n? use a better variable name.
Also what's the range for n? for year, we prefer to use… | |||||
52 | KStarsDateTime findSolstice(int year, bool Summer); | 52 | qreal FindCorrection(uint32_t year); | ||
53 | 53 | | |||
54 | public: | 54 | public: | ||
55 | KStarsDateTime dSpring, dSummer, dAutumn, dWinter; | 55 | KStarsDateTime dSpring, dSummer, dAutumn, dWinter; | ||
56 | private: | 56 | private: | ||
57 | double DMonth[12]; | 57 | double DMonth[12]; | ||
58 | }; | 58 | }; |
What's n? use a better variable name.
Also what's the range for n? for year, we prefer to use uint32_t, int32_t...etc, not just int, short.
Add a comment block on top to explain what the function does ..etc in the standard doxygen format we use.