Mercurial > audlegacy
annotate audacious/mainwin.h @ 653:97113126c7f9 trunk
[svn] - Fix mp3 detection properly.
- Generate thumbnails for nextgen skins as well as WA2.x ones.
author | nenolod |
---|---|
date | Sun, 19 Feb 2006 18:20:51 -0800 |
parents | 041bc95827be |
children | 12c47704b4b5 |
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 MAINWIN_H | |
23 #define MAINWIN_H | |
24 | |
25 #include <gtk/gtk.h> | |
26 | |
27 #include "number.h" | |
28 #include "pbutton.h" | |
29 #include "playstatus.h" | |
30 #include "tbutton.h" | |
31 #include "textbox.h" | |
32 #include "svis.h" | |
33 #include "vis.h" | |
197
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
34 #include "hslider.h" |
0 | 35 |
36 /* yes, main window size is fixed */ | |
37 #define MAINWIN_WIDTH (gint)275 | |
38 #define MAINWIN_HEIGHT (gint)116 | |
39 #define MAINWIN_TITLEBAR_HEIGHT (gint)14 | |
40 #define MAINWIN_SHADED_HEIGHT MAINWIN_TITLEBAR_HEIGHT | |
41 | |
42 #define MAINWIN_UPDATE_INTERVAL 10 | |
43 | |
44 #define MAINWIN_DEFAULT_POS_X 20 | |
45 #define MAINWIN_DEFAULT_POS_Y 20 | |
46 | |
47 #define MAINWIN_DEFAULT_FONT "Sans Bold 9" | |
48 | |
49 | |
50 typedef enum { | |
51 TIMER_ELAPSED, | |
52 TIMER_REMAINING | |
53 } TimerMode; | |
54 | |
55 enum { | |
56 MAINWIN_GENERAL_ABOUT, | |
57 | |
58 MAINWIN_GENERAL_PLAYFILE, | |
59 MAINWIN_GENERAL_PLAYLOCATION, | |
60 | |
61 MAINWIN_GENERAL_FILEINFO, | |
62 MAINWIN_GENERAL_PREFS, | |
63 | |
64 MAINWIN_GENERAL_SHOWMWIN, | |
65 MAINWIN_GENERAL_SHOWPLWIN, | |
66 | |
67 MAINWIN_GENERAL_FOCUSMWIN, | |
68 MAINWIN_GENERAL_FOCUSPLWIN, | |
69 | |
70 MAINWIN_GENERAL_SHOWEQWIN, | |
71 MAINWIN_GENERAL_PLAYCD, | |
72 MAINWIN_GENERAL_EXIT, | |
73 | |
74 MAINWIN_GENERAL_ADDCD, | |
75 | |
76 MAINWIN_GENERAL_PREV, | |
77 MAINWIN_GENERAL_PLAY, | |
78 MAINWIN_GENERAL_PAUSE, | |
79 MAINWIN_GENERAL_STOP, | |
80 MAINWIN_GENERAL_NEXT, | |
81 MAINWIN_GENERAL_STOPFADE, | |
82 MAINWIN_GENERAL_BACK5SEC, | |
83 MAINWIN_GENERAL_FWD5SEC, | |
84 MAINWIN_GENERAL_START, | |
85 MAINWIN_GENERAL_BACK10, | |
86 MAINWIN_GENERAL_FWD10, | |
87 MAINWIN_GENERAL_JTT, | |
88 MAINWIN_GENERAL_JTF, | |
89 MAINWIN_GENERAL_QUEUE, | |
90 MAINWIN_GENERAL_CQUEUE, | |
91 MAINWIN_GENERAL_VOLUP, | |
92 MAINWIN_GENERAL_VOLDOWN | |
93 }; | |
94 | |
95 extern GtkWidget *mainwin; | |
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 | |
197
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
109 extern TextBox *mainwin_stime_min, *mainwin_stime_sec; |
0 | 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 | |
197
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
119 extern Number *mainwin_minus_num, *mainwin_10min_num, *mainwin_min_num; |
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
120 extern Number *mainwin_10sec_num, *mainwin_sec_num; |
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
121 |
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
122 extern HSlider *mainwin_sposition; |
0 | 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 | |
433
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
138 void mainwin_rev_pushed(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
139 void mainwin_rev_release(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
140 void mainwin_fwd_pushed(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
141 void mainwin_fwd_release(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
142 |
0 | 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 | |
158 void mainwin_set_always_on_top(gboolean always); | |
159 void mainwin_set_volume_diff(gint diff); | |
160 void mainwin_set_balance_diff(gint diff); | |
161 | |
162 void mainwin_show(gboolean); | |
163 void mainwin_real_show(void); | |
164 void mainwin_real_hide(void); | |
165 void mainwin_move(gint x, gint y); | |
166 void mainwin_shuffle_pushed(gboolean toggled); | |
167 void mainwin_repeat_pushed(gboolean toggled); | |
168 void mainwin_disable_seekbar(void); | |
169 void mainwin_set_title(const gchar * text); | |
170 void mainwin_show_add_url_window(void); | |
171 void mainwin_minimize_cb(void); | |
172 void mainwin_general_menu_callback(gpointer cb_data, | |
173 guint action, | |
174 GtkWidget * widget); | |
175 | |
176 void mainwin_attach_idle_func(void); | |
177 void mainwin_drag_data_received(GtkWidget * widget, | |
178 GdkDragContext * context, | |
179 gint x, | |
180 gint y, | |
181 GtkSelectionData * selection_data, | |
182 guint info, | |
183 guint time, | |
184 gpointer user_data); | |
185 | |
186 void mainwin_setup_menus(void); | |
187 | |
188 void mainwin_jump_to_file(void); | |
189 void mainwin_jump_to_time(void); | |
190 | |
191 void mainwin_ewmh_activate(void); | |
192 | |
193 /* FIXME: placed here for now */ | |
194 void playback_get_sample_params(gint * bitrate, | |
195 gint * frequency, | |
196 gint * numchannels); | |
197 | |
198 #endif |