licensor.cpp revision d20fbfef3d4218bd9dd31598ff344f35e2e17221
/** \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/entity-entry.h"
#include "ui/widget/registry.h"
#include "rdf.h"
#include "inkscape.h"
#include "licensor.h"
namespace Inkscape {
namespace UI {
namespace Widget {
//===================================================
const struct rdf_license_t _proprietary_license =
{_("Proprietary"), "", 0};
const struct rdf_license_t _other_license =
public:
protected:
void on_toggled();
struct rdf_license_t const *_lic;
};
{
static bool first = true;
}
/// \pre it is assumed that the license URI entry is a Gtk::Entry
void
{
if (_wr.isUpdating()) return;
_wr.setUpdating (true);
/* TODO: annotate */ "licensor.cpp:65");
_wr.setUpdating (false);
_eep->on_changed();
}
//---------------------------------------------------
{
}
{
}
void
{
/* 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);
}
void
{
/* identify the license info */
if (license) {
int i;
for (i=0; rdf_licenses[i].name; i++)
if (license == &rdf_licenses[i])
break;
}
else {
}
/* 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))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :