File indexing completed on 2024-04-14 14:11:25

0001 /*
0002     SPDX-FileCopyrightText: 2005 Jason Harris <kstars@30doradus.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "listcomponent.h"
0010 
0011 class KSPlanet;
0012 class SolarSystemComposite;
0013 
0014 /**
0015  * @class SolarSystemListComponent
0016  *
0017  * @author Jason Harris
0018  * @version 1.0
0019  */
0020 class SolarSystemListComponent : public ListComponent
0021 {
0022   public:
0023     explicit SolarSystemListComponent(SolarSystemComposite *parent);
0024 
0025     ~SolarSystemListComponent() override;
0026 
0027     void update(KSNumbers *num) override;
0028 
0029     /**
0030      * @short Update the coordinates of the solar system bodies in this component.
0031      *
0032      * This function updates the position of the moving solar system bodies.
0033      * @p data Pointer to the KStarsData object
0034      * @p num Pointer to the KSNumbers object
0035      */
0036     void updateSolarSystemBodies(KSNumbers *num) override;
0037 
0038   protected:
0039     void drawTrails(SkyPainter *skyp) override;
0040 
0041   private:
0042     KSPlanet *m_Earth { nullptr };
0043 };