mp3splt-gtk
freedb_tab.h
00001 /**********************************************************
00002  *
00003  * mp3splt-gtk -- utility based on mp3splt,
00004  *                for mp3/ogg splitting without decoding
00005  *
00006  * Copyright: (C) 2005-2012 Alexandru Munteanu
00007  * Contact: io_fx@yahoo.fr
00008  *
00009  * http://mp3splt.sourceforge.net/
00010  *
00011  *********************************************************/
00012 
00013 /**********************************************************
00014  *
00015  * This program is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU General Public License
00017  * as published by the Free Software Foundation; either version 2
00018  * of the License, or (at your option) any later version.
00019  *
00020  * This program is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU General Public License
00026  * along with this program; if not, write to the Free Software
00027  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
00028  * USA.
00029  *
00030  *********************************************************/
00031 
00032 /**********************************************************
00033  * Filename: cddb_tab.h
00034  *
00035  * this file is the header of cddb_tab.c
00036  *
00037  *********************************************************/
00038 
00039 void add_freedb_row(gchar *album_name, 
00040                     gint album_id,
00041                     gint *revisions,
00042                     gint revisions_number);
00043 GtkTreeModel *create_freedb_model();
00044 GtkTreeView *create_freedb_tree();
00045 void create_freedb_columns (GtkTreeView *tree_view);
00046 void close_freedb_popup_window_event( GtkWidget *window,
00047                                       gpointer data );
00048 void handle_freedb_detached_event (GtkHandleBox *handlebox,
00049                                  GtkWidget *widget,
00050                                    gpointer data);
00051 void freedb_selection_changed(GtkTreeSelection *selection,
00052                               gpointer data);
00053 void remove_all_freedb_rows ();
00054 gchar *transform_to_utf8(gchar *text, 
00055                          gint free_or_not,
00056                          gint *must_be_freed);
00057 void freedb_search();
00058 void freedb_search_button_event( GtkWidget *widget,
00059                                  gpointer   data );
00060 void freedb_entry_activate_event (GtkEntry *entry,
00061                                   gpointer data);
00062 gint write_freedbfile_and_get_splitpoints(int *err);
00063 void get_secs_mins_hundr(gfloat time,
00064                          gint *mins,gint *secs, 
00065                          gint *hundr);
00066 void update_splitpoints_from_the_state();
00067 void freedb_add_button_clicked_event(GtkButton *button,
00068                                      gpointer data);
00069 GtkWidget *create_freedb_frame();
00070 
00071 void hide_freedb_spinner();
00072