mp3splt-gtk

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

- File List
- Globals

tree_tab.h
Go to the documentation of this file.
1 /**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright (c) 2005-2012 Alexandru Munteanu - io_fx@yahoo.fr
7 *
8 * http://mp3splt.sourceforge.net/
9 *
10 *********************************************************/
11
12 /**********************************************************
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
27 * USA.
28 *
29 *********************************************************/
30
31 /*!********************************************************
32 * \file
33 *
34 * header of tree_tab.c
35 * the tree_tab.c file is used for the Splitpoints tab
36 * (for the splitpoints table)
37 *
38 *********************************************************/
39
40 #ifndef _TREE_TAB_H
41 #define _TREE_TAB_H
42
43 #include "util.h"
44
45 void add_splitpoint(Split_point my_split_point,
46 gint old_index);
47 gchar *get_splitpoint_name(gint index);
48 gint get_first_splitpoint_selected();
49 void select_splitpoint(gint index);
50 gint get_splitpoint_time(gint this_splitpoint);
51 void remove_splitpoint(gint index,gint stop_preview);
52 void update_splitpoint(gint index, Split_point new_point);
53 void update_splitpoint_from_time(gint index, gdouble time);
54 void update_splitpoint_check(gint index);
55 void update_add_button();
56 void update_minutes_from_spinner( GtkWidget *widget,
57 gpointer data );
58 void update_seconds_from_spinner( GtkWidget *widget,
59 gpointer data );
60 void update_hundr_secs_from_spinner( GtkWidget *widget,
61 gpointer data );
62 GtkTreeModel *create_model();
63 void order_length_column(GtkTreeView *tree_view);
64 gboolean check_if_splitpoint_does_not_exists(GtkTreeView *tree_view,
65 gint minutes,
66 gint seconds,
67 gint hundr_secs,
68 gint current_split);
69 gboolean check_if_description_exists(gchar *descr,
70 gint number);
71 void exchange_elements_from_array(gint element_number1,
72 gint element_number2);
73 void row_selection_event();
74 void exchange_rows_in_the_tree(gint i,
75 gint j,
76 GtkTreeView *tree_view);
77 void sort_tree(GtkTreeView *tree_view);
78 void update_current_description(gchar *descr, gint number);
79 void cell_edited_event (GtkCellRendererText *cell,
80 gchar *path_string,
81 gchar *new_text,
82 gpointer data);
83 void add_splitpoint_from_player(GtkWidget *widget,
84 gpointer data);
85 void add_row(gint checked);
86 void remove_row (GtkWidget *widget, gpointer data);
87 void remove_all_rows (GtkWidget *widget,
88 gpointer data);
89 GtkWidget *create_init_spinner(GtkWidget *bottomhbox1,
90 gint min,
91 gint max,
92 gchar *label_text,
93 gint type);
94 GtkWidget *create_init_spinners_buttons(GtkTreeView *tree_view);
95 void preview_song (GtkTreeView *tree_view,
96 GtkTreePath *path,
97 GtkTreeViewColumn *col,
98 gpointer user_data);
99 void create_columns (GtkTreeView *tree_view);
100 void close_popup_window_event( GtkWidget *window,
101 gpointer data );
102 void handle_detached_event (GtkHandleBox *handlebox,
103 GtkWidget *widget,
104 gpointer data);
105 GtkWidget *create_choose_splitpoints_frame(GtkTreeView *tree_view);
106 void put_splitpoints_in_the_state(splt_state *state);
107 GtkTreeView *create_tree_view();
108
110 enum {
112 COL_CHECK,
114 COL_DESCRIPTION,
116 COL_MINUTES,
118 COL_SECONDS,
120 COL_HUNDR_SECS,
122 COL_NUMBER,
124 COL_PREVIEW,
126 COL_SPLIT_PREVIEW,
127 NUM_COLUMNS = 8
128 } tree_columns;
129
130 extern GtkTreeView *tree_view;
131
132 #endif