Mercurial > audlegacy
annotate audacious/main.h @ 897:eeed0ddebdfc trunk
[svn] - icons woohoo
author | nhjm449 |
---|---|
date | Wed, 29 Mar 2006 22:17:26 -0800 |
parents | 6afdd0d7e1e1 |
children | 83a1c8396625 |
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 | |
887 | 29 #include <sys/types.h> |
30 #include <sys/stat.h> | |
0 | 31 |
32 #define BMP_USER_PLUGIN_DIR_BASENAME "Plugins" | |
33 #define BMP_SKIN_DIR_BASENAME "Skins" | |
34 #define BMP_SKIN_THUMB_DIR_BASENAME ".thumbs" | |
35 #define BMP_ACCEL_BASENAME "accels" | |
36 #define BMP_CONFIG_BASENAME "config" | |
37 #define BMP_PLAYLIST_BASENAME "playlist.m3u" | |
38 #define BMP_LOG_BASENAME "log" | |
39 | |
40 #define PLAYER_HEIGHT \ | |
41 (cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : MAINWIN_HEIGHT) | |
42 #define PLAYER_WIDTH MAINWIN_WIDTH | |
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; | |
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; | |
893
6afdd0d7e1e1
[svn] Make refreshing optional, default to disabled if Gnome VFS available.
nemo
parents:
887
diff
changeset
|
67 gboolean refresh_file_list; |
0 | 68 gboolean smooth_title_scroll; |
69 gboolean use_pl_metadata; | |
70 gboolean warn_about_unplayables; | |
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 vu_mode, vis_refresh; | |
93 gint analyzer_falloff, peaks_falloff; | |
94 gint playlist_position; | |
95 gint pause_between_songs_time; | |
96 gboolean pause_between_songs; | |
97 gboolean show_wm_decorations; | |
98 gint mouse_change; | |
99 gboolean playlist_transparent; | |
100 gint titlestring_preset; | |
101 gchar *gentitle_format; | |
102 gboolean softvolume_enable; | |
103 gboolean xmms_compat_mode; | |
104 gboolean eq_extra_filtering; | |
105 gint scroll_pl_by; | |
106 }; | |
107 | |
108 typedef struct _BmpConfig BmpConfig; | |
109 | |
110 enum { | |
111 VOLSET_STARTUP, | |
112 VOLSET_UPDATE, | |
113 VOLUME_ADJUSTED, | |
114 VOLUME_SET | |
115 }; | |
116 | |
117 enum { | |
118 BMP_PATH_LOG_FILE, | |
119 BMP_PATH_USER_DIR, | |
120 BMP_PATH_USER_PLUGIN_DIR, | |
121 BMP_PATH_USER_SKIN_DIR, | |
122 BMP_PATH_SKIN_THUMB_DIR, | |
123 BMP_PATH_ACCEL_FILE, | |
124 BMP_PATH_CONFIG_FILE, | |
125 BMP_PATH_PLAYLIST_FILE, | |
126 BMP_PATH_COUNT | |
127 }; | |
128 | |
129 extern BmpConfig cfg; | |
130 extern BmpConfig bmp_default_config; | |
131 | |
132 extern gchar *bmp_paths[]; | |
133 | |
134 extern const gchar *bmp_titlestring_presets[]; | |
135 extern const guint n_titlestring_presets; | |
136 | |
137 extern GList *dock_window_list; | |
138 extern gboolean pposition_broken; | |
139 | |
486 | 140 extern gboolean starting_up; |
141 | |
680
8282b365f6cb
[svn] - Add some sanity checking to make sure we can't do X11 stuff when running headless.
nenolod
parents:
486
diff
changeset
|
142 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
|
143 |
0 | 144 void bmp_config_save(void); |
145 void bmp_config_load(void); | |
887 | 146 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
|
147 void report_error(const gchar *error_text); |
0 | 148 |
149 #endif |