1 /*
2  * Sweep, a sound wave editor.
3  *
4  * Copyright (C) 2000 Conrad Parker
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20 
21 #ifndef __VIEW_H__
22 #define __VIEW_H__
23 
24 #include <gtk/gtk.h>
25 
26 #include <sweep/sweep_types.h>
27 #include "sweep_app.h"
28 
29 sw_view *
30 view_new(sw_sample * sample, sw_framecount_t start,
31 	 sw_framecount_t end, gfloat gain);
32 
33 sw_view *
34 view_new_all(sw_sample * sample, gfloat gain);
35 
36 void
37 view_popup_context_menu (sw_view * view, guint button, guint32 activate_time);
38 
39 void
40 view_set_ends (sw_view * view, sw_framecount_t start, sw_framecount_t end);
41 
42 void
43 view_center_on (sw_view * view, sw_framecount_t offset);
44 
45 void
46 view_zoom_length (sw_view * view, sw_framecount_t length);
47 
48 void
49 view_zoom_normal (sw_view * view);
50 
51 void
52 view_zoom_in (sw_view * view, double ratio);
53 
54 void
55 view_zoom_out (sw_view * view, double ratio);
56 
57 void
58 view_zoom_to_sel (sw_view * view);
59 
60 void
61 view_zoom_left (sw_view * view);
62 
63 void
64 view_zoom_right (sw_view * view);
65 
66 void
67 view_zoom_all (sw_view * view);
68 
69 void
70 view_vzoom_in (sw_view * view, double ratio);
71 
72 void
73 view_vzoom_out (sw_view * view, double ratio);
74 
75 void
76 view_refresh_edit_mode (sw_view * view);
77 
78 #if 0
79 void
80 view_set_play_marker (sw_view * view, int play_offset);
81 
82 void
83 view_set_user_marker (sw_view * view, int user_offset);
84 #endif
85 
86 void
87 view_refresh_playmode (sw_view * view);
88 
89 void
90 view_set_following (sw_view * view, gboolean following);
91 
92 void
93 view_close(sw_view * view);
94 
95 void
96 view_volume_increase (sw_view * view);
97 
98 void
99 view_volume_decrease (sw_view * view);
100 
101 void
102 view_refresh_title(sw_view * view);
103 
104 void
105 view_default_status (sw_view * view);
106 
107 void
108 view_refresh_tool_buttons (sw_view * v);
109 
110 void
111 view_refresh_offset_indicators (sw_view * v);
112 
113 void
114 view_refresh_rec_offset_indicators (sw_view * view);
115 
116 void
117 view_set_progress_text (sw_view * view, gchar * text);
118 
119 void
120 view_set_progress_percent (sw_view * view, gint percent);
121 
122 void
123 view_set_progress_ready (sw_view * view);
124 
125 void
126 view_set_tmp_message (sw_view * view, gchar * message);
127 
128 void
129 view_refresh_hruler (sw_view * v);
130 
131 void
132 view_refresh_display (sw_view * v);
133 
134 void
135 view_refresh_adjustment (sw_view * v);
136 
137 void
138 view_refresh (sw_view * v);
139 
140 void
141 view_refresh_looping (sw_view * v);
142 
143 void
144 view_refresh_playrev (sw_view * view);
145 
146 void
147 view_refresh_mute (sw_view * view);
148 
149 void
150 view_refresh_monitor (sw_view * view);
151 
152 void
153 view_fix_adjustment (sw_view * v);
154 
155 void
156 view_sink_last_tmp_view (void);
157 
158 void
159 view_clear_last_tmp_view (void);
160 
161 #endif /* __VIEW_H__ */
162