mp3splt-gtk
main_win.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_win.h
34  *
35  * header of main_win.c
36  *
37  *********************************************************/
38 
39 #ifndef MAIN_WIN_H
40 
41 #define MAIN_WIN_H
42 
43 #include <libmp3splt/mp3splt.h>
44 
45 #ifdef __WIN32__
46 #define PIXMAP_PATH ""
47 #define IMAGEDIR ""
48 #endif
49 
50 #define WINDOW_X 700
51 #define WINDOW_Y 450
52 
53 enum {
54  DROP_PLAIN,
55  DROP_STRING,
56  DROP_URI_LIST
57 };
58 
59 static const GtkTargetEntry drop_types[] = {
60  { "text/plain", 0, DROP_PLAIN },
61  { "STRING", 0, DROP_STRING },
62  { "text/uri-list", 0, DROP_URI_LIST }
63 };
64 
65 //close the window and exit button function
66 void quit(GtkWidget *widget, gpointer data);
67 void initialize_window();
68 void about_window(GtkWidget *widget,
69  gpointer *data);
71 void put_status_message(const gchar *text);
72 void put_status_message_with_type(const gchar *text,
73  splt_message_type mess_type);
74 void split_button_event();
75 GtkWidget *create_toolbar();
76 GtkWidget *create_menu_bar();
77 GtkWidget *create_cool_button(gchar *stock_id, gchar *label_text,
78  gint toggle_or_not);
79 GtkWidget *create_main_vbox();
80 void create_all();
81 void print_status_bar_confirmation(gint confirmation);
82 void cancel_button_event(GtkWidget *widget, gpointer data);
83 void put_status_message(const gchar *text);
84 
85 #endif
86