mp3splt-gtk
splitpoints_window.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 splitpoints_window.c
35  *********************************************************/
36 
37 #ifndef SPLITPOINTS_WINDOW_H
38 
39 #define SPLITPOINTS_WINDOW_H
40 
41 #include "all_includes.h"
42 
44 enum {
45  COL_CHECK,
46  COL_DESCRIPTION,
47  COL_MINUTES,
48  COL_SECONDS,
49  COL_HUNDR_SECS,
50  COL_NUMBER,
51  COL_PREVIEW,
52  COL_SPLIT_PREVIEW,
53  NUM_COLUMNS = 8
54 } tree_columns;
55 
56 gchar *get_splitpoint_name(gint index, ui_state *ui);
58 void select_splitpoint(gint index, gui_state *gui);
59 gint get_splitpoint_time(gint this_splitpoint, ui_state *ui);
60 void remove_splitpoint(gint index,gint stop_preview, ui_state *ui);
61 void update_splitpoint(gint index, Split_point new_point, ui_state *ui);
62 void update_splitpoint_from_time(gint index, gdouble time, ui_state *ui);
63 void update_splitpoint_check(gint index, ui_state *ui);
64 void update_minutes_from_spinner(GtkWidget *widget, ui_state *ui);
65 void update_seconds_from_spinner(GtkWidget *widget, ui_state *ui);
66 void update_hundr_secs_from_spinner(GtkWidget *widget, ui_state *ui);
67 void add_splitpoint_from_player(GtkWidget *widget, ui_state *ui);
68 void add_row(gint checked, ui_state *ui);
69 GtkWidget *create_splitpoints_frame(ui_state *ui);
71 void clear_current_description(ui_state *ui);
72 void copy_filename_to_current_description(const gchar *fname, ui_state *ui);
73 void remove_all_rows(GtkWidget *widget, ui_state *ui);
74 
76 void create_trim_silence_window(GtkWidget *button, ui_state *ui);
77 
78 #endif
79