Mercurial > audlegacy
annotate src/audacious/main.h @ 3097:bb1fa0aed8f4
add url unescape code to playlist_get_info_text().
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 19 Jul 2007 12:49:50 +0900 |
parents | 83f03505f819 |
children | 3b6d316f8b09 |
rev | line source |
---|---|
2313 | 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 | |
2386 | 24 #ifndef AUD_MAIN_H |
25 #define AUD_MAIN_H | |
2313 | 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 PLAYER_HEIGHT \ | |
38 ((cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) * (cfg.doublesize + 1)) | |
39 #define PLAYER_WIDTH \ | |
40 (MAINWIN_WIDTH * (cfg.doublesize + 1)) | |
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, convert_slash; | |
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 stopaftersong; | |
66 gboolean refresh_file_list; | |
67 gboolean smooth_title_scroll; | |
68 gboolean use_pl_metadata; | |
69 gboolean warn_about_unplayables; | |
2651
4d5e6a8717dd
[svn] - allow the player to start with all of its windows hidden (but give a warning to the user, whose display can be disabled); also, try to remember player windows positions when they stay hidden between sessions
giacomo
parents:
2463
diff
changeset
|
70 gboolean warn_about_win_visibility; |
2313 | 71 gboolean use_backslash_as_dir_delimiter; |
72 gboolean random_skin_on_play; | |
73 gboolean use_fontsets; | |
74 gboolean mainwin_use_xfont; | |
75 gboolean custom_cursors; | |
76 gboolean close_dialog_open; | |
77 gboolean close_dialog_add; | |
78 gfloat equalizer_preamp, equalizer_bands[10]; | |
79 gchar *skin; | |
80 gchar *outputplugin; | |
81 gchar *filesel_path; | |
82 gchar *playlist_path; | |
83 gchar *playlist_font, *mainwin_font; | |
84 gchar *disabled_iplugins; | |
85 gchar *enabled_gplugins, *enabled_vplugins, *enabled_eplugins; | |
86 gchar *eqpreset_default_file, *eqpreset_extension; | |
87 GList *url_history; | |
88 gint timer_mode; | |
89 gint vis_type; | |
90 gint analyzer_mode, analyzer_type; | |
91 gint scope_mode; | |
92 gint voiceprint_mode; | |
93 gint vu_mode, vis_refresh; | |
94 gint analyzer_falloff, peaks_falloff; | |
95 gint playlist_position; | |
96 gint pause_between_songs_time; | |
97 gboolean pause_between_songs; | |
98 gboolean show_wm_decorations; | |
99 gint mouse_change; | |
100 gboolean playlist_transparent; | |
101 gint titlestring_preset; | |
102 gchar *gentitle_format; | |
103 gboolean softvolume_enable; | |
104 gboolean xmms_compat_mode; | |
105 gboolean eq_extra_filtering; | |
106 gint scroll_pl_by; | |
107 gboolean resume_playback_on_startup; | |
108 gint resume_playback_on_startup_time; | |
109 gboolean show_separator_in_pl; | |
110 gchar *chardet_detector; | |
111 gchar *chardet_fallback; | |
112 gint output_buffer_size; | |
113 gboolean playlist_detect; | |
114 gboolean show_filepopup_for_tuple; | |
115 gchar *cover_name_include, *cover_name_exclude; | |
116 gboolean recurse_for_cover; | |
117 gint recurse_for_cover_depth; | |
118 gchar *session_uri_base; | |
119 gint filepopup_pixelsize; | |
120 gint filepopup_delay; | |
121 gboolean use_file_cover; | |
122 gboolean use_xmms_style_fileselector; | |
123 gboolean use_extension_probing; | |
124 gint colorize_r; gint colorize_g; gint colorize_b; | |
125 gboolean terminate; | |
2405 | 126 gboolean filepopup_showprogressbar; |
2805
6295535fbf49
[svn] - add toggle button to keep jtf dialog opened on jump.
yaz
parents:
2682
diff
changeset
|
127 gboolean close_jtf_dialog; |
2968
83f03505f819
add support for one-way text scroll.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2908
diff
changeset
|
128 gboolean twoway_scroll; |
2313 | 129 }; |
130 | |
131 typedef struct _BmpConfig BmpConfig; | |
132 | |
133 enum { | |
134 VOLSET_STARTUP, | |
135 VOLSET_UPDATE, | |
136 VOLUME_ADJUSTED, | |
137 VOLUME_SET | |
138 }; | |
139 | |
140 enum { | |
141 BMP_PATH_LOG_FILE, | |
142 BMP_PATH_USER_DIR, | |
143 BMP_PATH_USER_PLUGIN_DIR, | |
144 BMP_PATH_USER_SKIN_DIR, | |
145 BMP_PATH_SKIN_THUMB_DIR, | |
146 BMP_PATH_ACCEL_FILE, | |
147 BMP_PATH_CONFIG_FILE, | |
148 BMP_PATH_PLAYLIST_FILE, | |
2463 | 149 BMP_PATH_GTKRC_FILE, |
2313 | 150 BMP_PATH_COUNT |
151 }; | |
152 | |
153 extern BmpConfig cfg; | |
154 extern BmpConfig bmp_default_config; | |
155 | |
156 extern gchar *bmp_paths[]; | |
157 | |
158 extern const gchar *bmp_titlestring_presets[]; | |
159 extern const guint n_titlestring_presets; | |
160 | |
161 extern const gchar *chardet_detector_presets[]; | |
162 extern const guint n_chardet_detector_presets; | |
163 | |
164 extern GList *dock_window_list; | |
165 | |
166 extern gboolean has_x11_connection; | |
167 | |
168 void bmp_config_save(void); | |
169 void bmp_config_load(void); | |
2682
c3cd6e47faf6
[svn] - make the evil 'reload plugins' button behave a bit better
giacomo
parents:
2651
diff
changeset
|
170 void bmp_config_free(void); |
2313 | 171 void make_directory(const gchar * path, mode_t mode); |
2908
6a474a7954a0
Allow for printf-style format strings to be passed to report_error() via g_strdup_vprintf().
William Pitcock <nenolod@atheme.org>
parents:
2907
diff
changeset
|
172 void report_error(const gchar *error_message, ...); |
2313 | 173 |
174 extern GCond *cond_scan; | |
175 extern GMutex *mutex_scan; | |
176 | |
177 G_END_DECLS | |
178 | |
179 #endif |