mp3splt-gtk

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Enumerations | Functions | Variables
freedb_tab.c File Reference
`#include <stdlib.h>`
`#include <string.h>`
`#include <gtk/gtk.h>`
`#include <glib/gi18n.h>`
`#include <glib/gstdio.h>`
`#include <libmp3splt/mp3splt.h>`
`#include "util.h"`
`#include "main_win.h"`
`#include "tree_tab.h"`
`#include "preferences_tab.h"`
`#include "utilities.h"`
`#include "mp3splt-gtk.h"`
Include dependency graph for freedb_tab.c:

Go to the source code of this file.

## Enumerations

enum | { ALBUM_NAME, NUMBER, FREEDB_TABLE }

## Functions

void | add_freedb_row (gchar *album_name, gint album_id, gint *revisions, gint revisions_number)
void | close_freedb_popup_window_event (GtkWidget *window, gpointer data)
void | create_freedb_columns (GtkTreeView *tree_view)
GtkWidget * | create_freedb_frame ()
GtkTreeModel * | create_freedb_model ()
GtkTreeView * | create_freedb_tree ()
void | freedb_add_button_clicked_event (GtkButton *button, gpointer data)
void | freedb_entry_activate_event (GtkEntry *entry, gpointer data)
gpointer | freedb_search (gpointer data)
void | freedb_search_button_event (GtkWidget *widget, gpointer data)
void | freedb_search_start_thread ()
void | freedb_selection_changed (GtkTreeSelection *selection, gpointer data)
void | get_secs_mins_hundr (gfloat time, gint *mins, gint *secs, gint *hundr)
void | handle_freedb_detached_event (GtkHandleBox *handlebox, GtkWidget *widget, gpointer data)
void | hide_freedb_spinner ()
gpointer | put_freedb_splitpoints (gpointer data)
void | remove_all_freedb_rows ()
void | update_splitpoints_from_the_state ()
void | write_freedbfile (int *err)

## Variables

gchar | current_description [255]
gint | debug_is_active
gboolean | executed_lock = FALSE
GtkWidget * | freedb_add_button
GtkWidget * | freedb_entry
GtkWidget * | freedb_handle_box
GtkWidget * | freedb_search_button
gint | freedb_table_number = 0
GtkWidget * | freedb_tree
GtkWidget * | output_entry
const splt_freedb_results * | search_results
gint | selected_id = -1
gint | spin_hundr_secs
gint | spin_mins
gint | spin_secs
GtkWidget * | spinner
splt_state * | the_state

## Detailed Description

The freedb tab

this file is used for the cddb tab (for searching on freedb)

Definition in file freedb_tab.c.

## Function Documentation

void add_freedb_row | ( | gchar * | album_name,
|  | gint | album_id,
|  | gint * | revisions,
|  | gint | revisions_number
| ) |  |

add a row to the table

Definition at line 97 of file freedb_tab.c.

References tree_view.

Referenced by freedb_search().

Here is the caller graph for this function:

void close_freedb_popup_window_event | ( | GtkWidget * | window,
|  | gpointer | data
| ) |  |

when closing the new window after detaching

Definition at line 181 of file freedb_tab.c.

Referenced by handle_freedb_detached_event().

Here is the caller graph for this function:

void create_freedb_columns | ( | GtkTreeView * | tree_view | ) |

creates freedb columns

Definition at line 159 of file freedb_tab.c.

Referenced by create_freedb_frame().

Here is the caller graph for this function:

GtkWidget* create_freedb_frame | ( |  | ) |

creates the freedb box

Definition at line 526 of file freedb_tab.c.

References create_cool_button(), create_freedb_columns(), create_freedb_tree(), freedb_add_button_clicked_event(), freedb_entry_activate_event(), freedb_search_button_event(), freedb_selection_changed(), and handle_freedb_detached_event().

Referenced by create_main_vbox().

Here is the call graph for this function:

Here is the caller graph for this function:

GtkTreeModel* create_freedb_model | ( |  | ) |

creates the model for the freedb tree

Definition at line 144 of file freedb_tab.c.

Referenced by create_freedb_tree().

Here is the caller graph for this function:

GtkTreeView* create_freedb_tree | ( |  | ) |

creates the freedb tree

Definition at line 151 of file freedb_tab.c.

References create_freedb_model(), and tree_view.

Referenced by create_freedb_frame().

Here is the call graph for this function:

Here is the caller graph for this function:

void freedb_add_button_clicked_event | ( | GtkButton * | button,
|  | gpointer | data
| ) |  |

event for the freedb add button when clicked

Definition at line 519 of file freedb_tab.c.

References SPLT_OPT_DEBUG_MODE.

Referenced by create_freedb_frame().

Here is the caller graph for this function:

void freedb_entry_activate_event | ( | GtkEntry * | entry,
|  | gpointer | data
| ) |  |

search entry backspace event

when we push Enter for the search entry

Definition at line 330 of file freedb_tab.c.

References freedb_search_start_thread().

Referenced by create_freedb_frame().

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer freedb_search | ( | gpointer | data | ) |

search the freedb.org

Definition at line 237 of file freedb_tab.c.

References add_freedb_row(), splt_freedb_one_result::id, mp3splt_get_freedb_search(), splt_freedb_one_result::name, splt_freedb_results::number, print_status_bar_confirmation(), put_status_message(), remove_all_freedb_rows(), splt_freedb_results::results, splt_freedb_one_result::revision_number, splt_freedb_one_result::revisions, SPLT_FALSE, SPLT_FREEDB_SEARCH_TYPE_CDDB_CGI, and transform_to_utf8().

Referenced by freedb_search_start_thread().

Here is the call graph for this function:

Here is the caller graph for this function:

void freedb_search_button_event | ( | GtkWidget * | widget,
|  | gpointer | data
| ) |  |

we push the search button

Definition at line 321 of file freedb_tab.c.

References freedb_search_start_thread().

Referenced by create_freedb_frame().

Here is the call graph for this function:

Here is the caller graph for this function:

void freedb_search_start_thread | ( |  | ) |

Start a thread for the freedb search.

Definition at line 312 of file freedb_tab.c.

References freedb_search(), and SPLT_OPT_DEBUG_MODE.

Referenced by freedb_entry_activate_event(), and freedb_search_button_event().

Here is the call graph for this function:

Here is the caller graph for this function:

void freedb_selection_changed | ( | GtkTreeSelection * | selection,
|  | gpointer | data
| ) |  |

freedb selection has changed

Definition at line 200 of file freedb_tab.c.

Referenced by create_freedb_frame().

Here is the caller graph for this function:

void get_secs_mins_hundr | ( | gfloat | time,
|  | gint * | mins,
|  | gint * | secs,
|  | gint * | hundr
| ) |  |

returns the seconds, minutes, and hudreths

Definition at line 401 of file freedb_tab.c.

Referenced by update_splitpoints_from_the_state().

Here is the caller graph for this function:

void handle_freedb_detached_event | ( | GtkHandleBox * | handlebox,
|  | GtkWidget * | widget,
|  | gpointer | data
| ) |  |

when we detach the handle

Definition at line 189 of file freedb_tab.c.

References close_freedb_popup_window_event().

Referenced by create_freedb_frame().

Here is the call graph for this function:

Here is the caller graph for this function:

void remove_all_freedb_rows | ( |  | ) |

removes all rows from the freedb table

Definition at line 222 of file freedb_tab.c.

References tree_view.

Referenced by freedb_search().

Here is the caller graph for this function:

void update_splitpoints_from_the_state | ( |  | ) |

updates the current splitpoints in the_state

Takes the splitpoints from the table displayed in the gui

max_splits is the maximum number of splitpoints to update

Definition at line 418 of file freedb_tab.c.

References add_row(), get_secs_mins_hundr(), mp3splt_get_splitpoints(), splt_point::name, print_status_bar_confirmation(), remove_all_rows(), transform_to_utf8(), update_add_button(), update_hundr_secs_from_spinner(), update_minutes_from_spinner(), update_seconds_from_spinner(), and splt_point::value.

Referenced by detect_silence_and_set_splitpoints().

Here is the call graph for this function:

Here is the caller graph for this function:

void write_freedbfile | ( | int * | err | ) |

returns the number of splitpoints

we put the new splitpoints in "the_state"

Definition at line 339 of file freedb_tab.c.

References get_checked_output_radio_box(), output_entry, print_status_bar_confirmation(), put_status_message(), SPLT_OPT_OUTPUT_FILENAMES, SPLT_OUTPUT_DEFAULT, and SPLT_OUTPUT_FORMAT.

Here is the call graph for this function:

## Variable Documentation

GtkWidget* output_entry

output for the cddb,cue and freedb file output

Definition at line 73 of file preferences_tab.c.

Referenced by create_output_filename_box(), detect_silence_and_set_splitpoints(), load_preferences(), output_entry_event(), output_radio_box_event(), split_it(), update_output_options(), and write_freedbfile().