/*
* Inkscape Widget Utilities
*
* Authors:
* Bryce W. Harrington <brycehar@bryceharrington.org>
* bulia byak <buliabyak@users.sf.net>
*
* Copyright (C) 2003 Bryce W. Harrington
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <cstring>
#include <string>
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
#include "selection.h"
#include "spw-utilities.h"
/**
* Creates a label widget with the given text, at the given col, row
* position in the table.
*/
#if GTK_CHECK_VERSION(3,0,0)
Gtk::Label * spw_label(Gtk::Grid *table, const gchar *label_text, int col, int row, Gtk::Widget* target)
#else
Gtk::Label * spw_label(Gtk::Table *table, const gchar *label_text, int col, int row, Gtk::Widget* target)
#endif
{
{
}
else
{
}
label_widget->show();
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
#else
table->attach(*label_widget, col, col+1, row, row+1, (Gtk::EXPAND | Gtk::FILL), static_cast<Gtk::AttachOptions>(0), 4, 0);
#endif
return label_widget;
}
{
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
#else
#endif
return label_widget;
}
/**
* Creates a horizontal layout manager with 4-pixel spacing between children
* and space for 'width' columns.
*/
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
{
/* Create a new hbox with a 4-pixel spacing between children */
#if GTK_CHECK_VERSION(3,0,0)
hb->set_hexpand();
#else
table->attach(*hb, col, col+width, row, row+1, (Gtk::EXPAND | Gtk::FILL), static_cast<Gtk::AttachOptions>(0), 0, 0);
#endif
return hb;
}
/**
* Creates a checkbutton widget and adds it to a vbox.
* This is a compound widget that includes a label.
*/
{
gtk_widget_show (b);
return b;
}
/**
* Creates a checkbutton widget and adds it to a table.
* This is a compound widget that includes a label.
*/
{
GtkWidget *b;
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
gtk_widget_show (l);
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
b = gtk_check_button_new ();
gtk_widget_show (b);
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
if (insensitive == 1) {
}
return b;
}
/**
* Creates a dropdown widget. This is a compound widget that includes
* a label as well as the dropdown.
*/
)
{
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
return selector;
}
static void
{
#if GTK_CHECK_VERSION(3,0,0)
css_data << "GtkWidget {\n"
<< "}\n";
-1, NULL);
#else
gtk_widget_modify_font (w, pan);
#endif
if (GTK_IS_CONTAINER(w)) {
}
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
}
void
{
}
void
{
}
/**
* Finds the descendant of w which has the data with the given key and returns the data, or NULL if there's none.
*/
{
if (w && G_IS_OBJECT(w)) {
}
if (r) return r;
if (GTK_IS_CONTAINER(w)) {
if (r) return r;
}
}
return NULL;
}
/**
* Returns the descendant of w which has the given key and value pair, or NULL if there's none.
*/
{
if (w && G_IS_OBJECT(w)) {
}
if (GTK_IS_CONTAINER(w)) {
}
}
return NULL;
}
/*
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:fileencoding=utf-8:textwidth=99 :