context-menu.cpp revision f6d71dd40cfcf8d2fc9790ec6802fef95f898b4f
#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"
/* 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 "dialogs/object-properties.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
{
}
/* 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);
/* 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(_("_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);
}
static void
{
}
/* 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 :