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

Classes | Defines | Enumerations | Functions | Variables

interface.cpp File Reference

Main UI stuff. More...

#include <gtk/gtk.h>
#include <glib.h>
#include "inkscape-private.h"
#include "extension/db.h"
#include "extension/effect.h"
#include "extension/input.h"
#include "widgets/icon.h"
#include "preferences.h"
#include "path-prefix.h"
#include "shortcuts.h"
#include "document.h"
#include "desktop-handles.h"
#include "file.h"
#include "interface.h"
#include "desktop.h"
#include "ui/context-menu.h"
#include "selection.h"
#include "selection-chemistry.h"
#include "svg-view-widget.h"
#include "widgets/desktop-widget.h"
#include "sp-item-group.h"
#include "sp-text.h"
#include "sp-gradient-fns.h"
#include "sp-gradient.h"
#include "sp-flowtext.h"
#include "sp-namedview.h"
#include "ui/view/view.h"
#include "helper/action.h"
#include "helper/gnome-utils.h"
#include "helper/window.h"
#include "io/sys.h"
#include "dialogs/dialog-events.h"
#include "message-context.h"
#include "ui/uxmanager.h"
#include "display/sp-canvas.h"
#include "color.h"
#include "svg/svg-color.h"
#include "desktop-style.h"
#include "style.h"
#include "event-context.h"
#include "gradient-drag.h"
#include "widgets/ege-paint-def.h"
#include "gradient-context.h"
Include dependency graph for interface.cpp:

Go to the source code of this file.


class  MaxRecentObserver
 Observer that updates the recent list's max document count. More...


#define __SP_INTERFACE_C__
#define ENTRIES_SIZE(n)   sizeof(n)/sizeof(n[0])


enum  ui_drop_target_info {


void addTaskMenuItems (GtkMenu *menu, Inkscape::UI::View::View *view)
static void checkitem_toggled (GtkCheckMenuItem *menuitem, gpointer user_data)
static gboolean checkitem_update (GtkWidget *widget, GdkEventExpose *, gpointer user_data)
static void enter_group (GtkMenuItem *mi, SPDesktop *desktop)
static Glib::ustring getLayoutPrefPath (Inkscape::UI::View::View *view)
static void injectRenamedIcons ()
static void leave_group (GtkMenuItem *, SPDesktop *desktop)
void sp_create_window (SPViewWidget *vw, gboolean editable)
static void sp_file_new_from_template (GtkWidget *, gchar const *uri)
void sp_menu_append_new_templates (GtkWidget *menu, Inkscape::UI::View::View *view)
static void sp_recent_open (GtkRecentChooser *, gpointer)
void sp_ui_build_dyn_menus (Inkscape::XML::Node *menus, GtkWidget *menu, Inkscape::UI::View::View *view)
 This function turns XML into a menu.
void sp_ui_checkboxes_menus (GtkMenu *m, Inkscape::UI::View::View *view)
unsigned int sp_ui_close_all (void)
void sp_ui_close_view (GtkWidget *)
GtkWidget * sp_ui_context_menu (Inkscape::UI::View::View *view, SPItem *item)
void sp_ui_dialog_title_string (Inkscape::Verb *verb, gchar *c)
static void sp_ui_drag_data_received (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint event_time, gpointer user_data)
static void sp_ui_drag_leave (GtkWidget *widget, GdkDragContext *drag_context, guint event_time, gpointer user_data)
static void sp_ui_drag_motion (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint event_time, gpointer user_data)
void sp_ui_error_dialog (gchar const *message)
static void sp_ui_import_files (gchar *buffer)
static void sp_ui_import_one_file (char const *filename)
static void sp_ui_import_one_file_with_check (gpointer filename, gpointer unused)
GtkWidget * sp_ui_main_menubar (Inkscape::UI::View::View *view)
 Build the main tool bar.
static void sp_ui_menu_activate (void *, SPAction *action)
void sp_ui_menu_append_check_item_from_verb (GtkMenu *menu, Inkscape::UI::View::View *view, gchar const *label, gchar const *tip, gchar const *pref, void(*callback_toggle)(GtkCheckMenuItem *, gpointer user_data), gboolean(*callback_update)(GtkWidget *widget, GdkEventExpose *event, gpointer user_data), Inkscape::Verb *verb)
static GtkWidget * sp_ui_menu_append_item (GtkMenu *menu, gchar const *stock, gchar const *label, gchar const *tip, Inkscape::UI::View::View *view, GCallback callback, gpointer data, gboolean with_mnemonic=TRUE)
static GtkWidget * sp_ui_menu_append_item_from_verb (GtkMenu *menu, Inkscape::Verb *verb, Inkscape::UI::View::View *view, bool radio=false, GSList *group=NULL)
static void sp_ui_menu_deselect (gpointer object)
static void sp_ui_menu_deselect_action (void *, SPAction *action)
static void sp_ui_menu_item_set_name (SPAction *action, Glib::ustring name, void *data)
static void sp_ui_menu_item_set_sensitive (SPAction *action, unsigned int sensitive, void *data)
static void sp_ui_menu_select (gpointer object, gpointer tip)
static void sp_ui_menu_select_action (void *, SPAction *action)
void sp_ui_menuitem_add_icon (GtkWidget *item, gchar *icon_name)
void sp_ui_new_view ()
void sp_ui_new_view_preview ()
bool sp_ui_overwrite_file (gchar const *filename)
static void taskToggled (GtkCheckMenuItem *menuitem, gpointer userData)
static gboolean update_view_menu (GtkWidget *widget, GdkEventExpose *, gpointer user_data)
 Callback function to update the status of the radio buttons in the View -> Display mode menu (Normal, No Filters, Outline)


static GtkTargetEntry * completeDropTargets = 0
static int completeDropTargetsCount = 0
SPActionEventVector menu_item_event_vector
static const int MIN_ONSCREEN_DISTANCE = 50
static guint nui_drop_target_entries = ENTRIES_SIZE(ui_drop_target_entries)
static bool temporarily_block_actions = false
static GtkTargetEntry ui_drop_target_entries []

Detailed Description

Main UI stuff.

Definition in file interface.cpp.

Generated by  Doxygen 1.6.0   Back to index