Mercurial > audlegacy
annotate audacious/main.h @ 2218:da4a38edb089 trunk
[svn] Update po/
author | kiyoshi |
---|---|
date | Fri, 29 Dec 2006 05:26:01 -0800 |
parents | 60bd49189fde |
children | 4de6e7d138c6 |
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 | |
2105
f18a5b617c34
[svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents:
2026
diff
changeset
|
9 * the Free Software Foundation; under version 2 of the License. |
0 | 10 * |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
1459 | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 19 */ |
20 | |
21 #ifndef MAIN_H | |
22 #define MAIN_H | |
23 | |
1741
c7ab1203d933
[svn] - only include non-SDK things if _AUDACIOUS_CORE is defined.
nenolod
parents:
1710
diff
changeset
|
24 #ifdef _AUDACIOUS_CORE |
c7ab1203d933
[svn] - only include non-SDK things if _AUDACIOUS_CORE is defined.
nenolod
parents:
1710
diff
changeset
|
25 # include "widgets/widgetcore.h" |
c7ab1203d933
[svn] - only include non-SDK things if _AUDACIOUS_CORE is defined.
nenolod
parents:
1710
diff
changeset
|
26 # include "mainwin.h" |
c7ab1203d933
[svn] - only include non-SDK things if _AUDACIOUS_CORE is defined.
nenolod
parents:
1710
diff
changeset
|
27 #endif |
0 | 28 |
887 | 29 #include <sys/types.h> |
30 #include <sys/stat.h> | |
0 | 31 |
1742
4fa99b5e8f24
[svn] - add G_BEGIN_DECLS and G_END_DECLS for C++ users
nenolod
parents:
1741
diff
changeset
|
32 G_BEGIN_DECLS |
4fa99b5e8f24
[svn] - add G_BEGIN_DECLS and G_END_DECLS for C++ users
nenolod
parents:
1741
diff
changeset
|
33 |
0 | 34 #define BMP_USER_PLUGIN_DIR_BASENAME "Plugins" |
35 #define BMP_SKIN_DIR_BASENAME "Skins" | |
36 #define BMP_SKIN_THUMB_DIR_BASENAME ".thumbs" | |
37 #define BMP_ACCEL_BASENAME "accels" | |
38 #define BMP_CONFIG_BASENAME "config" | |
1569
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
39 #ifndef HAVE_XSPF_PLAYLIST |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
40 # define BMP_PLAYLIST_BASENAME "playlist.m3u" |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
41 #else |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
42 # define BMP_PLAYLIST_BASENAME "playlist.xspf" |
3af18d169044
[svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents:
1557
diff
changeset
|
43 #endif |
0 | 44 #define BMP_LOG_BASENAME "log" |
45 | |
46 #define PLAYER_HEIGHT \ | |
1938 | 47 ((cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) * (cfg.doublesize + 1)) |
48 #define PLAYER_WIDTH \ | |
49 (MAINWIN_WIDTH * (cfg.doublesize + 1)) | |
0 | 50 |
51 struct _BmpConfig { | |
52 gint player_x, player_y; | |
53 gint equalizer_x, equalizer_y; | |
54 gint playlist_x, playlist_y; | |
55 gint playlist_width, playlist_height; | |
56 gint snap_distance; | |
57 gboolean use_realtime; | |
58 gboolean shuffle, repeat; | |
59 gboolean doublesize, autoscroll; | |
60 gboolean analyzer_peaks, equalizer_autoload, easy_move, equalizer_active; | |
61 gboolean playlist_visible, equalizer_visible, player_visible; | |
62 gboolean player_shaded, playlist_shaded, equalizer_shaded; | |
63 gboolean allow_multiple_instances, always_show_cb; | |
2019
d3a62e1075e2
[svn] Allow \ to / conversion to be switched on & off, by external contributor Chris Kehler <cbkehler@sympatico.ca>.
chainsaw
parents:
1938
diff
changeset
|
64 gboolean convert_underscore, convert_twenty, convert_slash; |
0 | 65 gboolean show_numbers_in_pl; |
66 gboolean snap_windows, save_window_position; | |
67 gboolean dim_titlebar; | |
68 gboolean get_info_on_load, get_info_on_demand; | |
69 gboolean eq_doublesize_linked; | |
70 gboolean sort_jump_to_file; | |
71 gboolean use_eplugins; | |
72 gboolean always_on_top, sticky; | |
73 gboolean no_playlist_advance; | |
899 | 74 gboolean stopaftersong; |
893
6afdd0d7e1e1
[svn] Make refreshing optional, default to disabled if Gnome VFS available.
nemo
parents:
887
diff
changeset
|
75 gboolean refresh_file_list; |
0 | 76 gboolean smooth_title_scroll; |
77 gboolean use_pl_metadata; | |
78 gboolean warn_about_unplayables; | |
79 gboolean use_backslash_as_dir_delimiter; | |
80 gboolean random_skin_on_play; | |
81 gboolean use_fontsets; | |
82 gboolean mainwin_use_xfont; | |
83 gboolean custom_cursors; | |
84 gboolean close_dialog_open; | |
85 gboolean close_dialog_add; | |
86 gfloat equalizer_preamp, equalizer_bands[10]; | |
87 gchar *skin; | |
88 gchar *outputplugin; | |
89 gchar *filesel_path; | |
90 gchar *playlist_path; | |
91 gchar *playlist_font, *mainwin_font; | |
92 gchar *disabled_iplugins; | |
93 gchar *enabled_gplugins, *enabled_vplugins, *enabled_eplugins; | |
94 gchar *eqpreset_default_file, *eqpreset_extension; | |
95 GList *url_history; | |
96 gint timer_mode; | |
97 gint vis_type; | |
98 gint analyzer_mode, analyzer_type; | |
99 gint scope_mode; | |
2203
60bd49189fde
[svn] - two realcolour modes for voiceprint vis: Fire and Ice
marvin
parents:
2186
diff
changeset
|
100 gint voiceprint_mode; |
0 | 101 gint vu_mode, vis_refresh; |
102 gint analyzer_falloff, peaks_falloff; | |
103 gint playlist_position; | |
104 gint pause_between_songs_time; | |
105 gboolean pause_between_songs; | |
106 gboolean show_wm_decorations; | |
107 gint mouse_change; | |
108 gboolean playlist_transparent; | |
109 gint titlestring_preset; | |
110 gchar *gentitle_format; | |
111 gboolean softvolume_enable; | |
112 gboolean xmms_compat_mode; | |
113 gboolean eq_extra_filtering; | |
114 gint scroll_pl_by; | |
998
8c6949ffd7f8
[svn] Support for saving the playback state, and resuming playback after restart. Patch by cha0smaster, closes bug #479.
chainsaw
parents:
899
diff
changeset
|
115 gboolean resume_playback_on_startup; |
8c6949ffd7f8
[svn] Support for saving the playback state, and resuming playback after restart. Patch by cha0smaster, closes bug #479.
chainsaw
parents:
899
diff
changeset
|
116 gint resume_playback_on_startup_time; |
1056
21628529c615
[svn] add the config option to enable/disable separator line in the playlist
yaz
parents:
998
diff
changeset
|
117 gboolean show_separator_in_pl; |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
118 gchar *chardet_detector; |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
119 gchar *chardet_fallback; |
1146
7e208feb36a2
[svn] - new global variable `output_buffer_size', replaces all of the per-plugin buffer sizes
nenolod
parents:
1105
diff
changeset
|
120 gint output_buffer_size; |
1163
ff71f891265b
[svn] - Allow to do format detection on demand; instead of immediately on add
nenolod
parents:
1146
diff
changeset
|
121 gboolean playlist_detect; |
1358 | 122 gboolean show_filepopup_for_tuple; |
1413 | 123 gchar *cover_name_include, *cover_name_exclude; |
1429
a360afd8df52
[svn] Make annoying recursion that consistently returns wrong art, optional.
nemo
parents:
1413
diff
changeset
|
124 gboolean recurse_for_cover; |
a360afd8df52
[svn] Make annoying recursion that consistently returns wrong art, optional.
nemo
parents:
1413
diff
changeset
|
125 gint recurse_for_cover_depth; |
1444
c04ce16b2b57
[svn] - libaudacious/beepctrl.c: optimise further and be more paranoid about leaks
nenolod
parents:
1429
diff
changeset
|
126 gchar *session_uri_base; |
1710 | 127 gint filepopup_pixelsize; |
128 gint filepopup_delay; | |
1889
597bd579d9af
[svn] Patch by Michael Hanselmann to fetch a per-song image file.
nemo
parents:
1742
diff
changeset
|
129 gboolean use_file_cover; |
1905
6b4116c34489
[svn] - change "Transparency" to "Miscillaneous UI Features" in prefswin
nenolod
parents:
1889
diff
changeset
|
130 gboolean use_xmms_style_fileselector; |
2108
02f39b64f36b
[svn] - add support for new extension probing system
nenolod
parents:
2105
diff
changeset
|
131 gboolean use_extension_probing; |
2186 | 132 gint colorize_r; gint colorize_g; gint colorize_b; |
0 | 133 }; |
134 | |
135 typedef struct _BmpConfig BmpConfig; | |
136 | |
137 enum { | |
138 VOLSET_STARTUP, | |
139 VOLSET_UPDATE, | |
140 VOLUME_ADJUSTED, | |
141 VOLUME_SET | |
142 }; | |
143 | |
144 enum { | |
145 BMP_PATH_LOG_FILE, | |
146 BMP_PATH_USER_DIR, | |
147 BMP_PATH_USER_PLUGIN_DIR, | |
148 BMP_PATH_USER_SKIN_DIR, | |
149 BMP_PATH_SKIN_THUMB_DIR, | |
150 BMP_PATH_ACCEL_FILE, | |
151 BMP_PATH_CONFIG_FILE, | |
152 BMP_PATH_PLAYLIST_FILE, | |
153 BMP_PATH_COUNT | |
154 }; | |
155 | |
156 extern BmpConfig cfg; | |
157 extern BmpConfig bmp_default_config; | |
158 | |
159 extern gchar *bmp_paths[]; | |
160 | |
161 extern const gchar *bmp_titlestring_presets[]; | |
162 extern const guint n_titlestring_presets; | |
163 | |
1105
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
164 extern const gchar *chardet_detector_presets[]; |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
165 extern const guint n_chardet_detector_presets; |
4be4d74db123
[svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents:
1056
diff
changeset
|
166 |
0 | 167 extern GList *dock_window_list; |
168 extern gboolean pposition_broken; | |
169 | |
486 | 170 extern gboolean starting_up; |
171 | |
680
8282b365f6cb
[svn] - Add some sanity checking to make sure we can't do X11 stuff when running headless.
nenolod
parents:
486
diff
changeset
|
172 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
|
173 |
0 | 174 void bmp_config_save(void); |
175 void bmp_config_load(void); | |
887 | 176 void make_directory(const gchar * path, mode_t mode); |
781
12c47704b4b5
[svn] Add error reporting for many places, patch by external contributor Derek
nenolod
parents:
680
diff
changeset
|
177 void report_error(const gchar *error_text); |
0 | 178 |
2026 | 179 extern GCond *cond_scan; |
180 extern GMutex *mutex_scan; | |
181 | |
1742
4fa99b5e8f24
[svn] - add G_BEGIN_DECLS and G_END_DECLS for C++ users
nenolod
parents:
1741
diff
changeset
|
182 G_END_DECLS |
4fa99b5e8f24
[svn] - add G_BEGIN_DECLS and G_END_DECLS for C++ users
nenolod
parents:
1741
diff
changeset
|
183 |
0 | 184 #endif |