licensor.cpp revision 63bcfae20b1b658cd8db2fc4243fd39b701896ad
/*
* 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)
* Abhishek Sharma
*
* 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 "licensor.h"
#include "ui/widget/entity-entry.h"
#include "ui/widget/registry.h"
#include "rdf.h"
#include "inkscape.h"
#include "document-undo.h"
#include "document-private.h"
#include "verbs.h"
#include <gtkmm/radiobutton.h>
namespace Inkscape {
namespace UI {
namespace Widget {
//===================================================
const struct rdf_license_t _proprietary_license =
{_("Proprietary"), "", 0};
const struct rdf_license_t _other_license =
public:
LicenseItem (struct rdf_license_t const* license, EntityEntry* entity, Registry &wr, Gtk::RadioButtonGroup *group);
protected:
void on_toggled();
struct rdf_license_t const *_lic;
};
LicenseItem::LicenseItem (struct rdf_license_t const* license, EntityEntry* entity, Registry &wr, Gtk::RadioButtonGroup *group)
{
if (group) {
}
}
/// \pre it is assumed that the license URI entry is a Gtk::Entry
void LicenseItem::on_toggled()
{
if (_wr.isUpdating()) return;
_wr.setUpdating (true);
}
_wr.setUpdating (false);
_eep->on_changed();
}
//---------------------------------------------------
{
}
{
}
{
/* add license-specific metadata entry areas */
LicenseItem *i;
wr.setUpdating (true);
add (*i);
LicenseItem *pd = i;
license++) {
add(*i);
}
// add Other at the end before the URI field for the confused ppl.
pd->set_active();
wr.setUpdating (false);
pack_start (*box, true, true, 0);
}
{
/* identify the license info */
if (license) {
int i;
for (i=0; rdf_licenses[i].name; i++)
if (license == &rdf_licenses[i])
break;
#if WITH_GTKMM_3_0
#else
#endif
}
else {
#if WITH_GTKMM_3_0
#else
#endif
}
/* update the URI */
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
/*
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 :