Mercurial > audlegacy
annotate audacious/main.h @ 782:4c7ee8f64d9b trunk
[svn] untag a critical fixme as it was actually deadchip smoking some craq
back in the days of BMP
author | nenolod |
---|---|
date | Thu, 02 Mar 2006 08:26:55 -0800 |
parents | 12c47704b4b5 |
children | a8fb5974c3a9 |
rev | line source |
---|---|
0 | 1 /* BMP - Cross-platform multimedia player |
2 * Copyright (C) 2003-2004 BMP development team. | |
3 * | |
4 * Based on XMMS: | |
5 * Copyright (C) 1998-2003 XMMS development team. | |
6 * | |
7 * This program is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program; if not, write to the Free Software | |
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 */ | |
21 | |
22 #ifndef MAIN_H | |
23 #define MAIN_H | |
24 | |
25 #include "mainwin.h" | |
26 #include "textbox.h" | |
27 #include "vis.h" | |
28 | |
29 | |
30 #define BMP_USER_PLUGIN_DIR_BASENAME "Plugins" | |
31 #define BMP_SKIN_DIR_BASENAME "Skins" | |
32 #define BMP_SKIN_THUMB_DIR_BASENAME ".thumbs" | |
33 #define BMP_ACCEL_BASENAME "accels" | |
34 #define BMP_CONFIG_BASENAME "config" | |
35 #define BMP_PLAYLIST_BASENAME "playlist.m3u" | |
36 #define BMP_LOG_BASENAME "log" | |
37 | |
38 #define PLAYER_HEIGHT \ | |
39 (cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) | |
40 #define PLAYER_WIDTH MAINWIN_WIDTH | |
41 | |
42 struct _BmpConfig { | |
43 gint player_x, player_y; | |
44 gint equalizer_x, equalizer_y; | |
45 gint playlist_x, playlist_y; | |
46 gint playlist_width, playlist_height; | |
47 gint snap_distance; | |
48 gboolean use_realtime; | |
49 gboolean shuffle, repeat; | |
50 gboolean doublesize, autoscroll; | |
51 gboolean analyzer_peaks, equalizer_autoload, easy_move, equalizer_active; | |
52 gboolean playlist_visible, equalizer_visible, player_visible; | |
53 gboolean player_shaded, playlist_shaded, equalizer_shaded; | |
54 gboolean allow_multiple_instances, always_show_cb; | |
55 gboolean convert_underscore, convert_twenty; | |
56 gboolean show_numbers_in_pl; | |
57 gboolean snap_windows, save_window_position; | |
58 gboolean dim_titlebar; | |
59 gboolean get_info_on_load, get_info_on_demand; | |
60 gboolean eq_doublesize_linked; | |
61 gboolean sort_jump_to_file; | |
62 gboolean use_eplugins; | |
63 gboolean always_on_top, sticky; | |
64 gboolean no_playlist_advance; | |
65 gboolean smooth_title_scroll; | |
66 gboolean use_pl_metadata; | |
67 gboolean warn_about_unplayables; | |
68 gboolean use_backslash_as_dir_delimiter; | |
69 gboolean random_skin_on_play; | |
70 gboolean use_fontsets; | |
71 gboolean mainwin_use_xfont; | |
72 gboolean custom_cursors; | |
73 gboolean close_dialog_open; | |
74 gboolean close_dialog_add; | |
75 gfloat equalizer_preamp, equalizer_bands[10]; | |
76 gchar *skin; | |
77 gchar *outputplugin; | |
78 gchar *filesel_path; | |
79 gchar *playlist_path; | |
80 gchar *playlist_font, *mainwin_font; | |
81 gchar *disabled_iplugins; | |
82 gchar *enabled_gplugins, *enabled_vplugins, *enabled_eplugins; | |
83 gchar *eqpreset_default_file, *eqpreset_extension; | |
84 GList *url_history; | |
85 gint timer_mode; | |
86 gint vis_type; | |
87 gint analyzer_mode, analyzer_type; | |
88 gint scope_mode; | |
89 gint vu_mode, vis_refresh; | |
90 gint analyzer_falloff, peaks_falloff; | |
91 gint playlist_position; | |
92 gint pause_between_songs_time; | |
93 gboolean pause_between_songs; | |
94 gboolean show_wm_decorations; | |
95 gint mouse_change; | |
96 gboolean playlist_transparent; | |
97 gint titlestring_preset; | |
98 gchar *gentitle_format; | |
99 gboolean softvolume_enable; | |
100 gboolean xmms_compat_mode; | |
101 gboolean eq_extra_filtering; | |
102 gint scroll_pl_by; | |
103 }; | |
104 | |
105 typedef struct _BmpConfig BmpConfig; | |
106 | |
107 enum { | |
108 VOLSET_STARTUP, | |
109 VOLSET_UPDATE, | |
110 VOLUME_ADJUSTED, | |
111 VOLUME_SET | |
112 }; | |
113 | |
114 enum { | |
115 BMP_PATH_LOG_FILE, | |
116 BMP_PATH_USER_DIR, | |
117 BMP_PATH_USER_PLUGIN_DIR, | |
118 BMP_PATH_USER_SKIN_DIR, | |
119 BMP_PATH_SKIN_THUMB_DIR, | |
120 BMP_PATH_ACCEL_FILE, | |
121 BMP_PATH_CONFIG_FILE, | |
122 BMP_PATH_PLAYLIST_FILE, | |
123 BMP_PATH_COUNT | |
124 }; | |
125 | |
126 extern BmpConfig cfg; | |
127 extern BmpConfig bmp_default_config; | |
128 | |
129 extern gchar *bmp_paths[]; | |
130 | |
131 extern const gchar *bmp_titlestring_presets[]; | |
132 extern const guint n_titlestring_presets; | |
133 | |
134 extern GList *dock_window_list; | |
135 extern gboolean pposition_broken; | |
136 | |
486 | 137 extern gboolean starting_up; |
138 | |
680
8282b365f6cb
[svn] - Add some sanity checking to make sure we can't do X11 stuff when running headless.
nenolod
parents:
486
diff
changeset
|
139 extern gboolean has_x11_connection; |
8282b365f6cb
[svn] - Add some sanity checking to make sure we can't do X11 stuff when running headless.
nenolod
parents:
486
diff
changeset
|
140 |
0 | 141 void bmp_config_save(void); |
142 void bmp_config_load(void); | |
781
12c47704b4b5
[svn] Add error reporting for many places, patch by external contributor Derek
nenolod
parents:
680
diff
changeset
|
143 void report_error(const gchar *error_text); |
0 | 144 |
145 #endif |