Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-node-type-picker.h

Go to the documentation of this file.
00001 /*This file is part of MlView
00002  *
00003  *MlView is free software; you can redistribute it and/or modify it under the terms of 
00004  *the GNU General Public License as published by the Free Software Foundation; either version 2, 
00005  *or (at your option) any later version.
00006  *
00007  *MlView is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
00008  *without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00009  *See the GNU General Public License for more details.
00010  *
00011  *You should have received a copy of the GNU General Public License along with MlView; 
00012  *see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00013  *
00014  *
00015  *Copyright 2001-2002 Dodji Seketeli
00016  */
00017 
00026 #ifndef __MLV_ELTYPE_PICKER_H__
00027 #define __MLV_ELTYPE_PICKER_H__
00028 
00029 #include <gnome.h>
00030 #include <libxml/tree.h>
00031 
00032 #include "mlview-app-context.h"
00033 #include "mlview-parsing-utils.h"
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif /*cplusplus*/
00038 
00039 /*common macros to comply with the GtkObject typing system.*/
00040 #define MLVIEW_TYPE_NODE_TYPE_PICKER (mlview_node_type_picker_get_type())
00041 #define MLVIEW_NODE_TYPE_PICKER(object) (GTK_CHECK_CAST((object),MLVIEW_TYPE_NODE_TYPE_PICKER,MlViewNodeTypePicker))
00042 #define MLVIEW_NODE_TYPE_PICKER_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass),MLVIEW_TYPE_NODE_TYPE_PICKER,MlViewNodeTypePickerClass))
00043 #define MLVIEW_IS_NODE_TYPE_PICKER(object) (GTK_CHECK_TYPE((object),MLVIEW_TYPE_NODE_TYPE_PICKER))
00044 #define MLVIEW_IS_NODE_TYPE_PICKER_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass),MLVIEW_TYPE_NODE_TYPE_PICKER))
00045 
00046         typedef struct _MlViewNodeTypePicker MlViewNodeTypePicker ;
00047         typedef struct _MlViewNodeTypePickerClass MlViewNodeTypePickerClass ;
00048         typedef struct _MlViewNodeTypePickerPrivate MlViewNodeTypePickerPrivate ;
00049         
00050         /*The MlViewNodeTypePicker instance definition*/
00051         struct _MlViewNodeTypePicker
00052         {
00053                 GnomeDialog dialog ;
00054                 MlViewNodeTypePickerPrivate * private ;
00055         } ;
00056         
00057         /*The MlViewNodeTypePicker class definition*/
00058         struct _MlViewNodeTypePickerClass
00059         {
00060                 GnomeDialogClass parent_class ;
00061                 /*any signal handler shoud come here*/
00062         };
00063 
00064         /*public methods*/
00065         guint mlview_node_type_picker_get_type (void) ;
00066         guint mlview_node_type_picker_get_selected_node_type (MlViewNodeTypePicker * a_nt_picker) ;
00067         gchar * mlview_node_type_picker_get_selected_node_type_name (MlViewNodeTypePicker * a_nt_picker) ;
00068         gchar *mlview_node_type_picker_get_node_name_or_content (MlViewNodeTypePicker * a_nt_picker) ;
00069 
00070         void mlview_node_type_picker_set_selected_node_type (MlViewNodeTypePicker * a_nt_picker, 
00071                                                              guint a_node_type) ;
00072         void mlview_node_type_picker_set_focus_to_node_name_or_content_entry (MlViewNodeTypePicker *a_nt_picker) ;
00073         void mlview_node_type_picker_select_node_name_or_content_entry_text (MlViewNodeTypePicker *a_nt_picker) ;
00074 
00075         GtkWidget * mlview_node_type_picker_new (MlViewAppContext *a_app_context) ;
00076         GtkWidget * mlview_node_type_picker_new_with_title (gchar * a_title, 
00077                                                             MlViewAppContext *a_app_context) ;
00078         void mlview_node_type_picker_set_on_going_validation (gboolean a_on) ;
00079         gboolean mlview_node_type_picker_on_going_validation_is_on (void) ;
00080         void mlview_node_type_picker_set_title (MlViewNodeTypePicker *a_nt_picker, 
00081                                                 gchar * a_title) ;
00082         void mvliew_node_type_picker_build_element_name_choice_list (MlViewNodeTypePicker * a_picker, 
00083                                                                      enum NODE_INSERTION_SCHEME a_insertion_scheme,
00084                                                                      xmlNode * a_current_xml_node) ;
00085         void mlview_node_type_picker_destroy (GtkObject *a_object) ;
00086         
00087 #ifdef __cplusplus
00088 }
00089 #endif /*cplusplus*/
00090 #endif /*MLVIEW_ELEMENT_TYPE_PICKER*/

Generated on Sat Jul 6 09:57:34 2002 for Gnome-MlView by doxygen1.2.16