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