registered-widget.cpp revision 94dbc6815a2905121e25184ad31b8534f53dfe4c
/** \file
*
*
* Authors:
* bulia byak <buliabyak@users.sf.net>
* Bryce W. Harrington <bryce@bryceharrington.org>
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon Phillips <jon@rejon.org>
* Ralf Stephan <ralf@ark.in-berlin.de> (Gtkmm)
*
* Copyright (C) 2000 - 2005 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "ui/widget/color-picker.h"
#include "ui/widget/registry.h"
#include "ui/widget/scalar-unit.h"
#include "svg/stringstream.h"
#include "inkscape.h"
#include "document.h"
#include "desktop-handles.h"
#include "sp-namedview.h"
#include "registered-widget.h"
namespace Inkscape {
namespace UI {
namespace Widget {
//===================================================
//---------------------------------------------------
//====================================================
: _button(0)
{
}
{
}
void
RegisteredCheckButton::init (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Registry& wr, bool right)
{
l->set_use_underline (true);
_toggled_connection = _button->signal_toggled().connect (sigc::mem_fun (*this, &RegisteredCheckButton::on_toggled));
}
void
RegisteredCheckButton::setActive (bool b)
{
_button->set_active (b);
}
void
{
if (_wr->isUpdating())
return;
if (!dt) {
return;
}
_wr->setUpdating (true);
_wr->setUpdating (false);
}
{
}
{
}
void
{
_label->set_use_underline (true);
_changed_connection = _sel->signal_changed().connect (sigc::mem_fun (*this, &RegisteredUnitMenu::on_changed));
}
void
{
}
void
{
if (_wr->isUpdating())
return;
if (!dt)
return;
_wr->setUpdating (true);
_wr->setUpdating (false);
}
{
}
{
}
void
RegisteredScalarUnit::init (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, const RegisteredUnitMenu &rum, Registry& wr)
{
_value_changed_connection = _widget->signal_value_changed().connect (sigc::mem_fun (*this, &RegisteredScalarUnit::on_value_changed));
}
{
return _widget;
}
void
{
}
void
{
if (_wr->isUpdating())
return;
if (!dt)
return;
if (_um)
_wr->setUpdating (true);
_wr->setUpdating (false);
}
{
}
{
}
void
RegisteredColorPicker::init (const Glib::ustring& label, const Glib::ustring& title, const Glib::ustring& tip, const Glib::ustring& ckey, const Glib::ustring& akey, Registry& wr)
{
_label->set_use_underline (true);
_changed_connection = _cp->connectChanged (sigc::mem_fun (*this, &RegisteredColorPicker::on_changed));
}
void
{
}
void
{
_cp->closeWindow();
}
void
{
return;
_wr->setUpdating (true);
gchar c[32];
_wr->setUpdating (false);
}
_suffix(0)
{
}
{
}
void
RegisteredSuffixedInteger::init (const Glib::ustring& label, const Glib::ustring& suffix, const Glib::ustring& key, Registry& wr)
{
_changed_connection = _adj.signal_value_changed().connect (sigc::mem_fun(*this, &RegisteredSuffixedInteger::on_value_changed));
}
void
RegisteredSuffixedInteger::setValue (int i)
{
}
void
{
return;
_wr->setUpdating (true);
_wr->setUpdating (false);
}
: _hbox(0)
{
}
{
}
void
{
_rb2->set_active();
_changed_connection = _rb1->signal_toggled().connect (sigc::mem_fun (*this, &RegisteredRadioButtonPair::on_value_changed));
}
void
{
else _rb1->set_active();
}
void
{
if (_wr->isUpdating())
return;
if (!dt)
return;
_wr->setUpdating (true);
_wr->setUpdating (false);
}
} // namespace Dialog
} // 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 :