1 /*
2  * Copyright (C) 2002 2003 2005 2012, Magnus Hjorth
3  *
4  * This file is part of mhWaveEdit.
5  *
6  * mhWaveEdit 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  * mhWaveEdit 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 mhWaveEdit; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 
22 #ifndef FORMATSELECTOR_H_INCLUDED
23 #define FORMATSELECTOR_H_INCLUDED
24 
25 #include <gtk/gtk.h>
26 #include "combo.h"
27 #include "dataformat.h"
28 #include "int_box.h"
29 
30 #define FORMAT_SELECTOR(obj) GTK_CHECK_CAST(obj,format_selector_get_type(),FormatSelector)
31 #define FORMAT_SELECTOR_CLASS(klass) GTK_CHECK_CLASS_CAST(klass,format_selector_get_type(),FormatSelectorClass)
32 #define IS_FORMAT_SELECTOR(obj) GTK_CHECK_TYPE(obj,format_selector_get_type())
33 
34 typedef struct {
35 
36      GtkTable table;
37 
38      Combo *samplesize_combo,*sign_combo,*endian_combo,*packing_combo;
39      Combo *channel_combo;
40      Intbox *rate_box;
41 
42 } FormatSelector;
43 
44 typedef struct {
45      GtkTableClass table_class;
46 } FormatSelectorClass;
47 
48 GtkType format_selector_get_type(void);
49 GtkWidget *format_selector_new(gboolean show_full);
50 void format_selector_set(FormatSelector *fs, Dataformat *format);
51 void format_selector_get(FormatSelector *fs, Dataformat *result);
52 void format_selector_set_from_inifile(FormatSelector *fs, gchar *ini_prefix);
53 void format_selector_save_to_inifile(FormatSelector *fs, gchar *ini_prefix);
54 gboolean format_selector_check(FormatSelector *fs);
55 
56 #endif
57