Mercurial > audlegacy
annotate audacious/mainwin.h @ 1120:8e6b7ed7dd88 trunk
[svn] - more bandwidth expansion
author | nenolod |
---|---|
date | Tue, 30 May 2006 23:10:32 -0700 |
parents | c800beaac0f9 |
children | f12d7e208b43 |
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; | |
813
c8cf439179b8
[svn] - Fix a ton and a half of memory leaks, via the wonderful Leonardo Boshell <leonardop -at- gentoo.org>.
nenolod
parents:
781
diff
changeset
|
96 extern GtkWidget *err; |
0 | 97 extern GdkGC *mainwin_gc; |
98 | |
99 extern GtkAccelGroup *mainwin_accel; | |
100 | |
101 extern gboolean mainwin_moving; | |
102 extern gboolean mainwin_focus; | |
103 | |
104 extern GtkWidget *mainwin_jtf; | |
105 | |
106 extern GtkItemFactory *mainwin_general_menu; | |
107 extern GtkItemFactory *mainwin_vis_menu; | |
108 extern GtkItemFactory *mainwin_play_menu, *mainwin_view_menu; | |
109 | |
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
|
110 extern TextBox *mainwin_stime_min, *mainwin_stime_sec; |
0 | 111 extern TextBox *mainwin_info; |
112 extern TButton *mainwin_shuffle, *mainwin_repeat, *mainwin_eq, *mainwin_pl; | |
113 | |
114 extern Vis *active_vis; | |
115 extern Vis *mainwin_vis; | |
116 extern SVis *mainwin_svis; | |
117 | |
118 extern PlayStatus *mainwin_playstatus; | |
119 | |
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
|
120 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
|
121 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
|
122 |
ccd034857702
[svn] Split up generic events into audcore_generic_events(), and client-specific stuff remains in mainwin_idle_func().
nenolod
parents:
0
diff
changeset
|
123 extern HSlider *mainwin_sposition; |
0 | 124 |
125 void mainwin_create(void); | |
126 void read_volume(gint when); | |
127 void play_medium(void); | |
128 void add_medium(void); | |
129 | |
130 void draw_main_window(gboolean); | |
131 | |
132 void mainwin_quit_cb(void); | |
133 void mainwin_lock_info_text(const gchar * text); | |
134 void mainwin_release_info_text(void); | |
135 void mainwin_play_pushed(void); | |
136 void mainwin_stop_pushed(void); | |
137 void mainwin_eject_pushed(void); | |
138 | |
433
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
139 void mainwin_rev_pushed(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
140 void mainwin_rev_release(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
141 void mainwin_fwd_pushed(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
142 void mainwin_fwd_release(void); |
041bc95827be
[svn] Convert prev/next buttons to tristate, via create_pbutton_ex().
nenolod
parents:
331
diff
changeset
|
143 |
0 | 144 void mainwin_set_back_pixmap(void); |
145 | |
146 void mainwin_adjust_volume_motion(gint v); | |
147 void mainwin_adjust_volume_release(void); | |
148 void mainwin_adjust_balance_motion(gint b); | |
149 void mainwin_adjust_balance_release(void); | |
150 void mainwin_set_volume_slider(gint percent); | |
151 void mainwin_set_balance_slider(gint percent); | |
152 | |
153 void mainwin_vis_set_type(VisType mode); | |
154 | |
155 void mainwin_set_info_text(void); | |
156 void mainwin_set_song_info(gint rate, gint freq, gint nch); | |
157 void mainwin_clear_song_info(void); | |
898 | 158 void mainwin_set_stopaftersong(gboolean stop); |
0 | 159 |
160 void mainwin_set_always_on_top(gboolean always); | |
161 void mainwin_set_volume_diff(gint diff); | |
162 void mainwin_set_balance_diff(gint diff); | |
163 | |
164 void mainwin_show(gboolean); | |
165 void mainwin_real_show(void); | |
166 void mainwin_real_hide(void); | |
167 void mainwin_move(gint x, gint y); | |
168 void mainwin_shuffle_pushed(gboolean toggled); | |
169 void mainwin_repeat_pushed(gboolean toggled); | |
170 void mainwin_disable_seekbar(void); | |
171 void mainwin_set_title(const gchar * text); | |
172 void mainwin_show_add_url_window(void); | |
173 void mainwin_minimize_cb(void); | |
174 void mainwin_general_menu_callback(gpointer cb_data, | |
175 guint action, | |
176 GtkWidget * widget); | |
177 | |
178 void mainwin_attach_idle_func(void); | |
179 void mainwin_drag_data_received(GtkWidget * widget, | |
180 GdkDragContext * context, | |
181 gint x, | |
182 gint y, | |
183 GtkSelectionData * selection_data, | |
184 guint info, | |
185 guint time, | |
186 gpointer user_data); | |
187 | |
188 void mainwin_setup_menus(void); | |
189 | |
190 void mainwin_jump_to_file(void); | |
191 void mainwin_jump_to_time(void); | |
192 | |
193 void mainwin_ewmh_activate(void); | |
194 | |
195 /* FIXME: placed here for now */ | |
196 void playback_get_sample_params(gint * bitrate, | |
197 gint * frequency, | |
198 gint * numchannels); | |
199 | |
200 #endif |