Kstars

constellationartcomponent.h
1/*
2 SPDX-FileCopyrightText: 2015 M.S.Adityan <msadityan@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "skycomponent.h"
10
12class CultureList;
13
14/**
15 * @class ConstellationArtComponent
16 * Represents the ConstellationsArt objects.
17 * For each skyculture there is a separate table in skycultures.sqlite.
18 * @author M.S.Adityan
19 * @version 0.1
20 */
22{
23 public:
24 /** Constructor */
26
27 /** Destructor */
29
30 /**
31 * @short Read the skycultures.sqlite database file.
32 * Parse all the data from the skycultures database.Construct a ConstellationsArt object
33 * from the data, and add it to a QList.
34 * @return true if data file is successfully read.
35 */
36 void loadData();
37
38 /**
39 * @short deletes all created ConstellationsArt objects.
40 * Used in KStars Lite to reduce memory consumption if Constellation Art is switched off
41 */
42 void deleteData();
43
44 /** @short Shows the details of the constellations selected skyculture */
45 void showList();
46
47 void draw(SkyPainter *skyp) override;
48
50
51 private:
52 QString cultureName;
53 int records { 0 };
54};
Represents the ConstellationsArt objects.
void showList()
Shows the details of the constellations selected skyculture.
~ConstellationArtComponent() override
Destructor.
void loadData()
Read the skycultures.sqlite database file.
void deleteData()
deletes all created ConstellationsArt objects.
ConstellationArtComponent(SkyComposite *, CultureList *cultures)
Constructor.
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Information about a ConstellationsArt object.
A list of all cultures FIXME: Why not use a QStringList?
Definition culturelist.h:17
SkyComponent represents an object on the sky map.
SkyComposite is a kind of container class for SkyComponent objects.
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.