Mercurial > audlegacy
annotate src/audacious/main.h @ 3202:e9f66c3905ec trunk
Migrate relevant libRCD code to libguess.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Wed, 01 Aug 2007 07:48:03 -0500 |
parents | f1c756f39e6c |
children | 2619f4c62abe |
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 | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2968
diff
changeset
|
12 * the Free Software Foundation; under version 3 of the License. |
2313 | 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 | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2968
diff
changeset
|
20 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
21 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
22 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
23 * Audacious or using our public API to be a derived work. |
2313 | 24 */ |
25 | |
2386 | 26 #ifndef AUD_MAIN_H |
27 #define AUD_MAIN_H | |
2313 | 28 |
29 #ifdef _AUDACIOUS_CORE | |
30 # include "widgets/widgetcore.h" | |
31 # include "ui_main.h" | |
32 #endif | |
33 | |
34 #include <sys/types.h> | |
35 #include <sys/stat.h> | |
36 | |
37 G_BEGIN_DECLS | |
38 | |
39 #define PLAYER_HEIGHT \ | |
40 ((cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) * (cfg.doublesize + 1)) | |
41 #define PLAYER_WIDTH \ | |
42 (MAINWIN_WIDTH * (cfg.doublesize + 1)) | |
43 | |
44 struct _BmpConfig { | |
45 gint player_x, player_y; | |
46 gint equalizer_x, equalizer_y; | |
47 gint playlist_x, playlist_y; | |
48 gint playlist_width, playlist_height; | |
49 gint snap_distance; | |
50 gboolean use_realtime; | |
51 gboolean shuffle, repeat; | |
52 gboolean doublesize, autoscroll; | |
53 gboolean analyzer_peaks, equalizer_autoload, easy_move, equalizer_active; | |
54 gboolean playlist_visible, equalizer_visible, player_visible; | |
55 gboolean player_shaded, playlist_shaded, equalizer_shaded; | |
56 gboolean allow_multiple_instances, always_show_cb; | |
57 gboolean convert_underscore, convert_twenty, convert_slash; | |
58 gboolean show_numbers_in_pl; | |
59 gboolean snap_windows, save_window_position; | |
60 gboolean dim_titlebar; | |
61 gboolean get_info_on_load, get_info_on_demand; | |
62 gboolean eq_doublesize_linked; | |
63 gboolean sort_jump_to_file; | |
64 gboolean use_eplugins; | |
65 gboolean always_on_top, sticky; | |
66 gboolean no_playlist_advance; | |
67 gboolean stopaftersong; | |
68 gboolean refresh_file_list; | |
69 gboolean smooth_title_scroll; | |
70 gboolean use_pl_metadata; | |
71 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
|
72 gboolean warn_about_win_visibility; |
2313 | 73 gboolean use_backslash_as_dir_delimiter; |
74 gboolean random_skin_on_play; | |
75 gboolean use_fontsets; | |
76 gboolean mainwin_use_xfont; | |
77 gboolean custom_cursors; | |
78 gboolean close_dialog_open; | |
79 gboolean close_dialog_add; | |
80 gfloat equalizer_preamp, equalizer_bands[10]; | |
81 gchar *skin; | |
82 gchar *outputplugin; | |
83 gchar *filesel_path; | |
84 gchar *playlist_path; | |
85 gchar *playlist_font, *mainwin_font; | |
86 gchar *disabled_iplugins; | |
87 gchar *enabled_gplugins, *enabled_vplugins, *enabled_eplugins; | |
88 gchar *eqpreset_default_file, *eqpreset_extension; | |
89 GList *url_history; | |
90 gint timer_mode; | |
91 gint vis_type; | |
92 gint analyzer_mode, analyzer_type; | |
93 gint scope_mode; | |
94 gint voiceprint_mode; | |
95 gint vu_mode, vis_refresh; | |
96 gint analyzer_falloff, peaks_falloff; | |
97 gint playlist_position; | |
98 gint pause_between_songs_time; | |
99 gboolean pause_between_songs; | |
100 gboolean show_wm_decorations; | |
101 gint mouse_change; | |
102 gboolean playlist_transparent; | |
103 gint titlestring_preset; | |
104 gchar *gentitle_format; | |
105 gboolean softvolume_enable; | |
106 gboolean xmms_compat_mode; | |
107 gboolean eq_extra_filtering; | |
108 gint scroll_pl_by; | |
109 gboolean resume_playback_on_startup; | |
110 gint resume_playback_on_startup_time; | |
111 gboolean show_separator_in_pl; | |
112 gchar *chardet_detector; | |
113 gchar *chardet_fallback; | |
114 gint output_buffer_size; | |
115 gboolean playlist_detect; | |
116 gboolean show_filepopup_for_tuple; | |
117 gchar *cover_name_include, *cover_name_exclude; | |
118 gboolean recurse_for_cover; | |
119 gint recurse_for_cover_depth; | |
120 gchar *session_uri_base; | |
121 gint filepopup_pixelsize; | |
122 gint filepopup_delay; | |
123 gboolean use_file_cover; | |
124 gboolean use_xmms_style_fileselector; | |
125 gboolean use_extension_probing; | |
126 gint colorize_r; gint colorize_g; gint colorize_b; | |
127 gboolean terminate; | |
2405 | 128 gboolean filepopup_showprogressbar; |
2805
6295535fbf49
[svn] - add toggle button to keep jtf dialog opened on jump.
yaz
parents:
2682
diff
changeset
|
129 gboolean close_jtf_dialog; |
2968
83f03505f819
add support for one-way text scroll.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2908
diff
changeset
|
130 gboolean twoway_scroll; |
2313 | 131 }; |
132 | |
133 typedef struct _BmpConfig BmpConfig; | |
134 | |
135 enum { | |
136 VOLSET_STARTUP, | |
137 VOLSET_UPDATE, | |
138 VOLUME_ADJUSTED, | |
139 VOLUME_SET | |
140 }; | |
141 | |
142 enum { | |
143 BMP_PATH_LOG_FILE, | |
144 BMP_PATH_USER_DIR, | |
145 BMP_PATH_USER_PLUGIN_DIR, | |
146 BMP_PATH_USER_SKIN_DIR, | |
147 BMP_PATH_SKIN_THUMB_DIR, | |
148 BMP_PATH_ACCEL_FILE, | |
149 BMP_PATH_CONFIG_FILE, | |
150 BMP_PATH_PLAYLIST_FILE, | |
2463 | 151 BMP_PATH_GTKRC_FILE, |
2313 | 152 BMP_PATH_COUNT |
153 }; | |
154 | |
155 extern BmpConfig cfg; | |
156 extern BmpConfig bmp_default_config; | |
157 | |
158 extern gchar *bmp_paths[]; | |
159 | |
160 extern const gchar *bmp_titlestring_presets[]; | |
161 extern const guint n_titlestring_presets; | |
162 | |
163 extern const gchar *chardet_detector_presets[]; | |
164 extern const guint n_chardet_detector_presets; | |
165 | |
166 extern GList *dock_window_list; | |
167 | |
168 extern gboolean has_x11_connection; | |
169 | |
170 void bmp_config_save(void); | |
171 void bmp_config_load(void); | |
2682
c3cd6e47faf6
[svn] - make the evil 'reload plugins' button behave a bit better
giacomo
parents:
2651
diff
changeset
|
172 void bmp_config_free(void); |
2313 | 173 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
|
174 void report_error(const gchar *error_message, ...); |
2313 | 175 |
176 extern GCond *cond_scan; | |
177 extern GMutex *mutex_scan; | |
178 | |
179 G_END_DECLS | |
180 | |
181 #endif |