root/sweep/trunk/src/sw_chooser.h

Revision 703, 1.9 kB (checked in by erikd, 2 years ago)

Replace deprecated GTK_CHECK_CLASS_CAST with G_TYPE_CHECK_CLASS_CAST.

  • 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  * Copyright (C) 2002 Commonwealth Scientific and Industrial Research
6  * Organisation (CSIRO), Australia
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef __SW_CHOOSER_H__
24 #define __SW_CHOOSER_H__
25
26 #define SW_CHOOSER(obj) GTK_CHECK_CAST (obj, sw_chooser_get_type (), SWChooser)
27 #define SW_CHOOSER_CLASS(klass) \
28   G_TYPE_CHECK_CLASS_CAST (klass, sw_chooser_get_type (), SWChooserClass)
29 #define IS_SW_CHOOSER(obj) GTK_CHECK_TYPE (obj, sw_chooser_get_type ())
30
31 typedef struct _SWChooser SWChooser;
32 typedef struct _SWChooserClass SWChooserClass;
33
34 struct _SWChooser {
35   GtkFrame frame;
36
37   gchar * title;
38   gchar * units;
39   gpointer choices;
40 };
41
42 struct _SWChooserClass {
43   GtkFrameClass parent_class;
44  
45   void (*number_changed) (SWChooser * chooser, int number);
46 };
47
48 GType sw_chooser_get_type (void);
49
50 GtkWidget * samplerate_chooser_new (gchar * title);
51 int samplerate_chooser_get_rate (GtkWidget * chooser);
52 int samplerate_chooser_set_rate (GtkWidget * chooser, int rate);
53
54 GtkWidget * channelcount_chooser_new (gchar * title);
55 int channelcount_chooser_get_count (GtkWidget * chooser);
56 int channelcount_chooser_set_count (GtkWidget * chooser, int count);
57
58 #endif /* __SW_CHOOSER_H__ */
Note: See TracBrowser for help on using the browser.