[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kstars] kstars: Use a more correct descriptive function name
From:       Jasem Mutlaq <mutlaqja () ikarustech ! com>
Date:       2016-04-30 16:35:12
Message-ID: E1awXrM-0007iz-6H () scm ! kde ! org
[Download RAW message or body]

Git commit 3ff49be59f3e60cd6daa217399f58a3e8fdc4655 by Jasem Mutlaq.
Committed on 30/04/2016 at 16:34.
Pushed by mutlaqja into branch 'master'.

Use a more correct descriptive function name

M  +1    -1    kstars/kstarsdata.cpp
M  +1    -1    kstars/skycomponents/skycomponent.h
M  +2    -2    kstars/skycomponents/skymapcomposite.cpp
M  +1    -1    kstars/skycomponents/skymapcomposite.h
M  +2    -2    kstars/skycomponents/solarsystemcomposite.cpp
M  +1    -1    kstars/skycomponents/solarsystemcomposite.h
M  +1    -1    kstars/skycomponents/solarsystemlistcomponent.cpp
M  +1    -1    kstars/skycomponents/solarsystemlistcomponent.h
M  +1    -1    kstars/skycomponents/solarsystemsinglecomponent.cpp
M  +12   -1    kstars/skycomponents/solarsystemsinglecomponent.h

http://commits.kde.org/kstars/3ff49be59f3e60cd6daa217399f58a3e8fdc4655

diff --git a/kstars/kstarsdata.cpp b/kstars/kstarsdata.cpp
index e74a0ad..9994695 100644
--- a/kstars/kstarsdata.cpp
+++ b/kstars/kstarsdata.cpp
@@ -215,7 +215,7 @@ void KStarsData::updateTime( GeoLocation *geo, const bool \
automaticDSTchange ) {  
     if ( fabs( ut().djd() - LastPlanetUpdate.djd() ) > 0.01 ) {
         LastPlanetUpdate = ut().djd();
-        skyComposite()->updatePlanets( &num );
+        skyComposite()->updateSolarSystemBodies( &num );
     }
 
     // Moon moves ~30 arcmin/hr, so update its position every minute.
diff --git a/kstars/skycomponents/skycomponent.h \
b/kstars/skycomponents/skycomponent.h index 90a5831..51d7081 100644
--- a/kstars/skycomponents/skycomponent.h
+++ b/kstars/skycomponents/skycomponent.h
@@ -151,7 +151,7 @@ public:
      * @sa ConstellationBoundaryComponent::update()
      */
     virtual void update( KSNumbers* ) {}
-    virtual void updatePlanets( KSNumbers * ) {}
+    virtual void updateSolarSystemBodies( KSNumbers * ) {}
     virtual void updateMoons( KSNumbers * ) {}
 
     /** @return true if component is to be drawn on the map. */
diff --git a/kstars/skycomponents/skymapcomposite.cpp \
b/kstars/skycomponents/skymapcomposite.cpp index 9438a30..7007cc0 100644
--- a/kstars/skycomponents/skymapcomposite.cpp
+++ b/kstars/skycomponents/skymapcomposite.cpp
@@ -159,9 +159,9 @@ void SkyMapComposite::update(KSNumbers *num )
     m_Horizon->update( num );
 }
 
-void SkyMapComposite::updatePlanets(KSNumbers *num )
+void SkyMapComposite::updateSolarSystemBodies(KSNumbers *num )
 {
-    m_SolarSystem->updatePlanets( num );
+    m_SolarSystem->updateSolarSystemBodies( num );
 }
 
 void SkyMapComposite::updateMoons(KSNumbers *num )
diff --git a/kstars/skycomponents/skymapcomposite.h \
b/kstars/skycomponents/skymapcomposite.h index 7745d9e..5561e9e 100644
--- a/kstars/skycomponents/skymapcomposite.h
+++ b/kstars/skycomponents/skymapcomposite.h
@@ -93,7 +93,7 @@ public:
     	*@sa updateMoons()
     	*@sa SolarSystemComposite::updatePlanets()
     	*/
-    virtual void updatePlanets( KSNumbers *num );
+    virtual void updateSolarSystemBodies( KSNumbers *num );
 
     /**
     	*@short Delegate moon position updates to the SolarSystemComposite
diff --git a/kstars/skycomponents/solarsystemcomposite.cpp \
b/kstars/skycomponents/solarsystemcomposite.cpp index e42cc14..ba6da20 100644
--- a/kstars/skycomponents/solarsystemcomposite.cpp
+++ b/kstars/skycomponents/solarsystemcomposite.cpp
@@ -86,11 +86,11 @@ void SolarSystemComposite::update( KSNumbers *num )
     }
 }
 
-void SolarSystemComposite::updatePlanets( KSNumbers *num )
+void SolarSystemComposite::updateSolarSystemBodies( KSNumbers *num )
 {
     m_Earth->findPosition( num );
     foreach ( SkyComponent *comp, components() ) {
-        comp->updatePlanets( num );
+        comp->updateSolarSystemBodies( num );
     }
 }
 
diff --git a/kstars/skycomponents/solarsystemcomposite.h \
b/kstars/skycomponents/solarsystemcomposite.h index 28ea5f8..d13148c 100644
--- a/kstars/skycomponents/solarsystemcomposite.h
+++ b/kstars/skycomponents/solarsystemcomposite.h
@@ -52,7 +52,7 @@ public:
 
     virtual void update( KSNumbers *num );
 
-    virtual void updatePlanets( KSNumbers *num );
+    virtual void updateSolarSystemBodies( KSNumbers *num );
 
     virtual void updateMoons( KSNumbers *num );
 
diff --git a/kstars/skycomponents/solarsystemlistcomponent.cpp \
b/kstars/skycomponents/solarsystemlistcomponent.cpp index 152f634..1050435 100644
--- a/kstars/skycomponents/solarsystemlistcomponent.cpp
+++ b/kstars/skycomponents/solarsystemlistcomponent.cpp
@@ -48,7 +48,7 @@ void SolarSystemListComponent::update(KSNumbers * ) {
     }
 }
 
-void SolarSystemListComponent::updatePlanets(KSNumbers *num ) {
+void SolarSystemListComponent::updateSolarSystemBodies(KSNumbers *num ) {
     if ( selected() ) {
         KStarsData *data = KStarsData::Instance(); 
         foreach ( SkyObject *o, m_ObjectList ) {
diff --git a/kstars/skycomponents/solarsystemlistcomponent.h \
b/kstars/skycomponents/solarsystemlistcomponent.h index 22373a5..c6230b2 100644
--- a/kstars/skycomponents/solarsystemlistcomponent.h
+++ b/kstars/skycomponents/solarsystemlistcomponent.h
@@ -44,7 +44,7 @@ public:
      * @p data Pointer to the KStarsData object
      * @p num Pointer to the KSNumbers object
      */
-    virtual void updatePlanets( KSNumbers *num );
+    virtual void updateSolarSystemBodies( KSNumbers *num );
 
 protected:
     void drawTrails( SkyPainter* skyp );
diff --git a/kstars/skycomponents/solarsystemsinglecomponent.cpp \
b/kstars/skycomponents/solarsystemsinglecomponent.cpp index 5db10ae..936e93b 100644
--- a/kstars/skycomponents/solarsystemsinglecomponent.cpp
+++ b/kstars/skycomponents/solarsystemsinglecomponent.cpp
@@ -79,7 +79,7 @@ void SolarSystemSingleComponent::update(KSNumbers*) {
         m_Planet->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
 }
 
-void SolarSystemSingleComponent::updatePlanets(KSNumbers *num) {
+void SolarSystemSingleComponent::updateSolarSystemBodies(KSNumbers *num) {
     if ( selected() ) {
         KStarsData *data = KStarsData::Instance(); 
         m_Planet->findPosition( num, data->geo()->lat(), data->lst(), m_Earth );
diff --git a/kstars/skycomponents/solarsystemsinglecomponent.h \
b/kstars/skycomponents/solarsystemsinglecomponent.h index e222378..096eeb5 100644
--- a/kstars/skycomponents/solarsystemsinglecomponent.h
+++ b/kstars/skycomponents/solarsystemsinglecomponent.h
@@ -49,8 +49,19 @@ public:
     KSPlanetBase* planet() { return m_Planet; }
 
     virtual bool selected();
+
+    /**
+     * @brief update Only convert Equatorial to Horizontal coordinates given current \
time. +     * @param num pointer to KSNumbers instance for target time
+     */
     virtual void update( KSNumbers *num );
-    virtual void updatePlanets( KSNumbers *num );
+
+    /**
+     * @brief updateSolarSystemBodies Update Equtorial & Horizontal coordinates.
+     * @param num pointer to KSNumbers instance for target time
+     */
+    virtual void updateSolarSystemBodies( KSNumbers *num );
+
     virtual SkyObject* findByName( const QString &name );
     virtual SkyObject* objectNearest( SkyPoint *p, double &maxrad );
     virtual void draw( SkyPainter *skyp );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic