Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-node-editor.h File Reference

#include <gnome.h>
#include <libxml/tree.h>
#include "mlview-app-context.h"
#include "mlview-xml-document.h"

Go to the source code of this file.

Data Structures

struct  _MlViewNodeEditor
struct  _MlViewNodeEditorClass

Defines

#define MLVIEW_TYPE_NODE_EDITOR   (mlview_node_editor_get_type())
 changes that occur on the xmlNode.

#define MLVIEW_NODE_EDITOR(object)   (GTK_CHECK_CAST((object), MLVIEW_TYPE_NODE_EDITOR, MlViewNodeEditor))
#define MLVIEW_NODE_EDITOR_CLASS(klass)   (GTK_CHECK_CLASS_CAST((klass), MLVIEW_TYPE_NODE_EDITOR, MlViewNodeEditorClass))
#define MLVIEW_IS_NODE_EDITOR(object)   (GTK_CHECK_TYPE((object), MLVIEW_TYPE_NODE_EDITOR))
#define MLVIEW_IS_NODE_EDITOR_CLASS(klass)   (GTK_CHECK_CLASS_TYPE((klass), MLVIEW_TYPE_NODE_EDITOR))

Typedefs

typedef _MlViewNodeEditorPrivate MlViewNodeEditorPrivate
typedef _MlViewNodeEditor MlViewNodeEditor
typedef _MlViewNodeEditorClass MlViewNodeEditorClass

Functions

guint mlview_node_editor_get_type (void)
 Classical dynamic type allocator.

GtkWidget * mlview_node_editor_new (MlViewAppContext *a_app_context)
 Simple instance builder.

void mlview_node_editor_set_application_context (MlViewNodeEditor *a_node_editor, MlViewAppContext *a_app_context)
 mlview_node_editor_set_application_context

MlViewAppContextmlview_node_editor_get_application_context (MlViewNodeEditor *a_node_editor)
xmlNodePtr mlview_node_editor_get_current_xml_node (MlViewNodeEditor *a_editor)
 xmlNodePtr mlview_node_editor_get_current_xml_node:

void mlview_node_editor_edit_xml_node (MlViewNodeEditor *a_editor, MlViewXMLDocument *a_xml_doc, xmlNode *a_node)
 Edits the node current node.

void mlview_node_editor_clear (MlViewNodeEditor *a_editor)
 Visualy (only) Clears the element editor.

void mlview_node_editor_set_editable (MlViewNodeEditor *a_editor, gboolean a_editable)
 Sets the new editable state of the current instance of MlViewNodeEditor.

gpointer mlview_node_editor_get_attached_object (MlViewNodeEditor *a_editor, gchar *a_key)
void mlview_node_editor_set_left_right_percentage (MlViewNodeEditor *a_node_editor, const guint a_percentage)


Define Documentation

#define MLVIEW_IS_NODE_EDITOR object       (GTK_CHECK_TYPE((object), MLVIEW_TYPE_NODE_EDITOR))
 

Definition at line 42 of file mlview-node-editor.h.

Referenced by mlview_node_editor_edit_xml_node(), mlview_node_editor_get_application_context(), and mlview_node_editor_set_application_context().

#define MLVIEW_IS_NODE_EDITOR_CLASS klass       (GTK_CHECK_CLASS_TYPE((klass), MLVIEW_TYPE_NODE_EDITOR))
 

Definition at line 43 of file mlview-node-editor.h.

#define MLVIEW_NODE_EDITOR object       (GTK_CHECK_CAST((object), MLVIEW_TYPE_NODE_EDITOR, MlViewNodeEditor))
 

Definition at line 40 of file mlview-node-editor.h.

Referenced by mlview_xml_doc_tree_view_construct().

#define MLVIEW_NODE_EDITOR_CLASS klass       (GTK_CHECK_CLASS_CAST((klass), MLVIEW_TYPE_NODE_EDITOR, MlViewNodeEditorClass))
 

Definition at line 41 of file mlview-node-editor.h.

#define MLVIEW_TYPE_NODE_EDITOR   (mlview_node_editor_get_type())
 

changes that occur on the xmlNode.

This signals could be catched by a higher level editor that would update a tree or something. This class should provide facilities to attach objects to it, so that the higher level editors that use it could easily associates a visual tree node to an xmlNode being edited. It would be then easier to update the matching visual node when an xmlNode is modified. THAT WOULD BE FAR BETTER THAN NOW !!!

Definition at line 39 of file mlview-node-editor.h.

Referenced by mlview_node_editor_new().


Typedef Documentation

typedef struct _MlViewNodeEditor MlViewNodeEditor
 

Definition at line 46 of file mlview-node-editor.h.

typedef struct _MlViewNodeEditorClass MlViewNodeEditorClass
 

Definition at line 47 of file mlview-node-editor.h.

typedef struct _MlViewNodeEditorPrivate MlViewNodeEditorPrivate
 

Definition at line 45 of file mlview-node-editor.h.


Function Documentation

void mlview_node_editor_clear MlViewNodeEditor   a_editor
 

Visualy (only) Clears the element editor.

Does not free anything.

Definition at line 1662 of file mlview-node-editor.c.

void mlview_node_editor_edit_xml_node MlViewNodeEditor   a_editor,
MlViewXMLDocument   a_xml_doc,
xmlNode *    a_node
 

Edits the node current node.

Definition at line 1597 of file mlview-node-editor.c.

References MLVIEW_IS_NODE_EDITOR, MLVIEW_IS_XML_DOCUMENT, and PRIVATE.

MlViewAppContext* mlview_node_editor_get_application_context MlViewNodeEditor   a_node_editor
 

Definition at line 1570 of file mlview-node-editor.c.

References MLVIEW_IS_NODE_EDITOR, and PRIVATE.

gpointer mlview_node_editor_get_attached_object MlViewNodeEditor   a_editor,
gchar *    a_key
 

xmlNodePtr mlview_node_editor_get_current_xml_node MlViewNodeEditor   a_editor
 

xmlNodePtr mlview_node_editor_get_current_xml_node:

Returns:
a pointer on the xmlNode being edited.

Definition at line 1585 of file mlview-node-editor.c.

References PRIVATE.

guint mlview_node_editor_get_type void   
 

Classical dynamic type allocator.

Definition at line 1363 of file mlview-node-editor.c.

GtkWidget* mlview_node_editor_new MlViewAppContext   a_app_context
 

Simple instance builder.

Definition at line 1542 of file mlview-node-editor.c.

References MLVIEW_TYPE_NODE_EDITOR.

void mlview_node_editor_set_application_context MlViewNodeEditor   a_node_editor,
MlViewAppContext   a_app_context
 

mlview_node_editor_set_application_context

Definition at line 1558 of file mlview-node-editor.c.

References MLVIEW_IS_NODE_EDITOR, and PRIVATE.

Referenced by mlview_xml_doc_tree_view_set_app_context().

void mlview_node_editor_set_editable MlViewNodeEditor   a_editor,
gboolean    a_editable
 

Sets the new editable state of the current instance of MlViewNodeEditor.

Actually, it the current view of the element editor that is set to the editable/non editable state. Also emits the signal "edit state changes".

Definition at line 1679 of file mlview-node-editor.c.

References EDIT_STATE_CHANGED, _MlViewNodeEditorPrivate::iseditable, and PRIVATE.

void mlview_node_editor_set_left_right_percentage MlViewNodeEditor   a_node_editor,
const guint    a_percentage
 

Definition at line 1701 of file mlview-node-editor.c.

References PRIVATE.

Referenced by mlview_xml_doc_tree_view_set_all_paned_proportions().


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