Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
selection-describer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Inkscape::SelectionDescriber - shows messages describing selection
4 *
5 * Authors:
6 * MenTaLguY <mental@rydia.net>
7 *
8 * Copyright (C) 2004 MenTaLguY
9 *
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
11 */
12
13#ifndef INKSCAPE_SELECTION_DESCRIBER_H
14#define INKSCAPE_SELECTION_DESCRIBER_H
15
16#include <sigc++/scoped_connection.h>
17#include "message-context.h"
18
19namespace Inkscape {
20
21class MessageStack;
22class Selection;
23
24class SelectionDescriber : public sigc::trackable
25{
26public:
27 SelectionDescriber(Inkscape::Selection *selection, MessageStack &stack, char *when_selected, char *when_nothing);
29
30 void updateMessage(Inkscape::Selection *selection);
31
32private:
33 sigc::scoped_connection _selection_changed_connection;
34
36
39};
40
41} // namespace Inkscape
42
43#endif // INKSCAPE_SELECTION_DESCRIBER_H
44
45/*
46 Local Variables:
47 mode:c++
48 c-file-style:"stroustrup"
49 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
50 indent-tabs-mode:nil
51 fill-column:99
52 End:
53*/
54// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
A convenience class for working with MessageStacks.
A class which holds a stack of displayed messages.
void updateMessage(Inkscape::Selection *selection)
sigc::scoped_connection _selection_changed_connection
The set of selected SPObjects for a given document and layer model.
Definition selection.h:80
Interface for locally managing a current status message.
Helper class to stream background task notifications as a series of messages.
Gtk::Stack & stack