mp3splt-gtk
main_win.h
00001 /**********************************************************
00002  *
00003  * mp3splt-gtk -- utility based on mp3splt,
00004  *                for mp3/ogg splitting without decoding
00005  *
00006  * Copyright: (C) 2005-2012 Alexandru Munteanu
00007  * Contact: io_fx@yahoo.fr
00008  *
00009  * http://mp3splt.sourceforge.net/
00010  *
00011  *********************************************************/
00012 
00013 /**********************************************************
00014  *
00015  * This program is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU General Public License
00017  * as published by the Free Software Foundation; either version 2
00018  * of the License, or (at your option) any later version.
00019  *
00020  * This program is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU General Public License
00026  * along with this program; if not, write to the Free Software
00027  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
00028  * USA.
00029  *
00030  *********************************************************/
00031 
00032 /**********************************************************
00033  * Filename: main_win.h
00034  *
00035  * header of main_win.c
00036  *
00037  *********************************************************/
00038 
00039 #ifndef MAIN_WIN_H
00040 
00041 #define MAIN_WIN_H
00042 
00043 #include <libmp3splt/mp3splt.h>
00044 
00045 #ifdef __WIN32__
00046 #define PIXMAP_PATH ""
00047 #define IMAGEDIR ""
00048 #endif
00049 
00050 #define WINDOW_X 700
00051 #define WINDOW_Y 450
00052 
00053 enum {
00054   DROP_PLAIN,
00055   DROP_STRING,
00056   DROP_URI_LIST
00057 };
00058 
00059 static const GtkTargetEntry drop_types[] = {
00060   { "text/plain", 0, DROP_PLAIN },
00061   { "STRING", 0, DROP_STRING },
00062   { "text/uri-list", 0, DROP_URI_LIST }
00063 };
00064 
00065 //close the window and exit button function
00066 void quit(GtkWidget *widget, gpointer data);
00067 void initialize_window();
00068 void about_window(GtkWidget *widget,
00069                   gpointer *data);
00070 void remove_status_message();
00071 void put_status_message(const gchar *text);
00072 void put_status_message_with_type(const gchar *text,
00073     splt_message_type mess_type);
00074 void split_button_event();
00075 GtkWidget *create_toolbar();
00076 GtkWidget *create_menu_bar();
00077 GtkWidget *create_cool_button(gchar *stock_id, gchar *label_text,
00078     gint toggle_or_not);
00079 GtkWidget *create_main_vbox();
00080 void create_all();
00081 void print_status_bar_confirmation(gint confirmation);
00082 void cancel_button_event(GtkWidget *widget, gpointer data);
00083 void put_status_message(const gchar *text);
00084 
00085 #endif
00086