/[xlog]/xlog/src/remote.c
ViewVC logotype

Diff of /xlog/src/remote.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pa4tu, Thu Nov 21 19:57:46 2002 UTC revision 1.3 by pa4tu, Tue Dec 10 18:45:09 2002 UTC
# Line 41  Line 41 
41   * notes:<additional notes>   * notes:<additional notes>
42   * power:<power you have used (mandatory in some countries)>   * power:<power you have used (mandatory in some countries)>
43   * locator:<QRA locator, as used in VHF QSO's>   * locator:<QRA locator, as used in VHF QSO's>
44     * free1: <information to put in freefield1>
45     * free2: <information to put in freefield2>
46   ****************************************************************************   ****************************************************************************
47   *   *
48   * See sendtoxlog.c, included with the sources for examples.   * See sendtoxlog.c, included with the sources for examples.
# Line 87  static void Line 89  static void
89  addtolog (gint type, gchar * entry)  addtolog (gint type, gchar * entry)
90  {  {
91    GtkWidget *menu, *bandoptionmenu, *modeoptionmenu, *active_item, *bandentry,    GtkWidget *menu, *bandoptionmenu, *modeoptionmenu, *active_item, *bandentry,
92      *modeentry, *endhbox, *namehbox, *qthhbox, *locatorhbox, *powerhbox;      *modeentry, *endhbox, *namehbox, *qthhbox, *locatorhbox, *powerhbox,
93        *unknown1hbox, *unknown2hbox;
94    gchar *temp, **remoteinfo, *argument = NULL, *remarks;    gchar *temp, **remoteinfo, *argument = NULL, *remarks;
95    gint i, j = 0, newrow, bandindex, modeindex;    gint i, j = 0, newrow, bandindex, modeindex;
96    logtype *logwindow;    logtype *logwindow;
# Line 111  addtolog (gint type, gchar * entry) Line 114  addtolog (gint type, gchar * entry)
114        qthhbox = lookup_widget (mainwindow, "qthhbox");        qthhbox = lookup_widget (mainwindow, "qthhbox");
115        locatorhbox = lookup_widget (mainwindow, "locatorhbox");        locatorhbox = lookup_widget (mainwindow, "locatorhbox");
116        powerhbox = lookup_widget (mainwindow, "powerhbox");        powerhbox = lookup_widget (mainwindow, "powerhbox");
117          unknown1hbox = lookup_widget (mainwindow, "unknown1hbox");
118          unknown2hbox = lookup_widget (mainwindow, "unknown2hbox");
119    
120        remoteinfo = g_strsplit (entry, "\1", 0);        remoteinfo = g_strsplit (entry, "\1", 0);
121        for (;;)        for (;;)
# Line 256  addtolog (gint type, gchar * entry) Line 261  addtolog (gint type, gchar * entry)
261                    else                    else
262                      {                      {
263                        if (g_strcasecmp (remarks, "") == 0)                        if (g_strcasecmp (remarks, "") == 0)
264                            remarks = g_strdup (argument);
265                          else
266                            remarks = g_strconcat (remarks, ", ", argument, 0);
267                        }
268                    }
269                }
270              else if (g_strncasecmp (remoteinfo[j], "free1:", 6) == 0)
271                {
272                  if ((argument = getargument (remoteinfo[j])))
273                    {
274                      if (GTK_WIDGET_VISIBLE (unknown1hbox))
275                        qso[U1] = g_strndup (argument, 30);
276                      else
277                        {
278                          if (g_strcasecmp (remarks, "") == 0)
279                            remarks = g_strdup (argument);
280                          else
281                            remarks = g_strconcat (remarks, ", ", argument, 0);
282                        }
283                    }
284                }
285              else if (g_strncasecmp (remoteinfo[j], "free2:", 6) == 0)
286                {
287                  if ((argument = getargument (remoteinfo[j])))
288                    {
289                      if (GTK_WIDGET_VISIBLE (unknown2hbox))
290                        qso[U2] = g_strndup (argument, 30);
291                      else
292                        {
293                          if (g_strcasecmp (remarks, "") == 0)
294                          remarks = g_strdup (argument);                          remarks = g_strdup (argument);
295                        else                        else
296                          remarks = g_strconcat (remarks, ", ", argument, 0);                          remarks = g_strconcat (remarks, ", ", argument, 0);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26