Kstars

skycalendar.h
1/*
2 SPDX-FileCopyrightText: 2008 Jason Harris <kstars@30doradus.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10#include <QMutex>
11
12#include "ui_skycalendar.h"
13
14class GeoLocation;
15
16class SkyCalendarUI : public QFrame, public Ui::SkyCalendar
17{
19
20 public:
21 explicit SkyCalendarUI(QWidget *p = nullptr);
22};
23
24/**
25 * @class SkyCalendar
26 *
27 * Draws Rise/Set/Transit curves for major solar system planets for any calendar year.
28 */
29class SkyCalendar : public QDialog
30{
32
33 friend class CalendarWidget;
34
35 public:
36 explicit SkyCalendar(QWidget *parent = nullptr);
37 ~SkyCalendar() = default;
38
39 int year();
40 GeoLocation *get_geo();
41
42 public slots:
43 void slotFillCalendar();
44 void slotPrint();
45 void slotLocation();
46 //void slotCalculating();
47
48 private:
49 void addPlanetEvents(int nPlanet);
50 void drawEventLabel(float x1, float y1, float x2, float y2, QString LabelText);
51
52 SkyCalendarUI *scUI { nullptr };
53 GeoLocation *geo { nullptr };
54 QMutex calculationMutex;
55 QString plotButtonText;
56 bool calculating { false };
57};
An extension of the KPlotWidget for the SkyCalendar tool.
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
Draws Rise/Set/Transit curves for major solar system planets for any calendar year.
Definition skycalendar.h:30
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.