/*
 * GQmpeg
 * (C)1998, 1999 John Ellis
 *
 * Author: John Ellis
 *
 * This software is released under the GNU General Public License.
 * Please read the included file COPYING for more information.
 * This software comes with no warranty of any kind, use at you own risk!
 */

#include "gqmpeg.h"

#include "icon.xpm"

	/* main window widgets */
GtkWidget	*mainwindow = NULL;
GtkWidget	*display_area = NULL;
GtkWidget	*playlist_window = NULL;

GtkWidget *main_menu = NULL;
GtkWidget *dir_menu = NULL;
GtkWidget *file_menu = NULL;
GtkWidget *file_menu_list = NULL;
GtkWidget *playlist_menu = NULL;
GtkWidget *playlist_menu_custom = NULL;

	/* skins */

SkinData *skin = NULL;
SkinData *skin_normal = NULL;
SkinData *skin_small = NULL;

	/* file lists */
GList *filelist = NULL;
GList *dirlist = NULL;

	/* filtering */
GList *filter = NULL;
gint disable_filtering = FALSE;
gint show_dot_files = FALSE;

	/* playlist info */
gchar *playlist_pathname = NULL;
gchar *playlist_filename = NULL;

	/* song time info */
gint seconds = 0;
gint seconds_remaining = 0;
gint frames = 0;
gint frames_remaining = 0;

	/* input info */
gint input_channels = 0;
gint input_hz = 0;
gint input_bitrate = 0;

	/* output info */
gint output_channels = 0;
gint output_hz = 0;
gint output_bits = 0;

	/* mp3 specifics */
gint mpeg_version = 0;
gint mpeg_layer = 0;
gint mpeg_mode = 0;

	/* options */
gint		initial_playlist_mode = PLAYLIST_MODE_SESSION;
gchar		*initial_playlist_pathname = NULL;
gint		initial_playlist_position = 0;
gint		initial_directory_enable = FALSE;
gchar		*initial_directory_path = NULL;
gint		show_playlist_on_startup = FALSE;
gint		start_playing_on_startup = FALSE;
gint		smart_window_placement = TRUE;
gint		read_header_tags = FALSE;
gint		playlist_accounting = FALSE;
gint		remember_window_position = FALSE;
gint		window_pos_x = 0;
gint		window_pos_y = 0;
gint		window_list_x = 0;
gint		window_list_y = 0;
gint		window_list_w = 700;
gint		window_list_h = 421;
gint		alternate_skin = FALSE;
gint		wm_decorations = FALSE;
gint		prev_includes_current = FALSE;

	/* miscellaneous */
gchar		*current_path = NULL;
gchar 		*mixer_command = NULL;
gint		mixer_device_id = 0;

gint		status = STATUS_STOP;
gint		repeat_mode = FALSE;
gint		shuffle_mode = FALSE;
gint		save_mode_in_playlist = FALSE;
gint		obey_mode_in_playlist = FALSE;

gchar		*preset_name[10];
gchar		*preset_file[10];
gint		play_presets = TRUE;
gint		show_remaining_time = FALSE;

int		pid;

gchar		*default_skin = NULL;

gint		pos_slider_in_drag = FALSE;
gint		new_song = FALSE;

gint		show_extra_winamp_info = TRUE;
gint		double_size_mode = FALSE;

gint		debug_mode = FALSE;
gint		debug_skin = FALSE;

gchar		**gqmpeg_icon_xpm = icon_xpm;

gint		allow_ipc = TRUE;

gint		dock_mode = FALSE;

gint		drop_single_to_playlist = FALSE;

/* end of globals */

void init_vars()
{
	gint i;

	playlist_pathname = g_strdup("");
	playlist_filename = g_strdup("Untitled.gqmpeg");
	current_path = get_current_dir();

	for (i=0; i<10; i++)
		{
		preset_name[i] = NULL;
		preset_file[i] = NULL;
		}
}

