1 /*
2  * Copyright (c) 2005-2006 Jean-François Wauthy (pollux@xfce.org)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 #ifndef __XFBURN_MAIN_WINDOW_H__
20 #define __XFBURN_MAIN_WINDOW_H__
21 
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25 
26 #include <gtk/gtk.h>
27 
28 #include "xfburn-data-composition.h"
29 #include "xfburn-file-browser.h"
30 
31 G_BEGIN_DECLS
32 
33 #define XFBURN_TYPE_MAIN_WINDOW            (xfburn_main_window_get_type ())
34 #define XFBURN_MAIN_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFBURN_TYPE_MAIN_WINDOW, XfburnMainWindow))
35 #define XFBURN_MAIN_WINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), XFBURN_TYPE_MAIN_WINDOW, XfburnMainWindowClass))
36 #define XFBURN_IS_MAIN_WINDOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFBURN_TYPE_MAIN_WINDOW))
37 #define XFBURN_IS_MAIN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFBURN_TYPE_MAIN_WINDOW))
38 #define XFBURN_MAIN_WINDOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XFBURN_TYPE_MAIN_WINDOW, XfburnMainWindowClass))
39 
40 typedef void (* gActionCallback) (GSimpleAction *,GVariant *,gpointer);
41 
42 typedef struct
43 {
44   GtkWindow window;
45 } XfburnMainWindow;
46 
47 typedef struct
48 {
49   GtkWindowClass parent_class;
50 } XfburnMainWindowClass;
51 
52 GType xfburn_main_window_get_type (void);
53 
54 GtkWidget *xfburn_main_window_new (void);
55 XfburnMainWindow *xfburn_main_window_get_instance (void);
56 
57 GtkUIManager *xfburn_main_window_get_ui_manager (XfburnMainWindow *window);
58 XfburnFileBrowser *xfburn_main_window_get_file_browser (XfburnMainWindow *window);
59 
60 void xfburn_main_window_add_data_composition_with_files (XfburnMainWindow *window, int filec, char **filenames);
61 void xfburn_main_window_add_audio_composition_with_files (XfburnMainWindow *window, int filec, char **filenames);
62 
63 gboolean xfburn_main_window_support_cdr (XfburnMainWindow *window);
64 gboolean xfburn_main_window_support_cdrw (XfburnMainWindow *window);
65 
66 G_END_DECLS
67 #endif
68