#ifndef SEEN_TOOLBOX_H
#define SEEN_TOOLBOX_H
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Frank Felfe <innerspace@iname.com>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 1999-2002 Authors
* Copyright (C) 2001-2002 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "icon-size.h"
#include "preferences.h"
}
}
}
}
/**
* Main toolbox source.
*/
{
static GtkWidget *createToolToolbox();
static GtkWidget *createAuxToolbox();
static GtkWidget *createCommandsToolbox();
static GtkWidget *createSnapToolbox();
static void updateSnapToolbox(SPDesktop *desktop, Inkscape::UI::Tools::ToolBase *eventcontext, GtkWidget *toolbox);
};
/**
* A simple mediator class that keeps UI controls matched to the preference values they set.
*/
{
/**
* Constructor for a boolean value that syncs to the supplied path.
* Initializes the widget to the current preference stored state and registers callbacks
* for widget changes and preference changes.
*
* @param act the widget to synchronize preference with.
* @param path the path to the preference the widget is synchronized with.
* @param callback function to invoke when changes are pushed.
* @param cbData data to be passed on to the callback function.
*/
PrefPusher( GtkToggleAction *act, Glib::ustring const &path, void (*callback)(GObject*) = 0, GObject *cbData = 0 );
/**
* Destructor that unregisters the preference callback.
*/
virtual ~PrefPusher();
/**
* Callback method invoked when the preference setting changes.
*/
/**
* Callback hook invoked when the widget changes.
*
* @param act the toggle action widget that was changed.
* @param self the PrefPusher instance the callback was registered to.
*/
/**
* Method to handle the widget change.
*/
void handleToggled();
bool freeze;
};
} // namespace UI
} // namespace Inkscape
// utility
#endif /* !SEEN_TOOLBOX_H */
/*
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 :