mp3splt-gtk
main_window.h
1 /**********************************************************
2  *
3  * mp3splt-gtk -- utility based on mp3splt,
4  * for mp3/ogg splitting without decoding
5  *
6  * Copyright: (C) 2005-2012 Alexandru Munteanu
7  * Contact: io_fx@yahoo.fr
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
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 
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