Mercurial > audlegacy
comparison src/audacious/main.h @ 2313:3149d4b1a9a9 trunk
[svn] - objective-make autodepend fixes
- move all sourcecode into src/ and adjust Makefiles accordingly
author | nenolod |
---|---|
date | Fri, 12 Jan 2007 11:43:40 -0800 |
parents | |
children | 49d285f6008b |
comparison
equal
deleted
inserted
replaced
2312:e1a5a66fb9cc | 2313:3149d4b1a9a9 |
---|---|
1 /* Audacious - Cross-platform multimedia player | |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Based on BMP: | |
5 * Copyright (C) 2003-2004 BMP development team | |
6 * | |
7 * Based on XMMS: | |
8 * Copyright (C) 1998-2003 XMMS development team | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; under version 2 of the License. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
22 */ | |
23 | |
24 #ifndef MAIN_H | |
25 #define MAIN_H | |
26 | |
27 #ifdef _AUDACIOUS_CORE | |
28 # include "widgets/widgetcore.h" | |
29 # include "ui_main.h" | |
30 #endif | |
31 | |
32 #include <sys/types.h> | |
33 #include <sys/stat.h> | |
34 | |
35 G_BEGIN_DECLS | |
36 | |
37 #define BMP_USER_PLUGIN_DIR_BASENAME "Plugins" | |
38 #define BMP_SKIN_DIR_BASENAME "Skins" | |
39 #define BMP_SKIN_THUMB_DIR_BASENAME ".thumbs" | |
40 #define BMP_ACCEL_BASENAME "accels" | |
41 #define BMP_CONFIG_BASENAME "config" | |
42 #ifndef HAVE_XSPF_PLAYLIST | |
43 # define BMP_PLAYLIST_BASENAME "playlist.m3u" | |
44 #else | |
45 # define BMP_PLAYLIST_BASENAME "playlist.xspf" | |
46 #endif | |
47 #define BMP_LOG_BASENAME "log" | |
48 | |
49 #define PLAYER_HEIGHT \ | |
50 ((cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) * (cfg.doublesize + 1)) | |
51 #define PLAYER_WIDTH \ | |
52 (MAINWIN_WIDTH * (cfg.doublesize + 1)) | |
53 | |
54 struct _BmpConfig { | |
55 gint player_x, player_y; | |
56 gint equalizer_x, equalizer_y; | |
57 gint playlist_x, playlist_y; | |
58 gint playlist_width, playlist_height; | |
59 gint snap_distance; | |
60 gboolean use_realtime; | |
61 gboolean shuffle, repeat; | |
62 gboolean doublesize, autoscroll; | |
63 gboolean analyzer_peaks, equalizer_autoload, easy_move, equalizer_active; | |
64 gboolean playlist_visible, equalizer_visible, player_visible; | |
65 gboolean player_shaded, playlist_shaded, equalizer_shaded; | |
66 gboolean allow_multiple_instances, always_show_cb; | |
67 gboolean convert_underscore, convert_twenty, convert_slash; | |
68 gboolean show_numbers_in_pl; | |
69 gboolean snap_windows, save_window_position; | |
70 gboolean dim_titlebar; | |
71 gboolean get_info_on_load, get_info_on_demand; | |
72 gboolean eq_doublesize_linked; | |
73 gboolean sort_jump_to_file; | |
74 gboolean use_eplugins; | |
75 gboolean always_on_top, sticky; | |
76 gboolean no_playlist_advance; | |
77 gboolean stopaftersong; | |
78 gboolean refresh_file_list; | |
79 gboolean smooth_title_scroll; | |
80 gboolean use_pl_metadata; | |
81 gboolean warn_about_unplayables; | |
82 gboolean use_backslash_as_dir_delimiter; | |
83 gboolean random_skin_on_play; | |
84 gboolean use_fontsets; | |
85 gboolean mainwin_use_xfont; | |
86 gboolean custom_cursors; | |
87 gboolean close_dialog_open; | |
88 gboolean close_dialog_add; | |
89 gfloat equalizer_preamp, equalizer_bands[10]; | |
90 gchar *skin; | |
91 gchar *outputplugin; | |
92 gchar *filesel_path; | |
93 gchar *playlist_path; | |
94 gchar *playlist_font, *mainwin_font; | |
95 gchar *disabled_iplugins; | |
96 gchar *enabled_gplugins, *enabled_vplugins, *enabled_eplugins; | |
97 gchar *eqpreset_default_file, *eqpreset_extension; | |
98 GList *url_history; | |
99 gint timer_mode; | |
100 gint vis_type; | |
101 gint analyzer_mode, analyzer_type; | |
102 gint scope_mode; | |
103 gint voiceprint_mode; | |
104 gint vu_mode, vis_refresh; | |
105 gint analyzer_falloff, peaks_falloff; | |
106 gint playlist_position; | |
107 gint pause_between_songs_time; | |
108 gboolean pause_between_songs; | |
109 gboolean show_wm_decorations; | |
110 gint mouse_change; | |
111 gboolean playlist_transparent; | |
112 gint titlestring_preset; | |
113 gchar *gentitle_format; | |
114 gboolean softvolume_enable; | |
115 gboolean xmms_compat_mode; | |
116 gboolean eq_extra_filtering; | |
117 gint scroll_pl_by; | |
118 gboolean resume_playback_on_startup; | |
119 gint resume_playback_on_startup_time; | |
120 gboolean show_separator_in_pl; | |
121 gchar *chardet_detector; | |
122 gchar *chardet_fallback; | |
123 gint output_buffer_size; | |
124 gboolean playlist_detect; | |
125 gboolean show_filepopup_for_tuple; | |
126 gchar *cover_name_include, *cover_name_exclude; | |
127 gboolean recurse_for_cover; | |
128 gint recurse_for_cover_depth; | |
129 gchar *session_uri_base; | |
130 gint filepopup_pixelsize; | |
131 gint filepopup_delay; | |
132 gboolean use_file_cover; | |
133 gboolean use_xmms_style_fileselector; | |
134 gboolean use_extension_probing; | |
135 gint colorize_r; gint colorize_g; gint colorize_b; | |
136 gboolean terminate; | |
137 }; | |
138 | |
139 typedef struct _BmpConfig BmpConfig; | |
140 | |
141 enum { | |
142 VOLSET_STARTUP, | |
143 VOLSET_UPDATE, | |
144 VOLUME_ADJUSTED, | |
145 VOLUME_SET | |
146 }; | |
147 | |
148 enum { | |
149 BMP_PATH_LOG_FILE, | |
150 BMP_PATH_USER_DIR, | |
151 BMP_PATH_USER_PLUGIN_DIR, | |
152 BMP_PATH_USER_SKIN_DIR, | |
153 BMP_PATH_SKIN_THUMB_DIR, | |
154 BMP_PATH_ACCEL_FILE, | |
155 BMP_PATH_CONFIG_FILE, | |
156 BMP_PATH_PLAYLIST_FILE, | |
157 BMP_PATH_COUNT | |
158 }; | |
159 | |
160 extern BmpConfig cfg; | |
161 extern BmpConfig bmp_default_config; | |
162 | |
163 extern gchar *bmp_paths[]; | |
164 | |
165 extern const gchar *bmp_titlestring_presets[]; | |
166 extern const guint n_titlestring_presets; | |
167 | |
168 extern const gchar *chardet_detector_presets[]; | |
169 extern const guint n_chardet_detector_presets; | |
170 | |
171 extern GList *dock_window_list; | |
172 extern gboolean pposition_broken; | |
173 | |
174 extern gboolean starting_up; | |
175 | |
176 extern gboolean has_x11_connection; | |
177 | |
178 void bmp_config_save(void); | |
179 void bmp_config_load(void); | |
180 void make_directory(const gchar * path, mode_t mode); | |
181 void report_error(const gchar *error_text); | |
182 | |
183 extern GCond *cond_scan; | |
184 extern GMutex *mutex_scan; | |
185 | |
186 G_END_DECLS | |
187 | |
188 #endif |