Inkscape
Vector Graphics Editor
|
Implements the Inkscape context menu. More...
#include <contextmenu.h>
Public Member Functions | |
ContextMenu (SPDesktop *desktop, SPObject *object, std::vector< SPItem * > const &items_under_cursor, bool hide_layers_and_objects_menu_item=false) | |
Private Member Functions | |
void | unhide_or_unlock (SPDocument *document, bool unhide) |
Private Attributes | |
Glib::RefPtr< Gio::SimpleActionGroup > | action_group |
std::vector< SPItem * > | items_under_cursor |
Implements the Inkscape context menu.
Definition at line 32 of file contextmenu.h.
ContextMenu::ContextMenu | ( | SPDesktop * | desktop, |
SPObject * | object, | ||
std::vector< SPItem * > const & | items_under_cursor, | ||
bool | hide_layers_and_objects_menu_item = false |
||
) |
Definition at line 142 of file contextmenu.cpp.
References action_group, AppendItemFromAction(), Inkscape::LayerManager::asLayer(), childrenIncludedInSelection(), create_clipboard_actions(), Inkscape::LayerManager::currentRoot(), SPObject::defaultLabel(), desktop, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPItem::getClipObject(), SPDesktop::getDocument(), SPDesktop::getInkscapeWindow(), Inkscape::Preferences::getInt(), SPItem::getMaskObject(), SPItem::getParentGroup(), SPDesktop::getSelection(), image, Inkscape::Selection::includes(), is_clone_of_image(), SPItem::isHidden(), SPGroup::isLayer(), SPItem::isLocked(), item, items, items_under_cursor, label, SPDesktop::layerManager(), page, SPObject::parent, root, Inkscape::Selection::set(), set_tooltips_and_shift_icons(), show_all_images(), and unhide_or_unlock().
|
private |
Definition at line 408 of file contextmenu.cpp.
References Inkscape::DocumentUndo::done(), SPItem::isHidden(), SPItem::isLocked(), item, items_under_cursor, SPItem::setHidden(), SPItem::setLocked(), and unhide().
Referenced by ContextMenu().
|
private |
Definition at line 39 of file contextmenu.h.
Referenced by ContextMenu().
|
private |
Definition at line 40 of file contextmenu.h.
Referenced by ContextMenu(), and unhide_or_unlock().