toolbox.cpp revision dbb33756bd786e9432e18ec7be93f8c416e1b492
/**
* Toolbox Widget - A detachable toolbar for buttons and other widgets.
*
* Author:
* Derek P. Moore <derekm@hackunix.org>
*
* Copyright (C) 2004 Derek P. Moore
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtkmm/radioaction.h>
#include "path-prefix.h"
namespace Inkscape {
namespace UI {
namespace Widget {
{
init_actions();
}
{
init_actions();
}
{
}
get_uidir_filename(char const *basename_utf8)
{
return ret;
}
void
{
_detach_grp->set_sensitive(false);
}
void
{
}
switch (orientation) {
case Gtk::ORIENTATION_HORIZONTAL: {
->set_active();
break;
}
case Gtk::ORIENTATION_VERTICAL: {
->set_active();
break;
}
}
}
void
{
switch (style) {
case Gtk::TOOLBAR_ICONS: {
->activate();
break;
}
case Gtk::TOOLBAR_TEXT: {
->activate();
break;
}
case Gtk::TOOLBAR_BOTH: {
->activate();
break;
}
case Gtk::TOOLBAR_BOTH_HORIZ: {
->activate();
break;
}
}
}
bool
{
(void)x;
(void)y;
return true;
}
void
{
(void)widget;
if (!(toolbar->get_show_arrow())) {
->activate();
}
->activate();
->activate();
}
_detach_grp->set_sensitive(false);
}
void
{
(void)widget;
_detach_grp->set_sensitive(true);
->set_active(false);
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_action_grp->get_action("Icons"));
if (action->get_active()) {
}
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_action_grp->get_action("Text"));
if (action->get_active()) {
}
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_action_grp->get_action("Both"));
if (action->get_active()) {
}
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_action_grp->get_action("BothHoriz"));
if (action->get_active()) {
}
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_detach_grp->get_action("OrientHoriz"));
if (action->get_active()) {
}
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_detach_grp->get_action("OrientVert"));
if (action->get_active()) {
}
}
void
{
Glib::RefPtr<Gtk::RadioAction> action = Glib::RefPtr<Gtk::RadioAction>::cast_static(_detach_grp->get_action("ShowArrow"));
if (action->get_active()) {
toolbar->set_show_arrow(true);
} else {
toolbar->set_show_arrow(false);
}
}
} // namespace Widget
} // 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 :