A document filename is accepted on the command line now.
[raktpdf.git] / src / rakt-window.h
1 /*
2  * Copyright (C) 2007 Tilman Sauerbeck (tilman at code-monkey de)
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (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 GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __RAKT_WINDOW_H
21 #define __RAKT_WINDOW_H
22
23 #include <gtk/gtkwindow.h>
24
25 G_BEGIN_DECLS
26
27 #define RAKT_TYPE_WINDOW \
28         (rakt_window_get_type ())
29 #define RAKT_WINDOW(obj) \
30         (G_TYPE_CHECK_INSTANCE_CAST ((obj), RAKT_TYPE_WINDOW, RaktWindow))
31 #define RAKT_WINDOW_CLASS(klass) \
32         (G_TYPE_CHECK_CLASS_CAST ((klass), RAKT_TYPE_WINDOW, RaktWindowClass))
33 #define RAKT_IS_WINDOW(obj) \
34         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RAKT_TYPE_WINDOW))
35 #define RAKT_IS_WINDOW_CLASS(klass) \
36         (G_TYPE_CHECK_CLASS_TYPE ((klass), RAKT_TYPE_WINDOW))
37 #define RAKT_WINDOW_GET_CLASS(obj) \
38         (G_TYPE_INSTANCE_GET_CLASS ((obj), RAKT_TYPE_WINDOW, RaktWindowClass))
39
40 typedef struct {
41         GtkWindow parent_instance;
42 } RaktWindow;
43
44 typedef struct {
45         GtkWindowClass parent_class;
46         void (*quitting) (RaktWindow *window);
47 } RaktWindowClass;
48
49 GType rakt_window_get_type (void);
50 GtkWidget *rakt_window_new (void);
51
52 void rakt_window_open_document (RaktWindow *window, const gchar *uri);
53
54 G_END_DECLS
55
56 #endif