[Gpredict-svn] SF.net SVN: gpredict:[681] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2010-10-15 22:53:59
|
Revision: 681 http://gpredict.svn.sourceforge.net/gpredict/?rev=681&view=rev Author: csete Date: 2010-10-15 22:53:52 +0000 (Fri, 15 Oct 2010) Log Message: ----------- Minor cleaning and improved docs. Modified Paths: -------------- trunk/ChangeLog trunk/src/gtk-sky-glance.c trunk/src/gtk-sky-glance.h Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-10-15 13:30:42 UTC (rev 680) +++ trunk/ChangeLog 2010-10-15 22:53:52 UTC (rev 681) @@ -1,3 +1,9 @@ +2010-10-15 Alexandru Csete <oz9aec at gmail.com> + + * src/gtk-sky-glance.[ch]: + Minor cleaning and improved documentation. + + 2010-10-10 Alexandru Csete <oz9aec at gmail.com> * Gpredict 1.2 released. Modified: trunk/src/gtk-sky-glance.c =================================================================== --- trunk/src/gtk-sky-glance.c 2010-10-15 13:30:42 UTC (rev 680) +++ trunk/src/gtk-sky-glance.c 2010-10-15 22:53:52 UTC (rev 681) @@ -2,7 +2,7 @@ /* Gpredict: Real-time satellite tracking and orbit prediction program - Copyright (C) 2001-2009 Alexandru Csete, OZ9AEC. + Copyright (C) 2001-2010 Alexandru Csete, OZ9AEC. Authors: Alexandru Csete <oz...@gm...> @@ -26,10 +26,13 @@ along with this program; if not, visit http://www.fsf.org/ */ /** \brief Sky at a glance Widget. + * + * The sky at a glance widget provides a convenient overview of the upcoming + * satellite passes in a timeline format. The widget is tied to a specific + * module and uses the QTH and satellite data from the module. * * Note about the sizing policy: - * Initially we require 30 pixels per sat + 5 pix margin between the sats. - * Additionally. + * Initially we require 10 pixels per sat + 5 pix margin between the sats. * * When we get additional space due to resizing, the space will be allocated * to make the rectangles taller. @@ -178,8 +181,13 @@ } -/* for some reason, this function is called twice when - parent is destroyed. +/** \brief Destroy the GtkSkyGlance widget + * \param object Pointer to the GtkSkyGlance widget + * + * This function is called when the GtkSkyGlance widget is destroyed. It frees + * the memory that has been allocated when the widget was created. + * + * \bug For some reason, this function is called twice when parent is destroyed. */ static void gtk_sky_glance_destroy (GtkObject *object) @@ -232,6 +240,7 @@ /** \brief Create a new GtkSkyGlance widget. * \param sats Pointer to the hash table containing the asociated satellites. * \param qth Pointer to the ground station data. + * \param ts The t0 for the timeline or 0 to use the current date and time. */ GtkWidget* gtk_sky_glance_new (GHashTable *sats, qth_t *qth, gdouble ts) @@ -315,6 +324,9 @@ } +/** \brief Create the model for the GtkSkyGlance canvas + * \param skg Pointer to the GtkSkyGlance widget + */ static GooCanvasItemModel * create_canvas_model (GtkSkyGlance *skg) { @@ -609,9 +621,9 @@ /** \brief Manage mouse motion events. */ static gboolean on_motion_notify (GooCanvasItem *item, - GooCanvasItem *target, - GdkEventMotion *event, - gpointer data) + GooCanvasItem *target, + GdkEventMotion *event, + gpointer data) { GtkSkyGlance *skg = GTK_SKY_GLANCE (data); GooCanvasPoints *pts; @@ -674,9 +686,9 @@ /** \brief Finish canvas item setup. - * \param canvas - * \param item - * \param model + * \param canvas Pointer to the GooCanvas object + * \param item Pointer to the GooCanvasItem that received the signals + * \param model Pointer to the model associated with the GooCanvasItem object * \param data Pointer to the GtkSkyGlance object. * * This function is called when a canvas item is created. Its purpose is to connect @@ -891,7 +903,7 @@ } -/* fetch the basic colour and add alpha channel */ +/** \brief Fetch the basic colour and add alpha channel */ static void get_colours (guint i, guint *bcol, guint *fcol) { guint tmp; Modified: trunk/src/gtk-sky-glance.h =================================================================== --- trunk/src/gtk-sky-glance.h 2010-10-15 13:30:42 UTC (rev 680) +++ trunk/src/gtk-sky-glance.h 2010-10-15 22:53:52 UTC (rev 681) @@ -2,7 +2,7 @@ /* Gpredict: Real-time satellite tracking and orbit prediction program - Copyright (C) 2001-2009 Alexandru Csete, OZ9AEC. + Copyright (C) 2001-2010 Alexandru Csete, OZ9AEC. Authors: Alexandru Csete <oz...@gm...> @@ -65,7 +65,7 @@ #define SKY_PASS_T(obj) ((sky_pass_t *)obj) - +/** \brief GtkSkyGlance widget */ struct _GtkSkyGlance { GtkVBox vbox; @@ -76,8 +76,8 @@ qth_t *qth; /*!< Pointer to current location. */ GSList *passes; /*!< Canvas items representing each pass. - Each element in the list is of type sky_pass_t. - */ + Each element in the list is of type sky_pass_t. + */ GSList *satlab; /*!< Canvas items showing satellite names. */ @@ -89,10 +89,10 @@ guint numsat; /*!< Number of satellites */ guint satcnt; /*!< Counter to keep track of how many satellites we have - plotted so far when creating the boxes. - This is needed to ensure that we do not plot more - than 10 satellites and to know which colour to fetch - from sat-cfg. + plotted so far when creating the boxes. + This is needed to ensure that we do not plot more + than 10 satellites and to know which colour to fetch + from sat-cfg. */ gdouble ts,te; /*!< Start and end times (Julian date) */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |