55 |
#include "preferences.h" |
#include "preferences.h" |
56 |
#include "log.h" |
#include "log.h" |
57 |
#include "utils.h" |
#include "utils.h" |
58 |
#include "dxcc.h" |
#include "tables.h" |
59 |
#include "remote.h" |
#include "remote.h" |
60 |
#include "history.h" |
#include "history.h" |
61 |
|
|
147 |
setdefaultstate (void) |
setdefaultstate (void) |
148 |
{ |
{ |
149 |
state.qsos = 0; |
state.qsos = 0; |
|
state.countries = 0; |
|
150 |
/* the default ham lives in the gulf of guinea */ |
/* the default ham lives in the gulf of guinea */ |
151 |
state.mylocation = g_strdup ("0.0N0.0E"); |
state.mylocation = g_strdup ("0.0N0.0E"); |
152 |
state.controlkey = FALSE; |
state.controlkey = FALSE; |
188 |
*hpaned, *powerlabel, *powerbutton, *locatorframe, *unknownlabel1, |
*hpaned, *powerlabel, *powerbutton, *locatorframe, *unknownlabel1, |
189 |
*unknownlabel2, *handlebox; |
*unknownlabel2, *handlebox; |
190 |
gchar *xlogfile, *xlogbackupfile, *temp, *logstoload, **loglist = NULL; |
gchar *xlogfile, *xlogbackupfile, *temp, *logstoload, **loglist = NULL; |
191 |
gint i, j, ctyresult; |
gint i, j, result; |
192 |
gboolean showmainwindow = TRUE, logsfromprefs = FALSE, gtk_mismatch = FALSE; |
gboolean showmainwindow = TRUE, logsfromprefs = FALSE, gtk_mismatch = FALSE; |
193 |
logtype *logwindow = NULL; |
logtype *logwindow = NULL; |
194 |
LOGDB *lp = NULL; |
LOGDB *lp = NULL; |
232 |
remote.nr = 0; |
remote.nr = 0; |
233 |
remote.program = g_strdup ("unknown"); |
remote.program = g_strdup ("unknown"); |
234 |
|
|
235 |
ctyresult = readctydata (); |
result = readtable (); |
236 |
if (ctyresult) |
if (result) |
237 |
g_warning (_("Could not read cty.dat")); |
g_warning (_("Could not read dxcc table")); |
|
ctyresult = readxlogdata (); |
|
238 |
|
|
239 |
qso = g_new0 (gchar *, QSO_FIELDS); |
qso = g_new0 (gchar *, QSO_FIELDS); |
240 |
for (i = 0; i < QSO_FIELDS; i++) |
for (i = 0; i < QSO_FIELDS; i++) |
339 |
gtk_label_set_text (GTK_LABEL (unknownlabel2), preferences.freefield2); |
gtk_label_set_text (GTK_LABEL (unknownlabel2), preferences.freefield2); |
340 |
|
|
341 |
/* update the statusbar with some information */ |
/* update the statusbar with some information */ |
342 |
temp = g_strdup_printf (_("%d QSO's and %d countries loaded"), |
temp = g_strdup_printf (_("%d QSO's loaded"), state.qsos); |
|
state.qsos, state.countries); |
|
343 |
update_statusbar (temp); |
update_statusbar (temp); |
344 |
|
|
345 |
/* set the menu strings for the bandoption menu */ |
/* set the menu strings for the bandoption menu */ |