Inkscape
Vector Graphics Editor
|
Actions for Layers. More...
Go to the source code of this file.
Variables | |
const Glib::ustring | SECTION_LAYER = NC_("Action Section", "Layer") |
const Glib::ustring | SECTION_SELECT = NC_("Action Section", "Select") |
std::vector< std::vector< Glib::ustring > > | raw_data_layer |
Actions for Layers.
These all require a window. To do: remove this requirement.
Authors: Sushant A A susha.nosp@m.nt.c.nosp@m.o19@g.nosp@m.mail.nosp@m..com
Copyright (C) 2021 Authors
Released under GNU GPL v2+, read the file 'COPYING' for more information.
Definition in file actions-layer.cpp.
void add_actions_layer | ( | InkscapeWindow * | win | ) |
Definition at line 514 of file actions-layer.cpp.
References group_enter(), group_exit(), InkscapeApplication::instance(), layer_bottom(), layer_delete(), layer_duplicate(), layer_from_group(), layer_hide_all(), layer_hide_toggle(), layer_hide_toggle_others(), layer_lock_all(), layer_lock_toggle(), layer_lock_toggle_others(), layer_lower(), layer_new(), layer_new_above(), layer_next(), layer_previous(), layer_raise(), layer_rename(), layer_to_group(), layer_top(), layer_unhide_all(), layer_unlock_all(), raw_data_layer, selection_move_to_layer(), selection_move_to_layer_above(), selection_move_to_layer_below(), and show_output().
Referenced by InkscapeWindow::InkscapeWindow().
void group_enter | ( | InkscapeWindow * | win | ) |
Definition at line 445 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getSelection(), items, SPDesktop::layerManager(), and Inkscape::LayerManager::setCurrentLayer().
Referenced by add_actions_layer().
void group_exit | ( | InkscapeWindow * | win | ) |
Definition at line 460 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), InkscapeWindow::get_desktop(), SPDesktop::getSelection(), items, SPDesktop::layerManager(), parent, SPObject::parent, and Inkscape::LayerManager::setCurrentLayer().
Referenced by add_actions_layer().
void layer_bottom | ( | InkscapeWindow * | win | ) |
Definition at line 374 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), SPObject::defaultLabel(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPObject::getNext(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPItem::lowerToBottom(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, and Inkscape::WARNING_MESSAGE.
Referenced by add_actions_layer().
void layer_delete | ( | InkscapeWindow * | win | ) |
Definition at line 85 of file actions-layer.cpp.
References Inkscape::ObjectSet::clear(), Inkscape::LayerManager::currentLayer(), Inkscape::LayerManager::currentRoot(), SPObject::deleteObject(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::getSelection(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::next_layer(), Inkscape::NORMAL_MESSAGE, SPObject::parent, Inkscape::previous_layer(), root, and Inkscape::LayerManager::setCurrentLayer().
Referenced by add_actions_layer().
void layer_duplicate | ( | InkscapeWindow * | win | ) |
Definition at line 69 of file actions-layer.cpp.
References Inkscape::DocumentUndo::done(), Inkscape::ObjectSet::duplicate(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::getSelection(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), and Inkscape::NORMAL_MESSAGE.
Referenced by add_actions_layer().
void layer_from_group | ( | InkscapeWindow * | win | ) |
Definition at line 418 of file actions-layer.cpp.
References Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::getSelection(), items, SPGroup::LAYER, SPDesktop::messageStack(), and show_output().
Referenced by add_actions_layer().
void layer_hide_all | ( | InkscapeWindow * | win | ) |
Definition at line 146 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::layerManager(), Inkscape::DocumentUndo::maybeDone(), and Inkscape::LayerManager::toggleHideAllLayers().
Referenced by add_actions_layer().
void layer_hide_toggle | ( | InkscapeWindow * | win | ) |
Definition at line 162 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), and SPDesktop::messageStack().
Referenced by add_actions_layer().
void layer_hide_toggle_others | ( | InkscapeWindow * | win | ) |
Definition at line 175 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), and Inkscape::LayerManager::toggleLayerSolo().
Referenced by add_actions_layer().
void layer_lock_all | ( | InkscapeWindow * | win | ) |
Definition at line 189 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::layerManager(), Inkscape::DocumentUndo::maybeDone(), and Inkscape::LayerManager::toggleLockAllLayers().
Referenced by add_actions_layer().
void layer_lock_toggle | ( | InkscapeWindow * | win | ) |
Definition at line 205 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), and SPDesktop::messageStack().
Referenced by add_actions_layer().
void layer_lock_toggle_others | ( | InkscapeWindow * | win | ) |
Definition at line 218 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), and Inkscape::LayerManager::toggleLockOtherLayers().
Referenced by add_actions_layer().
void layer_lower | ( | InkscapeWindow * | win | ) |
Definition at line 347 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), SPObject::defaultLabel(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPObject::getNext(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPItem::lowerOne(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, and Inkscape::WARNING_MESSAGE.
Referenced by add_actions_layer().
void layer_new | ( | InkscapeWindow * | win | ) |
Definition at line 46 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), InkscapeWindow::get_desktop(), SPDesktop::layerManager(), and Inkscape::UI::Dialog::LayerPropertiesDialog::showCreate().
Referenced by add_actions_layer().
void layer_new_above | ( | InkscapeWindow * | win | ) |
Definition at line 55 of file actions-layer.cpp.
References Inkscape::ObjectSet::clear(), Inkscape::create_layer(), Inkscape::LayerManager::currentLayer(), desktop, Inkscape::DocumentUndo::done(), Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::getSelection(), SPDesktop::layerManager(), Inkscape::LPOS_ABOVE, SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, Inkscape::LayerManager::renameLayer(), and Inkscape::LayerManager::setCurrentLayer().
Referenced by add_actions_layer().
void layer_next | ( | InkscapeWindow * | win | ) |
Definition at line 247 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::LayerManager::currentRoot(), Inkscape::DocumentUndo::done(), Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, Inkscape::previous_layer(), Inkscape::LayerManager::setCurrentLayer(), and Inkscape::WARNING_MESSAGE.
Referenced by add_actions_layer().
void layer_previous | ( | InkscapeWindow * | win | ) |
Definition at line 232 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::LayerManager::currentRoot(), Inkscape::DocumentUndo::done(), Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::next_layer(), Inkscape::NORMAL_MESSAGE, Inkscape::LayerManager::setCurrentLayer(), and Inkscape::WARNING_MESSAGE.
Referenced by add_actions_layer().
void layer_raise | ( | InkscapeWindow * | win | ) |
Definition at line 316 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), SPObject::defaultLabel(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPObject::getNext(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, SPItem::raiseOne(), and Inkscape::WARNING_MESSAGE.
Referenced by add_actions_layer().
void layer_rename | ( | InkscapeWindow * | win | ) |
Definition at line 137 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), InkscapeWindow::get_desktop(), SPDesktop::layerManager(), and Inkscape::UI::Dialog::LayerPropertiesDialog::showRename().
Referenced by add_actions_layer().
void layer_to_group | ( | InkscapeWindow * | win | ) |
Definition at line 401 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::getSelection(), SPGroup::GROUP, Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), and Inkscape::Selection::set().
Referenced by add_actions_layer().
void layer_top | ( | InkscapeWindow * | win | ) |
Definition at line 289 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), SPObject::defaultLabel(), Inkscape::DocumentUndo::done(), Inkscape::ERROR_MESSAGE, Inkscape::MessageStack::flash(), InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPObject::getNext(), Inkscape::LayerManager::isRoot(), SPDesktop::layerManager(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, SPItem::raiseToTop(), and Inkscape::WARNING_MESSAGE.
Referenced by add_actions_layer().
void layer_unhide_all | ( | InkscapeWindow * | win | ) |
Definition at line 154 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::layerManager(), Inkscape::DocumentUndo::maybeDone(), and Inkscape::LayerManager::toggleHideAllLayers().
Referenced by add_actions_layer().
void layer_unlock_all | ( | InkscapeWindow * | win | ) |
Definition at line 197 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getDocument(), SPDesktop::layerManager(), Inkscape::DocumentUndo::maybeDone(), and Inkscape::LayerManager::toggleLockAllLayers().
Referenced by add_actions_layer().
void selection_move_to_layer | ( | InkscapeWindow * | win | ) |
Definition at line 280 of file actions-layer.cpp.
References Inkscape::LayerManager::currentLayer(), InkscapeWindow::get_desktop(), SPDesktop::layerManager(), and Inkscape::UI::Dialog::LayerPropertiesDialog::showMove().
Referenced by add_actions_layer().
void selection_move_to_layer_above | ( | InkscapeWindow * | win | ) |
Definition at line 262 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getSelection(), and Inkscape::ObjectSet::toNextLayer().
Referenced by add_actions_layer().
void selection_move_to_layer_below | ( | InkscapeWindow * | win | ) |
Definition at line 271 of file actions-layer.cpp.
References InkscapeWindow::get_desktop(), SPDesktop::getSelection(), and Inkscape::ObjectSet::toPrevLayer().
Referenced by add_actions_layer().
std::vector<std::vector<Glib::ustring> > raw_data_layer |
Definition at line 480 of file actions-layer.cpp.
Referenced by add_actions_layer().
const Glib::ustring SECTION_LAYER = NC_("Action Section", "Layer") |
Definition at line 477 of file actions-layer.cpp.
const Glib::ustring SECTION_SELECT = NC_("Action Section", "Select") |
Definition at line 478 of file actions-layer.cpp.