sp-attribute-widget.cpp revision ef9d155a8149d4793471047b3836db719b9e0292
#define __SP_ATTRIBUTE_WIDGET_C__
/**
* \brief SPAttributeWidget
*
* Widget, that listens and modifies repr attributes
*
* Authors:
* Lauris Kaplinski <lauris@ximian.com>
*
* Copyright (C) 2001 Ximian, Inc.
*
* Licensed under GNU GPL
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <gtk/gtktable.h>
#include <gtk/gtklabel.h>
#include "macros.h"
#include "document.h"
#include "sp-object.h"
#include "sp-attribute-widget.h"
static GtkEntryClass *parent_class;
sp_attribute_widget_get_type (void)
{
if (!type) {
static const GtkTypeInfo info = {
"SPAttributeWidget",
sizeof (SPAttributeWidget),
sizeof (SPAttributeWidgetClass),
};
}
return type;
} // end of sp_attribute_widget_get_type()
static void
{
} // end of sp_attribute_widget_class_init()
static void
{
}
static void
{
}
}
} else {
}
} // end of if()
}
static void
{
if (!*text)
{
/* Cannot set attribute */
}
_("Set attribute"));
{
/* Cannot set attribute */
}
/* TODO: Warning! Undo will not be flushed in given case */
}
}
} // end of sp_attribute_widget_changed()
{
return GTK_WIDGET (spaw);
} // end of sp_attribute_widget_new()
{
return GTK_WIDGET (spaw);
}
void
{
}
}
} else {
}
}
if (object) {
spaw->modified_connection = object->connectModified(sigc::bind<2>(sigc::ptr_fun(&sp_attribute_widget_object_modified), spaw));
spaw->release_connection = object->connectRelease(sigc::bind<1>(sigc::ptr_fun(&sp_attribute_widget_object_release), spaw));
}
} // end of sp_attribute_widget_set_object()
void
{
}
}
} else {
}
}
if (repr) {
}
} // end of sp_attribute_widget_set_repr()
static void
{
if (flags && SP_OBJECT_MODIFIED_FLAG) {
/* We are different */
} // end of if()
} // end of if()
} //end of if()
} // end of sp_attribute_widget_object_modified()
static void
{
}
/* SPAttributeTable */
static void sp_attribute_table_object_modified (SPObject *object, guint flags, SPAttributeTable *spaw);
static GtkVBoxClass *table_parent_class;
sp_attribute_table_get_type (void)
{
if (!type) {
static const GtkTypeInfo info = {
"SPAttributeTable",
sizeof (SPAttributeTable),
sizeof (SPAttributeTableClass),
};
}
return type;
} // end of sp_attribute_table_get_type()
static void
{
} // end of sp_attribute_table_class_init()
static void
{
}
static void
{
if (spat->attributes) {
gint i;
}
}
}
} else {
}
} // end of if()
}
}
} // end of sp_attribute_table_destroy()
const gchar **attributes )
{
return GTK_WIDGET (spat);
} // end of sp_attribute_table_new()
const gchar **attributes )
{
return GTK_WIDGET (spat);
} // end of sp_attribute_table_new_repr()
#define XPAD 4
#define YPAD 0
void
const gchar **attributes )
{
}
if (spat->attributes) {
gint i;
}
}
}
}
} else {
}
}
if (object) {
gint i;
/* Set up object */
spat->modified_connection = object->connectModified(sigc::bind<2>(sigc::ptr_fun(&sp_attribute_table_object_modified), spat));
spat->modified_connection = object->connectRelease(sigc::bind<1>(sigc::ptr_fun(&sp_attribute_table_object_release), spat));
/* Create table */
/* Arrays */
/* Fill rows */
for (i = 0; i < num_attr; i++) {
GtkWidget *w;
w = gtk_label_new (_(labels[i]));
gtk_widget_show (w);
w = gtk_entry_new ();
gtk_widget_show (w);
spat );
}
/* Show table */
}
} // end of sp_attribute_table_set_object()
void
const gchar **attributes )
{
}
if (spat->attributes) {
gint i;
}
}
}
}
} else {
}
}
if (repr) {
gint i;
/* Set up repr */
/* Create table */
/* Arrays */
/* Fill rows */
for (i = 0; i < num_attr; i++) {
GtkWidget *w;
w = gtk_label_new (labels[i]);
gtk_widget_show (w);
w = gtk_entry_new ();
gtk_widget_show (w);
spat );
}
/* Show table */
}
} // end of sp_attribute_table_set_repr()
static void
{
if (flags && SP_OBJECT_MODIFIED_FLAG)
{
gint i;
/* We are different */
}
}
}
} // end of if()
} // end of sp_attribute_table_object_modified()
static void
{
}
static void
{
{
gint i;
if (!*text)
{
/* Cannot set attribute */
}
_("Set attribute"));
{
/* Cannot set attribute */
}
/* TODO: Warning! Undo will not be flushed in given case */
}
return;
}
}
g_warning ("file %s: line %d: Entry signalled change, but there is no such entry", __FILE__, __LINE__);
} // end of if()
} // end of sp_attribute_table_entry_changed()
/*
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 :