mp3splt-gtk

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

main_window.h
1 /**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright: (C) 2005-2013 Alexandru Munteanu
7 * Contact: m@ioalex.net
8 *
9 * http://mp3splt.sourceforge.net/
10 *
11 *********************************************************/
12
13 /**********************************************************
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
28 * USA.
29 *
30 *********************************************************/
31
32 /**********************************************************
33 * Filename: main_window.h
34 *
35 * header of main_window.c
36 *
37 *********************************************************/
38
39 #ifndef MAIN_WINDOW_H
40
41 #define MAIN_WINDOW_H
42
43 #include "all_includes.h"
44
45 #ifdef __WIN32__
46 #define PIXMAP_PATH ""
47 #define IMAGEDIR ""
48 #endif
49
50 #ifndef GDK_Left
51 #define GDK_Left GDK_KEY_Left
52 #endif
53
54 #ifndef GDK_Right
55 #define GDK_Right GDK_KEY_Right
56 #endif
57
58 void remove_status_message(gui_state *gui);
59 void put_status_message(const gchar *text, ui_state *ui);
60 void put_status_message_with_type(const gchar *text,
61 splt_message_type mess_type, ui_state *ui);
62 void create_application();
63 void print_status_bar_confirmation(gint error, ui_state *ui);
64 void cancel_button_event(GtkWidget *widget, ui_state *ui);
65
66 gchar* get_input_filename(gui_state *gui);
67 void set_input_filename(const gchar *filename, ui_state *ui);
68 void add_filters_to_file_chooser(GtkWidget *file_chooser);
69
70 void split_button_event(GtkWidget *widget, ui_state *ui);
71
72 void print_status_bar_confirmation_in_idle(gint error, ui_state *ui);
73
74 void set_stop_split_safe(gboolean value, ui_state *ui);
75
76 gint get_is_splitting_safe(ui_state *ui);
77 void set_is_splitting_safe(gboolean value, ui_state *ui);
78
79 void set_split_file_mode_safe(gint file_mode, ui_state *ui);
80 gint get_split_file_mode_safe(ui_state *ui);
81
82 void set_process_in_progress_and_wait_safe(gboolean value, ui_state *ui);
83 void set_process_in_progress_safe(gboolean value, ui_state *ui);
84 gint get_process_in_progress_safe(ui_state *ui);
85
86 #endif
87
get_input_filename
gchar * get_input_filename(gui_state *gui)
Get the name of the input file.
Definition: main_window.c:76
print_status_bar_confirmation
void print_status_bar_confirmation(gint error, ui_state *ui)
Output an error message from libmp3splt to the status bar.
Definition: main_window.c:1115
put_status_message_with_type
void put_status_message_with_type(const gchar *text, splt_message_type mess_type, ui_state *ui)
Output a message to the status message bar.
Definition: main_window.c:278
cancel_button_event
void cancel_button_event(GtkWidget *widget, ui_state *ui)
event for the cancel button
Definition: main_window.c:300
ui_state
Definition: ui_types.h:485
set_input_filename
void set_input_filename(const gchar *filename, ui_state *ui)
Set the name of the input file.
Definition: main_window.c:44
put_status_message
void put_status_message(const gchar *text, ui_state *ui)
Output a info message to the status message bar.
Definition: main_window.c:264
gui_state
Definition: ui_types.h:202
split_button_event
void split_button_event(GtkWidget *widget, ui_state *ui)
event for the split button
Definition: main_window.c:428
remove_status_message
void remove_status_message(gui_state *gui)
Removes status bar message.
Definition: main_window.c:252