00001 /* 00002 * interface_il.h 00003 * 00004 * Copyright (C) 2004, 2005: 00005 * Ken Prox <kprox@users.sourceforge.net> 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 00020 * 00021 * 00022 */ 00023 #ifndef INTERFACE_IL_H 00024 #define INTERFACE_IL_H 00025 00026 #include <stdint.h> 00027 #include <gnome.h> 00028 #include <stdio.h> 00029 00031 struct main_widgets { 00033 gint16 x; 00035 gint16 y; 00037 guint width; 00039 guint height; 00041 00045 gint toolbar_style; 00047 gint pane_position; 00049 gpointer main_window_v; 00051 gpointer decoded_text_v; 00053 gpointer samples_statusbar_v; 00055 gpointer ffts_statusbar_v; 00057 gpointer wpm_statusbar_v; 00059 gpointer scope_v; 00061 00063 gpointer hscale1_v; 00065 00067 gpointer adjustment_frequency_v; 00068 gpointer label1_v; 00070 gpointer toolbar1_v; 00072 gpointer properties_v; 00073 } main_gui; 00074 00076 00079 int32_t plot_fft_data_array_create(uint32_t num_points); 00080 00082 00084 void plot_fft_data_array_destroy(void); 00085 00087 void preferences_enabled(gboolean state); 00088 00089 uint32_t get_fft_data_size(void); 00090 int32_t get_fft_graph_top(void); 00091 uint32_t get_tone_packet_size(void); 00092 00094 void init_gui_interface_hooks(void); 00095 00097 int32_t threads_stop(void); 00098 00102 void interface_activate_bw_chk_item(const int32_t bw); 00103 00104 extern GtkWidget* morse_stats; 00105 00106 void statistics_window_deleted_handler(void); 00107 00108 #endif /* INTERFACE_IL_H */