1 /* gdict-source-dialog.h - source dialog
2  *
3  * This file is part of GNOME Dictionary
4  *
5  * Copyright (C) 2005 Emmanuele Bassi
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GDICT_SOURCE_DIALOG_H__
22 #define __GDICT_SOURCE_DIALOG_H__
23 
24 #include <gtk/gtk.h>
25 #include "gdict.h"
26 
27 G_BEGIN_DECLS
28 
29 #define GDICT_TYPE_SOURCE_DIALOG 	(gdict_source_dialog_get_type ())
30 #define GDICT_SOURCE_DIALOG(obj) 	(G_TYPE_CHECK_INSTANCE_CAST ((obj), GDICT_TYPE_SOURCE_DIALOG, GdictSourceDialog))
31 #define GDICT_IS_SOURCE_DIALOG(obj) 	(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDICT_TYPE_SOURCE_DIALOG))
32 
33 typedef enum
34 {
35   GDICT_SOURCE_DIALOG_VIEW,
36   GDICT_SOURCE_DIALOG_CREATE,
37   GDICT_SOURCE_DIALOG_EDIT
38 } GdictSourceDialogAction;
39 
40 typedef struct _GdictSourceDialog      GdictSourceDialog;
41 typedef struct _GdictSourceDialogClass GdictSourceDialogClass;
42 
43 GType      gdict_source_dialog_get_type (void) G_GNUC_CONST;
44 GtkWidget *gdict_source_dialog_new      (GtkWindow               *parent,
45 					 const gchar             *title,
46 					 GdictSourceDialogAction  action,
47 					 GdictSourceLoader       *loader,
48 					 const gchar             *source_name);
49 
50 G_END_DECLS
51 
52 #endif /* __GDICT_SOURCE_DIALOG_H__ */
53