1 /*
2  * Copyright (C) 2003 2006 2011, 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 GOTODIALOG_H_INCLUDED
23 #define GOTODIALOG_H_INCLUDED
24 
25 #include <gtk/gtk.h>
26 #include "float_box.h"
27 #include "mainwindow.h"
28 
29 #define GOTO_DIALOG(obj) GTK_CHECK_CAST(obj,goto_dialog_get_type(),GotoDialog)
30 #define GOTO_DIALOG_CLASS(klass) GTK_CHECK_CLASS_CAST(klass,goto_dialog_get_type(),GotoDialogClass)
31 #define IS_GOTO_DIALOG(obj) GTK_CHECK_TYPE(obj,goto_dialog_get_type())
32 
33 #define GOTO_DIALOG_POS_AFTER_BEG_FILE 0
34 #define GOTO_DIALOG_POS_AFTER_END_FILE 1
35 #define GOTO_DIALOG_POS_AFTER_CURSOR 2
36 #define GOTO_DIALOG_POS_AFTER_BEG_SEL 3
37 #define GOTO_DIALOG_POS_AFTER_END_SEL 4
38 
39 #define GOTO_DIALOG_UNIT_SECONDS 0
40 #define GOTO_DIALOG_UNIT_SAMPLES 1
41 
42 typedef struct _GotoDialog {
43      GtkWindow parent;
44      Mainwindow *mw;
45      Floatbox *offset;
46      GtkToggleButton *relbuttons[5];
47      GtkToggleButton *unitbuttons[2];
48 } GotoDialog;
49 
50 typedef struct _GotoDialogClass {
51      GtkWindowClass edc;
52 } GotoDialogClass;
53 
54 GtkType goto_dialog_get_type(void);
55 GtkWidget *goto_dialog_new(Mainwindow *mw);
56 
57 #endif
58