object-properties.cpp revision c3c78ba9299d19ef9b50bd3aadda3dd35c326b7c
321N/A * @file Object properties dialog. 1356N/A * Inkscape, an Open Source vector graphics editor 321N/A * This program is free software; you can redistribute it and/or 919N/A * modify it under the terms of the GNU General Public License 919N/A * as published by the Free Software Foundation; either version 2 919N/A * of the License, or (at your option) any later version. 919N/A * This program is distributed in the hope that it will be useful, 919N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 919N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 919N/A * GNU General Public License for more details. 919N/A * You should have received a copy of the GNU General Public License 919N/A * along with this program; if not, write to the Free Software 919N/A * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 919N/A * Copyright (C) 2012 Kris De Gussem <Kris.DeGussem@gmail.com> 919N/A * c++ version based on former C-version (GPL v2) with authors: 919N/A * Lauris Kaplinski <lauris@kaplinski.com> 919N/A * bulia byak <buliabyak@users.sf.net> 321N/A * Johan Engelen <goejendaagh@zonnet.nl> //initialize labels for the table at the bottom of the dialog /* Create the label for the object id */ /* Create the entry box for the object id */ // pressing enter in the id field is the same as clicking Set: // focus is in the id field initially: /* Create the label for the object label */ /* Create the entry box for the object label */ // pressing enter in the label field is the same as clicking Set: /* Create the label for the object title */ /* Create the entry box for the object title */ // pressing enter in the label field is the same as clicking Set: /* Create the frame for the object description */ /* Create the text view box for the object description */ // TRANSLATORS: "Lock" is a verb here /* Button for setting the object's id, label, title and description. */ /* Create the frame for interactivity options */ //no selection anymore or multiple objects selected, means that we need //to close the connections to the previously selected object //otherwise we would end up wasting resources through the modify selection //callback when moving an object (endlessly setting the labels and recreating attrTable) /* Retrieve the label widget for the object's id */ g_strcanon (
id,
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.:",
'_');
/* Retrieve the label widget for the object's label */ /* Give feedback on success of setting the drawing object's label * using the widget's label text /* Retrieve the description */ _(
"Set object description"));
c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :