Inkscape
Vector Graphics Editor
|
A panel that displays objects. More...
#include <objects.h>
Public Member Functions | |
ObjectsPanel () | |
Constructor. | |
~ObjectsPanel () override | |
![]() | |
DialogBase (char const *prefs_path=nullptr, Glib::ustring dialog_type={}) | |
DialogBase constructor. | |
DialogBase (DialogBase const &)=delete | |
DialogBase & | operator= (DialogBase const &)=delete |
~DialogBase () override | |
virtual void | update () |
The update() method is essential to Gtk state management. | |
void | setDesktop (SPDesktop *new_desktop) |
Called when the desktop might have changed for this dialog. | |
void | on_map () override |
Glib::ustring const & | get_name () const |
Glib::ustring const & | getPrefsPath () const |
Glib::ustring const & | get_type () const |
const Glib::ustring & | get_icon () const |
void | blink () |
Highlight notebook where dialog already exists. | |
virtual void | focus_dialog () |
void | defocus_dialog () |
bool | getShowing () |
void | fix_inner_scroll (Gtk::ScrolledWindow &scrollwin) |
SPDesktop * | getDesktop () const |
Private Types | |
enum class | EventType { pressed , released } |
Private Member Functions | |
void | desktopReplaced () override |
Called when the desktop has certainly changed. | |
void | documentReplaced () override |
void | layerChanged (SPObject *obj) |
Happens when the layer selected is changed. | |
void | selectionChanged (Selection *selected) override |
ObjectWatcher * | unpackToObject (SPObject *item) |
This both unpacks the tree, and populates lazy loading. | |
SPObject * | getObject (Inkscape::XML::Node *node) |
Get the object from the node. | |
ObjectWatcher * | getWatcher (Inkscape::XML::Node *node) |
Get the object watcher from the xml node (reverse lookup), it uses a ancesstor recursive pattern to match up with the root_watcher. | |
ObjectWatcher * | getRootWatcher () const |
bool | showChildInTree (SPItem *item) |
Apply any ongoing filters to the items. | |
Inkscape::XML::Node * | getRepr (Gtk::TreeModel::ConstRow const &row) const |
Get the XML node which is associated with a row. | |
SPItem * | getItem (Gtk::TreeModel::ConstRow const &row) const |
Get the item which is associated with a row. | |
std::optional< Gtk::TreeRow > | getRow (SPItem *item) const |
bool | isDummy (Gtk::TreeModel::ConstRow const &row) const |
bool | hasDummyChildren (Gtk::TreeModel::ConstRow const &row) const |
Return true if this row has dummy children. | |
bool | removeDummyChildren (Gtk::TreeModel::Row row) |
If the given row has dummy children, remove them. | |
bool | cleanDummyChildren (Gtk::TreeModel::Row row) |
void | setRootWatcher () |
void | _activateAction (const std::string &layerAction, const std::string &selectionAction) |
Special context-aware functions - If nothing is selected or layers-only mode is active, move/delete layers. | |
bool | blendModePopup (int x, int y, Gtk::TreeModel::Row row) |
bool | colorTagPopup (int x, int y, Gtk::TreeModel::Row row) |
bool | toggleVisible (Gdk::ModifierType state, Gtk::TreeModel::Row row) |
Sets visibility of items in the tree. | |
bool | toggleLocked (Gdk::ModifierType state, Gtk::TreeModel::Row row) |
Sets sensitivity of items in the tree. | |
Gtk::EventSequenceState | on_click (Gtk::GestureClick const &gesture, int n_press, double x, double y, EventType type) |
Handles mouse button click events. | |
bool | on_tree_key_pressed (Gtk::EventControllerKey const &controller, unsigned keyval, unsigned keycode, Gdk::ModifierType state) |
Handles keyboard events on the TreeView. | |
bool | on_window_key (Gtk::EventControllerKey const &controller, unsigned keyval, unsigned keycode, Gdk::ModifierType state, EventType type) |
void | on_motion_enter (double x, double y) |
Handles mouse movements. | |
void | on_motion_leave () |
void | on_motion_motion (Gtk::EventControllerMotion const *controller, double x, double y) |
void | _searchActivated () |
User pressed return in search box, process search query. | |
void | _handleEdited (const Glib::ustring &path, const Glib::ustring &new_text) |
Handle a successful item label edit. | |
void | _handleTransparentHover (bool enabled) |
void | _generateTranslucentItems (SPItem *parent) |
bool | select_row (Glib::RefPtr< Gtk::TreeModel > const &model, Gtk::TreeModel::Path const &path, bool b) |
Take over the select row functionality from the TreeView, this is because we have two selections (layer and object selection) and require a custom method of rendering the result to the treeview. | |
Glib::RefPtr< Gdk::ContentProvider > | on_prepare (Gtk::DragSource &controller, double x, double y) |
void | on_drag_begin (Glib::RefPtr< Gdk::Drag > const &drag) |
void | on_drag_end (Glib::RefPtr< Gdk::Drag > const &drag, bool delete_data) |
Gdk::DragAction | on_drag_motion (double x, double y) |
Signal handler for "drag-motion". | |
bool | on_drag_drop (Glib::ValueBase const &value, double x, double y) |
Signal handler for "drag-drop". | |
void | drag_end_impl () |
void | selectRange (Gtk::TreeModel::Path start, Gtk::TreeModel::Path end) |
bool | selectCursorItem (Gdk::ModifierType state) |
Select the object currently under the list-cursor (keyboard or mouse) | |
SPItem * | _getCursorItem (Gtk::TreeViewColumn *column) |
bool | _selectionChanged () |
Private Attributes | |
Glib::RefPtr< Gtk::TreeStore > | _store |
std::unique_ptr< ModelColumns > | _model |
Glib::RefPtr< Gtk::Builder > | _builder |
Inkscape::PrefObserver | _watch_object_mode |
std::unique_ptr< ObjectWatcher > | root_watcher |
SPItem * | current_item = nullptr |
Gtk::TreeModel::Path | _initial_path |
bool | _start_new_range = true |
std::vector< SPWeakPtr< SPObject > > | _prev_range |
sigc::scoped_connection | layer_changed |
SPObject * | _layer |
Gtk::TreeModel::RowReference | _hovered_row_ref |
Gdk::RGBA | _hovered_row_color |
Gdk::RGBA | _hovered_row_old_color |
bool | _show_contextmenu_icons |
bool | _is_editing |
bool | _scroll_lock = false |
std::vector< Gtk::Widget * > | _watching |
std::vector< Gtk::Widget * > | _watchingNonTop |
std::vector< Gtk::Widget * > | _watchingNonBottom |
TreeViewWithCssChanged & | _tree |
Gtk::CellRendererText * | _text_renderer = nullptr |
Gtk::TreeView::Column * | _name_column = nullptr |
Gtk::TreeView::Column * | _blend_mode_column = nullptr |
Gtk::TreeView::Column * | _eye_column = nullptr |
Gtk::TreeView::Column * | _lock_column = nullptr |
Gtk::TreeView::Column * | _color_tag_column = nullptr |
Gtk::Box | _buttonsRow |
Gtk::Box | _buttonsPrimary |
Gtk::Box | _buttonsSecondary |
Gtk::SearchEntry2 & | _searchBox |
Gtk::ScrolledWindow | _scroller |
Gtk::Box | _page |
sigc::scoped_connection | _tree_style |
Gtk::TreeRow | _clicked_item_row |
UI::Widget::PopoverBin | _popoverbin |
bool | _translucency_enabled = false |
SPItem * | _old_solid_item = nullptr |
int | _msg_id |
Gtk::Popover & | _settings_menu |
Gtk::Popover & | _object_menu |
std::shared_ptr< Colors::ColorSet > | _colors |
UI::Widget::ColorNotebook * | _color_selector = nullptr |
Gtk::Scale & | _opacity_slider |
std::map< SPBlendMode, Gtk::CheckButton * > | _blend_items |
std::map< SPBlendMode, Glib::ustring > | _blend_mode_names |
Inkscape::UI::Widget::ImageToggler * | _item_state_toggler |
Gtk::TreeViewColumn * | _drag_column = nullptr |
UI::Widget::PrefCheckButton & | _setting_layers |
UI::Widget::PrefCheckButton & | _setting_track |
bool | _drag_flip |
sigc::scoped_connection | _idle_connection |
Friends | |
class | ObjectWatcher |
Additional Inherited Members | |
![]() | |
InkscapeApplication * | getApp () const |
SPDocument * | getDocument () const |
Selection * | getSelection () const |
void | setShowing (bool showing) |
function called from notebook dialog that performs an update of the dialog and sets the dialog showing state true | |
![]() | |
Glib::ustring | _name |
Glib::ustring const | _prefs_path |
Glib::ustring const | _dialog_type |
|
strongprivate |
Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel | ( | ) |
Constructor.
Definition at line 698 of file objects.cpp.
References _activateAction(), _blend_items, _blend_mode_column, _blend_mode_names, _builder, _color_tag_column, _eye_column, _handleEdited(), _is_editing, _item_state_toggler, _layer, Inkscape::Util::EnumDataConverter< E >::_length, _lock_column, _model, _name_column, _object_menu, _opacity_slider, _page, _popoverbin, _scroller, _searchActivated(), _searchBox, _selectionChanged(), _store, _text_renderer, _tree, _tree_style, _watch_object_mode, Inkscape::append(), SPObject::changeCSS(), cleanDummyChildren(), Inkscape::UI::create_builder(), css, current_item, Inkscape::Util::EnumDataConverter< E >::data(), data, SPObject::document, Inkscape::DocumentUndo::done(), Inkscape::Util::format_number(), Inkscape::Preferences::get(), get_color_with_class(), Inkscape::UI::Dialog::get_key(), Inkscape::UI::get_widget(), Inkscape::UI::Dialog::DialogBase::getDesktop(), Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), SPObject::getRepr(), Inkscape::UI::Dialog::DialogBase::getSelection(), getWatcher(), SPObject::id, item, key, label, layerChanged(), Inkscape::DocumentUndo::maybeDone(), on_click(), on_drag_begin(), on_drag_drop(), on_drag_end(), on_drag_motion(), on_motion_enter(), on_motion_leave(), on_motion_motion(), on_prepare(), on_tree_key_pressed(), on_window_key(), pressed, Inkscape::UI::Widget::ImageToggler::property_activatable(), Inkscape::UI::Widget::ImageToggler::property_active(), Inkscape::UI::Widget::ImageToggler::property_active_icon(), released, root_watcher, Inkscape::UI::Dialog::selection_color, set_blend_mode(), Inkscape::UI::Widget::ImageToggler::set_force_visible(), Inkscape::UI::Widget::PopoverBin::setChild(), SPItem::setExpanded(), setRootWatcher(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), sp_repr_css_set_property(), Inkscape::SPBlendModeConverter, Inkscape::CSSOStringStream::str(), Inkscape::UI::Dialog::DialogBase::update(), Inkscape::UI::Controller::use_state(), and width.
|
overridedefault |
|
private |
Special context-aware functions - If nothing is selected or layers-only mode is active, move/delete layers.
Definition at line 1211 of file objects.cpp.
References Inkscape::Preferences::get(), InkscapeApplication::get_active_window(), Inkscape::UI::Dialog::DialogBase::getSelection(), InkscapeApplication::instance(), Inkscape::ObjectSet::isEmpty(), and Inkscape::UI::Dialog::DialogBase::selection.
Referenced by ObjectsPanel(), and on_tree_key_pressed().
|
private |
|
private |
|
private |
Handle a successful item label edit.
path | Tree path of the item currently being edited |
new_text | New label text |
Definition at line 1742 of file objects.cpp.
References _is_editing, _store, Inkscape::DocumentUndo::done(), Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), SPItem::highlight_color(), SPItem::isHighlightSet(), item, SPObject::label(), SPGroup::LAYER, SPItem::setHighlight(), and SPObject::setLabel().
Referenced by ObjectsPanel().
|
private |
Definition at line 1556 of file objects.cpp.
References _hovered_row_ref, _old_solid_item, _store, _translucency_enabled, Inkscape::UI::Dialog::DialogBase::getDesktop(), getItem(), SPDesktop::getTranslucencyGroup(), and item.
Referenced by on_motion_motion(), and on_window_key().
|
private |
User pressed return in search box, process search query.
Definition at line 2121 of file objects.cpp.
References setRootWatcher().
Referenced by ObjectsPanel().
|
private |
Definition at line 1147 of file objects.cpp.
References _scroll_lock, _tree, current_item, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPObject::getRepr(), Inkscape::UI::Dialog::DialogBase::getSelection(), Inkscape::UI::Dialog::GROUP_SELECT_CHILD, item, Inkscape::ObjectSet::items(), root_watcher, Inkscape::UI::Dialog::SELECTED_OBJECT, and unpackToObject().
Referenced by ObjectsPanel(), selectionChanged(), and setRootWatcher().
|
private |
Definition at line 1260 of file objects.cpp.
References _blend_items, _item_state_toggler, _object_menu, _opacity_slider, _popoverbin, _tree, current_item, getItem(), item, SPStyle::mix_blend_mode, SPStyle::opacity, Inkscape::UI::popup_at(), Inkscape::UI::Widget::ImageToggler::set_force_visible(), Inkscape::UI::Widget::PopoverBin::setPopover(), SP_CSS_BLEND_NORMAL, and SPObject::style.
Referenced by on_click().
|
private |
Definition at line 1826 of file objects.cpp.
References getItem(), getRepr(), getWatcher(), and removeDummyChildren().
Referenced by ObjectsPanel(), and unpackToObject().
|
private |
Definition at line 1293 of file objects.cpp.
References _clicked_item_row, _color_selector, _colors, _popoverbin, _tree, Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), SPItem::highlight_color(), item, Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::popup_at(), Inkscape::UI::Widget::ColorNotebook::set_label(), SPItem::setHighlight(), and Inkscape::UI::Widget::PopoverBin::setPopover().
Referenced by on_click().
|
overrideprivatevirtual |
Called when the desktop has certainly changed.
It may have changed to nullptr when destructing the dialog, so the override should expect nullptr too.
Reimplemented from Inkscape::UI::Dialog::DialogBase.
Definition at line 1034 of file objects.cpp.
References Inkscape::LayerManager::connectCurrentLayerChanged(), Inkscape::UI::Dialog::DialogBase::desktop, Inkscape::UI::Dialog::DialogBase::getDesktop(), layer_changed, layerChanged(), and SPDesktop::layerManager().
|
overrideprivatevirtual |
Reimplemented from Inkscape::UI::Dialog::DialogBase.
Definition at line 1043 of file objects.cpp.
References setRootWatcher().
|
private |
Definition at line 2002 of file objects.cpp.
References _tree, current_item, and Inkscape::UI::Dialog::DialogBase::selection.
Referenced by on_drag_drop(), and on_drag_end().
|
private |
Get the item which is associated with a row.
If getRepr(row) is not NULL, then this call is expected to also not be NULL.
Definition at line 1781 of file objects.cpp.
References getRepr().
Referenced by _handleEdited(), _handleTransparentHover(), blendModePopup(), cleanDummyChildren(), colorTagPopup(), ObjectsPanel(), on_click(), on_drag_motion(), on_motion_motion(), selectCursorItem(), selectRange(), toggleLocked(), and toggleVisible().
|
private |
Get the object from the node.
Definition at line 665 of file objects.cpp.
References Inkscape::UI::Dialog::DialogBase::getDocument(), SPDocument::getObjectByRepr(), and node.
|
private |
Get the XML node which is associated with a row.
Can be NULL for dummy children.
Definition at line 1772 of file objects.cpp.
References _model.
Referenced by cleanDummyChildren(), getItem(), isDummy(), and on_drag_drop().
|
inlineprivate |
Definition at line 94 of file objects.h.
References root_watcher.
|
private |
|
private |
Get the object watcher from the xml node (reverse lookup), it uses a ancesstor recursive pattern to match up with the root_watcher.
node | - The node to look up. |
Definition at line 678 of file objects.cpp.
References getWatcher(), node, Inkscape::XML::Node::parent(), and root_watcher.
Referenced by cleanDummyChildren(), getWatcher(), layerChanged(), ObjectsPanel(), on_drag_begin(), and on_tree_key_pressed().
|
private |
Return true if this row has dummy children.
Definition at line 1790 of file objects.cpp.
Referenced by removeDummyChildren().
|
inlineprivate |
Definition at line 101 of file objects.h.
References getRepr().
Referenced by hasDummyChildren(), and removeDummyChildren().
|
private |
Happens when the layer selected is changed.
layer | - The layer now selected |
Definition at line 1192 of file objects.cpp.
References _layer, SPObject::getRepr(), getWatcher(), Inkscape::UI::Dialog::LAYER_FOCUS_CHILD, Inkscape::UI::Dialog::LAYER_FOCUSED, and root_watcher.
Referenced by desktopReplaced(), ObjectsPanel(), and setRootWatcher().
|
private |
Handles mouse button click events.
Definition at line 1597 of file objects.cpp.
References _blend_mode_column, _clicked_item_row, _color_tag_column, _drag_column, _drag_flip, _eye_column, _initial_path, _is_editing, _layer, _lock_column, _name_column, _popoverbin, _store, _tree, Inkscape::LayerManager::asLayer(), blendModePopup(), colorTagPopup(), current_item, Inkscape::UI::Dialog::get_cell_area(), Inkscape::UI::Dialog::get_cell_center(), Inkscape::UI::Dialog::DialogBase::getDesktop(), getItem(), Inkscape::UI::Dialog::DialogBase::getSelection(), Inkscape::UI::Controller::has_flag(), Inkscape::Selection::includes(), item, items, SPDesktop::layerManager(), Inkscape::UI::popup_at(), pressed, released, selectCursorItem(), Inkscape::UI::Dialog::DialogBase::selection, Inkscape::LayerManager::setCurrentLayer(), Inkscape::UI::Widget::PopoverBin::setPopover(), toggleLocked(), and toggleVisible().
Referenced by ObjectsPanel().
|
private |
Definition at line 1968 of file objects.cpp.
References _scroll_lock, _tree, current_item, SPObject::getRepr(), Inkscape::UI::Dialog::DialogBase::getSelection(), getWatcher(), item, Inkscape::UI::Dialog::DialogBase::selection, and Inkscape::Selection::set().
Referenced by ObjectsPanel().
|
private |
Signal handler for "drag-drop".
Do the actual work of drag-and-drop.
Definition at line 1904 of file objects.cpp.
References _store, _tree, Inkscape::UI::Dialog::DialogBase::document, Inkscape::DocumentUndo::done(), drag_end_impl(), Inkscape::UI::Dialog::DialogBase::getDocument(), SPDocument::getObjectByRepr(), getRepr(), Inkscape::UI::Dialog::DialogBase::getSelection(), item, SPObject::parent, Inkscape::UI::Dialog::DialogBase::selection, and Inkscape::ObjectSet::toLayer().
Referenced by ObjectsPanel().
|
private |
Definition at line 2010 of file objects.cpp.
References drag_end_impl().
Referenced by ObjectsPanel().
|
private |
Signal handler for "drag-motion".
Refuses drops onto self.
Definition at line 1843 of file objects.cpp.
References _name_column, _store, _tree, Inkscape::UI::Dialog::DialogBase::document, Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), Inkscape::UI::Dialog::DialogBase::getSelection(), Inkscape::Selection::includes(), Inkscape::Selection::includesAncestor(), item, and Inkscape::UI::Dialog::DialogBase::selection.
Referenced by ObjectsPanel().
|
private |
Handles mouse movements.
Definition at line 1468 of file objects.cpp.
References _msg_id, Inkscape::UI::Dialog::DialogBase::getDesktop(), SPDesktop::messageStack(), Inkscape::NORMAL_MESSAGE, and Inkscape::MessageStack::push().
Referenced by ObjectsPanel().
|
private |
Definition at line 1475 of file objects.cpp.
References _msg_id, Inkscape::MessageStack::cancel(), Inkscape::UI::Dialog::DialogBase::getDesktop(), SPDesktop::messageStack(), and on_motion_motion().
Referenced by ObjectsPanel().
|
private |
Definition at line 1481 of file objects.cpp.
References _color_tag_column, _drag_column, _drag_flip, _eye_column, _handleTransparentHover(), _hovered_row_color, _hovered_row_old_color, _hovered_row_ref, _is_editing, _lock_column, _model, _name_column, _store, _tree, change_alpha(), Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), Inkscape::UI::Controller::has_flag(), HOVER_ALPHA, item, Inkscape::DocumentUndo::maybeDone(), SPItem::setHidden(), and SPItem::setLocked().
Referenced by ObjectsPanel(), and on_motion_leave().
|
private |
Definition at line 1948 of file objects.cpp.
References _tree, and surface.
Referenced by ObjectsPanel().
|
private |
Handles keyboard events on the TreeView.
Definition at line 1357 of file objects.cpp.
References _activateAction(), _is_editing, _tree, Inkscape::UI::Dialog::DialogBase::desktop, Inkscape::Shortcuts::get_from(), SPDesktop::getCanvas(), Inkscape::UI::Dialog::DialogBase::getDesktop(), SPObject::getRepr(), Inkscape::UI::Dialog::DialogBase::getSelection(), getWatcher(), Inkscape::UI::Controller::has_flag(), item, selectCursorItem(), and shift().
Referenced by ObjectsPanel().
|
private |
Definition at line 1444 of file objects.cpp.
References _handleTransparentHover(), Inkscape::UI::Dialog::DialogBase::desktop, Inkscape::Shortcuts::get_from(), Inkscape::UI::Dialog::DialogBase::getDesktop(), and pressed.
Referenced by ObjectsPanel().
|
private |
If the given row has dummy children, remove them.
Definition at line 1806 of file objects.cpp.
References _store, child, hasDummyChildren(), and isDummy().
Referenced by cleanDummyChildren().
|
private |
Take over the select row functionality from the TreeView, this is because we have two selections (layer and object selection) and require a custom method of rendering the result to the treeview.
Definition at line 1764 of file objects.cpp.
|
private |
Select the object currently under the list-cursor (keyboard or mouse)
Definition at line 2061 of file objects.cpp.
References _eye_column, _initial_path, _lock_column, _name_column, _scroll_lock, _start_new_range, _store, _tree, Inkscape::Selection::add(), Inkscape::UI::Dialog::DialogBase::getDesktop(), getItem(), Inkscape::UI::Dialog::DialogBase::getSelection(), Inkscape::UI::Controller::has_flag(), Inkscape::Selection::includes(), Inkscape::ObjectSet::isEmpty(), item, SPDesktop::layerManager(), SPObject::parent, Inkscape::Selection::remove(), Inkscape::UI::Dialog::DialogBase::selection, selectRange(), Inkscape::Selection::set(), toggleLocked(), and toggleVisible().
Referenced by on_click(), and on_tree_key_pressed().
|
overrideprivatevirtual |
Reimplemented from Inkscape::UI::Dialog::DialogBase.
Definition at line 1138 of file objects.cpp.
References _idle_connection, _selectionChanged(), and SP_DOCUMENT_UPDATE_PRIORITY.
|
private |
Definition at line 2015 of file objects.cpp.
References _prev_range, _start_new_range, _store, Inkscape::Selection::add(), Inkscape::UI::end, Inkscape::UI::Dialog::DialogBase::getDesktop(), getItem(), Inkscape::UI::Dialog::DialogBase::getSelection(), SPDesktop::layerManager(), Inkscape::Selection::remove(), Inkscape::UI::Dialog::DialogBase::selection, and Inkscape::UI::start.
Referenced by selectCursorItem().
|
private |
Definition at line 1048 of file objects.cpp.
References _idle_connection, _searchBox, _selectionChanged(), Inkscape::UI::Dialog::DialogBase::document, Inkscape::Preferences::get(), Inkscape::UI::Dialog::DialogBase::getDesktop(), Inkscape::UI::Dialog::DialogBase::getDocument(), SPDocument::getRoot(), layerChanged(), and root_watcher.
Referenced by _searchActivated(), documentReplaced(), and ObjectsPanel().
|
private |
Apply any ongoing filters to the items.
Definition at line 1070 of file objects.cpp.
References _searchBox, child, SPObject::childList(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), SPObject::getId(), SPObject::getTagName(), item, SPObject::label(), label, SPGroup::LAYER, and showChildInTree().
Referenced by showChildInTree().
|
private |
Sets sensitivity of items in the tree.
iter | Current item in the tree |
locked | Whether the item should be locked |
Definition at line 1322 of file objects.cpp.
References _model, Inkscape::UI::Dialog::DialogBase::desktop, Inkscape::DocumentUndo::done(), Inkscape::UI::Dialog::DialogBase::getDesktop(), Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), Inkscape::UI::Dialog::DialogBase::getSelection(), Inkscape::UI::Controller::has_flag(), Inkscape::Selection::includes(), Inkscape::LayerManager::isLayer(), item, Inkscape::ObjectSet::items(), SPDesktop::layerManager(), Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Dialog::DialogBase::selection, SPItem::setLocked(), and Inkscape::LayerManager::toggleLockOtherLayers().
Referenced by on_click(), and selectCursorItem().
|
private |
Sets visibility of items in the tree.
iter | Current item in the tree |
Definition at line 1228 of file objects.cpp.
References _model, Inkscape::UI::Dialog::DialogBase::desktop, Inkscape::DocumentUndo::done(), Inkscape::UI::Dialog::DialogBase::getDesktop(), Inkscape::UI::Dialog::DialogBase::getDocument(), getItem(), Inkscape::UI::Dialog::DialogBase::getSelection(), Inkscape::UI::Controller::has_flag(), Inkscape::Selection::includes(), Inkscape::LayerManager::isLayer(), item, Inkscape::ObjectSet::items(), SPDesktop::layerManager(), Inkscape::DocumentUndo::maybeDone(), Inkscape::UI::Dialog::DialogBase::selection, SPItem::setHidden(), Inkscape::LayerManager::toggleLayerSolo(), and visible.
Referenced by on_click(), and selectCursorItem().
|
private |
This both unpacks the tree, and populates lazy loading.
Definition at line 1116 of file objects.cpp.
References SPObject::ancestorList(), cleanDummyChildren(), item, ObjectWatcher, parent, and root_watcher.
Referenced by _selectionChanged().
|
friend |
Definition at line 193 of file objects.h.
Referenced by unpackToObject().
|
private |
Definition at line 205 of file objects.h.
Referenced by blendModePopup(), and ObjectsPanel().
|
private |
Definition at line 139 of file objects.h.
Referenced by ObjectsPanel(), and on_click().
|
private |
Definition at line 206 of file objects.h.
Referenced by ObjectsPanel().
|
private |
Definition at line 111 of file objects.h.
Referenced by ObjectsPanel().
|
private |
|
private |
|
private |
|
private |
Definition at line 150 of file objects.h.
Referenced by colorTagPopup(), and on_click().
|
private |
Definition at line 202 of file objects.h.
Referenced by colorTagPopup().
|
private |
Definition at line 142 of file objects.h.
Referenced by ObjectsPanel(), on_click(), and on_motion_motion().
|
private |
Definition at line 201 of file objects.h.
Referenced by colorTagPopup().
|
private |
Definition at line 210 of file objects.h.
Referenced by on_click(), and on_motion_motion().
|
private |
Definition at line 214 of file objects.h.
Referenced by on_click(), and on_motion_motion().
|
private |
Definition at line 140 of file objects.h.
Referenced by ObjectsPanel(), on_click(), on_motion_motion(), and selectCursorItem().
|
private |
Definition at line 122 of file objects.h.
Referenced by on_motion_motion().
|
private |
Definition at line 123 of file objects.h.
Referenced by on_motion_motion().
|
private |
Definition at line 121 of file objects.h.
Referenced by _handleTransparentHover(), and on_motion_motion().
|
private |
Definition at line 217 of file objects.h.
Referenced by selectionChanged(), and setRootWatcher().
|
private |
Definition at line 115 of file objects.h.
Referenced by on_click(), and selectCursorItem().
|
private |
Definition at line 128 of file objects.h.
Referenced by _handleEdited(), ObjectsPanel(), on_click(), on_motion_motion(), and on_tree_key_pressed().
|
private |
Definition at line 207 of file objects.h.
Referenced by blendModePopup(), and ObjectsPanel().
|
private |
Definition at line 120 of file objects.h.
Referenced by layerChanged(), ObjectsPanel(), and on_click().
|
private |
Definition at line 141 of file objects.h.
Referenced by ObjectsPanel(), on_click(), on_motion_motion(), and selectCursorItem().
|
private |
Definition at line 107 of file objects.h.
Referenced by getRepr(), ObjectsPanel(), on_motion_motion(), toggleLocked(), and toggleVisible().
|
private |
Definition at line 198 of file objects.h.
Referenced by on_motion_enter(), and on_motion_leave().
|
private |
Definition at line 138 of file objects.h.
Referenced by ObjectsPanel(), on_click(), on_drag_motion(), on_motion_motion(), and selectCursorItem().
|
private |
Definition at line 200 of file objects.h.
Referenced by blendModePopup(), and ObjectsPanel().
|
private |
Definition at line 196 of file objects.h.
Referenced by _handleTransparentHover().
|
private |
Definition at line 204 of file objects.h.
Referenced by blendModePopup(), and ObjectsPanel().
|
private |
Definition at line 148 of file objects.h.
Referenced by ObjectsPanel().
|
private |
Definition at line 151 of file objects.h.
Referenced by blendModePopup(), colorTagPopup(), ObjectsPanel(), and on_click().
Definition at line 117 of file objects.h.
Referenced by selectRange().
|
private |
Definition at line 129 of file objects.h.
Referenced by _selectionChanged(), on_drag_begin(), and selectCursorItem().
|
private |
Definition at line 147 of file objects.h.
Referenced by ObjectsPanel().
|
private |
Definition at line 146 of file objects.h.
Referenced by ObjectsPanel(), setRootWatcher(), and showChildInTree().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 116 of file objects.h.
Referenced by selectCursorItem(), and selectRange().
|
private |
Definition at line 106 of file objects.h.
Referenced by _handleEdited(), _handleTransparentHover(), ObjectsPanel(), on_click(), on_drag_drop(), on_drag_motion(), on_motion_motion(), removeDummyChildren(), selectCursorItem(), and selectRange().
|
private |
Definition at line 137 of file objects.h.
Referenced by ObjectsPanel().
|
private |
Definition at line 195 of file objects.h.
Referenced by _handleTransparentHover().
|
private |
Definition at line 136 of file objects.h.
Referenced by _selectionChanged(), blendModePopup(), colorTagPopup(), drag_end_impl(), ObjectsPanel(), on_click(), on_drag_begin(), on_drag_drop(), on_drag_motion(), on_motion_motion(), on_prepare(), on_tree_key_pressed(), and selectCursorItem().
|
private |
Definition at line 149 of file objects.h.
Referenced by ObjectsPanel().
|
private |
Definition at line 112 of file objects.h.
Referenced by ObjectsPanel().
|
private |
|
private |
|
private |
|
private |
Definition at line 114 of file objects.h.
Referenced by _selectionChanged(), blendModePopup(), drag_end_impl(), ObjectsPanel(), on_click(), and on_drag_begin().
|
private |
Definition at line 119 of file objects.h.
Referenced by desktopReplaced().
|
private |
Definition at line 113 of file objects.h.
Referenced by _selectionChanged(), getRootWatcher(), getWatcher(), layerChanged(), ObjectsPanel(), setRootWatcher(), and unpackToObject().