From 179fa413b047bede6e32109e2ce82437c5fb8d34 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 16 Jan 2006 02:36:01 +0000 Subject: moving trunk for module inkscape (bzr r1) --- src/ui/widget/handlebox.cpp | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/ui/widget/handlebox.cpp (limited to 'src/ui/widget/handlebox.cpp') diff --git a/src/ui/widget/handlebox.cpp b/src/ui/widget/handlebox.cpp new file mode 100644 index 000000000..b82b715bb --- /dev/null +++ b/src/ui/widget/handlebox.cpp @@ -0,0 +1,48 @@ +/** + * \brief HandleBox Widget - Adds a detachment handle to another widget. + * + * This work really doesn't amount to much more than a convenience constructor + * for Gtk::HandleBox. Maybe this could be contributed back to Gtkmm, as + * Gtkmm provides several convenience constructors for other widgets as well. + * + * Author: + * Derek P. Moore + * + * Copyright (C) 2004 Derek P. Moore + * + * Released under GNU GPL. Read the file 'COPYING' for more information. + */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "handlebox.h" + +namespace Inkscape { +namespace UI { +namespace Widget { + +HandleBox::HandleBox(Gtk::Widget *widget, + Gtk::PositionType position) + : _widget(widget) +{ + g_assert(_widget != NULL); + add(*Gtk::manage(_widget)); + set_handle_position(position); +} + +} // namespace Widget +} // namespace UI +} // namespace Inkscape + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : -- cgit v1.2.3