Mercurial > audlegacy
annotate audacious/mainwin.h @ 2224:4446a9e7bdee trunk
[svn] - memory_pool_alloc_object()
- memory_pool_strdup()
- controlsocket now uses a memory pool for packet data
author | nenolod |
---|---|
date | Fri, 29 Dec 2006 21:01:49 -0800 |
parents | 83c9caf0c554 |
children | ac2ea05e60a0 |
rev | line source |
---|---|
1653 | 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:
1893
diff
changeset
|
9 * the Free Software Foundation; under version 2 of the License. |
1653 | 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 | |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19 */ | |
20 | |
21 #ifndef MAINWIN_H | |
22 #define MAINWIN_H | |
23 | |
24 #include <gtk/gtk.h> | |
25 | |
26 #include "widgets/widgetcore.h" | |
27 | |
28 /* yes, main window size is fixed */ | |
29 #define MAINWIN_WIDTH (gint)275 | |
30 #define MAINWIN_HEIGHT (gint)116 | |
31 #define MAINWIN_TITLEBAR_HEIGHT (gint)14 | |
1878
f83d206f51b7
[svn] - Properly handle shading when mainwin_width is greater than the shaded width.
nhjm449
parents:
1653
diff
changeset
|
32 #define MAINWIN_SHADED_WIDTH MAINWIN_WIDTH |
1653 | 33 #define MAINWIN_SHADED_HEIGHT MAINWIN_TITLEBAR_HEIGHT |
34 | |
35 #define MAINWIN_UPDATE_INTERVAL 10 | |
36 | |
37 #define MAINWIN_DEFAULT_POS_X 20 | |
38 #define MAINWIN_DEFAULT_POS_Y 20 | |
39 | |
40 #define MAINWIN_DEFAULT_FONT "Sans Bold 9" | |
41 | |
42 | |
43 typedef enum { | |
44 TIMER_ELAPSED, | |
45 TIMER_REMAINING | |
46 } TimerMode; | |
47 | |
48 enum { | |
49 MAINWIN_GENERAL_ABOUT, | |
50 | |
51 MAINWIN_GENERAL_PLAYFILE, | |
52 MAINWIN_GENERAL_PLAYLOCATION, | |
53 | |
54 MAINWIN_GENERAL_FILEINFO, | |
55 MAINWIN_GENERAL_PREFS, | |
56 | |
57 MAINWIN_GENERAL_SHOWMWIN, | |
58 MAINWIN_GENERAL_SHOWPLWIN, | |
59 | |
60 MAINWIN_GENERAL_FOCUSMWIN, | |
61 MAINWIN_GENERAL_FOCUSPLWIN, | |
62 | |
63 MAINWIN_GENERAL_SHOWEQWIN, | |
64 MAINWIN_GENERAL_PLAYCD, | |
65 MAINWIN_GENERAL_EXIT, | |
66 | |
67 MAINWIN_GENERAL_ADDCD, | |
68 | |
69 MAINWIN_GENERAL_PREV, | |
70 MAINWIN_GENERAL_PLAY, | |
71 MAINWIN_GENERAL_PAUSE, | |
72 MAINWIN_GENERAL_STOP, | |
73 MAINWIN_GENERAL_NEXT, | |
74 MAINWIN_GENERAL_STOPFADE, | |
75 MAINWIN_GENERAL_BACK5SEC, | |
76 MAINWIN_GENERAL_FWD5SEC, | |
77 MAINWIN_GENERAL_START, | |
78 MAINWIN_GENERAL_BACK10, | |
79 MAINWIN_GENERAL_FWD10, | |
80 MAINWIN_GENERAL_JTT, | |
81 MAINWIN_GENERAL_JTF, | |
82 MAINWIN_GENERAL_QUEUE, | |
83 MAINWIN_GENERAL_CQUEUE, | |
84 MAINWIN_GENERAL_VOLUP, | |
1893 | 85 MAINWIN_GENERAL_VOLDOWN, |
86 MAINWIN_GENERAL_SETAB, | |
2124
83c9caf0c554
[svn] - add some basic code for the manipulation of temporary playlists
nenolod
parents:
2105
diff
changeset
|
87 MAINWIN_GENERAL_CLEARAB, |
83c9caf0c554
[svn] - add some basic code for the manipulation of temporary playlists
nenolod
parents:
2105
diff
changeset
|
88 |
83c9caf0c554
[svn] - add some basic code for the manipulation of temporary playlists
nenolod
parents:
2105
diff
changeset
|
89 MAINWIN_GENERAL_NEXT_PL, |
83c9caf0c554
[svn] - add some basic code for the manipulation of temporary playlists
nenolod
parents:
2105
diff
changeset
|
90 MAINWIN_GENERAL_PREV_PL, |
83c9caf0c554
[svn] - add some basic code for the manipulation of temporary playlists
nenolod
parents:
2105
diff
changeset
|
91 MAINWIN_GENERAL_NEW_PL, |
1653 | 92 }; |
93 | |
94 extern GtkWidget *mainwin; | |
95 extern GtkWidget *err; | |
96 extern GdkGC *mainwin_gc; | |
97 | |
98 extern GtkAccelGroup *mainwin_accel; | |
99 | |
100 extern gboolean mainwin_moving; | |
101 extern gboolean mainwin_focus; | |
102 | |
103 extern GtkWidget *mainwin_jtf; | |
104 | |
105 extern GtkItemFactory *mainwin_general_menu; | |
106 extern GtkItemFactory *mainwin_vis_menu; | |
107 extern GtkItemFactory *mainwin_play_menu, *mainwin_view_menu; | |
108 | |
109 extern TextBox *mainwin_stime_min, *mainwin_stime_sec; | |
110 extern TextBox *mainwin_info; | |
111 extern TButton *mainwin_shuffle, *mainwin_repeat, *mainwin_eq, *mainwin_pl; | |
112 | |
113 extern Vis *active_vis; | |
114 extern Vis *mainwin_vis; | |
115 extern SVis *mainwin_svis; | |
116 | |
117 extern PlayStatus *mainwin_playstatus; | |
118 | |
119 extern Number *mainwin_minus_num, *mainwin_10min_num, *mainwin_min_num; | |
120 extern Number *mainwin_10sec_num, *mainwin_sec_num; | |
121 | |
122 extern HSlider *mainwin_sposition; | |
123 | |
124 void mainwin_create(void); | |
125 void read_volume(gint when); | |
126 void play_medium(void); | |
127 void add_medium(void); | |
128 | |
129 void draw_main_window(gboolean); | |
130 | |
131 void mainwin_quit_cb(void); | |
132 void mainwin_lock_info_text(const gchar * text); | |
133 void mainwin_release_info_text(void); | |
134 void mainwin_play_pushed(void); | |
135 void mainwin_stop_pushed(void); | |
136 void mainwin_eject_pushed(void); | |
137 | |
138 void mainwin_rev_pushed(void); | |
139 void mainwin_rev_release(void); | |
140 void mainwin_fwd_pushed(void); | |
141 void mainwin_fwd_release(void); | |
142 | |
143 void mainwin_set_back_pixmap(void); | |
144 | |
145 void mainwin_adjust_volume_motion(gint v); | |
146 void mainwin_adjust_volume_release(void); | |
147 void mainwin_adjust_balance_motion(gint b); | |
148 void mainwin_adjust_balance_release(void); | |
149 void mainwin_set_volume_slider(gint percent); | |
150 void mainwin_set_balance_slider(gint percent); | |
151 | |
152 void mainwin_vis_set_type(VisType mode); | |
153 | |
154 void mainwin_set_info_text(void); | |
155 void mainwin_set_song_info(gint rate, gint freq, gint nch); | |
156 void mainwin_clear_song_info(void); | |
157 void mainwin_set_stopaftersong(gboolean stop); | |
158 | |
159 void mainwin_set_always_on_top(gboolean always); | |
160 void mainwin_set_volume_diff(gint diff); | |
161 void mainwin_set_balance_diff(gint diff); | |
162 | |
163 void mainwin_show(gboolean); | |
164 void mainwin_real_show(void); | |
165 void mainwin_real_hide(void); | |
166 void mainwin_move(gint x, gint y); | |
167 void mainwin_shuffle_pushed(gboolean toggled); | |
168 void mainwin_repeat_pushed(gboolean toggled); | |
169 void mainwin_disable_seekbar(void); | |
170 void mainwin_set_title(const gchar * text); | |
171 void mainwin_show_add_url_window(void); | |
172 void mainwin_minimize_cb(void); | |
173 void mainwin_general_menu_callback(gpointer cb_data, | |
174 guint action, | |
175 GtkWidget * widget); | |
176 | |
177 void mainwin_attach_idle_func(void); | |
178 void mainwin_drag_data_received(GtkWidget * widget, | |
179 GdkDragContext * context, | |
180 gint x, | |
181 gint y, | |
182 GtkSelectionData * selection_data, | |
183 guint info, | |
184 guint time, | |
185 gpointer user_data); | |
186 | |
187 void mainwin_setup_menus(void); | |
188 | |
189 void mainwin_jump_to_file(void); | |
190 void mainwin_jump_to_time(void); | |
191 | |
192 void mainwin_ewmh_activate(void); | |
193 | |
194 /* FIXME: placed here for now */ | |
195 void playback_get_sample_params(gint * bitrate, | |
196 gint * frequency, | |
197 gint * numchannels); | |
198 | |
199 #endif |