Kstars

cometscomponent.h
1/*
2 SPDX-FileCopyrightText: 2005 Jason Harris <kstars@30doradus.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ksparser.h"
10#include "solarsystemlistcomponent.h"
11#include "filedownloader.h"
12
13#include <QList>
14#include <QPointer>
15
16class SkyLabeler;
17
18/**
19 * @class CometsComponent
20 *
21 * This class encapsulates the Comets
22 *
23 * @author Jason Harris
24 * @version 0.1
25 */
27{
29
30 public:
31 /**
32 * @short Default constructor.
33 *
34 * @p parent pointer to the parent SolarSystemComposite
35 */
37
38 virtual ~CometsComponent() override = default;
39
40 bool selected() override;
41 void draw(SkyPainter *skyp) override;
42 void updateDataFile(bool isAutoUpdate = false);
43
44 protected slots:
45 void downloadReady();
46 void downloadError(const QString &errorString);
47
48 private:
49 void loadData();
50
51 QPointer<FileDownloader> downloadJob;
52};
This class encapsulates the Comets.
CometsComponent(SolarSystemComposite *parent)
Default constructor.
bool selected() override
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
The purpose of this class is to prevent labels from overlapping.
Definition skylabeler.h:99
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
The solar system composite manages all planets, asteroids and comets.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.