unit-tracker.cpp revision 10291feeda5683352bd1492e6818c5b9b2f12727
/*
* Inkscape::UI::Widget::UnitTracker
* Simple mediator to synchronize changes to unit menus
*
* Authors:
* Jon A. Cruz <jon@joncruz.org>
* Matthew Petroff <matthew@mpetroff.net>
*
* Copyright (C) 2007 Jon A. Cruz
* Copyright (C) 2013 Matthew Petroff
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "unit-tracker.h"
#include "ege-select-one-action.h"
#define COLUMN_STRING 0
namespace Inkscape {
namespace UI {
namespace Widget {
_active(0),
_isUpdating(false),
_activeUnitInitialized(false),
_store(0),
_unitList(0),
_actionList(0),
_adjList(0),
{
++m_iter;
}
_setActive(--count);
} else {
}
}
{
// Unhook weak references to GtkActions
while (_actionList) {
}
// Unhook weak references to GtkAdjustments
while (_adjList) {
}
}
bool UnitTracker::isUpdating() const
{
return _isUpdating;
}
{
return _activeUnit;
}
{
if (unit) {
int index = 0;
while (found) {
gchar *storedUnit = 0;
break;
}
index++;
}
}
}
{
setActiveUnit(&u);
}
{
}
}
{
}
{
}
{
EgeSelectOneAction *act1 = ege_select_one_action_new(name, label, tooltip, NULL, GTK_TREE_MODEL(_store));
if (_active) {
}
return GTK_ACTION(act1);
}
{
}
}
{
if (data && where_the_object_was) {
}
}
{
if (data && where_the_object_was) {
}
}
{
if (target) {
} else {
}
}
{
if (target) {
} else {
}
}
{
if (found) {
if (found) {
if (_adjList) {
}
} else {
g_warning("Did not find new unit");
}
} else {
g_warning("Did not find old unit");
}
}
}
_activeUnitInitialized = true;
}
}
void UnitTracker::_fixupAdjustments(Inkscape::Util::Unit const oldUnit, Inkscape::Util::Unit const newUnit)
{
_isUpdating = true;
{
{
}
} else {
}
}
_isUpdating = false;
}
} // namespace Widget
} // namespace UI
} // namespace Inkscape