context-menu.cpp revision c13deb2864f592ee41c14855ec09dca84e13025f
#define __CONTEXT_MENU_C__
/*
* Unser-interface related object extension
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* This code is in public domain
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "context-menu.h"
#include "desktop.h"
#include "document.h"
#include "message-stack.h"
#include "ui/dialog/dialog-manager.h"
/* Append object-specific part to context menu */
void
{
}
}
/* Implementation */
#include <gtk/gtkmenuitem.h>
#include "sp-anchor.h"
#include "sp-image.h"
#include "document.h"
#include "desktop-handles.h"
#include "selection.h"
#include "dialogs/item-properties.h"
#include "dialogs/object-attributes.h"
#include "sp-path.h"
static void
{
if (!t2m) {
}
handler = (void (*)(SPObject*, SPDesktop*, GtkMenu*))g_hash_table_lookup(t2m, GUINT_TO_POINTER(type));
}
/* SPItem */
/* Generate context menu item section */
static void
{
GtkWidget *w;
/* Item dialog */
w = gtk_menu_item_new_with_mnemonic(_("Object _Properties"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
/* Separator */
w = gtk_menu_item_new();
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
/* Select item */
w = gtk_menu_item_new_with_mnemonic(_("_Select This"));
} else {
}
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
/* Create link */
w = gtk_menu_item_new_with_mnemonic(_("_Create Link"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
}
static void
{
}
static void
{
}
static void
{
_("Create link"));
}
/* SPGroup */
static void
{
GtkWidget *w;
/* "Ungroup" */
w = gtk_menu_item_new_with_mnemonic(_("_Ungroup"));
gtk_signal_connect(GTK_OBJECT(w), "activate", GTK_SIGNAL_FUNC(sp_item_group_ungroup_activate), item);
gtk_widget_show(w);
}
static void
{
}
/* SPAnchor */
static void
{
GtkWidget *w;
/* Link dialog */
w = gtk_menu_item_new_with_mnemonic(_("Link _Properties"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
/* Select item */
w = gtk_menu_item_new_with_mnemonic(_("_Follow Link"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
/* Reset transformations */
w = gtk_menu_item_new_with_mnemonic(_("_Remove Link"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
}
static void
{
}
static void
{
/* shell out to an external browser here */
}
static void
{
}
/* Image */
static void
{
GtkWidget *w;
/* Link dialog */
w = gtk_menu_item_new_with_mnemonic(_("Image _Properties"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
w = gtk_menu_item_new_with_mnemonic(_("Edit Image..."));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
gtk_widget_set_sensitive( w, FALSE );
}
}
static void
{
}
#define EDIT_APP "gimp"
//#define EDIT_APP "krita"
{
g_spawn_async(0, // working dir
0, //envp
0, // child_setup
0, // user_data
0, //GPid *child_pid
&errThing);
if ( errThing ) {
errThing = 0;
}
}
/* SPShape */
static void
{
}
}
static void
{
GtkWidget *w;
/* Item dialog */
w = gtk_menu_item_new_with_mnemonic(_("_Fill and Stroke"));
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :