selection-describer.cpp revision 6b15695578f07a3f72c4c9475c1a261a3021472a
/*
* Inkscape::SelectionDescriber - shows messages describing selection
*
* Authors:
* MenTaLguY <mental@rydia.net>
* bulia byak <buliabyak@users.sf.net>
*
* Copyright (C) 2004 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "selection.h"
#include "selection-describer.h"
#include "desktop.h"
#include "sp-textpath.h"
#include "sp-offset.h"
#include "sp-flowtext.h"
#include "sp-use.h"
namespace Inkscape {
{
}
char const *when_selected = _("Click selection to toggle scale/rotation handles");
if (!items) { // no items
_context.set(Inkscape::NORMAL_MESSAGE, _("No objects selected. Click, Shift+click, or drag around objects to select."));
} else {
} else {
fmt = _(" in layer <b>%s</b>");
} else {
fmt = _(" in layer <b><i>%s</i></b>");
}
}
_("Use <b>Shift+D</b> to look up original"), when_selected);
} else if (SP_IS_TEXT_TEXTPATH(item)) {
_("Use <b>Shift+D</b> to look up path"), when_selected);
_("Use <b>Shift+D</b> to look up frame"), when_selected);
} else {
}
} else { // multiple items
ngettext("<b>%i</b> object selected",
"<b>%i</b> objects selected",
} else {
ngettext("%s in <b>%i</b> layer. %s.",
"%s in <b>%i</b> layers. %s.",
selection->numberOfLayers()),
}
if (object_count_str)
}
}
}
}
/*
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:encoding=utf-8:textwidth=99 :