1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2022 Tavmjong Bah
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
13 #ifndef SEEN_CONTEXTMENU_H
14 #define SEEN_CONTEXTMENU_H
17 #include <glibmm/refptr.h>
18 #include <gtkmm/popovermenu.h>
21 class SimpleActionGroup
;
30 * Implements the Inkscape context menu.
32 class ContextMenu final
: public Gtk::PopoverMenu
35 ContextMenu(SPDesktop
*desktop
, SPObject
*object
, std::vector
<SPItem
*> const &items_under_cursor
, bool hide_layers_and_objects_menu_item
= false);
38 // Used for unlock and unhide actions
39 Glib::RefPtr
<Gio::SimpleActionGroup
> action_group
;
40 std::vector
<SPItem
*> items_under_cursor
;
41 void unhide_or_unlock(SPDocument
* document
, bool unhide
);
44 #endif // SEEN_CONTEXT_MENU_H
49 c-file-style:"stroustrup"
50 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
55 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :