[Gpredict-svn] SF.net SVN: gpredict:[798] trunk/src
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-03-28 00:17:24
|
Revision: 798
http://gpredict.svn.sourceforge.net/gpredict/?rev=798&view=rev
Author: aa1vs
Date: 2011-03-28 00:17:18 +0000 (Mon, 28 Mar 2011)
Log Message:
-----------
Rename julian_print_time daynum_to_str.
Modified Paths:
--------------
trunk/src/gtk-azel-plot.c
trunk/src/gtk-polar-plot.c
trunk/src/gtk-polar-view-popup.c
trunk/src/gtk-polar-view.c
trunk/src/gtk-sat-list.c
trunk/src/gtk-sat-module.c
trunk/src/gtk-sat-selector.c
trunk/src/gtk-single-sat.c
trunk/src/gtk-sky-glance.c
trunk/src/pass-to-txt.c
trunk/src/sat-pass-dialogs.c
trunk/src/time-tools.c
trunk/src/time-tools.h
Modified: trunk/src/gtk-azel-plot.c
===================================================================
--- trunk/src/gtk-azel-plot.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-azel-plot.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -297,7 +297,7 @@
/* get time */
xy_to_graph (polv, polv->x0 + (i+1) * xstep, 0.0, &t, &az, &el);
- julian_print_time (buff, 7, "%H:%M", t);
+ daynum_to_str (buff, 7, "%H:%M", t);
polv->xlab[i] = goo_canvas_text_model_new (root, buff,
(gfloat) (polv->x0 + (i+1) * xstep),
@@ -704,7 +704,7 @@
xy_to_graph (polv, x, y, &t, &az, &el);
- julian_print_time(buff, 10, "%H:%M:%S", t);
+ daynum_to_str(buff, 10, "%H:%M:%S", t);
/* cursor track */
text = g_strdup_printf ("T: %s, AZ: %.0f\302\260, EL: %.0f\302\260", buff, az, el);
Modified: trunk/src/gtk-polar-plot.c
===================================================================
--- trunk/src/gtk-polar-plot.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-polar-plot.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -979,7 +979,7 @@
col = sat_cfg_get_int (SAT_CFG_INT_POLAR_TRACK_COL);
- julian_print_time (buff, 8, "%H:%M", time);
+ daynum_to_str (buff, 8, "%H:%M", time);
if (x > pv->cx) {
anchor = GTK_ANCHOR_EAST;
Modified: trunk/src/gtk-polar-view-popup.c
===================================================================
--- trunk/src/gtk-polar-view-popup.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-polar-view-popup.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -337,7 +337,7 @@
MOD_CFG_POLAR_TRACK_COL,
SAT_CFG_INT_POLAR_TRACK_COL);
- julian_print_time (buff, 8, "%H:%M", time);
+ daynum_to_str (buff, 8, "%H:%M", time);
if (x > pv->cx) {
anchor = GTK_ANCHOR_EAST;
Modified: trunk/src/gtk-polar-view.c
===================================================================
--- trunk/src/gtk-polar-view.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-polar-view.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -1113,7 +1113,7 @@
MOD_CFG_POLAR_TRACK_COL,
SAT_CFG_INT_POLAR_TRACK_COL);
- julian_print_time (buff, 8, "%H:%M", time);
+ daynum_to_str (buff, 8, "%H:%M", time);
if (x > pv->cx) {
anchor = GTK_ANCHOR_EAST;
Modified: trunk/src/gtk-sat-list.c
===================================================================
--- trunk/src/gtk-sat-list.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-sat-list.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -769,7 +769,7 @@
fmtstr = g_strconcat (alstr, tfstr, NULL);
g_free (tfstr);
- julian_print_time (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
+ daynum_to_str (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
gtk_list_store_set (GTK_LIST_STORE (model), iter,
SAT_LIST_COL_NEXT_EVENT, buff,
@@ -1110,7 +1110,7 @@
/* format the number */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
+ daynum_to_str (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
g_object_set (renderer,
"text", buff,
Modified: trunk/src/gtk-sat-module.c
===================================================================
--- trunk/src/gtk-sat-module.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-sat-module.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -1352,7 +1352,7 @@
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, module->tmgCdnum);
+ daynum_to_str (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, module->tmgCdnum);
if (module->qth->type==QTH_GPSD_TYPE) {
buff2=g_strdup_printf("%s GPS %0.3f seconds old", buff,fabs(module->tmgCdnum-module->qth->gpsd_update)*(24*3600));
Modified: trunk/src/gtk-sat-selector.c
===================================================================
--- trunk/src/gtk-sat-selector.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-sat-selector.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -786,7 +786,7 @@
/* format the number */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time(buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
+ daynum_to_str(buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
g_object_set (renderer,
"text", buff,
Modified: trunk/src/gtk-single-sat.c
===================================================================
--- trunk/src/gtk-single-sat.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-single-sat.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -495,7 +495,7 @@
/* format the number */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time (tbuf, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
+ daynum_to_str (tbuf, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
g_free (fmtstr);
@@ -516,7 +516,7 @@
/* format the number */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time(tbuf, TIME_FORMAT_MAX_LENGTH, fmtstr, sat->aos);
+ daynum_to_str(tbuf, TIME_FORMAT_MAX_LENGTH, fmtstr, sat->aos);
g_free (fmtstr);
@@ -533,7 +533,7 @@
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time (tbuf, TIME_FORMAT_MAX_LENGTH, fmtstr, sat->los);
+ daynum_to_str (tbuf, TIME_FORMAT_MAX_LENGTH, fmtstr, sat->los);
g_free (fmtstr);
Modified: trunk/src/gtk-sky-glance.c
===================================================================
--- trunk/src/gtk-sky-glance.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/gtk-sky-glance.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -402,7 +402,7 @@
NULL);
/* hour tick label */
- julian_print_time (buff, 3, "%H", th);
+ daynum_to_str (buff, 3, "%H", th);
hrl = goo_canvas_text_model_new (root, buff, xh, skg->h + 12,
-1, GTK_ANCHOR_N,
@@ -634,7 +634,7 @@
/* get time corresponding to x */
t = x2t (skg, event->x);
- julian_print_time (buff, 6, "%H:%M", t);
+ daynum_to_str (buff, 6, "%H:%M", t);
/* in order to avoid label clipping close to the edges of
the chart, the label is placed left/right of the cursor
@@ -1019,9 +1019,9 @@
tmppass = (pass_t *) g_slist_nth_data (passes, i);
skypass->pass = copy_pass (tmppass);
- julian_print_time (aosstr,TIME_FORMAT_MAX_LENGTH, sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT),skypass->pass->aos);
- julian_print_time (losstr,TIME_FORMAT_MAX_LENGTH, sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT),skypass->pass->los);
- julian_print_time (tcastr,TIME_FORMAT_MAX_LENGTH, sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT),skypass->pass->tca);
+ daynum_to_str (aosstr,TIME_FORMAT_MAX_LENGTH, sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT),skypass->pass->aos);
+ daynum_to_str (losstr,TIME_FORMAT_MAX_LENGTH, sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT),skypass->pass->los);
+ daynum_to_str (tcastr,TIME_FORMAT_MAX_LENGTH, sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT),skypass->pass->tca);
/* box tooltip will contain pass summary */
tooltip = g_strdup_printf("<big><b>%s</b>\n</big>\n"\
Modified: trunk/src/pass-to-txt.c
===================================================================
--- trunk/src/pass-to-txt.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/pass-to-txt.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -203,7 +203,7 @@
/* first, get the length of the time field */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- size = julian_print_time (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
+ size = daynum_to_str (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
g_free (fmtstr);
@@ -257,7 +257,7 @@
/* first, get the length of the time field */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
+ daynum_to_str (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
/* get number of rows */
num = g_slist_length (pass->details);
@@ -268,7 +268,7 @@
detail = PASS_DETAIL (g_slist_nth_data (pass->details, i));
/* time */
- julian_print_time (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, detail->time);
+ daynum_to_str (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, detail->time);
line = g_strdup_printf (" %s", tbuff);
@@ -481,7 +481,7 @@
/* first, get the length of the time field */
pass = PASS (g_slist_nth_data (passes, 0));
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- size = julian_print_time (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
+ size = daynum_to_str (tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
g_free (fmtstr);
@@ -534,7 +534,7 @@
/* first, get the length of the time field */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
+ daynum_to_str(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
/* get number of rows */
num = g_slist_length (passes);
@@ -544,12 +544,12 @@
pass = PASS (g_slist_nth_data (passes, i));
/* AOS */
- julian_print_time(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
+ daynum_to_str(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->aos);
line = g_strdup_printf (" %s", tbuff);
/* TCA */
- julian_print_time(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->tca);
+ daynum_to_str(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->tca);
buff = g_strdup (line);
g_free (line);
@@ -557,7 +557,7 @@
g_free (buff);
/* LOS */
- julian_print_time(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->los);
+ daynum_to_str(tbuff, TIME_FORMAT_MAX_LENGTH, fmtstr, pass->los);
buff = g_strdup (line);
g_free (line);
Modified: trunk/src/sat-pass-dialogs.c
===================================================================
--- trunk/src/sat-pass-dialogs.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/sat-pass-dialogs.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -863,7 +863,7 @@
/* format the number */
fmtstr = sat_cfg_get_str (SAT_CFG_STR_TIME_FORMAT);
- julian_print_time (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
+ daynum_to_str (buff, TIME_FORMAT_MAX_LENGTH, fmtstr, number);
g_object_set (renderer,
"text", buff,
Modified: trunk/src/time-tools.c
===================================================================
--- trunk/src/time-tools.c 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/time-tools.c 2011-03-28 00:17:18 UTC (rev 798)
@@ -64,7 +64,7 @@
}
int
-julian_print_time(char *s, size_t max, const char *format, gdouble jultime){
+daynum_to_str(char *s, size_t max, const char *format, gdouble jultime){
// printf("Someone called me\n");
time_t tim;
size_t size=0;
Modified: trunk/src/time-tools.h
===================================================================
--- trunk/src/time-tools.h 2011-03-26 20:09:02 UTC (rev 797)
+++ trunk/src/time-tools.h 2011-03-28 00:17:18 UTC (rev 798)
@@ -30,7 +30,7 @@
gdouble get_current_daynum (void);
//long get_daynum_from_dmy (int d, int m, int y);
-int julian_print_time(char *s, size_t max, const char *format, gdouble jultime);
+int daynum_to_str(char *s, size_t max, const char *format, gdouble jultime);
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|