mp3splt-gtk

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

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-2013 Alexandru Munteanu - m@ioalex.net
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
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 = 0,
46 COL_DESCRIPTION = 1,
47 COL_MINUTES = 2,
48 COL_SECONDS = 3,
49 COL_HUNDR_SECS = 4,
50 COL_NUMBER = 5,
51 COL_PREVIEW = 6,
52 COL_SPLIT_PREVIEW = 7,
53 //tags
54 COL_TITLE = 8,
55 COL_ARTIST = 9,
56 COL_ALBUM = 10,
57 COL_GENRE = 11,
58 COL_YEAR = 12,
59 COL_TRACK = 13,
60 COL_COMMENT = 14,
61 NUM_COLUMNS = 15
62 } tree_columns;
63
64 gchar *get_splitpoint_name(gint index, ui_state *ui);
65 gint get_first_splitpoint_selected(gui_state *gui);
66 void select_splitpoint(gint index, gui_state *gui);
67 gint get_splitpoint_time(gint this_splitpoint, ui_state *ui);
68 void remove_splitpoint(gint index,gint stop_preview, ui_state *ui);
69 void update_splitpoint(gint index, Split_point new_point, ui_state *ui);
70 void update_splitpoint_from_time(gint index, gdouble time, ui_state *ui);
71 void update_splitpoint_check(gint index, ui_state *ui);
72 void update_minutes_from_spinner(GtkWidget *widget, ui_state *ui);
73 void update_seconds_from_spinner(GtkWidget *widget, ui_state *ui);
74 void update_hundr_secs_from_spinner(GtkWidget *widget, ui_state *ui);
75 void add_splitpoint_from_player(GtkWidget *widget, ui_state *ui);
76 void add_row(gint checked, ui_state *ui);
77 GtkWidget *create_splitpoints_frame(ui_state *ui);
78 void put_splitpoints_and_tags_in_mp3splt_state(splt_state *state, ui_state *ui);
79 void clear_current_description(ui_state *ui);
80 void copy_filename_to_current_description(const gchar *fname, ui_state *ui);
81 void remove_all_rows(GtkWidget *widget, ui_state *ui);
82
83 void create_detect_silence_and_add_splitpoints_window(GtkWidget *button, ui_state *ui);
84 void create_trim_silence_window(GtkWidget *button, ui_state *ui);
85
86 #endif
87
update_hundr_secs_from_spinner
void update_hundr_secs_from_spinner(GtkWidget *widget, ui_state *ui)
updates the hundredth of seconds for the spinner
Definition: splitpoints_window.c:122
put_splitpoints_and_tags_in_mp3splt_state
void put_splitpoints_and_tags_in_mp3splt_state(splt_state *state, ui_state *ui)
puts the splitpoints into the state
Definition: splitpoints_window.c:2166
create_splitpoints_frame
GtkWidget * create_splitpoints_frame(ui_state *ui)
creates the choose splitpoints frame
Definition: splitpoints_window.c:2108
Split_point
Definition: ui_types.h:74
remove_all_rows
void remove_all_rows(GtkWidget *widget, ui_state *ui)
removes all rows from the table
Definition: splitpoints_window.c:1363
tree_columns
enum @5 tree_columns
The enum telling which item is kept in which column of the splitpoint tree.
update_splitpoint
void update_splitpoint(gint index, Split_point new_point, ui_state *ui)
Set all values of a split point.
Definition: splitpoints_window.c:690
ui_state
Definition: ui_types.h:485
update_seconds_from_spinner
void update_seconds_from_spinner(GtkWidget *widget, ui_state *ui)
updates the seconds from the spinner
Definition: splitpoints_window.c:115
update_splitpoint_check
void update_splitpoint_check(gint index, ui_state *ui)
Toggles a splitpoint&#39;s &quot;Keep&quot; flag.
Definition: splitpoints_window.c:783
get_splitpoint_name
gchar * get_splitpoint_name(gint index, ui_state *ui)
returns the name of the splitpoint
Definition: splitpoints_window.c:1496
create_detect_silence_and_add_splitpoints_window
void create_detect_silence_and_add_splitpoints_window(GtkWidget *button, ui_state *ui)
event for clicking the &#39;detect silence and add splitpoints&#39; button
Definition: splitpoints_window.c:1187
gui_state
Definition: ui_types.h:202
get_splitpoint_time
gint get_splitpoint_time(gint splitpoint_index, ui_state *ui)
returns a splitpoint from the table
Definition: splitpoints_window.c:1527
add_row
void add_row(gboolean checked, ui_state *ui)
adds a row to the table
Definition: splitpoints_window.c:930
update_splitpoint_from_time
void update_splitpoint_from_time(gint index, gdouble time, ui_state *ui)
Set a splitpoint&#39;s time value.
Definition: splitpoints_window.c:768
select_splitpoint
void select_splitpoint(gint index, gui_state *gui)
selects a splitpoint
Definition: splitpoints_window.c:354
get_first_splitpoint_selected
gint get_first_splitpoint_selected(gui_state *gui)
Gets the number of the first splitpoint with selected &quot;Keep&quot; checkbox.
Definition: splitpoints_window.c:263
update_minutes_from_spinner
void update_minutes_from_spinner(GtkWidget *widget, ui_state *ui)
updates the minutes from the spinner
Definition: splitpoints_window.c:108
remove_splitpoint
void remove_splitpoint(gint index, gint stop_preview, ui_state *ui)
removes a splitpoint
Definition: splitpoints_window.c:421