mp3splt-gtk
split_files.c File Reference
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <string.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "util.h"
#include "player.h"
#include "player_tab.h"
#include "split_files.h"
#include "utilities.h"
#include "main_win.h"
Include dependency graph for split_files.c:

Go to the source code of this file.

Enumerations

enum  { COL_NAME, COL_FILENAME, SPLIT_COLUMNS }
 

Functions

void add_split_row (const gchar *name)
 
void close_split_popup_window_event (GtkWidget *window, gpointer data)
 
GtkWidget * create_queue_buttons_hbox ()
 
void create_split_columns (GtkTreeView *tree_view)
 
GtkWidget * create_split_files ()
 
GtkTreeView * create_split_files_tree ()
 
GtkTreeModel * create_split_model ()
 
gchar * get_filename_from_split_files (gint number)
 
guchar * get_real_name_from_filename (guchar *filename)
 
void handle_split_detached_event (GtkHandleBox *handlebox, GtkWidget *widget, gpointer data)
 
void queue_files_button_event (GtkWidget *widget, gpointer data)
 
void remove_all_files_button_event (GtkWidget *widget, gpointer data)
 
void remove_all_split_rows ()
 
void remove_file_button_event (GtkWidget *widget, gpointer data)
 
void split_selection_changed (GtkTreeSelection *selec, gpointer data)
 
void split_tree_row_activated (GtkTreeView *tree_view, GtkTreePath *arg1, GtkTreeViewColumn *arg2, gpointer data)
 

Variables

GtkWidget * queue_files_button
 
GtkWidget * remove_all_files_button
 
GtkWidget * remove_file_button
 
gint selected_player
 
gint split_files
 
GtkWidget * split_handle_box
 
gint split_table_number = 0
 
GtkWidget * split_tree
 
gboolean timer_active
 

Detailed Description


The split tab

file that handles the split files tab from the main window

Definition in file split_files.c.

Enumeration Type Documentation

anonymous enum

split files enumeration

Definition at line 73 of file split_files.c.

Function Documentation

void add_split_row ( const gchar *  name)

add a row to the table

Definition at line 156 of file split_files.c.

References get_real_name_from_filename(), split_table_number, split_tree, and tree_view.

Referenced by put_split_filename().

Here is the call graph for this function:

Here is the caller graph for this function:

void close_split_popup_window_event ( GtkWidget *  window,
gpointer  data 
)

Issued when closing the new window after detaching.

Definition at line 435 of file split_files.c.

References split_handle_box.

Referenced by handle_split_detached_event().

Here is the caller graph for this function:

GtkWidget* create_queue_buttons_hbox ( )

creates the horizontal queue buttons horizontal box

Definition at line 330 of file split_files.c.

References create_cool_button(), queue_files_button, queue_files_button_event(), remove_all_files_button, remove_all_files_button_event(), remove_file_button, and remove_file_button_event().

Referenced by create_split_files().

Here is the call graph for this function:

Here is the caller graph for this function:

void create_split_columns ( GtkTreeView *  tree_view)

creates split columns

Definition at line 105 of file split_files.c.

Referenced by create_split_files().

Here is the caller graph for this function:

GtkWidget* create_split_files ( )

creates the split files tab

Definition at line 468 of file split_files.c.

References create_queue_buttons_hbox(), create_split_columns(), create_split_files_tree(), handle_split_detached_event(), split_handle_box, split_selection_changed(), split_tree, and split_tree_row_activated().

Referenced by create_main_vbox().

Here is the call graph for this function:

Here is the caller graph for this function:

GtkTreeView* create_split_files_tree ( )

creates the tree

Definition at line 91 of file split_files.c.

References create_split_model(), and tree_view.

Referenced by create_split_files().

Here is the call graph for this function:

Here is the caller graph for this function:

GtkTreeModel* create_split_model ( )

creates the model for the split tree

Definition at line 81 of file split_files.c.

Referenced by create_split_files_tree().

Here is the caller graph for this function:

gchar* get_filename_from_split_files ( gint  number)

return the n_th filename from the split files

Definition at line 174 of file split_files.c.

References split_tree.

guchar* get_real_name_from_filename ( guchar *  filename)

finding the real name of the file, without the path

Todo:
why guchar instead of gchar ?

Definition at line 147 of file split_files.c.

Referenced by add_playlist_file(), add_split_row(), and check_update_down_progress_bar().

Here is the caller graph for this function:

void handle_split_detached_event ( GtkHandleBox *  handlebox,
GtkWidget *  widget,
gpointer  data 
)

Issued when we detach the handle.

Definition at line 449 of file split_files.c.

References close_split_popup_window_event().

Referenced by create_split_files().

Here is the call graph for this function:

Here is the caller graph for this function:

void queue_files_button_event ( GtkWidget *  widget,
gpointer  data 
)

queue button event

Definition at line 196 of file split_files.c.

References connect_button_event(), player_add_files(), and split_tree.

Referenced by create_queue_buttons_hbox().

Here is the call graph for this function:

Here is the caller graph for this function:

void remove_all_files_button_event ( GtkWidget *  widget,
gpointer  data 
)

event for the remove file button

Definition at line 303 of file split_files.c.

References queue_files_button, remove_all_files_button, remove_file_button, split_table_number, and split_tree.

Referenced by create_queue_buttons_hbox().

Here is the caller graph for this function:

void remove_all_split_rows ( )

removes all rows from the split files table

Definition at line 124 of file split_files.c.

References split_table_number, split_tree, and tree_view.

Referenced by fix_ogg_stream(), and split_it().

Here is the caller graph for this function:

void remove_file_button_event ( GtkWidget *  widget,
gpointer  data 
)

event for the remove file button

Definition at line 247 of file split_files.c.

References queue_files_button, remove_all_files_button, remove_file_button, split_table_number, and split_tree.

Referenced by create_queue_buttons_hbox().

Here is the caller graph for this function:

void split_selection_changed ( GtkTreeSelection *  selec,
gpointer  data 
)

split selection has changed

Definition at line 414 of file split_files.c.

References remove_file_button, and split_tree.

Referenced by create_split_files().

Here is the caller graph for this function:

void split_tree_row_activated ( GtkTreeView *  tree_view,
GtkTreePath *  arg1,
GtkTreeViewColumn *  arg2,
gpointer  data 
)

Issued when a row is clicked on.

Definition at line 370 of file split_files.c.

References change_current_filename(), connect_button_event(), and connect_to_player_with_song().

Referenced by create_player_playlist_frame(), and create_split_files().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

GtkWidget* queue_files_button
GtkWidget* remove_all_files_button
GtkWidget* remove_file_button
GtkWidget* split_handle_box

handle box for detaching window

Definition at line 60 of file split_files.c.

Referenced by close_split_popup_window_event(), and create_split_files().

gint split_table_number = 0

number of rows in the split table

Definition at line 57 of file split_files.c.

Referenced by add_split_row(), remove_all_files_button_event(), remove_all_split_rows(), and remove_file_button_event().