item-properties.cpp revision 6b15695578f07a3f72c4c9475c1a261a3021472a
#define __SP_ITEM_PROPERTIES_C__
/*
* Object properties dialog
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* bulia byak <buliabyak@users.sf.net>
*
* Copyright (C) 1999-2005 Authors
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <gtk/gtktable.h>
#include <gtk/gtkcheckbutton.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkframe.h>
#include <gtk/gtktextview.h>
#include <gtk/gtktooltips.h>
#include "../widgets/sp-widget.h"
#include "../inkscape.h"
#include "../document.h"
#include "../desktop-handles.h"
#include "../selection.h"
#include "../sp-item.h"
#include "../macros.h"
#include "../verbs.h"
#include "../interface.h"
#include "dialog-events.h"
#include "../prefs-utils.h"
// impossible original values to make sure they are read from prefs
static void sp_item_widget_modify_selection (SPWidget *spw, Inkscape::Selection *selection, guint flags, GtkWidget *itemw);
static void sp_item_widget_change_selection (SPWidget *spw, Inkscape::Selection *selection, GtkWidget *itemw);
static void
{
}
static gboolean
{
return FALSE; // which means, go ahead and destroy it
}
/**
* \brief Creates new instance of item properties widget
*
*/
sp_item_widget_new (void)
{
/* Create container widget */
spw );
spw );
/* Create the label for the object id */
l = gtk_label_new_with_mnemonic (_("_Id"));
(GtkAttachOptions)0, 0, 0 );
/* Create the entry box for the object id */
tf = gtk_entry_new ();
gtk_tooltips_set_tip (tt, tf, _("The id= attribute (only letters, digits, and the characters .-_: allowed)"), NULL);
(GtkAttachOptions)0, 0, 0 );
// pressing enter in the id field is the same as clicking Set:
// focus is in the id field initially:
/* Button for setting the object's id, label, title and description. */
(GtkAttachOptions)0, 0, 0 );
spw );
/* Create the label for the object label */
l = gtk_label_new_with_mnemonic (_("_Label"));
(GtkAttachOptions)0, 0, 0 );
/* Create the entry box for the object label */
tf = gtk_entry_new ();
(GtkAttachOptions)0, 0, 0 );
// pressing enter in the label field is the same as clicking Set:
/* Create the label for the object title */
l = gtk_label_new (_("Title"));
(GtkAttachOptions)0, 0, 0 );
/* Create the entry box for the object title */
tf = gtk_entry_new ();
(GtkAttachOptions)0, 0, 0 );
/* Create the frame for the object description */
f = gtk_frame_new (_("Description"));
/* Create the text view box for the object description */
tf = gtk_text_view_new();
/* Check boxes */
/* Hide */
(GtkAttachOptions)0, 0, 0 );
/* Lock */
// TRANSLATORS: "Lock" is a verb here
gtk_tooltips_set_tip (tt, cb, _("Check to make the object insensitive (not selectable by mouse)"), NULL);
(GtkAttachOptions)0, 0, 0 );
spw );
} //end of sp_item_widget_new()
static void
{
}
static void
{
}
/**
* \param selection Selection to use; should not be NULL.
*/
static void
{
return;
if (!selection->singleItem()) {
return;
} else {
}
/* Sensitive */
/* Hidden */
if (SP_OBJECT_IS_CLONED (item)) {
/* ID */
/* Label */
} else {
/* ID */
gtk_widget_set_sensitive (w, TRUE);
/* Label */
gtk_widget_set_sensitive (w, TRUE);
}
} // end of sp_item_widget_setup()
static void
{
return;
}
void
{
return;
}
static void
{
return;
/* Retrieve the label widget for the object's id */
} else {
SP_EXCEPTION_INIT (&ex);
}
/* Retrieve the label widget for the object's label */
/* Give feedback on success of setting the drawing object's label
* using the widget's label text
*/
}
/* Retrieve the title */
}
/* Retrieve the description */
}
} // end of sp_item_widget_label_changed()
/**
* \brief Dialog
*
*/
void
sp_item_dialog (void)
{
if (x == -1000 || y == -1000) {
}
if (w ==0 || h == 0) {
}
if (x != 0 || y != 0) {
} else {
}
if (w && h) {
}
g_signal_connect ( G_OBJECT (INKSCAPE), "activate_desktop", G_CALLBACK (sp_transientize_callback), &wd);
// Dialog-specific stuff
}
}
/*
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 :