1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) 2013 Carl-Anton Ingmarsson <carlantoni@src.gnome.org>
6 * This program 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.
11 * This program 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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef _QUICK_OPEN_DIALOG_H_
22 #define _QUICK_OPEN_DIALOG_H_
25 #include <libanjuta/interfaces/ianjuta-document.h>
29 #define QUICK_TYPE_OPEN_DIALOG (quick_open_dialog_get_type ())
30 #define QUICK_OPEN_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QUICK_TYPE_OPEN_DIALOG, QuickOpenDialog))
31 #define QUICK_OPEN_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QUICK_TYPE_OPEN_DIALOG, QuickOpenDialogClass))
32 #define QUICK_IS_OPEN_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QUICK_TYPE_OPEN_DIALOG))
33 #define QUICK_IS_OPEN_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QUICK_TYPE_OPEN_DIALOG))
34 #define QUICK_OPEN_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QUICK_TYPE_OPEN_DIALOG, QuickOpenDialogClass))
36 typedef struct _QuickOpenDialogClass QuickOpenDialogClass
;
37 typedef struct _QuickOpenDialog QuickOpenDialog
;
38 typedef struct _QuickOpenDialogPrivate QuickOpenDialogPrivate
;
41 struct _QuickOpenDialogClass
43 GtkDialogClass parent_class
;
46 struct _QuickOpenDialog
48 GtkDialog parent_instance
;
50 QuickOpenDialogPrivate
* priv
;
53 GType
quick_open_dialog_get_type(void) G_GNUC_CONST
;
55 QuickOpenDialog
* quick_open_dialog_new(void);
58 void quick_open_dialog_add_document (QuickOpenDialog
* self
,
59 IAnjutaDocument
* document
);
61 void quick_open_dialog_remove_document (QuickOpenDialog
* self
,
62 IAnjutaDocument
* document
);
64 void quick_open_dialog_set_project_root (QuickOpenDialog
* self
,
67 void quick_open_dialog_add_project_files (QuickOpenDialog
* self
,
70 void quick_open_dialog_add_project_file (QuickOpenDialog
* self
,
73 GObject
* quick_open_dialog_get_selected_object (QuickOpenDialog
* self
);
77 #endif /* _QUICK_OPEN_DIALOG_H_ */