/*
* Inkscape::SelectionDescriber - shows messages describing selection
*
* Authors:
* MenTaLguY <mental@rydia.net>
* bulia byak <buliabyak@users.sf.net>
* Abhishek Sharma
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2004-2006 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "layer-model.h"
#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"
#include "sp-symbol.h"
#include "sp-rect.h"
#include "box3d.h"
#include "sp-ellipse.h"
#include "sp-star.h"
#include "sp-anchor.h"
#include "sp-image.h"
#include "sp-path.h"
#include "sp-line.h"
#include "sp-use.h"
#include "sp-polyline.h"
#include "sp-spiral.h"
// Returns a list of terms for the items to be used in the statusbar
{
bool first = true;
if (item) {
first = false;
}
}
}
}
// Returns the number of terms in the list
{
int count=0;
if (item) {
count++;
}
}
}
return count;
}
// Returns the number of filtered items in the list
{
int count=0;
if (item) {
}
}
return count;
}
namespace Inkscape {
SelectionDescriber::SelectionDescriber(Inkscape::Selection *selection, MessageStack *stack, char *when_selected, char *when_nothing)
{
}
{
delete _selection_changed_connection;
delete _selection_modified_connection;
}
{
}
} else {
// Layer name
} else if(!layer) {
} else {
char const *layer_label;
bool is_label = false;
is_label = true;
} else {
}
if (is_label) {
} else {
}
}
// Parent name
if (parent_label) {
}
if (num_layers == 1) {
if (num_parents == 1) {
else if (!layer)
else if (parent_name)
else
} else {
in_phrase = g_strdup_printf(ngettext(" in <b>%i</b> parent (%s)", " in <b>%i</b> parents (%s)", num_parents), num_parents, layer_name);
}
} else {
in_phrase = g_strdup_printf(ngettext(" in <b>%i</b> layer", " in <b>%i</b> layers", num_layers), num_layers);
}
g_free (layer_name);
_("Convert symbol to group to edit"), _when_selected);
_("Remove from symbols tray to edit symbol"));
} else {
_("Use <b>Shift+D</b> to look up original"), _when_selected);
} else {
_("Use <b>Shift+D</b> to look up path"), _when_selected);
} else {
_("Use <b>Shift+D</b> to look up frame"), _when_selected);
} else {
}
}
}
}
} else { // multiple items
"<b>%1$i</b> objects selected of type %2$s",
"<b>%1$i</b> objects selected of types %2$s", n_terms),
// indicate all, some, or none filtered
if (n_filt) {
} else {
}
_context.setF(Inkscape::NORMAL_MESSAGE, "%s%s%s. %s.", objects_str, filt_str, in_phrase, _when_selected);
if (objects_str) {
objects_str = 0;
}
if (filt_str) {
filt_str = 0;
}
}
}
}
}
/*
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 :