Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-xml-doc-tree-view.c File Reference

#include "mlview-xml-doc-tree-view.h"
#include "mlview-tree-editor.h"

Go to the source code of this file.

Data Structures

struct  _MlViewXMLDocTreeViewPrivate

Defines

#define PRIVATE(tree_view)   (tree_view->private)

Enumerations

enum  { DOCUMENT_CHANGED, SIGNAL_NUM }

Functions

guint mlview_xml_doc_tree_view_get_type (void)
MlViewTreeEditormlview_xml_doc_tree_view_get_tree_editor (MlViewXMLDocTreeView *a_tree_view)
MlViewNodeEditormlview_xml_doc_tree_view_get_node_editor (MlViewXMLDocTreeView *a_tree_view)
GtkWidget * mlview_xml_doc_tree_view_new (MlViewXMLDocument *a_mlview_xml_doc, gchar *a_name, MlViewAppContext *a_app_context)
void mlview_xml_doc_tree_view_set_app_context (MlViewXMLDocTreeView *a_tree_view, MlViewAppContext *a_app_context)
void mlview_xml_doc_tree_view_construct (MlViewXMLDocTreeView *a_tree_view, MlViewXMLDocument *a_mlview_xml_doc, gchar *a_name, MlViewAppContext *a_app_context)
void mlview_xml_doc_tree_view_add_child_node_interactive (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_insert_prev_sibling_node_interactive (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_insert_next_sibling_node_interactive (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_cut_node (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_copy_node (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_paste_node_as_child (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_paste_node_as_prev_sibling (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_paste_node_as_next_sibling (MlViewXMLDocTreeView *a_tree_view)
GtkCTreeNode * mlview_xml_doc_tree_view_find_xml_node_that_contains_str_interactive (MlViewXMLDocTreeView *a_tree_view)
void mlview_xml_doc_tree_view_set_upper_paned1_proportions (MlViewXMLDocTreeView *a_tree_view, const guint a_percentage)
void mlview_xml_doc_tree_view_set_main_paned_proportions (MlViewXMLDocTreeView *a_tree_view, const guint a_percentage)
 Sets the GtkPaned top/bottom proportions of the main paned to a_percentage.

void mlview_xml_doc_tree_view_set_all_paned_proportions (MlViewXMLDocTreeView *a_tree_view, const guint a_main_paned_percentage, const guint a_node_editor_paned_percentage)
void mlview_xml_doc_tree_view_set_xml_document_path (MlViewXMLDocTreeView *a_view, gchar *a_file_path)
 Sets the title of the xml DOM to @a_file_path.

void mlview_xml_doc_tree_view_expand_tree_to_depth_interactive (MlViewXMLDocTreeView *a_view)
 Opens a dialog box to ask the user the depth to which the tree should be expanded and expands the tree to that depths.

void mlview_xml_doc_tree_view_update_contextual_menu (MlViewXMLDocTreeView *a_view, GtkMenu **a_menu_ptr)


Define Documentation

#define PRIVATE tree_view       (tree_view->private)
 

Definition at line 47 of file mlview-xml-doc-tree-view.c.

Referenced by mlview_xml_doc_tree_view_construct(), mlview_xml_doc_tree_view_expand_tree_to_depth_interactive(), mlview_xml_doc_tree_view_get_tree_editor(), mlview_xml_doc_tree_view_new(), mlview_xml_doc_tree_view_set_all_paned_proportions(), mlview_xml_doc_tree_view_set_app_context(), mlview_xml_doc_tree_view_set_upper_paned1_proportions(), mlview_xml_doc_tree_view_set_xml_document_path(), and mlview_xml_doc_tree_view_update_contextual_menu().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
DOCUMENT_CHANGED 
SIGNAL_NUM 

Definition at line 42 of file mlview-xml-doc-tree-view.c.


Function Documentation

void mlview_xml_doc_tree_view_add_child_node_interactive MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1197 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_add_child_node_interactive(), and mlview_xml_doc_tree_view_get_tree_editor().

Referenced by mlview_editor_add_child_node_interactive().

void mlview_xml_doc_tree_view_construct MlViewXMLDocTreeView   a_tree_view,
MlViewXMLDocument   a_mlview_xml_doc,
gchar *    a_name,
MlViewAppContext   a_app_context
 

Definition at line 1043 of file mlview-xml-doc-tree-view.c.

References MLVIEW_IS_XML_DOC_TREE_VIEW, MLVIEW_NODE_EDITOR, MLVIEW_TREE_EDITOR, mlview_tree_editor_edit_xml_doc(), MLVIEW_XML_DOCUMENT_VIEW, mlview_xml_document_view_construct(), MLVIEW_XML_DOCUMENT_VIEW_OK, mlview_xml_document_view_set_document_signal_handlers(), MLVIEW_XML_DOCUMENT_VIEW_STATUS, NOK, and PRIVATE.

Referenced by mlview_xml_doc_tree_view_new().

void mlview_xml_doc_tree_view_copy_node MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1261 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_copy_node(), mlview_tree_editor_get_current_selected_node(), and mlview_xml_doc_tree_view_get_tree_editor().

Referenced by mlview_editor_copy_node().

void mlview_xml_doc_tree_view_cut_node MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1240 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_cut_node(), mlview_tree_editor_get_current_selected_node(), and mlview_xml_doc_tree_view_get_tree_editor().

Referenced by mlview_editor_cut_node().

void mlview_xml_doc_tree_view_expand_tree_to_depth_interactive MlViewXMLDocTreeView   a_view
 

Opens a dialog box to ask the user the depth to which the tree should be expanded and expands the tree to that depths.

Definition at line 1433 of file mlview-xml-doc-tree-view.c.

References MLVIEW_IS_XML_DOC_TREE_VIEW, mlview_tree_editor_expand_tree_to_depth(), and PRIVATE.

Referenced by mlview_editor_expand_tree_to_depth_interactive().

GtkCTreeNode* mlview_xml_doc_tree_view_find_xml_node_that_contains_str_interactive MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1327 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_find_xml_node_that_contains_str_interactive(), and mlview_xml_doc_tree_view_get_tree_editor().

Referenced by mlview_editor_find_xml_node_that_contains_str_interactive().

MlViewNodeEditor* mlview_xml_doc_tree_view_get_node_editor MlViewXMLDocTreeView   a_tree_view
 

Definition at line 996 of file mlview-xml-doc-tree-view.c.

References PRIVATE.

MlViewTreeEditor* mlview_xml_doc_tree_view_get_tree_editor MlViewXMLDocTreeView   a_tree_view
 

Definition at line 985 of file mlview-xml-doc-tree-view.c.

References PRIVATE.

Referenced by mlview_xml_doc_tree_view_add_child_node_interactive(), mlview_xml_doc_tree_view_copy_node(), mlview_xml_doc_tree_view_cut_node(), mlview_xml_doc_tree_view_find_xml_node_that_contains_str_interactive(), mlview_xml_doc_tree_view_insert_next_sibling_node_interactive(), and mlview_xml_doc_tree_view_insert_prev_sibling_node_interactive().

guint mlview_xml_doc_tree_view_get_type void   
 

Definition at line 961 of file mlview-xml-doc-tree-view.c.

void mlview_xml_doc_tree_view_insert_next_sibling_node_interactive MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1226 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_insert_next_sibling_node_interactive(), and mlview_xml_doc_tree_view_get_tree_editor().

Referenced by mlview_editor_insert_next_sibling_node_interactive().

void mlview_xml_doc_tree_view_insert_prev_sibling_node_interactive MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1210 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_insert_prev_sibling_node_interactive(), and mlview_xml_doc_tree_view_get_tree_editor().

Referenced by mlview_editor_insert_prev_sibling_node_interactive().

GtkWidget* mlview_xml_doc_tree_view_new MlViewXMLDocument   a_mlview_xml_doc,
gchar *    a_name,
MlViewAppContext   a_app_context
 

Definition at line 1008 of file mlview-xml-doc-tree-view.c.

References MLVIEW_TYPE_XML_DOC_TREE_VIEW, mlview_xml_doc_tree_view_construct(), and PRIVATE.

void mlview_xml_doc_tree_view_paste_node_as_child MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1290 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_get_current_selected_node(), mlview_tree_editor_paste_node_as_child(), and PRIVATE.

Referenced by mlview_editor_paste_node_as_child().

void mlview_xml_doc_tree_view_paste_node_as_next_sibling MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1314 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_get_current_selected_node(), mlview_tree_editor_paste_node_as_sibling(), and PRIVATE.

Referenced by mlview_editor_paste_node_as_next_sibling().

void mlview_xml_doc_tree_view_paste_node_as_prev_sibling MlViewXMLDocTreeView   a_tree_view
 

Definition at line 1302 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_get_current_selected_node(), mlview_tree_editor_paste_node_as_sibling(), and PRIVATE.

Referenced by mlview_editor_paste_node_as_prev_sibling().

void mlview_xml_doc_tree_view_set_all_paned_proportions MlViewXMLDocTreeView   a_tree_view,
const guint    a_main_paned_percentage,
const guint    a_node_editor_paned_percentage
 

Definition at line 1393 of file mlview-xml-doc-tree-view.c.

References MLVIEW_IS_XML_DOC_TREE_VIEW, mlview_node_editor_set_left_right_percentage(), mlview_xml_doc_tree_view_set_main_paned_proportions(), mlview_xml_doc_tree_view_set_upper_paned1_proportions(), and PRIVATE.

Referenced by mlview_editor_add_xml_document_view().

void mlview_xml_doc_tree_view_set_app_context MlViewXMLDocTreeView   a_tree_view,
MlViewAppContext   a_app_context
 

Definition at line 1024 of file mlview-xml-doc-tree-view.c.

References mlview_node_editor_set_application_context(), mlview_tree_editor_set_application_context(), and PRIVATE.

void mlview_xml_doc_tree_view_set_main_paned_proportions MlViewXMLDocTreeView   a_tree_view,
const guint    a_percentage
 

Sets the GtkPaned top/bottom proportions of the main paned to a_percentage.

This method gets the bounds of the top level widget in order to determine the total size of the GtkVPaned (which actually has the same boundaries as the top level widget) and do the calculation of the proportions of the top part vs bottom part of the GtkVPaned. Therefore, this method must be called only *AFTER* the document has been opened and the top level of the document is shown.

Definition at line 1369 of file mlview-xml-doc-tree-view.c.

References PRIVATE.

Referenced by mlview_xml_doc_tree_view_set_all_paned_proportions().

void mlview_xml_doc_tree_view_set_upper_paned1_proportions MlViewXMLDocTreeView   a_tree_view,
const guint    a_percentage
 

Definition at line 1341 of file mlview-xml-doc-tree-view.c.

References MLVIEW_IS_XML_DOC_TREE_VIEW, and PRIVATE.

Referenced by mlview_xml_doc_tree_view_set_all_paned_proportions().

void mlview_xml_doc_tree_view_set_xml_document_path MlViewXMLDocTreeView   a_view,
gchar *    a_file_path
 

Sets the title of the xml DOM to @a_file_path.

Updates this information in the tree editor and in the XML DOM.

Definition at line 1415 of file mlview-xml-doc-tree-view.c.

References mlview_tree_editor_set_xml_document_path(), and PRIVATE.

void mlview_xml_doc_tree_view_update_contextual_menu MlViewXMLDocTreeView   a_view,
GtkMenu **    a_menu_ptr
 

Definition at line 1480 of file mlview-xml-doc-tree-view.c.

References MLVIEW_IS_XML_DOC_TREE_VIEW, mlview_tree_editor_update_contextual_menu(), and PRIVATE.


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