/* * xdx - GTK+ DX-cluster client for amateur radio * Copyright (C) 2002-2006 Joop Stakenborg * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * gui.h */ typedef struct guitype { GtkWidget *window; GtkActionGroup *action_group; GtkUIManager *ui_manager; GList *hostnamehistory; GList *porthistory; GList *txhistory; gchar *preferencesdir; guint updown; guint txitem; gint statusbartimer; gchar *statusbarmessage; gchar *url; gchar *prompttagname; gchar *calltagname; gchar *senttagname; gchar *wwvtagname; gchar *wxtagname; gchar *high1tagname; gchar *high2tagname; gchar *high3tagname; gchar *high4tagname; gchar *high5tagname; gchar *high6tagname; gchar *high7tagname; gchar *high8tagname; } guitype; guitype *gui; guitype *new_gui(void); void create_mainwindow (void); gboolean on_mainwindow_delete_event (GtkWidget * widget, GdkEvent * event, gpointer user_data); gboolean on_mainwindow_destroy_event (GtkWidget * widget, GdkEvent * event, gpointer user_data); void on_mainentry_activate (GtkTextBuffer *buffer, gpointer user_data); gboolean on_mainwindow_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data); gboolean double_click (GtkWidget *widget, GdkEventButton *event, gpointer user_data); void on_quit_activate (GtkMenuItem * menuitem, gpointer user_data); void on_sidebar_activate (GtkAction * action, gpointer user_data); void on_reconnect_activate (GtkAction * action, gpointer user_data); void on_highentry_changed (GtkEditable * editable, gpointer user_data); gboolean on_highentry_clicked (GtkEditable * entry, GdkEventButton *event, gpointer user_data);