Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

xml-tree.cpp File Reference

XML editor. More...

#include <gdk/gdkkeysyms.h>
#include <glibmm/i18n.h>
#include <gtk/gtk.h>
#include "desktop.h"
#include "../desktop-handles.h"
#include "dialog-events.h"
#include "../document.h"
#include "../event-context.h"
#include "helper/window.h"
#include "../inkscape.h"
#include "../interface.h"
#include "macros.h"
#include "message-context.h"
#include "message-stack.h"
#include "../preferences.h"
#include "../selection.h"
#include "shortcuts.h"
#include "../sp-root.h"
#include "../sp-string.h"
#include "../sp-tspan.h"
#include "ui/icon-names.h"
#include "../verbs.h"
#include "widgets/icon.h"
#include "../widgets/sp-xmlview-attr-list.h"
#include "../widgets/sp-xmlview-content.h"
#include "../widgets/sp-xmlview-tree.h"
Include dependency graph for xml-tree.cpp:

Go to the source code of this file.

Classes

struct  EditableDest

Defines

#define MIN_ONSCREEN_DISTANCE   50

Functions

static void _set_status_message (Inkscape::MessageType type, const gchar *message, GtkWidget *dialog)
static void after_tree_move (GtkCTree *tree, GtkCTreeNode *node, GtkCTreeNode *new_parent, GtkCTreeNode *new_sibling, gpointer data)
void attr_reset_context (gint attr)
static void cmd_delete_attr (GtkObject *object, gpointer data)
static void cmd_delete_node (GtkObject *object, gpointer data)
static void cmd_duplicate_node (GtkObject *object, gpointer data)
static void cmd_indent_node (GtkObject *object, gpointer data)
static void cmd_lower_node (GtkObject *object, gpointer data)
static void cmd_new_element_node (GtkObject *object, gpointer data)
static void cmd_new_text_node (GtkObject *object, gpointer data)
static void cmd_raise_node (GtkObject *object, gpointer data)
static void cmd_set_attr (GtkObject *object, gpointer data)
static void cmd_unindent_node (GtkObject *object, gpointer data)
static Inkscape::XML::Nodeget_dt_select ()
static bool in_dt_coordsys (SPObject const &item)
static void on_attr_row_changed (GtkCList *list, gint row, gpointer data)
static void on_attr_select_row (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_attr_select_row_enable (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_attr_select_row_set_name_content (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_attr_select_row_set_value_content (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_attr_unselect_row (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_attr_unselect_row_clear_text (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_attr_unselect_row_disable (GtkCList *list, gint row, gint column, GdkEventButton *event, gpointer data)
static void on_clicked_get_editable_text (GtkWidget *widget, gpointer data)
static gboolean on_delete (GtkObject *object, GdkEvent *event, gpointer data)
static void on_desktop_selection_changed (Inkscape::Selection *selection)
static void on_destroy (GtkObject *object, gpointer data)
static void on_document_replaced (SPDesktop *dt, SPDocument *document)
static void on_document_uri_set (gchar const *uri, SPDocument *document)
static void on_editable_changed_enable_if_valid_xml_name (GtkEditable *editable, gpointer data)
static void on_tree_select_row (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
void on_tree_select_row_enable (GtkCTree *, GtkCTreeNode *, gint, gpointer data)
static void on_tree_select_row_enable_if_element (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_enable_if_has_grandparent (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_enable_if_indentable (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_enable_if_mutable (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_enable_if_not_first_child (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_enable_if_not_last_child (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_show_if_element (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_select_row_show_if_text (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_unselect_row (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_unselect_row_clear_text (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_unselect_row_disable (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void on_tree_unselect_row_hide (GtkCTree *tree, GtkCTreeNode *node, gint column, gpointer data)
static void propagate_tree_select (Inkscape::XML::Node *repr)
gboolean quit_on_esc (GtkWidget *w, GdkEventKey *event, GObject *)
static void set_dt_select (Inkscape::XML::Node *repr)
static void set_tree_desktop (SPDesktop *desktop)
static void set_tree_document (SPDocument *document)
static void set_tree_repr (Inkscape::XML::Node *repr)
static void set_tree_select (Inkscape::XML::Node *repr)
void sp_xml_tree_dialog ()
static gboolean sp_xml_tree_key_press (GtkWidget *widget, GdkEventKey *event)
static void sp_xmltree_desktop_activate (Inkscape::Application *inkscape, SPDesktop *desktop, GtkWidget *dialog)
static void sp_xmltree_desktop_deactivate (Inkscape::Application *inkscape, SPDesktop *desktop, GtkWidget *dialog)
void tree_reset_context ()
gboolean xml_tree_node_mutable (GtkCTreeNode *node)

Variables

static sigc::connection _message_changed_connection
static Inkscape::MessageContext_message_context = NULL
static Inkscape::MessageStack_message_stack = NULL
static GtkEditable * attr_name = NULL
static GtkTextView * attr_value = NULL
static SPXMLViewAttrListattributes = NULL
static gint blocked = 0
static SPXMLViewContentcontent = NULL
static SPDesktopcurrent_desktop = NULL
static SPDocumentcurrent_document = NULL
static GtkWidget * dlg = NULL
static sigc::connection document_replaced_connection
static sigc::connection document_uri_set_connection
static gint h = 0
static Glib::ustring const prefs_path = "/dialogs/xml/"
static sigc::connection sel_changed_connection
static gint selected_attr = 0
static Inkscape::XML::Nodeselected_repr = NULL
static GtkWidget * status = NULL
static GtkTooltips * tooltips = NULL
static SPXMLViewTreetree = NULL
static gint w = 0
static win_data wd
static gint x = -1000
static gint y = -1000

Detailed Description

XML editor.

Definition in file xml-tree.cpp.


Generated by  Doxygen 1.6.0   Back to index