registered-widget.cpp revision c28b128239ade7358970fc1c8bc806aafcc9930d
/** \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/svg-color.h"
#include "svg/stringstream.h"
#include "inkscape.h"
#include "document.h"
#include "desktop-handles.h"
#include "sp-namedview.h"
#include "registered-widget.h"
#include "verbs.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, Inkscape::XML::Node* repr_in)
{
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;
}
//always get the obj.repr. of the current view, as the focus
//might have changed when multiple documents are open. Never
//use the old value of "repr" here
_wr->setUpdating (true);
sp_document_set_undo_sensitive (doc, false);
/* TODO: annotate */ "registered-widget.cpp:103");
_wr->setUpdating (false);
}
{
}
{
}
void
RegisteredUnitMenu::init (const Glib::ustring& label, const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in)
{
_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);
sp_document_set_undo_sensitive (doc, false);
if (!repr)
/* TODO: annotate */ "registered-widget.cpp:162");
_wr->setUpdating (false);
}
{
}
{
}
void
RegisteredScalarUnit::init (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, const RegisteredUnitMenu &rum, Registry& wr, Inkscape::XML::Node* repr_in)
{
_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);
sp_document_set_undo_sensitive (doc, false);
if (!repr)
/* TODO: annotate */ "registered-widget.cpp:230");
_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, Inkscape::XML::Node* repr_in)
{
_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);
if (!repr)
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, Inkscape::XML::Node* repr_in)
{
_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);
if (!repr)
/* TODO: annotate */ "registered-widget.cpp:341");
_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);
sp_document_set_undo_sensitive (doc, false);
if (!repr)
/* TODO: annotate */ "registered-widget.cpp:405");
_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 :