1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#ifndef __SPW_UTILITIES_H__
#define __SPW_UTILITIES_H__
/*
* Inkscape Widget Utilities
*
* Author:
* Bryce W. Harrington <brycehar@bryceharrington.com>
*
* Copyright (C) 2003 Bryce Harrington
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
/* The following are helper routines for making Inkscape dialog widgets.
All are prefixed with spw_, short for inkscape_widget. This is not to
be confused with SPWidget, an existing datatype associated with Inkscape::XML::Node/
SPObject, that reacts to modification.
*/
#include <glib.h>
#include <gtk/gtk.h> /* GtkWidget */
#include <gtkmm/widget.h>
namespace Gtk {
class Label;
class Table;
class HBox;
}
Gtk::Label *
spw_label(Gtk::Table *table, gchar const *label_text, int col, int row, Gtk::Widget *target);
GtkWidget *
spw_label_old(GtkWidget *table, gchar const *label_text, int col, int row);
Gtk::HBox *
spw_hbox(Gtk::Table *table, int width, int col, int row);
GtkWidget *
spw_vbox_checkbutton(GtkWidget *dialog, GtkWidget *table,
const gchar *label, const gchar *tip, gchar *key, GCallback cb);
GtkWidget *
spw_checkbutton(GtkWidget *dialog, GtkWidget *table,
gchar const *label, gchar *key, int col, int row,
int sensitive, GCallback cb);
GtkWidget *
spw_dropdown(GtkWidget *dialog, GtkWidget *table,
gchar const *label, gchar *key, int row,
GtkWidget *selector
);
GtkWidget *
spw_unit_selector(GtkWidget *dialog, GtkWidget *table,
gchar const *label, gchar *key, int row,
GtkWidget *us, GCallback cb, bool can_be_negative = false);
void sp_set_font_size (GtkWidget *w, guint font);
void sp_set_font_size_smaller (GtkWidget *w);
gpointer sp_search_by_data_recursive(GtkWidget *w, gpointer data);
GtkWidget *sp_search_by_value_recursive(GtkWidget *w, gchar *key, gchar *value);
#endif
/*
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 :
|