root/sweep/trunk/src/sample.h

Revision 124, 2.0 kB (checked in by conrad, 8 years ago)

updated to 0.8.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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 __SAMPLE_H__
22 #define __SAMPLE_H__
23
24 #include <sweep/sweep_types.h>
25 #include "sweep_app.h"
26
27 void
28 create_sample_new_dialog_defaults (char * pathname);
29
30 void
31 create_sample_new_dialog_like (sw_sample * s);
32
33 void
34 sample_add_view (sw_sample * s, sw_view * v);
35
36 void
37 sample_remove_view (sw_sample * s, sw_view * v);
38
39 gint
40 sample_clear_tmp_message (gpointer data);
41
42 void
43 sample_set_monitor (sw_sample * s, gboolean monitor);
44
45 void
46 sample_set_offset_next_bound_left (sw_sample * s);
47
48 void
49 sample_set_offset_next_bound_right (sw_sample * s);
50
51 void
52 sample_refresh_rec_marker (sw_sample * s);
53
54 /*
55  * Functions to handle the temporary selection.
56  */
57
58 void
59 sample_clear_tmp_sel (sw_sample * s);
60
61 /* sample_set_tmp_sel (s, tsel)
62  *
63  * sets the tmp_sel of sample s to a list containing only tsel.
64  * If tsel was part of the actual selection of s, it is first
65  * removed from the selection.
66  */
67 void
68 sample_set_tmp_sel (sw_sample * s, sw_view * tview, sw_sel * tsel);
69
70 void
71 sample_set_tmp_sel_1 (sw_sample * s, sw_view * tview,
72                            sw_framecount_t start, sw_framecount_t end);
73
74 void
75 sample_selection_insert_tmp_sel (sw_sample * s);
76
77 void
78 sample_selection_subtract_tmp_sel (sw_sample * s);
79
80 void
81 sample_selection_replace_with_tmp_sel (sw_sample * s);
82
83 #endif /* __SAMPLE_H__ */
Note: See TracBrowser for help on using the browser.