1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ 2 /* 3 * Copyright (C) 2008 Sven Herzberg 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License as 7 * published by the Free Software Foundation; either version 2 of the 8 * License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 18 * USA 19 */ 20 21 #ifndef __DH_ASSISTANT_VIEW_H__ 22 #define __DH_ASSISTANT_VIEW_H__ 23 24 #include <webkit/webkit.h> 25 #include "dh-base.h" 26 #include "dh-link.h" 27 28 G_BEGIN_DECLS 29 30 #define DH_TYPE_ASSISTANT_VIEW (dh_assistant_view_get_type ()) 31 #define DH_ASSISTANT_VIEW(i) (G_TYPE_CHECK_INSTANCE_CAST ((i), DH_TYPE_ASSISTANT_VIEW, DhAssistantView)) 32 #define DH_ASSISTANT_VIEW_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), DH_TYPE_ASSISTANT_VIEW, DhAssistantViewClass)) 33 #define DH_IS_ASSISTANT_VIEW(i) (G_TYPE_CHECK_INSTANCE_TYPE ((i), DH_TYPE_ASSISTANT_VIEW)) 34 #define DH_IS_ASSISTANT_VIEW_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), DH_ASSISTANT_VIEW)) 35 #define DH_ASSISTANT_VIEW_GET_CLASS(i) (G_TYPE_INSTANCE_GET_CLASS ((i), DH_TYPE_ASSISTANT_VIEW, DhAssistantView)) 36 37 typedef struct _DhAssistantView DhAssistantView; 38 typedef struct _DhAssistantViewClass DhAssistantViewClass; 39 40 struct _DhAssistantView { 41 WebKitWebView parent_instance; 42 }; 43 44 struct _DhAssistantViewClass { 45 WebKitWebViewClass parent_class; 46 }; 47 48 GType dh_assistant_view_get_type (void) G_GNUC_CONST; 49 GtkWidget* dh_assistant_view_new (void); 50 gboolean dh_assistant_view_search (DhAssistantView *view, 51 const gchar *str); 52 DhBase* dh_assistant_view_get_base (DhAssistantView *view); 53 void dh_assistant_view_set_base (DhAssistantView *view, 54 DhBase *base); 55 gboolean dh_assistant_view_set_link (DhAssistantView *view, 56 DhLink *link); 57 G_END_DECLS 58 59 #endif /* __DH_ASSISTANT_VIEW_H__ */ 60