/**
* @file
* Dialog for renaming layers.
*/
/* Author:
* Bryce W. Harrington <bryce@bryceharrington.org>
* Andrius R. <knutux@gmail.com>
* Abhishek Sharma
*
* Copyright (C) 2004 Bryce Harrington
* Copyright (C) 2006 Andrius R.
*
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#include "layer-properties.h"
#include "inkscape.h"
#include "desktop.h"
#include "document.h"
#include "document-undo.h"
#include "layer-manager.h"
#include "message-stack.h"
#include "sp-object.h"
#include "sp-item.h"
#include "verbs.h"
#include "selection.h"
#include "selection-chemistry.h"
#include "ui/icon-names.h"
#include "ui/widget/imagetoggler.h"
#include "ui/tools/tool-base.h"
namespace Inkscape {
namespace UI {
namespace Dialogs {
{
#if WITH_GTKMM_3_0
#else
#endif
// Layer name widgets
#if WITH_GTKMM_3_0
#else
#endif
// Buttons
_close_button.set_use_stock(true);
_apply_button.set_use_underline(true);
true
)
);
}
}
{
dialog->property_destroy_with_parent() = true;
}
void
{
_("Add layer"));
_close();
}
void
{
destroy_();
false
)
);
}
void
return;
}
_position_visible = true;
#if !WITH_GTKMM_3_0
#endif
#if WITH_GTKMM_3_0
#else
#endif
}
void
_tree.set_headers_visible(false);
Inkscape::UI::Widget::ImageToggler *eyeRenderer = Gtk::manage( new Inkscape::UI::Widget::ImageToggler(
if ( col ) {
}
Inkscape::UI::Widget::ImageToggler * renderer = Gtk::manage( new Inkscape::UI::Widget::ImageToggler(
if ( col ) {
}
_tree.signal_key_press_event().connect( sigc::mem_fun(*this, &LayerPropertiesDialog::_handleKeyEvent), false );
_tree.signal_button_press_event().connect_notify( sigc::mem_fun(*this, &LayerPropertiesDialog::_handleButtonEvent) );
if ( root ) {
}
#if WITH_GTKMM_3_0
#else
#endif
}
void LayerPropertiesDialog::_addLayer( SPDocument* doc, SPObject* layer, Gtk::TreeModel::Row* parentRow, SPObject* target, int level )
{
for ( unsigned int i = 0; i < counter; i++ ) {
if ( child ) {
#if DUMP_LAYERS
#endif // DUMP_LAYERS
Gtk::TreeModel::iterator iter = parentRow ? _store->prepend(parentRow->children()) : _store->prepend();
//_checkTreeSelection();
}
}
}
}
}
{
if ( iter ) {
}
return obj;
}
{
case GDK_KEY_Return:
case GDK_KEY_KP_Enter: {
_close();
return true;
}
break;
}
return false;
}
{
_close();
}
}
/** Formats the label for a given layer row
*/
) {
}
}
return;
);
_("Rename layer"));
// TRANSLATORS: This means "The layer has been renamed"
}
// Set the initial name to the "next available" layer name
}
if (dialog._position_visible) {
}
return;
}
}
//TODO: find an unused layer number, forming name from _("Layer ") + "%d"
}
}
if (desktop) {
}
if (_desktop) {
}
}
if (layer) {
}
if (_layer) {
}
}
} // namespace
} // namespace
} // namespace
/*
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 :