1 /*
2  * Copyright (C) 2003, 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 HISTORYBOX_H_INCLUDED
23 #define HISTORYBOX_H_INCLUDED
24 
25 #include <gtk/gtk.h>
26 
27 #define HISTORY_BOX(obj) GTK_CHECK_CAST(obj,history_box_get_type(),HistoryBox)
28 #define HISTORY_BOX_CLASS(klass) GTK_CHECK_CLASS_CAST(klass,history_box_get_type(),HistoryBoxClass)
29 #define IS_HISTORY_BOX(obj) GTK_CHECK_TYPE(obj,history_box_get_type())
30 
31 typedef struct {
32      GtkCombo combo;
33      gpointer history;
34 } HistoryBox;
35 
36 typedef struct {
37      GtkComboClass comboclass;
38 } HistoryBoxClass;
39 
40 GtkType history_box_get_type(void);
41 GtkWidget *history_box_new(gchar *historyname, gchar *value);
42 gchar *history_box_get_value(HistoryBox *box);
43 void history_box_set_history(HistoryBox *box, gchar *historyname);
44 void history_box_set_value(HistoryBox *box, gchar *value);
45 void history_box_rotate_history(HistoryBox *box);
46 
47 #endif
48