Inkscape
Vector Graphics Editor
|
To do: update description of desktop. More...
#include <desktop.h>
Classes | |
class | DesktopAffine |
Public Types | |
enum | CanvasFlip { FLIP_NONE = 0 , FLIP_HORIZONTAL = 1 , FLIP_VERTICAL = 2 } |
Public Member Functions | |
SPDesktop (SPNamedView *nv) | |
~SPDesktop () | |
SPDesktop (SPDesktop const &)=delete | |
SPDesktop & | operator= (SPDesktop const &)=delete |
SPDesktop (SPDesktop &&)=delete | |
SPDesktop & | operator= (SPDesktop &&)=delete |
SPDocument * | doc () const |
Inkscape::MessageStack * | messageStack () const |
Inkscape::MessageContext * | tipsMessageContext () const |
void | setDesktopWidget (SPDesktopWidget *dtw) |
Inkscape::UI::Tools::ToolBase * | getTool () const |
Inkscape::Selection * | getSelection () const |
SPDocument * | getDocument () const |
Inkscape::UI::Widget::Canvas * | getCanvas () const |
SPNamedView * | getNamedView () const |
SPDesktopWidget * | getDesktopWidget () const |
Inkscape::Display::SnapIndicator * | getSnapIndicator () const |
int | viewNumber () const |
Inkscape::CanvasItemGroup * | getCanvasControls () const |
Inkscape::CanvasItemGroup * | getCanvasPagesBg () const |
Inkscape::CanvasItemGroup * | getCanvasPagesFg () const |
Inkscape::CanvasItemGroup * | getCanvasGrids () const |
Inkscape::CanvasItemGroup * | getCanvasGuides () const |
Inkscape::CanvasItemGroup * | getCanvasSketch () const |
Inkscape::CanvasItemGroup * | getCanvasTemp () const |
Inkscape::CanvasItemCatchall * | getCanvasCatchall () const |
Inkscape::CanvasItemDrawing * | getCanvasDrawing () const |
template<typename F > | |
sigc::connection | connectDestroy (F &&slot) |
template<typename F > | |
sigc::connection | connectDocumentReplaced (F &&slot) |
template<typename F > | |
sigc::connection | connectEventContextChanged (F &&slot) |
template<typename F > | |
sigc::connection | connectSetStyle (F &&slot) |
template<typename F > | |
sigc::connection | connectQueryStyle (F &&slot) |
sigc::connection | connect_gradient_stop_selected (sigc::slot< void(SPStop *)> const &slot) |
sigc::connection | connect_control_point_selected (sigc::slot< void(Inkscape::UI::ControlPointSelection *)> const &slot) |
sigc::connection | connect_text_cursor_moved (sigc::slot< void(Inkscape::UI::Tools::TextTool *)> const &slot) |
void | emit_gradient_stop_selected (SPStop *stop) |
void | emit_control_point_selected (Inkscape::UI::ControlPointSelection *selection) |
void | emit_text_cursor_moved (Inkscape::UI::Tools::TextTool *tool) |
Inkscape::LayerManager & | layerManager () |
Inkscape::LayerManager const & | layerManager () const |
Inkscape::MessageContext * | guidesMessageContext () const |
Inkscape::Display::TemporaryItem * | add_temporary_canvasitem (Inkscape::CanvasItem *item, int lifetime_msecs, bool move_to_bottom=true) |
One should not keep a reference to the SPCanvasItem, the temporary item code will delete the object for you and the reference will become invalid without you knowing it. | |
void | remove_temporary_canvasitem (Inkscape::Display::TemporaryItem *tempitem) |
It is perfectly safe to call this function while the object has already been deleted due to a timeout. | |
Inkscape::Display::TranslucencyGroup & | getTranslucencyGroup () const |
Inkscape::UI::Dialog::DialogContainer * | getContainer () |
bool | isWithinViewport (SPItem const *item) const |
True if desktop viewport intersects item's bbox. | |
bool | itemIsHidden (SPItem const *item) const |
void | activate_guides (bool activate) |
Set activate status of current desktop's named view. | |
void | change_document (SPDocument *document) |
Make desktop switch documents. | |
void | setTool (std::string const &toolName) |
Replaces the currently active tool with a new one. | |
void | set_coordinate_status (Geom::Point const &p) |
Sets the coordinate status to a given point. | |
SPItem * | getItemFromListAtPointBottom (std::vector< SPItem * > const &list, Geom::Point const &p) const |
SPItem * | getItemAtPoint (Geom::Point const &p, bool into_groups, SPItem *upto=nullptr) const |
std::vector< SPItem * > | getItemsAtPoints (std::vector< Geom::Point > ps, bool all_layers=true, bool topmost_only=true, size_t limit=0, bool active_only=true) const |
SPItem * | getGroupAtPoint (Geom::Point const &p) const |
Geom::Point | point () const |
Returns the mouse point in desktop coordinates; if mouse is outside the canvas, returns the center of canvas viewpoint. | |
void | prev_transform () |
Revert back to previous transform if possible. | |
void | next_transform () |
Set transform to next in list. | |
void | clear_transform_history () |
Clear transform lists. | |
void | set_display_area (bool log=true) |
Does all the dirty work in setting the display area. | |
void | set_display_area (Geom::Point const &c, Geom::Point const &w, bool log=true) |
Map the drawing to the window so that 'c' lies at 'w' where where 'c' is a point on the canvas and 'w' is position in window in screen pixels. | |
void | set_display_area (Geom::Rect const &a, Geom::Coord border, bool log=true) |
Map the center of rectangle 'r' (which specifies a non-rotated region of the drawing) to lie at the center of the window. | |
Geom::Parallelogram | get_display_area () const |
Return canvas viewbox in desktop coordinates. | |
void | set_display_width (Geom::Rect const &a, Geom::Coord border) |
Set display area in only the width dimension. | |
void | set_display_center (Geom::Rect const &a) |
Centre Rect, without zooming. | |
void | zoom_absolute (Geom::Point const &c, double zoom, bool keep_point=true) |
Zoom to the given absolute zoom level. | |
void | zoom_relative (Geom::Point const &c, double zoom, bool keep_point=true) |
Zoom in or out relatively to the current zoom. | |
void | zoom_realworld (Geom::Point const &c, double ratio) |
Zoom in to an absolute realworld ratio, e.g. | |
void | zoom_drawing () |
Zoom to whole drawing. | |
void | zoom_selection () |
Zoom to selection. | |
void | schedule_zoom_from_document () |
Schedule the zoom/view settings from the document to be applied to the desktop just after the canvas is first allocated a size, but before any drawing has started. | |
double | current_zoom () const |
Geom::Point | current_center () const |
void | zoom_quick (bool enable=true) |
Performs a quick zoom into what the user is working on. | |
bool | quick_zoomed () const |
Returns whether the desktop is in quick zoom mode or not. | |
void | quick_preview (bool activate) |
void | set_rotation_lock (bool lock) |
bool | get_rotation_lock () const |
void | zoom_grab_focus () |
Tell widget to let zoom widget grab keyboard focus. | |
void | rotate_grab_focus () |
Tell widget to let rotate widget grab keyboard focus. | |
void | rotate_absolute_keep_point (Geom::Point const &c, double rotate) |
Set new rotation, keeping the point 'c' fixed in the desktop window. | |
void | rotate_relative_keep_point (Geom::Point const &c, double rotate) |
Rotate keeping the point 'c' fixed in the desktop window. | |
void | rotate_absolute_center_point (Geom::Point const &c, double rotate) |
Set new rotation, aligning the point 'c' to the center of desktop window. | |
void | rotate_relative_center_point (Geom::Point const &c, double rotate) |
Rotate aligning the point 'c' to the center of desktop window. | |
void | flip_absolute_keep_point (Geom::Point const &c, CanvasFlip flip) |
Set new flip direction, keeping the point 'c' fixed in the desktop window. | |
void | flip_relative_keep_point (Geom::Point const &c, CanvasFlip flip) |
Flip direction, keeping the point 'c' fixed in the desktop window. | |
void | flip_absolute_center_point (Geom::Point const &c, CanvasFlip flip) |
Set new flip direction, aligning the point 'c' to the center of desktop window. | |
void | flip_relative_center_point (Geom::Point const &c, CanvasFlip flip) |
Flip direction, aligning the point 'c' to the center of desktop window. | |
bool | is_flipped (CanvasFlip flip) |
Geom::Rotate const & | current_rotation () const |
void | scroll_absolute (Geom::Point const &point) |
Scroll canvas by to a particular point (window coordinates). | |
void | scroll_relative (Geom::Point const &delta) |
Scroll canvas by specific coordinate amount (window coordinates). | |
void | scroll_relative_in_svg_coords (double dx, double dy) |
Scroll canvas by specific coordinate amount in svg coordinates. | |
bool | scroll_to_point (Geom::Point const &s_dt, double autoscrollspeed=0) |
Scroll screen so as to keep point 'p' visible in window. | |
Geom::IntPoint | getWindowSize () const |
void | setWindowSize (Geom::IntPoint const &size) |
void | setWindowTransient (Gtk::Window &window, int transient_policy=1) |
InkscapeWindow const * | getInkscapeWindow () const |
InkscapeWindow * | getInkscapeWindow () |
void | presentWindow () |
void | showInfoDialog (Glib::ustring const &message) |
bool | warnDialog (Glib::ustring const &text) |
void | setRenderMode (Inkscape::RenderMode mode) |
void | setColorMode (Inkscape::ColorMode mode) |
void | toggleCommandPalette () |
void | toggleRulers () |
void | toggleScrollbars () |
void | setTempHideOverlays (bool hide) |
Shows or hides the on-canvas overlays and controls, such as grids, guides, manipulation handles, knots, selection cues, etc. | |
void | layoutWidget () |
void | setToolboxFocusTo (char const *label) |
Gtk::Widget * | get_toolbar_by_name (Glib::ustring const &name) |
void | setToolboxAdjustmentValue (char const *id, double val) |
bool | isToolboxButtonActive (char const *id) const |
void | updateDialogs () |
void | showNotice (Glib::ustring const &msg, int timeout=0) |
void | setWaitingCursor () |
void | clearWaitingCursor () |
bool | isWaitingCursor () const |
void | toggleLockGuides () |
void | toggleToolbar (char const *toolbar_name) |
bool | isMinimised () const |
bool | is_darktheme () const |
bool | is_maximized () const |
bool | is_fullscreen () const |
bool | is_focusMode () const |
Checks to see if the user is working in focused mode. | |
void | focusMode (bool mode=true) |
Changes whether the user is in focus mode or not. | |
Geom::Affine const & | w2d () const |
Transformation from window to desktop coordinates (zoom/rotate). | |
Geom::Point | w2d (Geom::Point const &p) const |
Geom::Affine const & | d2w () const |
Transformation from desktop to window coordinates. | |
Geom::Point | d2w (Geom::Point const &p) const |
Geom::Affine const & | doc2dt () const |
Geom::Affine const & | dt2doc () const |
Geom::Point | doc2dt (Geom::Point const &p) const |
Geom::Point | dt2doc (Geom::Point const &p) const |
double | yaxisdir () const |
bool | is_yaxisdown () const |
void | setDocument (SPDocument *doc) |
Associate document with desktop. | |
void | onWindowStateChanged (Gdk::Toplevel::State changed, Gdk::Toplevel::State new_toplevel_state) |
onWindowStateChanged | |
void | applyCurrentOrToolStyle (SPObject *obj, Glib::ustring const &tool_path, bool with_text) |
Apply the desktop's current style or the tool style to the object. | |
Public Attributes | |
SPCSSAttr * | current = nullptr |
Current style. | |
bool | _focusMode = false |
Whether we're focused working or general working. | |
unsigned | dkey = 0 |
unsigned | interaction_disabled_counter = 0 |
bool | waiting_cursor = false |
bool | showing_dialogs = false |
bool | rotation_locked = false |
bool | guides_active = false |
SPItem * | gr_item = nullptr |
GrPointType | gr_point_type = POINT_LG_BEGIN |
unsigned | gr_point_i = 0 |
Inkscape::PaintTarget | gr_fill_or_stroke = Inkscape::FOR_FILL |
Glib::ustring | _reconstruction_old_layer_id |
sigc::signal< bool(SPCSSAttr const *, bool)>::accumulated< StopOnTrue > | _set_style_signal |
sigc::signal< int(SPStyle *, int)>::accumulated< StopOnNonZero > | _query_style_signal |
sigc::signal< void(double)> | signal_zoom_changed |
Emitted when the zoom factor changes (not emitted when scrolling). | |
Private Member Functions | |
void | _setupCanvasItems () |
void | _attachDocument () |
void | _detachDocument () |
bool | drawing_handler (Inkscape::CanvasEvent const &event, Inkscape::DrawingItem *item) |
Calls event handler of current event context. | |
void | reconstruction_start () |
Called when document is starting to be rebuilt. | |
void | reconstruction_finish () |
Called when document rebuild is finished. | |
void | handle_y_axis_flip (double yshift) |
void | on_zoom_begin (Gdk::EventSequence *sequence) |
void | on_zoom_scale (double scale) |
void | on_zoom_end (Gdk::EventSequence *sequence) |
void | onStatusMessage (Inkscape::MessageType type, char const *message) |
To do: update description of desktop.
Define separation of desktop-widget, desktop, window, canvas, etc.
SPDesktop::SPDesktop | ( | SPNamedView * | nv | ) |
Definition at line 80 of file desktop.cpp.
References _guides_message_context, _layer_manager, _message_changed_connection, _message_idle_connection, _message_stack, _selection, _setupCanvasItems(), _snapindicator, _temporary_item_list, _tips_message_context, _translucency_group, apply_preferences_canvas_mode(), apply_preferences_canvas_transform(), canvas, current, SPItem::display_key_new(), dkey, document, SPObject::document, Inkscape::Preferences::get(), namedview, on_zoom_begin(), on_zoom_end(), on_zoom_scale(), onStatusMessage(), schedule_zoom_from_document(), setDocument(), and setTool().
SPDesktop::~SPDesktop | ( | ) |
Definition at line 187 of file desktop.cpp.
References _destroy_signal, _detachDocument(), _guides_message_context, _selection, _snapindicator, _temporary_item_list, _tool, canvas, delete_then_null(), and document.
|
delete |
|
delete |
|
private |
Definition at line 1197 of file desktop.cpp.
References _canvas_drawing, _document_replaced_signal, _document_uri_set_connection, _reconstruction_finish_connection, _reconstruction_old_layer_id, _reconstruction_start_connection, _saved_or_modified_conn, _view_number, _widget, _y_axis_flipped, activate_guides(), SPDocument::connectFilenameSet(), SPDocument::connectReconstructionFinish(), SPDocument::connectReconstructionStart(), SPDocument::connectSavedOrModified(), SPDesktopWidget::desktopChangedTitle(), dkey, document, SPDocument::ensureUpToDate(), Inkscape::CanvasItemDrawing::get_drawing(), SPDocument::get_y_axis_flipped(), SPDocument::getNamedView(), SPDocument::getRoot(), SPNamedView::getShowGrids(), handle_y_axis_flip(), SPItem::invoke_show(), namedview, Inkscape::DrawingItem::prependChild(), reconstruction_finish(), reconstruction_start(), Inkscape::Drawing::root(), SPNamedView::set_desk_color(), SPNamedView::setShowGrids(), SPNamedView::show(), sp_namedview_update_layers_from_document(), and SPNamedView::viewcount.
Referenced by setDocument().
|
private |
Definition at line 1256 of file desktop.cpp.
References _document_uri_set_connection, _reconstruction_finish_connection, _reconstruction_start_connection, _saved_or_modified_conn, _schedule_zoom_from_document_connection, dkey, document, SPDocument::getRoot(), SPNamedView::hide(), SPItem::invoke_hide(), and namedview.
Referenced by setDocument(), and ~SPDesktop().
|
private |
Definition at line 137 of file desktop.cpp.
References _canvas_catchall, _canvas_drawing, _canvas_group_controls, _canvas_group_drawing, _canvas_group_grids, _canvas_group_guides, _canvas_group_pages_bg, _canvas_group_pages_fg, _canvas_group_sketch, _canvas_group_temp, canvas, Inkscape::CanvasItemDrawing::connect_drawing_event(), Inkscape::CanvasItem::connect_event(), drawing_handler(), Inkscape::CanvasItemDrawing::get_drawing(), Inkscape::CanvasItem::set_name(), Inkscape::CanvasItem::set_pickable(), and sp_desktop_root_handler().
Referenced by SPDesktop().
void SPDesktop::activate_guides | ( | bool | activate | ) |
Set activate status of current desktop's named view.
Definition at line 272 of file desktop.cpp.
References activate(), SPNamedView::activateGuides(), guides_active, and namedview.
Referenced by _attachDocument().
Inkscape::Display::TemporaryItem * SPDesktop::add_temporary_canvasitem | ( | Inkscape::CanvasItem * | item, |
int | lifetime_msecs, | ||
bool | move_to_bottom = true |
||
) |
One should not keep a reference to the SPCanvasItem, the temporary item code will delete the object for you and the reference will become invalid without you knowing it.
It is perfectly safe to ignore the returned pointer: the object is deleted by itself, so don't delete it elsewhere! The only valid use of the returned TemporaryItem* is as argument for SPDesktop::remove_temporary_canvasitem, because the object might be deleted already without you knowing it. move_to_bottom = true by default so the item does not interfere with handling of other items on the canvas like nodes.
Definition at line 229 of file desktop.cpp.
References _temporary_item_list, and item.
Referenced by Inkscape::ObjectSet::cloneOriginal(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), Inkscape::LivePathEffect::Parameter::param_higlight(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::Display::SnapIndicator::set_new_debugging_point(), Inkscape::Display::SnapIndicator::set_new_snapsource(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), and Inkscape::UI::Tools::sp_update_helperpath().
void SPDesktop::applyCurrentOrToolStyle | ( | SPObject * | obj, |
Glib::ustring const & | tool_path, | ||
bool | with_text | ||
) |
Apply the desktop's current style or the tool style to the object.
Definition at line 1110 of file desktop.cpp.
References css, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getInheritedStyle(), SPObject::setCSS(), sp_desktop_get_style(), and sp_repr_css_attr_unref().
Referenced by Inkscape::UI::Tools::Box3dTool::drag().
void SPDesktop::change_document | ( | SPDocument * | document | ) |
Make desktop switch documents.
Definition at line 281 of file desktop.cpp.
References _selection, _tool, _widget, InkscapeWindow::change_document(), SPDesktopWidget::desktopChangedDocument(), getInkscapeWindow(), setDocument(), setTool(), and sp_namedview_zoom_and_view_from_document().
Referenced by InkscapeApplication::document_swap().
void SPDesktop::clear_transform_history | ( | ) |
Clear transform lists.
Definition at line 437 of file desktop.cpp.
References transforms_future, and transforms_past.
Referenced by sp_namedview_window_from_document().
void SPDesktop::clearWaitingCursor | ( | ) |
Definition at line 1166 of file desktop.cpp.
References _tool, and waiting_cursor.
Referenced by Inkscape::UI::NewFromTemplate::_createFromTemplate(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::ObjectSet::breakApart(), Inkscape::Extension::ExecutionEnv::cancel(), Inkscape::ObjectSet::combine(), Inkscape::ObjectSet::createBitmapCopy(), Inkscape::UI::Tools::InteractiveBooleansTool::InteractiveBooleansTool(), Inkscape::ObjectSet::pathReverse(), Inkscape::Extension::ExecutionEnv::run(), Inkscape::ObjectSet::simplifyPaths(), and Inkscape::ObjectSet::toCurves().
sigc::connection SPDesktop::connect_control_point_selected | ( | sigc::slot< void(Inkscape::UI::ControlPointSelection *)> const & | slot | ) |
Definition at line 1353 of file desktop.cpp.
References _control_point_selected.
Referenced by Inkscape::UI::Toolbar::NodeToolbar::setDesktop().
sigc::connection SPDesktop::connect_gradient_stop_selected | ( | sigc::slot< void(SPStop *)> const & | slot | ) |
Definition at line 1349 of file desktop.cpp.
References _gradient_stop_selected.
Referenced by Inkscape::UI::Tools::GradientTool::GradientTool(), Inkscape::UI::Widget::FillNStroke::setDesktop(), and Inkscape::UI::Toolbar::GradientToolbar::setDesktop().
sigc::connection SPDesktop::connect_text_cursor_moved | ( | sigc::slot< void(Inkscape::UI::Tools::TextTool *)> const & | slot | ) |
Definition at line 1357 of file desktop.cpp.
References _text_cursor_moved.
Referenced by Inkscape::UI::Widget::FillNStroke::setDesktop(), and Inkscape::UI::Toolbar::TextToolbar::setDesktop().
|
inline |
Definition at line 253 of file desktop.h.
References _destroy_signal.
Referenced by Inkscape::Extension::Implementation::Script::execute(), Inkscape::UI::Tools::PenTool::PenTool(), and Inkscape::UI::Dialog::DialogBase::setDesktop().
|
inline |
Definition at line 257 of file desktop.h.
References _document_replaced_signal.
Referenced by Inkscape::UI::Widget::ColorNotebook::ColorNotebook(), Inkscape::Extension::Implementation::Script::execute(), Inkscape::LayerManager::LayerManager(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::UI::Widget::PageSelector::setDesktop(), Inkscape::UI::Widget::StrokeStyle::setDesktop(), Inkscape::UI::Toolbar::PageToolbar::setDesktop(), and Inkscape::UI::Dialog::DialogBase::setDesktop().
|
inline |
Definition at line 261 of file desktop.h.
References _event_context_changed_signal.
Referenced by Inkscape::UI::Dialog::AlignAndDistribute::desktop_changed(), Inkscape::UI::Widget::FillNStroke::setDesktop(), and SPDesktopWidget::switchDesktop().
|
inline |
Definition at line 269 of file desktop.h.
References _query_style_signal.
Referenced by GrDrag::GrDrag(), and Inkscape::UI::Tools::TextTool::TextTool().
|
inline |
Definition at line 265 of file desktop.h.
References _set_style_signal.
Referenced by GrDrag::GrDrag(), Inkscape::UI::Tools::TextTool::TextTool(), and Inkscape::UI::Tools::TweakTool::TweakTool().
Geom::Point SPDesktop::current_center | ( | ) | const |
Definition at line 660 of file desktop.cpp.
References _current_affine, canvas, Geom::GenericRect< C >::midpoint(), and SPDesktop::DesktopAffine::w2d().
Referenced by Inkscape::UI::Tools::TextTool::_updateCursor(), InkscapeApplication::document_revert(), Inkscape::UI::Dialog::SpellCheck::nextWord(), set_display_width(), sp_namedview_document_from_window(), and sp_namedview_zoom_and_view_from_document().
|
inline |
Definition at line 366 of file desktop.h.
References _current_affine, and SPDesktop::DesktopAffine::getRotation().
Referenced by Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::Tools::PenTool::_lastpointMove(), Inkscape::ObjectSet::move(), Inkscape::ObjectSet::moveScreen(), GrDrag::selected_move(), sp_namedview_document_from_window(), and Inkscape::UI::Widget::StatusBar::update_rotate().
|
inline |
Definition at line 335 of file desktop.h.
References _current_affine, and SPDesktop::DesktopAffine::getZoom().
Referenced by Inkscape::UI::Tools::PencilTool::_addFreehandPoint(), Inkscape::UI::Tools::EraserTool::_brush(), Inkscape::UI::PathManipulator::_getStrokeTolerance(), Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardMove(), Inkscape::UI::ControlPointSelection::_keyboardRotate(), Inkscape::UI::ControlPointSelection::_keyboardScale(), Inkscape::UI::Tools::PenTool::_lastpointMoveScreen(), Inkscape::UI::TransformHandleSet::_updateVisibility(), Inkscape::UI::Tools::GradientTool::add_stop_near_point(), Inkscape::UI::Tools::CalligraphicTool::brush(), Inkscape::UI::Tools::do_trace(), InkscapeApplication::document_revert(), GrDrag::dropColor(), Inkscape::UI::Tools::get_dilate_radius(), Inkscape::UI::Tools::get_dilate_radius(), Inkscape::UI::Tools::get_path_force(), Inkscape::AlignmentSnapper::getSnapperTolerance(), Inkscape::DistributionSnapper::getSnapperTolerance(), Inkscape::GridSnapper::getSnapperTolerance(), Inkscape::GuideSnapper::getSnapperTolerance(), Inkscape::ObjectSnapper::getSnapperTolerance(), gr_knot_moved_handler(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), Inkscape::Display::SnapIndicator::make_stub_line_h(), Inkscape::Display::SnapIndicator::make_stub_line_v(), Inkscape::ObjectSet::moveScreen(), on_zoom_begin(), Inkscape::UI::Tools::PencilTool::powerStrokeInterpolate(), Inkscape::UI::PathManipulator::rotateHandle(), Inkscape::UI::PathManipulator::scaleHandle(), GrDrag::selected_move_screen(), Inkscape::UI::Tools::MeasureTool::setLabelText(), Inkscape::UI::Tools::MeasureTool::setMeasureItem(), Inkscape::UI::Tools::MeasureTool::setPoint(), Inkscape::UI::Tools::ObjectPickerTool::show_text(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Widget::Canvas::size_allocate_vfunc(), sp_namedview_document_from_window(), sp_selected_path_inset_screen(), sp_selected_path_offset_screen(), sp_te_adjust_kerning_screen(), sp_te_adjust_linespacing_screen(), sp_te_adjust_rotation_screen(), sp_te_adjust_tspan_letterspacing_screen(), Inkscape::UI::Tools::sp_tweak_dilate_recursive(), Inkscape::UI::Tools::sp_update_helperpath(), Inkscape::UI::Tools::spdc_create_single_dot(), Inkscape::UI::Tools::MeshTool::split_near_point(), transform_grow_screen(), transform_rotate_screen(), and Inkscape::UI::Widget::StatusBar::update_zoom().
|
inline |
Transformation from desktop to window coordinates.
Definition at line 419 of file desktop.h.
References _current_affine, and SPDesktop::DesktopAffine::d2w().
Referenced by Inkscape::UI::Tools::TextTool::_updateCursor(), Inkscape::UI::PathManipulator::_updateDragPoint(), Inkscape::UI::PathManipulator::_updateOutline(), Inkscape::UI::Tools::CalligraphicTool::brush(), Inkscape::UI::Tools::calculate_intersections(), Inkscape::UI::CurveDragPoint::doubleclicked(), GrDrag::dropColor(), Inkscape::UI::Tools::fit_item(), flip_absolute_keep_point(), flip_relative_keep_point(), Inkscape::GridSnapper::get_snap_lines(), Inkscape::GridSnapper::getSnapLinesAxonom(), Inkscape::UI::Node::grabbed(), Inkscape::UI::Tools::TextTool::root_handler(), rotate_absolute_keep_point(), rotate_relative_keep_point(), scroll_to_point(), scroll_to_show_item(), set_display_area(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), Inkscape::UI::CurveDragPoint::ungrabbed(), Inkscape::UI::Widget::CanvasGrid::updateRulers(), and zoom_absolute().
|
inline |
Definition at line 420 of file desktop.h.
References _current_affine, and SPDesktop::DesktopAffine::d2w().
|
inline |
Definition at line 159 of file desktop.h.
References document.
Referenced by Inkscape::UI::Widget::CanvasGrid::_createGuide(), Inkscape::UI::Widget::TabsWidget::_setTooltip(), Inkscape::UI::Dialog::LayerPropertiesDialog::_setup_layers_controls(), Inkscape::UI::Tools::TextTool::_setupText(), SPDesktopWidget::_updateTitle(), Inkscape::UI::Dialog::ColorItem::action_edit(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), Inkscape::UI::Tools::do_trace(), Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::ArcTool::drag(), Inkscape::UI::Tools::RectTool::drag(), Inkscape::UI::Tools::StarTool::drag(), Inkscape::UI::Widget::FillNStroke::dragFromPaint(), Inkscape::Extension::Internal::BlurEdge::effect(), Inkscape::Extension::Internal::Filter::Filter::effect(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Implementation::Script::execute(), Inkscape::Extension::ExecutionEnv::ExecutionEnv(), getGroupAtPoint(), getItemAtPoint(), getItemFromListAtPointBottom(), getItemsAtPoints(), Inkscape::UI::Tools::InteractiveBooleansTool::InteractiveBooleansTool(), Inkscape::LayerManager::LayerManager(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), GrDrag::makeStopSafeColor(), SPDesktopWidget::onFocus(), Inkscape::UI::Widget::Canvas::paint_widget(), Inkscape::UI::Widget::FillNStroke::performUpdate(), Inkscape::Extension::Implementation::Implementation::prefs_effect(), Inkscape::Extension::Internal::Bitmap::ImageMagick::prefs_effect(), Inkscape::Extension::Internal::Grid::prefs_effect(), Inkscape::UI::Tools::Box3dTool::selection_changed(), setDocument(), Inkscape::UI::Widget::FillNStroke::setFillrule(), Inkscape::UI::Tools::MeasureTool::setLabelText(), sp_gradient_unset_swatch(), sp_import_document(), sp_namedview_update_layers_from_document(), sp_selected_path_create_offset_object(), sp_selected_path_do_offset(), Inkscape::UI::Tools::spdc_create_single_dot(), Inkscape::UI::Tools::spdc_paste_curve_as_freehand_shape(), Inkscape::UI::Tools::InteractiveBooleansTool::switching_away(), text_put_on_path(), Inkscape::UI::Tools::MeasureTool::toItem(), Inkscape::ObjectSet::toNextLayer(), Inkscape::ObjectSet::toPrevLayer(), SPSymbol::unSymbol(), Inkscape::UI::Widget::FillNStroke::updateFromPaint(), Inkscape::UI::Widget::CanvasGrid::updateScrollbars(), zoom_drawing(), and Inkscape::UI::Tools::InteractiveBooleansTool::~InteractiveBooleansTool().
Geom::Affine const & SPDesktop::doc2dt | ( | ) | const |
Definition at line 1337 of file desktop.cpp.
References SPDocument::doc2dt(), and document.
Referenced by SnapManager::_findCandidates(), Inkscape::CanvasItemRect::_render(), Inkscape::ObjectSnapper::_snapPaths(), Inkscape::ObjectSnapper::_snapPathsConstrained(), Inkscape::ObjectSnapper::_snapPathsTangPerp(), Inkscape::CanvasItemDrawing::_update(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Tools::MeasureTool::createAngleDisplayCurve(), Inkscape::Extension::Internal::Grid::effect(), file_import(), Inkscape::UI::Tools::fit_item(), Inkscape::UI::Tools::PagesTool::marginKnotSet(), Inkscape::UI::Tools::MeasureTool::setLabelText(), Inkscape::UI::Tools::MeasureTool::setLine(), Inkscape::UI::Tools::MeasureTool::setPoint(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), sp_import_document(), Inkscape::UI::Tools::sp_spray_recursive(), Inkscape::UI::Tools::sp_tweak_dilate_recursive(), Inkscape::UI::Toolbar::LPEToolbar::toggle_set_bbox(), Inkscape::UI::Tools::MeasureTool::toGuides(), and yaxisdir().
|
inline |
|
private |
Calls event handler of current event context.
Definition at line 1283 of file desktop.cpp.
References Inkscape::UI::Tools::get_latin_keyval(), Inkscape::DrawingItem::getItem(), getTool(), Inkscape::KEY_PRESS, and Inkscape::CanvasEvent::type().
Referenced by _setupCanvasItems().
Geom::Affine const & SPDesktop::dt2doc | ( | ) | const |
Definition at line 1343 of file desktop.cpp.
References document, and SPDocument::dt2doc().
Referenced by Inkscape::ObjectSnapper::_snapPaths(), Inkscape::ObjectSnapper::_snapPathsConstrained(), Inkscape::ObjectSnapper::_snapPathsTangPerp(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Tools::calculate_intersections(), create_flowtext_with_internal_frame(), create_text_with_inline_size(), create_text_with_rectangle(), Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::StarTool::drag(), file_import(), SnapManager::findBestSnap(), SPItem::getSnappoints(), Inkscape::UI::Tools::NodeTool::item_handler(), Inkscape::UI::Dialog::SingleExport::onExport(), Inkscape::LivePathEffect::Parameter::param_higlight(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Tools::NodeTool::select_area(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::snap_rectangular_box(), sp_import_document(), Inkscape::UI::Tools::sp_update_helperpath(), and Inkscape::UI::Tools::spdc_flush_white().
|
inline |
void SPDesktop::emit_control_point_selected | ( | Inkscape::UI::ControlPointSelection * | selection | ) |
Definition at line 1365 of file desktop.cpp.
References _control_point_selected.
Referenced by Inkscape::UI::Tools::NodeTool::NodeTool().
void SPDesktop::emit_gradient_stop_selected | ( | SPStop * | stop | ) |
Definition at line 1361 of file desktop.cpp.
References _gradient_stop_selected.
Referenced by GrDrag::deselectAll(), Inkscape::UI::Widget::FillNStroke::FillNStroke(), GrDrag::setDeselected(), and GrDrag::setSelected().
void SPDesktop::emit_text_cursor_moved | ( | Inkscape::UI::Tools::TextTool * | tool | ) |
Definition at line 1369 of file desktop.cpp.
References _text_cursor_moved.
Referenced by Inkscape::UI::Tools::TextTool::_updateCursor(), Inkscape::UI::Tools::TextTool::item_handler(), and Inkscape::UI::Tools::TextTool::root_handler().
void SPDesktop::flip_absolute_center_point | ( | Geom::Point const & | c, |
CanvasFlip | flip | ||
) |
Set new flip direction, aligning the point 'c' to the center of desktop window.
c | Point in desktop coordinates |
flip | Direction the canvas will be set as. |
Definition at line 823 of file desktop.cpp.
References _current_affine, c, canvas, Geom::GenericRect< C >::midpoint(), set_display_area(), and SPDesktop::DesktopAffine::setFlip().
Referenced by canvas_transform().
void SPDesktop::flip_absolute_keep_point | ( | Geom::Point const & | c, |
CanvasFlip | flip | ||
) |
Set new flip direction, keeping the point 'c' fixed in the desktop window.
c | Point in desktop coordinates |
flip | Direction the canvas will be set as. |
Definition at line 795 of file desktop.cpp.
References _current_affine, c, d2w(), set_display_area(), SPDesktop::DesktopAffine::setFlip(), and w.
void SPDesktop::flip_relative_center_point | ( | Geom::Point const & | c, |
CanvasFlip | flip | ||
) |
Flip direction, aligning the point 'c' to the center of desktop window.
c | Point in desktop coordinates |
flip | Direction to flip canvas |
Definition at line 837 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::addFlip(), c, canvas, Geom::GenericRect< C >::midpoint(), and set_display_area().
Referenced by canvas_transform().
void SPDesktop::flip_relative_keep_point | ( | Geom::Point const & | c, |
CanvasFlip | flip | ||
) |
Flip direction, keeping the point 'c' fixed in the desktop window.
c | Point in desktop coordinates |
flip | Direction to flip canvas |
Definition at line 809 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::addFlip(), c, d2w(), set_display_area(), and w.
void SPDesktop::focusMode | ( | bool | mode = true | ) |
Changes whether the user is in focus mode or not.
mode | Which mode the view should be in. |
Definition at line 949 of file desktop.cpp.
References _focusMode, layoutWidget(), and mode.
Referenced by view_focus_toggle(), and view_full_screen_focus().
Geom::Parallelogram SPDesktop::get_display_area | ( | ) | const |
Return canvas viewbox in desktop coordinates.
Definition at line 521 of file desktop.cpp.
Referenced by SnapManager::_findCandidates(), Inkscape::UI::Tools::TextTool::_updateCursor(), SnapManager::findBestSnap(), Inkscape::UI::Tools::DynamicBase::getNormalizedPoint(), Inkscape::UI::Tools::DynamicBase::getViewPoint(), Box3D::Line::intersection_with_viewbox(), isWithinViewport(), Inkscape::UI::Tools::TextTool::root_handler(), and scroll_to_show_item().
|
inline |
Definition at line 345 of file desktop.h.
References rotation_locked.
Gtk::Widget * SPDesktop::get_toolbar_by_name | ( | Glib::ustring const & | name | ) |
Definition at line 1139 of file desktop.cpp.
References _widget, SPDesktopWidget::get_toolbar_by_name(), and name.
Referenced by Inkscape::UI::Tools::sp_spray_switch_mode(), Inkscape::UI::Tools::sp_tweak_switch_mode(), and Inkscape::UI::Tools::sp_tweak_switch_mode_temporarily().
|
inline |
Definition at line 190 of file desktop.h.
References canvas.
Referenced by Inkscape::UI::Widget::TabsWidget::_setTooltip(), SPDesktopWidget::_updateTitle(), SPNamedView::activateGuides(), SPDesktopWidget::addDesktop(), apply_preferences_canvas_mode(), Inkscape::BooleanBuilder::BooleanBuilder(), canvas_color_manage_toggle(), canvas_split_mode(), canvas_transform(), Inkscape::UI::Tools::ConnectorTool::ConnectorTool(), Inkscape::Extension::ExecutionEnv::createWorkingDialog(), Inkscape::UI::Dialog::DialogBase::defocus_dialog(), SPKnot::handler_request_position(), SPNamedView::hide(), SPNamedView::modified(), Inkscape::UI::Toolbar::DropperToolbar::on_pick_alpha_button_toggled(), Inkscape::UI::Toolbar::DropperToolbar::on_set_alpha_button_toggled(), Inkscape::UI::Dialog::ObjectsPanel::on_tree_key_pressed(), Inkscape::UI::Toolbar::Toolbar::onDefocus(), Inkscape::UI::Widget::SelectedStyle::onDefocus(), Inkscape::UI::Tools::PagesTool::PagesTool(), redo(), SPDesktopWidget::removeDesktop(), Inkscape::UI::Tools::ToolBase::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Widget::ruler_snap_new_guide(), SPNamedView::set_clip_to_page(), SPNamedView::set_desk_color(), SPNamedView::show(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), SPDesktopWidget::switchDesktop(), Inkscape::UI::Tools::TextTool::TextTool(), Inkscape::UI::Tools::ToolBase::ToolBase(), undo(), Inkscape::UI::Tools::ToolBase::use_cursor(), Inkscape::UI::Tools::ToolBase::use_tool_cursor(), and Inkscape::UI::Tools::ConnectorTool::~ConnectorTool().
|
inline |
Definition at line 203 of file desktop.h.
References _canvas_catchall.
|
inline |
Definition at line 196 of file desktop.h.
References _canvas_group_controls.
Referenced by Inkscape::SelCue::_newItemBboxes(), Inkscape::SelCue::_newTextBaselines(), Inkscape::UI::Tools::TextTool::_updateTextSelection(), GrDrag::addCurve(), GrDrag::addLine(), Inkscape::UI::Tools::CalligraphicTool::CalligraphicTool(), Inkscape::UI::ControlPoint::ControlPoint(), Inkscape::UI::Tools::create_control_group(), Inkscape::UI::Tools::DropperTool::DropperTool(), Inkscape::UI::Tools::NodeTool::NodeTool(), PatternKnotHolderEntityXY::on_created(), BlurKnotHolderEntity::on_created(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::UI::Tools::PenTool::PenTool(), Inkscape::SelTrans::SelTrans(), SPKnot::SPKnot(), Inkscape::UI::Tools::SprayTool::SprayTool(), Inkscape::UI::Tools::TextTool::TextTool(), and Inkscape::UI::TransformHandleSet::TransformHandleSet().
|
inline |
Definition at line 204 of file desktop.h.
References _canvas_drawing.
Referenced by Inkscape::UI::Tools::CalligraphicTool::brush(), canvas_color_mode_gray(), Inkscape::UI::Tools::getPickerData(), Inkscape::UI::Tools::DropperTool::root_handler(), and Inkscape::UI::Tools::InteractiveBooleansTool::set_opacity().
|
inline |
Definition at line 199 of file desktop.h.
References _canvas_group_grids.
Referenced by SPGrid::getAssociatedView(), SPGrid::hide(), and SPGrid::show().
|
inline |
Definition at line 200 of file desktop.h.
References _canvas_group_guides.
Referenced by Inkscape::UI::Widget::CanvasGrid::_createGuideItem(), Inkscape::SelCue::_newItemLines(), and SPNamedView::show().
|
inline |
Definition at line 197 of file desktop.h.
References _canvas_group_pages_bg.
Referenced by SPNamedView::show().
|
inline |
Definition at line 198 of file desktop.h.
References _canvas_group_pages_fg.
Referenced by SPNamedView::show().
|
inline |
Definition at line 201 of file desktop.h.
References _canvas_group_sketch.
Referenced by Inkscape::UI::Tools::PenTool::_bsplineSpiroColor(), Inkscape::UI::Tools::PenTool::_bsplineSpiroMotion(), Inkscape::UI::Tools::PenTool::_finishSegment(), Inkscape::UI::Tools::PencilTool::_fitAndSplit(), Inkscape::UI::Tools::PenTool::_redoLastPoint(), Inkscape::UI::Tools::PenTool::_redrawAll(), Inkscape::UI::Tools::CalligraphicTool::CalligraphicTool(), Inkscape::UI::Tools::ConnectorTool::ConnectorTool(), Inkscape::UI::Tools::EraserTool::EraserTool(), Inkscape::UI::Tools::FreehandBase::FreehandBase(), Inkscape::UI::Dialog::SpellCheck::nextWord(), and Inkscape::UI::Tools::TweakTool::TweakTool().
|
inline |
Definition at line 202 of file desktop.h.
References _canvas_group_temp.
Referenced by Inkscape::UI::Tools::MeasureTool::createAngleDisplayCurve(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), Inkscape::Display::SnapIndicator::make_stub_line_h(), Inkscape::Display::SnapIndicator::make_stub_line_v(), Inkscape::UI::Tools::ObjectPickerTool::ObjectPickerTool(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::LivePathEffect::Parameter::param_higlight(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::Display::SnapIndicator::set_new_debugging_point(), Inkscape::Display::SnapIndicator::set_new_snapsource(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), Inkscape::UI::Tools::MeasureTool::setMeasureCanvasControlLine(), Inkscape::UI::Tools::MeasureTool::setMeasureCanvasItem(), Inkscape::UI::Tools::MeasureTool::setMeasureCanvasText(), Inkscape::UI::Tools::MeasureTool::showItemInfoText(), Inkscape::UI::Tools::sp_update_helperpath(), and Inkscape::LivePathEffect::TextParam::TextParam().
Inkscape::UI::Dialog::DialogContainer * SPDesktop::getContainer | ( | ) |
Definition at line 335 of file desktop.cpp.
References _widget, and SPDesktopWidget::getDialogContainer().
Referenced by Inkscape::UI::Widget::LayerSelector::_layerChoose(), Inkscape::UI::Dialog::ColorItem::action_edit(), Inkscape::UI::Dialog::DialogNotebook::build_dialog_menu(), dialog_open(), dialog_toggle(), get_clone_tiler_panel(), Inkscape::UI::Widget::get_fill_and_stroke_panel(), Inkscape::UI::Dialog::TextEdit::on_fcm_button_clicked(), Inkscape::UI::Toolbar::TextToolbar::on_fcm_button_pressed(), Inkscape::UI::Toolbar::LPEToolbar::open_lpe_dialog(), select_object_link(), Inkscape::UI::Toolbar::SprayToolbar::toggle_picker(), tool_preferences(), and updateDialogs().
|
inline |
Definition at line 192 of file desktop.h.
References _widget.
Referenced by InkscapeApplication::desktopClose(), and Inkscape::UI::Widget::StatusBar::set_desktop().
|
inline |
Definition at line 189 of file desktop.h.
References document.
Referenced by Inkscape::UI::Tools::PencilTool::_addFreehandPoint(), Inkscape::UI::Widget::ObjectCompositeSettings::_blendBlurValueChanged(), Inkscape::UI::MultiPathManipulator::_commit(), Inkscape::UI::PathManipulator::_commit(), Inkscape::UI::PathManipulator::_commit(), Inkscape::UI::Widget::CanvasGrid::_createGuide(), Inkscape::UI::Toolbar::TextToolbar::_cursorMoved(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doMove(), Inkscape::UI::MultiPathManipulator::_done(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doRename(), Inkscape::UI::Widget::LayerSelector::_hideLayer(), Inkscape::UI::Tools::TextTool::_insertUnichar(), Inkscape::UI::Widget::ObjectCompositeSettings::_isolationValueChanged(), Inkscape::UI::Widget::LayerSelector::_lockLayer(), Inkscape::UI::Widget::SelectedStyle::_on_paste_callback(), Inkscape::UI::Widget::ObjectCompositeSettings::_opacityValueChanged(), Inkscape::UI::Toolbar::TextToolbar::_selectionChanged(), Inkscape::UI::Toolbar::StarToolbar::_setDefaults(), Inkscape::UI::Dialog::LayerPropertiesDialog::_setup_position_controls(), Inkscape::UI::Tools::TextTool::_setupText(), Inkscape::UI::Toolbar::ArcToolbar::_startendValueChanged(), Inkscape::UI::Tools::TextTool::_styleSet(), Inkscape::UI::Widget::ObjectCompositeSettings::_subjectChanged(), Inkscape::UI::Toolbar::ArcToolbar::_typeChanged(), Inkscape::UI::Toolbar::RectToolbar::_valueChanged(), Inkscape::UI::Toolbar::SpiralToolbar::_valueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_valueChanged(), Inkscape::UI::Dialog::ColorItem::action_convert(), Inkscape::UI::Tools::GradientTool::add_stop_near_point(), GrDrag::addStopNearPoint(), Inkscape::UI::Toolbar::TextToolbar::align_mode_changed(), Inkscape::UI::Toolbar::Box3DToolbar::angle_value_changed(), Inkscape::UI::Toolbar::SelectToolbar::any_value_changed(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageRotate(), Inkscape::UI::Dialog::Transformation::applyPageScale(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::Transformation::applyPageTransform(), Inkscape::UI::Dialog::GridArrangeTab::arrange(), Inkscape::UI::Dialog::PolarArrangeTab::arrange(), Inkscape::UI::Tools::Box3dTool::Box3dTool(), Inkscape::UI::Widget::StrokeStyle::buttonToggledCB(), Inkscape::UI::Tools::ArcTool::cancel(), Inkscape::UI::Tools::Box3dTool::cancel(), Inkscape::UI::Tools::RectTool::cancel(), Inkscape::UI::Tools::SpiralTool::cancel(), Inkscape::UI::Tools::StarTool::cancel(), canvas_transform(), Inkscape::UI::Tools::cc_selection_set_avoid(), Inkscape::UI::Dialog::Export::checkOrCreateDirectory(), Inkscape::UI::Widget::ColorNotebook::ColorNotebook(), ContextMenu::ContextMenu(), Inkscape::UI::Toolbar::NodeToolbar::coord_changed(), create_flowtext_with_internal_frame(), create_text_with_inline_size(), create_text_with_rectangle(), Inkscape::UI::Toolbar::ConnectorToolbar::curvature_changed(), Inkscape::UI::Tools::TextTool::deleteSelected(), InkscapeApplication::desktopClose(), InkscapeApplication::destroyDesktop(), Inkscape::UI::Toolbar::TextToolbar::direction_changed(), Inkscape::UI::Widget::RotateableSwatch::do_motion(), Inkscape::UI::Widget::RotateableStrokeWidth::do_motion(), Inkscape::UI::Widget::RotateableSwatch::do_release(), Inkscape::UI::Widget::RotateableStrokeWidth::do_release(), Inkscape::UI::Tools::do_trace(), document_check_for_data_loss(), InkscapeApplication::document_fix(), InkscapeApplication::document_revert(), InkscapeApplication::document_swap(), Inkscape::UI::Dialog::DocumentProperties::documentReplaced(), Inkscape::UI::Toolbar::TextToolbar::dx_value_changed(), Inkscape::UI::Toolbar::TextToolbar::dy_value_changed(), Inkscape::Extension::Implementation::Implementation::effect(), Inkscape::Extension::Implementation::Script::effect(), Inkscape::ObjectSet::enforceIds(), SPKnot::eventHandler(), Inkscape::UI::Dialog::Export::exportRaster(), file_import(), Inkscape::UI::Tools::ArcTool::finishItem(), Inkscape::UI::Tools::Box3dTool::finishItem(), Inkscape::UI::Tools::RectTool::finishItem(), Inkscape::UI::Tools::SpiralTool::finishItem(), Inkscape::UI::Tools::StarTool::finishItem(), fit_canvas_to_drawing(), Inkscape::UI::Tools::fit_item(), Inkscape::UI::Tools::MeshTool::fit_mesh_in_bbox(), flowtext_to_text(), Inkscape::UI::Toolbar::TextToolbar::fontfamily_value_changed(), Inkscape::UI::Toolbar::MeasureToolbar::fontsize_value_changed(), Inkscape::UI::Toolbar::TextToolbar::fontsize_value_changed(), Inkscape::UI::Toolbar::TextToolbar::fontstyle_value_changed(), Inkscape::UI::Tools::get_item_at(), Inkscape::UI::Tools::MarkerTool::get_marker_transform(), Inkscape::UI::Dialog::get_or_create_layer_for_glyph(), getMarkerBounds(), gr_knot_moved_handler(), gr_knot_ungrabbed_handler(), Inkscape::UI::Toolbar::GradientToolbar::gradient_changed(), Inkscape::UI::Toolbar::ConnectorToolbar::graph_layout(), SPAvoidRef::handleSettingChange(), init_avoided_shape_geometry(), layer_bottom(), layer_delete(), layer_duplicate(), layer_from_group(), layer_hide_all(), layer_hide_toggle_others(), layer_lock_all(), layer_lock_toggle_others(), layer_lower(), layer_new_above(), layer_next(), layer_previous(), layer_raise(), layer_to_group(), layer_top(), layer_unhide_all(), layer_unlock_all(), Inkscape::UI::Toolbar::SelectToolbar::layout_widget_update(), Inkscape::UI::Toolbar::TextToolbar::letterspacing_value_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_value_changed(), Inkscape::UI::Tools::lpetool_try_construction(), Inkscape::UI::Toolbar::StarToolbar::magnitude_value_changed(), Inkscape::UI::Tools::PagesTool::marginKnotMoved(), Inkscape::UI::Widget::StrokeStyle::markerSelectCB(), Inkscape::UI::Toolbar::TextToolbar::mergeDefaultStyle(), Inkscape::UI::Toolbar::EraserToolbar::mode_changed(), Inkscape::UI::Toolbar::LPEToolbar::mode_changed(), Inkscape::ObjectSet::ObjectSet(), Inkscape::UI::Toolbar::MeasureToolbar::offset_value_changed(), Inkscape::UI::Widget::EntityLineEntry::on_changed(), Inkscape::UI::Widget::EntityMultiLineEntry::on_changed(), Inkscape::UI::Widget::RegisteredColorPicker::on_changed(), Inkscape::UI::Dialog::ColorItem::on_click(), Inkscape::UI::Widget::SelectedStyle::on_fill_black(), Inkscape::UI::Widget::SelectedStyle::on_fill_invert(), Inkscape::UI::Widget::SelectedStyle::on_fill_lastselected(), Inkscape::UI::Widget::SelectedStyle::on_fill_lastused(), Inkscape::UI::Widget::SelectedStyle::on_fill_opaque(), Inkscape::UI::Widget::SelectedStyle::on_fill_remove(), Inkscape::UI::Widget::SelectedStyle::on_fill_unset(), Inkscape::UI::Widget::SelectedStyle::on_fill_white(), Inkscape::UI::Widget::SelectedStyle::on_opacity_changed(), Inkscape::UI::Widget::SelectedStyle::on_opacity_click(), Inkscape::UI::Widget::SelectedStyle::on_popup_preset(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), Inkscape::UI::Toolbar::TextToolbar::on_reset_button_pressed(), Inkscape::UI::Dialog::ColorItem::on_rightclick(), Inkscape::UI::Dialog::TextEdit::on_search_entry_changed(), Inkscape::UI::Widget::SelectedStyle::on_stroke_black(), Inkscape::UI::Widget::SelectedStyle::on_stroke_invert(), Inkscape::UI::Widget::SelectedStyle::on_stroke_lastselected(), Inkscape::UI::Widget::SelectedStyle::on_stroke_lastused(), Inkscape::UI::Widget::SelectedStyle::on_stroke_opaque(), Inkscape::UI::Widget::SelectedStyle::on_stroke_remove(), Inkscape::UI::Widget::SelectedStyle::on_stroke_unset(), Inkscape::UI::Widget::SelectedStyle::on_stroke_white(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Dialog::TextEdit::onReadSelection(), Inkscape::UI::Toolbar::TextToolbar::orientation_changed(), Inkscape::UI::Toolbar::ConnectorToolbar::orthogonal_toggled(), page_delete_and_center(), page_new_and_center(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::LivePathEffect::PathParam::param_editOncanvas(), Inkscape::UI::Tools::TextTool::pasteInline(), Inkscape::UI::Toolbar::MeasureToolbar::precision_value_changed(), Inkscape::UI::Toolbar::TextToolbar::prepare_inner(), Inkscape::UI::Toolbar::StarToolbar::proportion_value_changed(), Inkscape::UI::Toolbar::StarToolbar::randomized_value_changed(), Inkscape::UI::Dialog::BatchExport::refreshItems(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::ShapeEditor::reset_item(), Inkscape::UI::Tools::PagesTool::resizeKnotFinished(), Inkscape::UI::Tools::PagesTool::resizeKnotMoved(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::GradientTool::root_handler(), Inkscape::UI::Tools::PagesTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Toolbar::TextToolbar::rotation_value_changed(), Inkscape::UI::Toolbar::StarToolbar::rounded_value_changed(), Inkscape::UI::Toolbar::MeasureToolbar::scale_value_changed(), Inkscape::UI::Toolbar::TextToolbar::script_changed(), Inkscape::UI::Tools::NodeTool::select_area(), GrDrag::selected_move(), Inkscape::UI::Tools::MarkerTool::selection_changed(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::selection_toggled(), Inkscape::UI::Dialog::set_color(), Inkscape::UI::Dialog::DocumentProperties::set_content_scale(), Inkscape::UI::Dialog::set_document_dimensions(), Inkscape::UI::Dialog::DocumentProperties::set_document_scale(), Inkscape::UI::Dialog::set_namedview_bool(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_pos(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_size(), InkscapeWindow::setActiveTab(), Inkscape::UI::Widget::PageSelector::setDesktop(), Inkscape::UI::Widget::StrokeStyle::setDesktop(), Inkscape::UI::Toolbar::GradientToolbar::setDesktop(), Inkscape::UI::Toolbar::MeshToolbar::setDesktop(), Inkscape::UI::Toolbar::PageToolbar::setDesktop(), Inkscape::UI::Toolbar::TextToolbar::setDesktop(), Inkscape::UI::Dialog::DialogBase::setDesktop(), Inkscape::UI::Tools::MeasureTool::setGuide(), Inkscape::UI::Tools::MeasureTool::setMarker(), Inkscape::UI::Tools::MeasureTool::setMarkers(), Inkscape::UI::Tools::MeasureTool::setMeasureItem(), Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), Inkscape::UI::Widget::StrokeStyle::setStrokeMiter(), Inkscape::UI::Widget::StrokeStyle::setStrokeWidth(), Inkscape::UI::Widget::StyleSwatch::setStyle(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Toolbar::StarToolbar::side_mode_changed(), sp_edit_clear_all(), sp_file_revert_dialog(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), sp_gradient_invert_selected_gradients(), sp_gradient_reverse_selected_gradients(), sp_import_document(), sp_namedview_document_from_window(), sp_namedview_zoom_and_view_from_document(), Inkscape::UI::Tools::SelectTool::sp_select_context_abort(), sp_selected_path_create_offset_object(), sp_selected_path_do_offset(), sp_selection_item_prev(), sp_selection_paste(), Inkscape::UI::Toolbar::ConnectorToolbar::spacing_changed(), Inkscape::UI::Tools::spdc_apply_bend_shape(), Inkscape::UI::Tools::spdc_apply_powerstroke_shape(), Inkscape::UI::Tools::spdc_apply_simplify(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_create_single_dot(), Inkscape::UI::Tools::spdc_flush_white(), Inkscape::UI::Tools::MeshTool::split_near_point(), Inkscape::UI::Toolbar::GradientToolbar::spread_changed(), Inkscape::ObjectSet::strokedBounds(), text_flow_into_shape(), text_flow_shape_subtract(), text_put_on_path(), text_remove_all_kerns(), text_remove_from_path(), text_to_glyphs(), text_unflow(), Inkscape::UI::Tools::MeasureTool::toGuides(), Inkscape::UI::Tools::MeasureTool::toItem(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), Inkscape::ObjectSet::toNextLayer(), Inkscape::UI::Tools::MeasureTool::toPhantom(), Inkscape::ObjectSet::toPrevLayer(), Inkscape::UI::Toolbar::MeshToolbar::type_changed(), Inkscape::UI::Toolbar::TextToolbar::unindent_node(), Inkscape::UI::Widget::StrokeStyle::unitChangedCB(), Inkscape::UI::Widget::SelectedStyle::update(), Inkscape::LivePathEffect::Parameter::update_satellites(), Inkscape::UI::Dialog::DocumentProperties::update_scale_ui(), Inkscape::UI::Dialog::DocumentProperties::update_viewbox(), Inkscape::UI::Dialog::DocumentProperties::update_viewbox_ui(), Inkscape::UI::Toolbar::PencilToolbar::update_width_value(), Inkscape::UI::Widget::FillNStroke::updateFromPaint(), Inkscape::UI::Widget::CanvasGrid::updateRulers(), Inkscape::UI::Toolbar::NodeToolbar::value_changed(), window_open(), Inkscape::UI::Toolbar::TextToolbar::wordspacing_value_changed(), Inkscape::UI::Widget::RegisteredWidget< W >::write_to_xml(), and Inkscape::UI::Toolbar::TextToolbar::writing_mode_changed().
SPItem * SPDesktop::getGroupAtPoint | ( | Geom::Point const & | p | ) | const |
Definition at line 368 of file desktop.cpp.
References dkey, doc(), and SPDocument::getGroupAtPoint().
InkscapeWindow * SPDesktop::getInkscapeWindow | ( | ) |
Definition at line 980 of file desktop.cpp.
References _widget, and SPDesktopWidget::get_window().
InkscapeWindow const * SPDesktop::getInkscapeWindow | ( | ) | const |
Definition at line 975 of file desktop.cpp.
References _widget, and SPDesktopWidget::get_window().
Referenced by Inkscape::UI::Dialog::DocumentProperties::browseExternalScript(), change_document(), ContextMenu::ContextMenu(), InkscapeApplication::create_window(), Inkscape::Extension::ExecutionEnv::createWorkingDialog(), InkscapeApplication::desktopClose(), InkscapeApplication::detachDesktopToNewWindow(), document_check_for_data_loss(), get_active_tool(), get_active_tool_enum(), is_darktheme(), is_fullscreen(), is_maximized(), isMinimised(), Inkscape::UI::Dialog::BatchExport::onExport(), Inkscape::UI::Widget::PrefEntryFileButtonHBox::onRelatedButtonClickedCallback(), onWindowStateChanged(), InkscapeApplication::process_document(), Inkscape::UI::Tools::TextTool::root_handler(), set_active_tool(), set_active_tool(), sp_namedview_window_from_document(), Inkscape::UI::ThemeContext::themechangecallback(), updateDialogs(), and window_set_geometry().
SPItem * SPDesktop::getItemAtPoint | ( | Geom::Point const & | p, |
bool | into_groups, | ||
SPItem * | upto = nullptr |
||
) | const |
Definition at line 352 of file desktop.cpp.
References dkey, doc(), and SPDocument::getItemAtPoint().
Referenced by Inkscape::UI::Tools::calculate_intersections(), Inkscape::UI::Tools::get_item_at(), Inkscape::UI::Tools::NodeTool::item_handler(), Inkscape::UI::Tools::TextTool::item_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Tools::sp_event_context_find_item(), and Inkscape::UI::Tools::sp_tweak_dilate().
SPItem * SPDesktop::getItemFromListAtPointBottom | ( | std::vector< SPItem * > const & | list, |
Geom::Point const & | p | ||
) | const |
Definition at line 343 of file desktop.cpp.
References dkey, doc(), and SPDocument::getItemFromListAtPointBottom().
Referenced by Inkscape::UI::Tools::sp_event_context_find_item(), and Inkscape::UI::Tools::sp_event_context_over_item().
std::vector< SPItem * > SPDesktop::getItemsAtPoints | ( | std::vector< Geom::Point > | ps, |
bool | all_layers = true , |
||
bool | topmost_only = true , |
||
size_t | limit = 0 , |
||
bool | active_only = true |
||
) | const |
Definition at line 358 of file desktop.cpp.
References dkey, doc(), SPDocument::getItemsAtPoints(), and limit.
|
inline |
Definition at line 191 of file desktop.h.
References namedview.
Referenced by Inkscape::UI::Widget::CanvasGrid::_createGuide(), Inkscape::UI::Widget::CanvasGrid::_createGuideItem(), Inkscape::UI::Node::_getDragTip(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleMotionNotify(), Inkscape::UI::Tools::PencilTool::_handleMotionNotify(), Inkscape::UI::Widget::CanvasGrid::_rulerButtonRelease(), Inkscape::UI::Tools::PenTool::_setAngleDistanceStatusMessage(), Inkscape::UI::Tools::PenTool::_setToNearestHorizVert(), Inkscape::UI::Dialog::GuidelinePropertiesDialog::_setup(), Inkscape::UI::PathManipulator::_updateDragPoint(), SPDesktopWidget::_updateNamedview(), SPDesktopWidget::_updateUnit(), avoid_item_poly(), Inkscape::BooleanBuilder::BooleanBuilder(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Dialog::DocumentProperties::documentReplaced(), Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::ArcTool::drag(), Inkscape::UI::Tools::RectTool::drag(), Inkscape::UI::Tools::StarTool::drag(), Inkscape::UI::CurveDragPoint::dragged(), Inkscape::UI::Node::dragged(), SnapManager::getGridSnappers(), Inkscape::UI::TransformHandle::getNextClosestPoint(), Inkscape::UI::Tools::PagesTool::getSnappedResizePoint(), gr_knot_moved_handler(), gr_knot_moved_midpoint_handler(), graphlayout(), Inkscape::UI::Tools::MeasureTool::knotEndMovedHandler(), Inkscape::UI::Tools::MeasureTool::knotStartMovedHandler(), SnapManager::multipleOfGridPitch(), Inkscape::UI::Toolbar::ConnectorToolbar::notifyAttributeChanged(), Inkscape::UI::Widget::RegisteredColorPicker::on_changed(), Inkscape::UI::Dialog::DocumentProperties::onNewGrid(), Inkscape::UI::Dialog::DocumentProperties::rebuild_gridspage(), reconstruction_finish(), Inkscape::BooleanBuilder::redraw_items(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::MeasureTool::root_handler(), Inkscape::UI::Tools::MeshTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Widget::ruler_snap_new_guide(), Inkscape::UI::Dialog::set_color(), Inkscape::UI::Dialog::set_namedview_bool(), Inkscape::UI::Widget::SelectedStyle::setDesktop(), Inkscape::UI::Toolbar::ConnectorToolbar::setDesktop(), Inkscape::UI::Toolbar::MeasureToolbar::setDesktop(), Inkscape::UI::Tools::MeasureTool::setGuide(), Inkscape::UI::Dialog::BatchExport::setup(), Inkscape::UI::Dialog::SingleExport::setup(), Inkscape::UI::Dialog::SingleExport::setupUnits(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), KnotHolderEntity::snap_knot_position(), KnotHolderEntity::snap_knot_position_constrained(), Inkscape::snap_rectangular_box(), sp_dt_guide_event(), sp_import_document(), sp_namedview_document_from_window(), sp_namedview_update_layers_from_document(), sp_namedview_window_from_document(), sp_namedview_zoom_and_view_from_document(), Inkscape::UI::Toolbar::ConnectorToolbar::spacing_changed(), Inkscape::UI::Tools::spdc_endpoint_snap_free(), Inkscape::UI::Tools::spdc_endpoint_snap_rotation(), Inkscape::UI::Widget::StrokeStyle::StrokeStyle(), SPDesktopWidget::switchDesktop(), Inkscape::UI::Tools::MeasureTool::toGuides(), Inkscape::UI::Dialog::DocumentProperties::update_widgets(), Inkscape::UI::Widget::StrokeStyle::updateLine(), Box3D::vp_knot_moved_handler(), and Inkscape::UI::Widget::RegisteredWidget< W >::write_to_xml().
|
inline |
Definition at line 188 of file desktop.h.
References _selection.
Referenced by Inkscape::UI::Widget::StyleSubject::Selection::_afterDesktopSwitch(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doMove(), Inkscape::UI::Toolbar::PencilToolbar::_flattenLPE(), Inkscape::UI::Widget::StyleSubject::Selection::_getSelection(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleButtonRelease(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PenTool::_handleKeyPress(), Inkscape::UI::Tools::PencilTool::_handleKeyPress(), Inkscape::UI::Toolbar::SelectToolbar::_selectionChanged(), Inkscape::UI::Toolbar::TextToolbar::_selectionChanged(), Inkscape::UI::Toolbar::SelectToolbar::_selectionModified(), Inkscape::UI::Toolbar::SelectToolbar::_sensitize(), Inkscape::UI::Tools::PenTool::_setToNearestHorizVert(), Inkscape::UI::Tools::TextTool::_setupText(), Inkscape::UI::Toolbar::ArcToolbar::_startendValueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_typeChanged(), Inkscape::UI::Toolbar::GradientToolbar::_update(), Inkscape::UI::Toolbar::RectToolbar::_valueChanged(), Inkscape::UI::Toolbar::SpiralToolbar::_valueChanged(), Inkscape::UI::Toolbar::ArcToolbar::_valueChanged(), Inkscape::UI::Dialog::ColorItem::action_edit(), Inkscape::Application::activate_desktop(), Inkscape::Application::add_desktop(), Inkscape::UI::Toolbar::GradientToolbar::add_stop(), Inkscape::UI::Toolbar::TextToolbar::align_mode_changed(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Toolbar::Box3DToolbar::angle_value_changed(), Inkscape::UI::Toolbar::SelectToolbar::any_value_changed(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Tools::ArcTool::ArcTool(), Inkscape::UI::Dialog::GridArrangeTab::arrange(), Inkscape::UI::Dialog::PolarArrangeTab::arrange(), Inkscape::UI::Tools::Box3dTool::Box3dTool(), Inkscape::UI::Dialog::DocumentProperties::build_page(), Inkscape::UI::Tools::ArcTool::cancel(), Inkscape::UI::Tools::Box3dTool::cancel(), Inkscape::UI::Tools::RectTool::cancel(), Inkscape::UI::Tools::SpiralTool::cancel(), Inkscape::UI::Tools::StarTool::cancel(), Inkscape::UI::Tools::cc_selection_set_avoid(), Inkscape::Extension::Implementation::Script::PreviewObserver::connect(), Inkscape::LivePathEffect::Parameter::connect_selection_changed(), Inkscape::UI::Tools::ConnectorTool::ConnectorTool(), ContextMenu::ContextMenu(), Inkscape::UI::Toolbar::ConnectorToolbar::curvature_changed(), InkscapeApplication::desktopOpen(), Inkscape::UI::Tools::do_trace(), Inkscape::LivePathEffect::LPEBool::doBeforeEffect(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::Extension::Implementation::Script::effect(), Inkscape::Extension::Internal::BlurEdge::effect(), Inkscape::Extension::Internal::Filter::Filter::effect(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::UI::Widget::StrokeStyle::enterEditMarkerMode(), Inkscape::Extension::ExecutionEnv::ExecutionEnv(), file_import(), Inkscape::UI::Tools::ArcTool::finishItem(), Inkscape::UI::Tools::RectTool::finishItem(), Inkscape::UI::Tools::SpiralTool::finishItem(), Inkscape::UI::Tools::StarTool::finishItem(), Inkscape::UI::Tools::MeshTool::fit_mesh_in_bbox(), Inkscape::SelectionHelper::fixSelection(), Inkscape::UI::Tools::FloodTool::FloodTool(), flowtext_to_text(), Inkscape::UI::Tools::FreehandBase::FreehandBase(), Inkscape::UI::Dialog::TextEdit::getSelectedTextCount(), Inkscape::UI::Dialog::TextEdit::getSelectedTextItem(), Inkscape::UI::Toolbar::GradientToolbar::gradient_changed(), Inkscape::UI::Tools::GradientTool::GradientTool(), Inkscape::UI::Toolbar::ConnectorToolbar::graph_layout(), group_enter(), group_exit(), Inkscape::UI::Tools::InteractiveBooleansTool::hide_selected_objects(), Inkscape::UI::Tools::InteractiveBooleansTool::InteractiveBooleansTool(), Inkscape::UI::Tools::InteractiveBooleansTool::is_ready(), Inkscape::UI::Tools::LpeTool::item_handler(), Inkscape::UI::Tools::TextTool::item_handler(), layer_delete(), layer_duplicate(), layer_from_group(), layer_new_above(), layer_to_group(), Inkscape::UI::Toolbar::StarToolbar::length_value_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_value_changed(), Inkscape::UI::Dialog::SingleExport::loadExportHints(), Inkscape::UI::Tools::LpeTool::LpeTool(), Inkscape::UI::Tools::lpetool_try_construction(), Inkscape::UI::Toolbar::StarToolbar::magnitude_value_changed(), Inkscape::UI::Widget::StrokeStyle::markerSelectCB(), Inkscape::UI::Tools::MarkerTool::MarkerTool(), Inkscape::UI::Tools::MeshTool::MeshTool(), Inkscape::UI::Dialog::SpellCheck::nextWord(), Inkscape::UI::Tools::NodeTool::NodeTool(), Inkscape::UI::Toolbar::StarToolbar::notifyAttributeChanged(), Inkscape::UI::Dialog::AlignAndDistribute::on_align_relative_object_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_col_spinbutton_changed(), Inkscape::UI::Widget::SelectedStyle::on_fillstroke_swap(), InkscapeWindow::on_is_active_changed(), Inkscape::UI::Dialog::GridArrangeTab::on_row_spinbutton_changed(), Inkscape::LivePathEffect::OriginalPathParam::on_select_original_button_click(), Inkscape::LivePathEffect::OriginalSatelliteParam::on_select_original_button_click(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Dialog::BatchExport::onExport(), Inkscape::UI::Dialog::SingleExport::onExport(), Inkscape::UI::Dialog::Export::onNotebookPageSwitch(), Inkscape::UI::Toolbar::ConnectorToolbar::orthogonal_toggled(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::UI::Widget::FillNStroke::performUpdate(), Inkscape::UI::Tools::TextTool::placeCursor(), Inkscape::UI::Tools::TextTool::placeCursorAt(), Inkscape::Extension::Implementation::Implementation::prefs_effect(), Inkscape::Extension::Internal::Bitmap::ImageMagick::prefs_effect(), Inkscape::Extension::Internal::Grid::prefs_effect(), Inkscape::UI::Toolbar::StarToolbar::proportion_value_changed(), Inkscape::UI::Toolbar::StarToolbar::randomized_value_changed(), reconstruction_start(), Inkscape::UI::Tools::RectTool::RectTool(), Inkscape::UI::Dialog::SingleExport::refreshArea(), Inkscape::UI::Dialog::BatchExport::refreshItems(), Inkscape::UI::Dialog::BatchExport::refreshPreview(), Inkscape::UI::Dialog::SingleExport::refreshPreview(), Inkscape::Application::remove_desktop(), Inkscape::UI::Toolbar::GradientToolbar::remove_stop(), Inkscape::Extension::ExecutionEnv::reselect(), Inkscape::SelectionHelper::reverse(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::GradientTool::root_handler(), Inkscape::UI::Tools::LpeTool::root_handler(), Inkscape::UI::Tools::MarkerTool::root_handler(), Inkscape::UI::Tools::MeshTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Toolbar::StarToolbar::rounded_value_changed(), Inkscape::Extension::ExecutionEnv::run(), Inkscape::SelCue::SelCue(), Inkscape::UI::Tools::NodeTool::select_area(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::select_filter_elements(), select_path_inset(), select_path_inset_screen(), select_path_offset(), select_path_offset_dynamic(), select_path_offset_linked(), select_path_offset_screen(), Inkscape::UI::Tools::NodeTool::select_point(), Inkscape::UI::Toolbar::MeshToolbar::selection_changed(), Inkscape::UI::Tools::GradientTool::selection_changed(), Inkscape::UI::Tools::MeshTool::selection_changed(), selection_move_to_layer_above(), selection_move_to_layer_below(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::selection_toggled(), Inkscape::UI::Dialog::BatchExport::selectionChanged(), Inkscape::UI::Dialog::SingleExport::selectionChanged(), Inkscape::UI::Dialog::BatchExport::selectionModified(), Inkscape::UI::Dialog::SingleExport::selectionModified(), Inkscape::UI::Dialog::ObjectAttributes::selectionModified(), Inkscape::SelectionHelper::selectNone(), Inkscape::UI::Tools::SelectTool::SelectTool(), Inkscape::UI::Toolbar::SelectToolbar::SelectToolbar(), Inkscape::SelTrans::SelTrans(), Inkscape::UI::Tools::ToolBase::set(), Inkscape::UI::Tools::NodeTool::set(), InkscapeWindow::setActiveTab(), Inkscape::LayerManager::setCurrentLayer(), Inkscape::UI::Dialog::BatchExport::setDefaultSelectionMode(), Inkscape::UI::Dialog::SingleExport::setDefaultSelectionMode(), Inkscape::UI::Widget::FillNStroke::setDesktop(), Inkscape::UI::Widget::SelectedStyle::setDesktop(), Inkscape::UI::Toolbar::ArcToolbar::setDesktop(), Inkscape::UI::Toolbar::Box3DToolbar::setDesktop(), Inkscape::UI::Toolbar::ConnectorToolbar::setDesktop(), Inkscape::UI::Toolbar::GradientToolbar::setDesktop(), Inkscape::UI::Toolbar::LPEToolbar::setDesktop(), Inkscape::UI::Toolbar::MeshToolbar::setDesktop(), Inkscape::UI::Toolbar::NodeToolbar::setDesktop(), Inkscape::UI::Toolbar::RectToolbar::setDesktop(), Inkscape::UI::Toolbar::SelectToolbar::setDesktop(), Inkscape::UI::Toolbar::SpiralToolbar::setDesktop(), Inkscape::UI::Toolbar::StarToolbar::setDesktop(), Inkscape::UI::Toolbar::TextToolbar::setDesktop(), Inkscape::UI::Dialog::DialogBase::setDesktop(), Inkscape::UI::Tools::MeasureTool::setMeasureItem(), Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), Inkscape::UI::Widget::StrokeStyle::setStrokeMiter(), Inkscape::UI::Widget::StrokeStyle::setStrokeWidth(), SnapManager::setupIgnoreSelection(), Inkscape::UI::Toolbar::PencilToolbar::shapewidth_value_changed(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Toolbar::StarToolbar::side_mode_changed(), sp_desktop_query_style(), sp_desktop_set_style(), sp_edit_select_all_full(), Inkscape::UI::Tools::sp_event_context_find_item(), sp_gradient_invert_selected_gradients(), sp_gradient_reverse_selected_gradients(), sp_import_document(), Inkscape::UI::Tools::sp_select_context_up_one_layer(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), sp_selected_path_create_offset_object(), sp_selected_path_do_offset(), sp_selection_item_next(), sp_selection_item_prev(), sp_selection_next_patheffect_param(), Inkscape::UI::Tools::sp_tweak_dilate(), Inkscape::UI::Tools::sp_update_helperpath(), Inkscape::UI::Tools::spdc_check_for_and_apply_waiting_LPE(), Inkscape::UI::Tools::spdc_create_single_dot(), Inkscape::UI::Tools::spdc_endpoint_snap_free(), Inkscape::UI::Tools::SpiralTool::SpiralTool(), Inkscape::UI::Tools::SprayTool::SprayTool(), Inkscape::UI::Toolbar::GradientToolbar::spread_changed(), Inkscape::UI::Tools::StarTool::StarTool(), Inkscape::UI::Dialog::StyleFromSelectionToTool(), Inkscape::UI::Tools::InteractiveBooleansTool::switching_away(), text_flow_into_shape(), text_flow_shape_subtract(), Inkscape::UI::Toolbar::TextToolbar::text_outer_set_style(), text_put_on_path(), text_remove_all_kerns(), text_remove_from_path(), text_to_glyphs(), text_unflow(), Inkscape::UI::Tools::TextTool::TextTool(), Inkscape::UI::Toolbar::LPEToolbar::toggle_set_bbox(), Inkscape::UI::Toolbar::PencilToolbar::tolerance_value_changed(), transform_grow_screen(), Inkscape::LivePathEffect::LPEBool::transform_multiply(), Inkscape::LivePathEffect::LPEFillBetweenMany::transform_multiply_nested(), Inkscape::LivePathEffect::LPEFillBetweenStrokes::transform_multiply_nested(), transform_rotate_screen(), Inkscape::UI::Toolbar::MeshToolbar::type_changed(), Inkscape::UI::Tools::TweakTool::update_cursor(), Inkscape::LivePathEffect::Parameter::update_satellites(), Inkscape::UI::Widget::FillNStroke::updateFromPaint(), Inkscape::UI::Widget::StrokeStyle::updateLine(), Inkscape::UI::Widget::CanvasGrid::updateRulers(), Inkscape::UI::Dialog::GridArrangeTab::updateSelection(), Inkscape::UI::Toolbar::Box3DToolbar::vp_state_changed(), and Inkscape::UI::Dialog::ObjectAttributes::widget_setup().
|
inline |
Definition at line 193 of file desktop.h.
References _snapindicator.
Referenced by Inkscape::UI::Tools::PencilTool::_endpointSnap(), Inkscape::UI::ControlPointSelection::_pointUngrabbed(), SnapManager::constrainedSnap(), SnapManager::displaySnapsource(), SnapManager::findBestSnap(), KnotHolder::knot_ungrabbed_handler(), SnapManager::multipleOfGridPitch(), SnapManager::preSnap(), Inkscape::snap_rectangular_box(), and SnapManager::snapTransformed().
|
inline |
Definition at line 187 of file desktop.h.
References _tool.
Referenced by Inkscape::UI::ControlPoint::_commonInit(), Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::Widget::CanvasGrid::_rulerButtonRelease(), Inkscape::UI::Toolbar::TextToolbar::_selectionChanged(), Inkscape::UI::Toolbar::GradientToolbar::_update(), Inkscape::UI::Toolbar::GradientToolbar::add_stop(), Inkscape::UI::Toolbar::BooleansToolbar::BooleansToolbar(), canvas_zoom_helper(), Inkscape::UI::Tools::cc_generic_knot_handler(), Inkscape::ObjectSet::cut(), Inkscape::UI::Widget::RotateableSwatch::do_motion(), Inkscape::UI::Widget::RotateableStrokeWidth::do_motion(), Inkscape::UI::Widget::RotateableSwatch::do_release(), Inkscape::UI::Widget::RotateableStrokeWidth::do_release(), drawing_handler(), Inkscape::UI::Toolbar::TextToolbar::dx_value_changed(), Inkscape::UI::Toolbar::TextToolbar::dy_value_changed(), ActionsEdit::edit_delete(), Inkscape::UI::Widget::StrokeStyle::enterEditMarkerMode(), SPKnot::eventHandler(), get_measure_tool(), Inkscape::UI::Toolbar::MeshToolbar::get_mesh_tool(), Inkscape::UI::Toolbar::NodeToolbar::get_node_tool(), Inkscape::Selection::getState(), gr_knot_moved_handler(), Inkscape::UI::TransformHandle::grabbed(), Inkscape::UI::Toolbar::GradientToolbar::gradient_changed(), Inkscape::SelectionHelper::invert(), Inkscape::SelectionHelper::invertAllInAll(), KnotHolder::knot_mousedown_handler(), Inkscape::UI::Toolbar::TextToolbar::lineheight_unit_changed(), Inkscape::UI::Toolbar::TextToolbar::lineheight_value_changed(), Inkscape::UI::Widget::StrokeStyle::markerSelectCB(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Toolbar::LPEToolbar::mode_changed(), Inkscape::UI::Toolbar::PencilToolbar::mode_changed(), Inkscape::UI::Dialog::SpellCheck::nextWord(), node_align(), node_distribute(), Inkscape::UI::Toolbar::LPEToolbar::open_lpe_dialog(), Inkscape::LivePathEffect::PathParam::param_editOncanvas(), Inkscape::UI::Toolbar::TextToolbar::prepare_inner(), Inkscape::LivePathEffect::NodeSatelliteArrayParam::reloadKnots(), Inkscape::UI::Toolbar::GradientToolbar::remove_stop(), Inkscape::SelectionHelper::reverse(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Toolbar::TextToolbar::rotation_value_changed(), Inkscape::UI::Widget::CanvasGrid::rulerMotion(), Inkscape::UI::Toolbar::LPEToolbar::sel_changed(), Inkscape::UI::Toolbar::LPEToolbar::sel_modified(), Inkscape::SelectionHelper::selectAll(), Inkscape::SelectionHelper::selectAllInAll(), Inkscape::SelectionHelper::selectNone(), Persp3D::set(), set_active_tool(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), Inkscape::Selection::setState(), sp_desktop_root_handler(), sp_desktop_set_style(), sp_dt_guide_event(), sp_gradient_reverse_selected_gradients(), sp_import_document(), sp_sel_trans_handle_click(), sp_sel_trans_handle_event(), sp_sel_trans_handle_grab(), sp_sel_trans_handle_new_event(), sp_sel_trans_handle_request(), sp_sel_trans_handle_ungrab(), Inkscape::UI::Tools::sp_toggle_dropper(), Inkscape::UI::Tools::sp_toggle_selector(), Inkscape::UI::Tools::sp_update_helperpath(), Inkscape::UI::Toolbar::GradientToolbar::stop_changed(), Inkscape::UI::Toolbar::TextToolbar::subselection_wrap_toggle(), SPDesktopWidget::switchDesktop(), Inkscape::LivePathEffect::LPECloneOriginal::syncOriginal(), Inkscape::UI::Toolbar::LPEToolbar::toggle_set_bbox(), Inkscape::UI::Toolbar::LPEToolbar::toggle_show_bbox(), Inkscape::UI::Toolbar::LPEToolbar::toggle_show_measuring_info(), tool_switch(), Inkscape::UI::TransformHandle::ungrabbed(), Inkscape::UI::Toolbar::LPEToolbar::unit_changed(), Inkscape::UI::Widget::Canvas::update_cursor(), and Inkscape::LivePathEffect::Effect::update_helperpath().
|
inline |
Definition at line 297 of file desktop.h.
References _translucency_group.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_handleTransparentHover().
Geom::IntPoint SPDesktop::getWindowSize | ( | ) | const |
Definition at line 960 of file desktop.cpp.
References _widget, and SPDesktopWidget::getWindowSize().
Referenced by sp_namedview_document_from_window(), and window_query_geometry().
|
inline |
Definition at line 290 of file desktop.h.
References _guides_message_context.
Referenced by Inkscape::UI::Widget::CanvasGrid::CanvasGrid().
|
private |
Definition at line 1326 of file desktop.cpp.
References _current_affine, _selection, SPDesktop::DesktopAffine::getOffset(), SPDesktop::DesktopAffine::getZoom(), offset, set_display_area(), SPDesktop::DesktopAffine::setOffset(), SPDesktop::DesktopAffine::setScale(), and yaxisdir().
Referenced by _attachDocument().
bool SPDesktop::is_darktheme | ( | ) | const |
Definition at line 919 of file desktop.cpp.
References getInkscapeWindow().
bool SPDesktop::is_flipped | ( | CanvasFlip | flip | ) |
Definition at line 845 of file desktop.cpp.
References _current_affine, and SPDesktop::DesktopAffine::isFlipped().
bool SPDesktop::is_focusMode | ( | ) | const |
Checks to see if the user is working in focused mode.
_focusMode
. Definition at line 939 of file desktop.cpp.
References _focusMode.
Referenced by canvas_interface_mode(), getLayoutPrefPath(), SPDesktopWidget::layoutWidgets(), view_focus_toggle(), and view_set_gui().
bool SPDesktop::is_fullscreen | ( | ) | const |
Definition at line 929 of file desktop.cpp.
References getInkscapeWindow(), and InkscapeWindow::isFullscreen().
Referenced by canvas_interface_mode(), getLayoutPrefPath(), SPDesktopWidget::layoutWidgets(), and view_set_gui().
bool SPDesktop::is_maximized | ( | ) | const |
Definition at line 924 of file desktop.cpp.
References getInkscapeWindow(), and InkscapeWindow::isMaximised().
Referenced by sp_namedview_document_from_window(), and window_set_geometry().
|
inline |
Definition at line 427 of file desktop.h.
References yaxisdir().
Referenced by Inkscape::UI::Widget::CanvasGrid::_createGuide(), Inkscape::CanvasItemGuideLine::_render(), Inkscape::UI::Tools::PenTool::_setAngleDistanceStatusMessage(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Toolbar::NodeToolbar::edit_add_bottommost(), Inkscape::UI::Toolbar::NodeToolbar::edit_add_topmost(), Inkscape::GridSnapper::getSnapLinesAxonom(), GrDragger::highlightNode(), object_align(), Inkscape::UI::Tools::MeasureTool::setGuide(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), Inkscape::UI::TransformHandleSet::TransformHandleSet(), and Inkscape::UI::Widget::CanvasGrid::updateRulers().
bool SPDesktop::isMinimised | ( | ) | const |
Definition at line 914 of file desktop.cpp.
References getInkscapeWindow(), and InkscapeWindow::isMinimised().
Referenced by InkscapeWindow::on_size_changed().
bool SPDesktop::isToolboxButtonActive | ( | char const * | id | ) | const |
Definition at line 1145 of file desktop.cpp.
References _widget, and SPDesktopWidget::isToolboxButtonActive().
|
inline |
Definition at line 402 of file desktop.h.
References waiting_cursor.
bool SPDesktop::isWithinViewport | ( | SPItem const * | item | ) | const |
True if desktop viewport intersects item's bbox.
Definition at line 253 of file desktop.cpp.
References SPItem::desktopVisualBounds(), get_display_area(), and item.
Referenced by next_item(), and next_item_from_list().
bool SPDesktop::itemIsHidden | ( | SPItem const * | item | ) | const |
Definition at line 264 of file desktop.cpp.
References dkey, SPItem::isHidden(), and item.
Referenced by SnapManager::_findCandidates(), Inkscape::UI::Dialog::Find::all_items(), Inkscape::UI::Dialog::Find::all_selection_items(), Inkscape::UI::Dialog::SpellCheck::allTextItems(), get_all_items_recursive(), get_avoided_items_rec(), Inkscape::have_viable_layer(), Inkscape::have_viable_layer(), next_item(), sp_edit_select_all_full(), and unhide().
|
inline |
Definition at line 287 of file desktop.h.
References _layer_manager.
Referenced by Inkscape::UI::Dialog::LayerPropertiesDialog::_addLayer(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doRename(), Inkscape::Selection::_emitChanged(), Inkscape::UI::Tools::PencilTool::_fitAndSplit(), Inkscape::UI::Widget::LayerSelector::_hideLayer(), Inkscape::UI::Widget::LayerSelector::_layerModified(), Inkscape::UI::Widget::LayerSelector::_lockLayer(), Inkscape::UI::Dialog::LayerPropertiesDialog::_setup(), Inkscape::UI::Dialog::LayerPropertiesDialog::_setup_layers_controls(), Inkscape::Selection::activeContext(), Inkscape::UI::Dialog::Find::all_items(), Inkscape::UI::Dialog::Find::all_selection_items(), Inkscape::UI::Dialog::SpellCheck::allTextItems(), ContextMenu::ContextMenu(), create_flowtext_with_internal_frame(), create_text_with_inline_size(), create_text_with_rectangle(), Inkscape::UI::Tools::MeasureTool::createAngleDisplayCurve(), Inkscape::UI::Tools::ToolBase::currentLayer(), Inkscape::UI::Dialog::ObjectsPanel::desktopReplaced(), Inkscape::UI::Tools::do_trace(), Inkscape::ObjectSet::duplicate(), Inkscape::UI::Dialog::SvgFontsDialog::edit_glyph(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), file_import(), Inkscape::UI::Dialog::find_layer(), Inkscape::SelectionHelper::fixSelection(), get_all_items_recursive(), get_avoided_items_rec(), Inkscape::UI::Dialog::get_layer_for_glyph(), Inkscape::UI::Dialog::get_or_create_layer_for_glyph(), SPDocument::getItemsAtPoints(), group_enter(), group_exit(), Inkscape::have_viable_layer(), Inkscape::have_viable_layer(), init_avoided_shape_geometry(), itemtree_map(), layer_bottom(), layer_delete(), layer_duplicate(), 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(), next_item(), Inkscape::Selection::numberOfLayers(), Inkscape::UI::Dialog::ObjectsPanel::on_click(), Inkscape::UI::Dialog::Find::onAction(), process_all(), reconstruction_finish(), reconstruction_start(), Inkscape::UI::Dialog::BatchExport::refreshItems(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::remove_filter(), Inkscape::UI::Dialog::rename_glyph_layer(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::select_filter_elements(), Inkscape::UI::Dialog::ObjectsPanel::selectCursorItem(), selection_move_to_layer(), Inkscape::UI::Dialog::ObjectsPanel::selectRange(), Inkscape::UI::Dialog::XmlTree::set_dt_select(), Inkscape::UI::Widget::LayerSelector::setDesktop(), Inkscape::UI::Tools::MeasureTool::setLabelText(), Inkscape::UI::Tools::MeasureTool::setLine(), Inkscape::UI::Tools::MeasureTool::setMeasureItem(), Inkscape::UI::Tools::MeasureTool::setPoint(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), sp_edit_clear_all(), sp_edit_select_all_full(), sp_import_document(), sp_namedview_document_from_window(), sp_namedview_update_layers_from_document(), Inkscape::UI::Tools::sp_select_context_up_one_layer(), sp_select_same_fill_stroke_style(), sp_select_same_object_type(), sp_selection_item_next(), sp_selection_item_prev(), Inkscape::UI::Toolbar::ConnectorToolbar::spacing_changed(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), Inkscape::UI::Tools::MeasureTool::toGuides(), Inkscape::UI::Tools::MeasureTool::toItem(), Inkscape::ObjectSet::toLayer(), Inkscape::ObjectSet::toNextLayer(), Inkscape::ObjectSet::toPrevLayer(), SPSymbol::unSymbol(), and Inkscape::SelectionDescriber::updateMessage().
|
inline |
Definition at line 288 of file desktop.h.
References _layer_manager.
void SPDesktop::layoutWidget | ( | ) |
Definition at line 1086 of file desktop.cpp.
References _widget, and SPDesktopWidget::layoutWidgets().
Referenced by focusMode(), onWindowStateChanged(), and toggleToolbar().
|
inline |
Definition at line 160 of file desktop.h.
References _message_stack.
Referenced by Inkscape::LivePathEffect::LPEEllipse5Pts::_clearWarning(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doCreate(), Inkscape::UI::Dialog::LayerPropertiesDialog::_doRename(), Inkscape::UI::Tools::PenTool::_finish(), Inkscape::LivePathEffect::LPEEllipse5Pts::_flashWarning(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PencilTool::_handleKeyPress(), Inkscape::UI::Tools::PencilTool::_handleKeyRelease(), Inkscape::UI::Tools::TextTool::_insertUnichar(), Inkscape::ObjectSet::_pathBoolOp(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::ObjectSet::applyAffine(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::Transformation::applyPageTransform(), Inkscape::ObjectSet::breakApart(), Inkscape::UI::Tools::cc_selection_set_avoid(), Inkscape::UI::Dialog::Export::checkOrCreateDirectory(), Inkscape::ObjectSet::clone(), Inkscape::ObjectSet::cloneOriginal(), Inkscape::ObjectSet::cloneOriginalPathLPE(), Inkscape::ObjectSet::combine(), Inkscape::UI::Tools::MeasureTool::copyToClipboard(), Inkscape::ObjectSet::createBitmapCopy(), Inkscape::UI::Tools::do_trace(), Inkscape::LivePathEffect::Effect::editNextParamOncanvas(), SPKnot::eventHandler(), Inkscape::UI::Dialog::Export::exportRaster(), Inkscape::UI::Dialog::Export::exportVector(), Inkscape::ObjectSet::fillBetweenMany(), Inkscape::ObjectSet::fitCanvas(), flowtext_to_text(), layer_bottom(), layer_delete(), layer_duplicate(), layer_from_group(), layer_hide_toggle(), layer_hide_toggle_others(), layer_lock_toggle(), layer_lock_toggle_others(), layer_lower(), layer_new_above(), layer_next(), layer_previous(), layer_raise(), layer_to_group(), layer_top(), next_transform(), Inkscape::UI::Dialog::ObjectsPanel::on_motion_enter(), Inkscape::UI::Dialog::ObjectsPanel::on_motion_leave(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Dialog::BatchExport::onExport(), Inkscape::ObjectSet::pathReverse(), prev_transform(), Inkscape::ObjectSet::relink(), Inkscape::UI::Dialog::CloneTiler::remove(), Inkscape::ObjectSet::removeFilter(), Inkscape::ObjectSet::removeLPE(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::ObjectPickerTool::root_handler(), selection_display_message(), Inkscape::UI::Tools::SelectTool::SelectTool(), Inkscape::ObjectSet::setClipGroup(), Inkscape::ObjectSet::setMask(), Inkscape::ObjectSet::simplifyPaths(), sp_file_revert_dialog(), sp_file_vacuum(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), Inkscape::UI::Tools::SelectTool::sp_select_context_abort(), sp_selected_path_create_offset_object(), sp_selected_path_do_offset(), sp_selection_next_patheffect_param(), sp_te_delete(), sp_te_insert(), sp_te_insert_line(), Inkscape::UI::Tools::spdc_concat_colors_and_flush(), Inkscape::UI::Tools::spdc_create_single_dot(), Inkscape::ObjectSet::strokesToPaths(), Inkscape::UI::Dialog::StyleFromSelectionToTool(), SPDesktopWidget::switchDesktop(), text_flow_into_shape(), text_flow_shape_subtract(), text_put_on_path(), text_remove_all_kerns(), text_remove_from_path(), text_to_glyphs(), text_unflow(), Inkscape::ObjectSet::tile(), Inkscape::ObjectSet::toCurves(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_all_layers(), Inkscape::UI::Toolbar::SelectToolbar::toggle_corners(), Inkscape::UI::Toolbar::SelectToolbar::toggle_gradient(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_ignore_1st_and_last(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_only_selected(), Inkscape::UI::Toolbar::SelectToolbar::toggle_pattern(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_show_hidden(), Inkscape::UI::Toolbar::MeasureToolbar::toggle_show_in_between(), Inkscape::UI::Toolbar::SelectToolbar::toggle_stroke(), Inkscape::ObjectSet::toGuides(), Inkscape::ObjectSet::toLayer(), Inkscape::ObjectSet::toMarker(), Inkscape::ObjectSet::toNextLayer(), Inkscape::UI::Tools::ToolBase::ToolBase(), Inkscape::ObjectSet::toPrevLayer(), Inkscape::ObjectSet::toSymbol(), Inkscape::UI::Dialog::CloneTiler::unclump(), Inkscape::ObjectSet::unlink(), Inkscape::ObjectSet::unlinkRecursive(), Inkscape::ObjectSet::unsetMask(), and Inkscape::ObjectSet::untile().
void SPDesktop::next_transform | ( | ) |
Set transform to next in list.
Definition at line 416 of file desktop.cpp.
References _current_affine, Inkscape::MessageStack::flash(), messageStack(), set_display_area(), transforms_future, transforms_past, and Inkscape::WARNING_MESSAGE.
Referenced by canvas_transform().
|
private |
Definition at line 1377 of file desktop.cpp.
References _begin_zoom, and current_zoom().
Referenced by SPDesktop().
|
private |
|
private |
Definition at line 1382 of file desktop.cpp.
References _begin_zoom, canvas, scale, w2d(), and zoom_absolute().
Referenced by SPDesktop().
|
private |
Definition at line 1273 of file desktop.cpp.
References _widget, SPDesktopWidget::get_desktop(), and SPDesktopWidget::setMessage().
Referenced by SPDesktop().
void SPDesktop::onWindowStateChanged | ( | Gdk::Toplevel::State | changed, |
Gdk::Toplevel::State | new_toplevel_state | ||
) |
onWindowStateChanged
Called when the window changes its maximize/fullscreen/iconify/pinned state.
Definition at line 1097 of file desktop.cpp.
References getInkscapeWindow(), Inkscape::Util::has_flag(), layoutWidget(), and view_set_gui().
Referenced by InkscapeWindow::on_toplevel_state_changed().
Geom::Point SPDesktop::point | ( | ) | const |
Returns the mouse point in desktop coordinates; if mouse is outside the canvas, returns the center of canvas viewpoint.
Definition at line 378 of file desktop.cpp.
Referenced by file_import(), Inkscape::UI::Tools::SprayTool::root_handler(), scroll_absolute(), sp_import_document(), Inkscape::UI::Tools::sp_spray_update_area(), and Inkscape::UI::Tools::sp_tweak_update_area().
void SPDesktop::presentWindow | ( | ) |
Definition at line 986 of file desktop.cpp.
References _widget, and SPDesktopWidget::presentWindow().
Referenced by Inkscape::Application::switch_desktops_next(), and Inkscape::Application::switch_desktops_prev().
void SPDesktop::prev_transform | ( | ) |
Revert back to previous transform if possible.
Note: current transform is always at front of stack.
Definition at line 390 of file desktop.cpp.
References _current_affine, Inkscape::MessageStack::flash(), messageStack(), set_display_area(), transforms_future, transforms_past, and Inkscape::WARNING_MESSAGE.
Referenced by canvas_transform().
void SPDesktop::quick_preview | ( | bool | activate | ) |
Definition at line 1067 of file desktop.cpp.
References activate(), canvas, SPNamedView::clip_to_page, namedview, and setTempHideOverlays().
|
inline |
Returns whether the desktop is in quick zoom mode or not.
Definition at line 340 of file desktop.h.
References _quick_zoom_enabled.
|
private |
Called when document rebuild is finished.
Definition at line 1313 of file desktop.cpp.
References _reconstruction_old_layer_id, document, getNamedView(), SPDocument::getObjectById(), layerManager(), and Inkscape::LayerManager::setCurrentLayer().
Referenced by _attachDocument().
|
private |
Called when document is starting to be rebuilt.
Definition at line 1303 of file desktop.cpp.
References _reconstruction_old_layer_id, Inkscape::ObjectSet::clear(), Inkscape::LayerManager::currentLayer(), SPObject::getId(), getSelection(), layerManager(), and Inkscape::LayerManager::reset().
Referenced by _attachDocument().
void SPDesktop::remove_temporary_canvasitem | ( | Inkscape::Display::TemporaryItem * | tempitem | ) |
It is perfectly safe to call this function while the object has already been deleted due to a timeout.
Definition at line 242 of file desktop.cpp.
References _temporary_item_list.
Referenced by Inkscape::LivePathEffect::Parameter::param_higlight(), Inkscape::Display::SnapIndicator::remove_debugging_points(), Inkscape::Display::SnapIndicator::remove_snapsource(), Inkscape::Display::SnapIndicator::remove_snaptarget(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::sp_update_helperpath(), Inkscape::UI::Tools::NodeTool::~NodeTool(), and Inkscape::LivePathEffect::Parameter::~Parameter().
void SPDesktop::rotate_absolute_center_point | ( | Geom::Point const & | c, |
double | rotate | ||
) |
Set new rotation, aligning the point 'c' to the center of desktop window.
c | Point in desktop coordinates |
rotate | Angle in clockwise direction |
Definition at line 768 of file desktop.cpp.
References _current_affine, c, canvas, set_display_area(), and SPDesktop::DesktopAffine::setRotate().
Referenced by canvas_rotate_absolute_degrees(), canvas_rotate_absolute_radians(), and canvas_transform().
void SPDesktop::rotate_absolute_keep_point | ( | Geom::Point const & | c, |
double | rotate | ||
) |
Set new rotation, keeping the point 'c' fixed in the desktop window.
c | Point in desktop coordinates |
rotate | Angle in clockwise direction |
Definition at line 742 of file desktop.cpp.
References _current_affine, c, d2w(), set_display_area(), SPDesktop::DesktopAffine::setRotate(), and w.
Referenced by sp_namedview_zoom_and_view_from_document().
void SPDesktop::rotate_grab_focus | ( | ) |
Tell widget to let rotate widget grab keyboard focus.
Definition at line 731 of file desktop.cpp.
References _widget, and SPDesktopWidget::letRotateGrabFocus().
void SPDesktop::rotate_relative_center_point | ( | Geom::Point const & | c, |
double | rotate | ||
) |
Rotate aligning the point 'c' to the center of desktop window.
c | Point in desktop coordinates |
rotate | Angle in clockwise direction |
Definition at line 781 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::addRotate(), c, canvas, and set_display_area().
Referenced by canvas_rotate_relative_degrees(), canvas_rotate_relative_radians(), and canvas_transform().
void SPDesktop::rotate_relative_keep_point | ( | Geom::Point const & | c, |
double | rotate | ||
) |
Rotate keeping the point 'c' fixed in the desktop window.
c | Point in desktop coordinates |
rotate | Angle in clockwise direction |
Definition at line 755 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::addRotate(), c, d2w(), set_display_area(), and w.
void SPDesktop::schedule_zoom_from_document | ( | ) |
Schedule the zoom/view settings from the document to be applied to the desktop just after the canvas is first allocated a size, but before any drawing has started.
We do things at this point because we need to know the canvas size in order to center the page correctly, and the page needs to be centered correctly before we start drawing!
Note that during startup, GTK is supposed to allocate each widget once. In the past, it was observed doing multiple wrong allocations first, but this no longer happens. This would be a symptom of a widget (like ToolbarWidget) that tries to change its size upon being allocated a size.
Definition at line 648 of file desktop.cpp.
References _schedule_zoom_from_document_connection, canvas, and sp_namedview_zoom_and_view_from_document().
Referenced by SPDesktop().
void SPDesktop::scroll_absolute | ( | Geom::Point const & | point | ) |
Scroll canvas by to a particular point (window coordinates).
Definition at line 854 of file desktop.cpp.
References _current_affine, _tool, _widget, canvas, SPDesktopWidget::get_canvas_grid(), SPDesktop::DesktopAffine::getZoom(), point(), SPDesktop::DesktopAffine::setOffset(), Inkscape::UI::Widget::CanvasGrid::updateRulers(), and Inkscape::UI::Widget::CanvasGrid::updateScrollbars().
Referenced by Inkscape::UI::Widget::CanvasGrid::_adjustmentChanged(), and scroll_relative().
void SPDesktop::scroll_relative | ( | Geom::Point const & | delta | ) |
Scroll canvas by specific coordinate amount (window coordinates).
Definition at line 872 of file desktop.cpp.
References canvas, delta, Geom::GenericRect< C >::min(), and scroll_absolute().
Referenced by scroll_relative_in_svg_coords(), scroll_to_point(), and scroll_to_show_item().
void SPDesktop::scroll_relative_in_svg_coords | ( | double | dx, |
double | dy | ||
) |
Scroll canvas by specific coordinate amount in svg coordinates.
Definition at line 882 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::getZoom(), scale, and scroll_relative().
bool SPDesktop::scroll_to_point | ( | Geom::Point const & | p, |
double | autoscrollspeed = 0 |
||
) |
Scroll screen so as to keep point 'p' visible in window.
(Used, for example, during spellcheck.) 'p': The point in desktop coordinates.
Definition at line 894 of file desktop.cpp.
References c, canvas, d2w(), Inkscape::Preferences::get(), scroll_relative(), and w.
Referenced by Inkscape::UI::Tools::TextTool::_updateCursor(), Inkscape::UI::Dialog::SpellCheck::nextWord(), Inkscape::UI::Tools::GradientTool::select_next(), Inkscape::UI::Tools::MeshTool::select_next(), Inkscape::UI::Tools::GradientTool::select_prev(), and Inkscape::UI::Tools::MeshTool::select_prev().
void SPDesktop::set_coordinate_status | ( | Geom::Point const & | p | ) |
Sets the coordinate status to a given point.
Definition at line 331 of file desktop.cpp.
References _widget, and SPDesktopWidget::setCoordinateStatus().
Referenced by Inkscape::UI::Widget::CanvasGrid::_rulerButtonRelease(), SPKnot::handler_request_position(), Inkscape::UI::Widget::CanvasGrid::rulerMotion(), and Inkscape::UI::Tools::set_event_location().
void SPDesktop::set_display_area | ( | bool | log = true | ) |
Does all the dirty work in setting the display area.
_current_affine must already be full updated (including offset). log: if true, save transform in transform stack for reuse.
Definition at line 448 of file desktop.cpp.
References _current_affine, _tool, _widget, canvas, SPDesktop::DesktopAffine::d2w(), SPDesktopWidget::get_canvas_grid(), SPDesktop::DesktopAffine::getOffset(), SPDesktop::DesktopAffine::getZoom(), log(), signal_zoom_changed, transforms_future, transforms_past, SPDesktopWidget::update_rotation(), SPDesktopWidget::update_zoom(), Inkscape::UI::Widget::CanvasGrid::updateRulers(), and Inkscape::UI::Widget::CanvasGrid::updateScrollbars().
Referenced by flip_absolute_center_point(), flip_absolute_keep_point(), flip_relative_center_point(), flip_relative_keep_point(), handle_y_axis_flip(), next_transform(), prev_transform(), Inkscape::UI::Tools::ZoomTool::root_handler(), rotate_absolute_center_point(), rotate_absolute_keep_point(), rotate_relative_center_point(), rotate_relative_keep_point(), set_display_area(), set_display_area(), set_display_width(), zoom_absolute(), zoom_drawing(), zoom_quick(), zoom_selection(), and Inkscape::PageManager::zoomToPage().
void SPDesktop::set_display_area | ( | Geom::Point const & | c, |
Geom::Point const & | w, | ||
bool | log = true |
||
) |
Map the drawing to the window so that 'c' lies at 'w' where where 'c' is a point on the canvas and 'w' is position in window in screen pixels.
Definition at line 479 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::addOffset(), c, d2w(), log(), offset, set_display_area(), and w.
void SPDesktop::set_display_area | ( | Geom::Rect const & | r, |
Geom::Coord | border, | ||
bool | log = true |
||
) |
Map the center of rectangle 'r' (which specifies a non-rotated region of the drawing) to lie at the center of the window.
The zoom factor is calculated such that the edges of 'r' closest to 'w' are 'border' length inside of the window (if there is no rotation). 'r' is in document pixel units, 'border' is in screen pixels.
Definition at line 493 of file desktop.cpp.
References _current_affine, border, canvas, Geom::GenericRect< C >::height(), log(), Geom::GenericRect< C >::midpoint(), set_display_area(), SPDesktop::DesktopAffine::setOffset(), SPDesktop::DesktopAffine::setScale(), SP_DESKTOP_ZOOM_MAX, SP_DESKTOP_ZOOM_MIN, w, Geom::GenericRect< C >::width(), and yaxisdir().
void SPDesktop::set_display_center | ( | Geom::Rect const & | a | ) |
Centre Rect, without zooming.
Definition at line 593 of file desktop.cpp.
References Geom::GenericRect< C >::midpoint(), and zoom_absolute().
Referenced by Inkscape::PageManager::centerToPage().
void SPDesktop::set_display_width | ( | Geom::Rect const & | a, |
Geom::Coord | border | ||
) |
Set display area in only the width dimension.
Definition at line 580 of file desktop.cpp.
References border, current_center(), Geom::GenericRect< C >::left(), set_display_area(), Geom::GenericRect< C >::width(), and Geom::Point::y().
Referenced by Inkscape::PageManager::zoomToPage().
|
inline |
Definition at line 344 of file desktop.h.
References rotation_locked.
Referenced by apply_preferences_canvas_transform(), and canvas_rotate_lock().
void SPDesktop::setColorMode | ( | Inkscape::ColorMode | mode | ) |
Definition at line 1010 of file desktop.cpp.
References _widget, canvas, SPDesktopWidget::desktopChangedTitle(), and mode.
Referenced by canvas_color_mode_toggle().
void SPDesktop::setDesktopWidget | ( | SPDesktopWidget * | dtw | ) |
Definition at line 208 of file desktop.cpp.
References _widget.
Referenced by SPDesktopWidget::addDesktop(), and SPDesktopWidget::removeDesktop().
void SPDesktop::setDocument | ( | SPDocument * | doc | ) |
Associate document with desktop.
Definition at line 1183 of file desktop.cpp.
References _attachDocument(), _detachDocument(), _selection, doc(), and document.
Referenced by change_document(), and SPDesktop().
void SPDesktop::setRenderMode | ( | Inkscape::RenderMode | mode | ) |
Definition at line 1002 of file desktop.cpp.
References _widget, canvas, SPDesktopWidget::desktopChangedTitle(), and mode.
Referenced by apply_preferences_canvas_mode(), and canvas_set_display_mode().
void SPDesktop::setTempHideOverlays | ( | bool | hide | ) |
Shows or hides the on-canvas overlays and controls, such as grids, guides, manipulation handles, knots, selection cues, etc.
hide | - whether the aforementioned UI elements should be hidden |
Definition at line 1039 of file desktop.cpp.
References _canvas_group_controls, _canvas_group_grids, _overlays_visible, _saved_guides_visible, canvas, SPNamedView::getShowGuides(), namedview, Inkscape::CanvasItem::set_visible(), and SPNamedView::temporarily_show_guides().
Referenced by quick_preview().
void SPDesktop::setTool | ( | std::string const & | toolName | ) |
Replaces the currently active tool with a new one.
Pass the empty string to unset and free the current tool.
toolName | The preferences path for the new tool. Note that if you are calling this to reset the currently active tool, you must copy the string from _tool->getPrefsPath(), so we do not keep a ref to string in reset tool. e.g. setTool(std::string{_tool->getPrefsPath()}) |
Definition at line 308 of file desktop.cpp.
References _event_context_changed_signal, _tool, ToolFactory::createObject(), delete_then_null(), and set_active_tool().
Referenced by change_document(), SPDesktop(), and tool_switch().
void SPDesktop::setToolboxAdjustmentValue | ( | char const * | id, |
double | val | ||
) |
Definition at line 1134 of file desktop.cpp.
References _widget, and SPDesktopWidget::setToolboxAdjustmentValue().
Referenced by Inkscape::UI::Tools::SprayTool::root_handler(), and Inkscape::UI::Tools::TweakTool::root_handler().
void SPDesktop::setToolboxFocusTo | ( | char const * | label | ) |
Definition at line 1128 of file desktop.cpp.
References _widget, label, and SPDesktopWidget::setToolboxFocusTo().
Referenced by Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), and Inkscape::UI::Tools::TweakTool::root_handler().
void SPDesktop::setWaitingCursor | ( | ) |
Definition at line 1155 of file desktop.cpp.
References canvas, and waiting_cursor.
Referenced by Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::ObjectSet::breakApart(), Inkscape::ObjectSet::combine(), Inkscape::ObjectSet::createBitmapCopy(), Inkscape::UI::Tools::InteractiveBooleansTool::InteractiveBooleansTool(), Inkscape::ObjectSet::pathReverse(), Inkscape::Extension::ExecutionEnv::run(), Inkscape::ObjectSet::simplifyPaths(), and Inkscape::ObjectSet::toCurves().
void SPDesktop::setWindowSize | ( | Geom::IntPoint const & | size | ) |
Definition at line 965 of file desktop.cpp.
References _widget, SPDesktopWidget::setWindowSize(), and size.
Referenced by sp_namedview_window_from_document(), and window_set_geometry().
void SPDesktop::setWindowTransient | ( | Gtk::Window & | window, |
int | transient_policy = 1 |
||
) |
Definition at line 970 of file desktop.cpp.
References _widget, and SPDesktopWidget::setWindowTransient().
Referenced by Inkscape::UI::Dialog::GuidelinePropertiesDialog::_setup(), Inkscape::UI::Dialog::LayerPropertiesDialog::_showDialog(), Inkscape::UI::Dialog::CalligraphicProfileRename::show(), Inkscape::UI::Dialog::FilletChamferPropertiesDialog::showDialog(), Inkscape::UI::Dialog::PowerstrokePropertiesDialog::showDialog(), and Inkscape::UI::Dialog::KnotPropertiesDialog::showDialog().
void SPDesktop::showInfoDialog | ( | Glib::ustring const & | message | ) |
Definition at line 991 of file desktop.cpp.
References _widget, and SPDesktopWidget::showInfoDialog().
Referenced by InkscapeApplication::document_fix().
void SPDesktop::showNotice | ( | Glib::ustring const & | msg, |
int | timeout = 0 |
||
) |
Definition at line 1268 of file desktop.cpp.
References _widget, msg, SPDesktopWidget::showNotice(), and timeout.
Referenced by Inkscape::UI::Dialog::PolarArrangeTab::arrange(), Inkscape::UI::Tools::InteractiveBooleansTool::is_ready(), and Inkscape::UI::Dialog::SwatchesPanel::load_swatches().
|
inline |
Definition at line 161 of file desktop.h.
References _tips_message_context.
Referenced by Inkscape::UI::Dialog::ColorItem::on_motion_enter(), Inkscape::UI::Dialog::ColorItem::on_motion_leave(), and tool_switch().
void SPDesktop::toggleCommandPalette | ( | ) |
Definition at line 1019 of file desktop.cpp.
References _widget, and SPDesktopWidget::toggle_command_palette().
void SPDesktop::toggleLockGuides | ( | ) |
Definition at line 1172 of file desktop.cpp.
References namedview, and SPNamedView::toggleLockGuides().
void SPDesktop::toggleRulers | ( | ) |
Definition at line 1023 of file desktop.cpp.
References _widget, and SPDesktopWidget::toggle_rulers().
void SPDesktop::toggleScrollbars | ( | ) |
Definition at line 1029 of file desktop.cpp.
References _widget, and SPDesktopWidget::toggle_scrollbars().
void SPDesktop::toggleToolbar | ( | char const * | toolbar_name | ) |
Definition at line 1074 of file desktop.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), getLayoutPrefPath(), layoutWidget(), Inkscape::Preferences::setBool(), and visible.
Referenced by canvas_commands_bar_toggle(), canvas_palette_toggle(), canvas_rulers_toggle(), canvas_scroll_bars(), canvas_snap_controls_bar_toggle(), canvas_statusbar_toggle(), canvas_tool_control_bar_toggle(), and canvas_toolbox_toggle().
void SPDesktop::updateDialogs | ( | ) |
Definition at line 1150 of file desktop.cpp.
References getContainer(), getInkscapeWindow(), and Inkscape::UI::Dialog::DialogContainer::set_inkscape_window().
Referenced by InkscapeWindow::update_dialogs().
|
inline |
Definition at line 194 of file desktop.h.
References _view_number.
Referenced by SPDesktopWidget::_updateTitle().
|
inline |
Transformation from window to desktop coordinates (zoom/rotate).
Definition at line 416 of file desktop.h.
References _current_affine, and SPDesktop::DesktopAffine::w2d().
Referenced by Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleButtonRelease(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PenTool::_handleMotionNotify(), Inkscape::UI::Tools::PencilTool::_handleMotionNotify(), Inkscape::UI::Tools::PencilTool::_interpolate(), Inkscape::UI::Widget::CanvasGrid::_rulerButtonRelease(), Inkscape::UI::Tools::PencilTool::_sketchInterpolate(), Inkscape::UI::PathManipulator::_updateDragPoint(), Inkscape::UI::PathManipulator::_updateOutline(), Inkscape::UI::Tools::PencilTool::addPowerStrokePencil(), canvas_transform(), get_display_area(), Inkscape::UI::Tools::get_item_at(), Inkscape::UI::Node::grabbed(), SPKnot::handler_request_position(), Inkscape::UI::Tools::GradientTool::is_over_curve(), Inkscape::UI::Tools::NodeTool::item_handler(), Inkscape::UI::Tools::TextTool::item_handler(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), on_zoom_scale(), Inkscape::UI::Tools::MeshTool::over_curve(), point(), Inkscape::UI::Tools::EraserTool::root_handler(), Inkscape::UI::Tools::ArcTool::root_handler(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::Tools::MeasureTool::root_handler(), Inkscape::UI::Tools::MeshTool::root_handler(), Inkscape::UI::Tools::NodeTool::root_handler(), Inkscape::UI::Tools::RectTool::root_handler(), Inkscape::UI::Tools::SpiralTool::root_handler(), Inkscape::UI::Tools::SprayTool::root_handler(), Inkscape::UI::Tools::StarTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), Inkscape::UI::Tools::TweakTool::root_handler(), Inkscape::UI::Tools::ZoomTool::root_handler(), Inkscape::UI::Widget::CanvasGrid::rulerMotion(), Inkscape::UI::Tools::set_event_location(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), Inkscape::UI::Tools::ObjectPickerTool::show_text(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Widget::Canvas::size_allocate_vfunc(), Inkscape::UI::Tools::sp_flood_do_flood_fill(), and zoom_quick().
|
inline |
Definition at line 417 of file desktop.h.
References _current_affine, and SPDesktop::DesktopAffine::w2d().
bool SPDesktop::warnDialog | ( | Glib::ustring const & | text | ) |
Definition at line 997 of file desktop.cpp.
References _widget, and SPDesktopWidget::warnDialog().
Referenced by sp_file_revert_dialog().
|
inline |
Definition at line 426 of file desktop.h.
References doc2dt().
Referenced by Inkscape::UI::Widget::CanvasGrid::_createGuideItem(), Inkscape::UI::Tools::PenTool::_lastpointMove(), Inkscape::UI::Tools::CalligraphicTool::apply(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::PolarArrangeTab::arrange(), Inkscape::UI::ControlPointSelection::event(), Inkscape::UI::MultiPathManipulator::event(), handle_y_axis_flip(), is_yaxisdown(), GrDrag::key_press_handler(), Inkscape::UI::Widget::Canvas::paint_widget(), Inkscape::UI::Tools::Box3dTool::root_handler(), Inkscape::UI::Tools::TextTool::root_handler(), set_display_area(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Tools::sp_tweak_dilate_recursive(), Inkscape::UI::Widget::CanvasGrid::updateScrollbars(), and zoom_absolute().
void SPDesktop::zoom_absolute | ( | Geom::Point const & | center, |
double | zoom, | ||
bool | keep_point = true |
||
) |
Zoom to the given absolute zoom level.
center | - Point we want to zoom in on |
zoom | - Absolute amount of zoom (1.0 is 100%) |
keep_point | - Keep center fixed in the desktop window. |
Definition at line 538 of file desktop.cpp.
References _current_affine, canvas, d2w(), Geom::GenericRect< C >::midpoint(), set_display_area(), SPDesktop::DesktopAffine::setScale(), SP_DESKTOP_ZOOM_MAX, SP_DESKTOP_ZOOM_MIN, w, and yaxisdir().
Referenced by InkscapeApplication::document_revert(), on_zoom_scale(), set_display_center(), Inkscape::UI::Widget::Canvas::size_allocate_vfunc(), sp_namedview_zoom_and_view_from_document(), zoom_realworld(), and zoom_relative().
void SPDesktop::zoom_drawing | ( | ) |
Zoom to whole drawing.
Definition at line 602 of file desktop.cpp.
References SPItem::bbox_valid, SPItem::desktopVisualBounds(), doc(), SPDocument::getRoot(), and set_display_area().
Referenced by canvas_transform().
void SPDesktop::zoom_grab_focus | ( | ) |
Tell widget to let zoom widget grab keyboard focus.
Definition at line 722 of file desktop.cpp.
References _widget, and SPDesktopWidget::letZoomGrabFocus().
void SPDesktop::zoom_quick | ( | bool | enable = true | ) |
Performs a quick zoom into what the user is working on.
enable | Whether we're going in or out of quick zoom. |
Definition at line 669 of file desktop.cpp.
References _current_affine, _quick_zoom_affine, _quick_zoom_enabled, _selection, _tool, Geom::are_near(), Geom::GenericRect< C >::area(), canvas, Geom::GenericRect< C >::midpoint(), set_display_area(), w2d(), and zoom_relative().
void SPDesktop::zoom_realworld | ( | Geom::Point const & | center, |
double | ratio | ||
) |
Zoom in to an absolute realworld ratio, e.g.
1:1 physical screen units
center | - Point we want to zoom in on. |
ratio | - Absolute physical zoom ratio. |
Definition at line 570 of file desktop.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getDouble(), and zoom_absolute().
Referenced by canvas_transform().
void SPDesktop::zoom_relative | ( | Geom::Point const & | center, |
double | zoom, | ||
bool | keep_point = true |
||
) |
Zoom in or out relatively to the current zoom.
center | - Point we want to zoom in on |
zoom | - Relative amount of zoom. at 50% + 50% -> 25% zoom |
keep_point | - Keep center fixed in the desktop window. |
Definition at line 557 of file desktop.cpp.
References _current_affine, SPDesktop::DesktopAffine::getZoom(), and zoom_absolute().
Referenced by canvas_zoom_helper(), canvas_zoom_relative(), Inkscape::UI::Tools::ZoomTool::root_handler(), and zoom_quick().
void SPDesktop::zoom_selection | ( | ) |
Zoom to selection.
Definition at line 625 of file desktop.cpp.
References _selection, and set_display_area().
Referenced by canvas_transform().
|
private |
Definition at line 560 of file desktop.h.
Referenced by on_zoom_begin(), on_zoom_end(), and on_zoom_scale().
|
private |
The bottom item for unclaimed events.
Definition at line 220 of file desktop.h.
Referenced by _setupCanvasItems(), and getCanvasCatchall().
|
private |
The actual SVG drawing (a.k.a. arena).
Definition at line 221 of file desktop.h.
Referenced by _attachDocument(), _setupCanvasItems(), and getCanvasDrawing().
|
private |
Handles, knots, nodes, etc.
Definition at line 211 of file desktop.h.
Referenced by _setupCanvasItems(), getCanvasControls(), and setTempHideOverlays().
|
private |
|
private |
Grids.
Definition at line 213 of file desktop.h.
Referenced by _setupCanvasItems(), getCanvasGrids(), and setTempHideOverlays().
|
private |
Guide lines.
Definition at line 214 of file desktop.h.
Referenced by _setupCanvasItems(), and getCanvasGuides().
|
private |
Page background.
Definition at line 217 of file desktop.h.
Referenced by _setupCanvasItems(), and getCanvasPagesBg().
|
private |
Page border + shadow.
Definition at line 218 of file desktop.h.
Referenced by _setupCanvasItems(), and getCanvasPagesFg().
|
private |
Temporary items before becoming permanent.
Definition at line 215 of file desktop.h.
Referenced by _setupCanvasItems(), and getCanvasSketch().
|
private |
Temporary items that self-destruct.
Definition at line 216 of file desktop.h.
Referenced by _setupCanvasItems(), and getCanvasTemp().
|
private |
Definition at line 546 of file desktop.h.
Referenced by connect_control_point_selected(), and emit_control_point_selected().
|
private |
Definition at line 531 of file desktop.h.
Referenced by current_center(), current_rotation(), current_zoom(), d2w(), d2w(), flip_absolute_center_point(), flip_absolute_keep_point(), flip_relative_center_point(), flip_relative_keep_point(), handle_y_axis_flip(), is_flipped(), next_transform(), prev_transform(), rotate_absolute_center_point(), rotate_absolute_keep_point(), rotate_relative_center_point(), rotate_relative_keep_point(), scroll_absolute(), scroll_relative_in_svg_coords(), set_display_area(), set_display_area(), set_display_area(), w2d(), w2d(), zoom_absolute(), zoom_quick(), and zoom_relative().
|
private |
Definition at line 542 of file desktop.h.
Referenced by connectDestroy(), and ~SPDesktop().
|
private |
Definition at line 543 of file desktop.h.
Referenced by _attachDocument(), and connectDocumentReplaced().
|
private |
Definition at line 173 of file desktop.h.
Referenced by _attachDocument(), and _detachDocument().
|
private |
Definition at line 544 of file desktop.h.
Referenced by connectEventContextChanged(), and setTool().
bool SPDesktop::_focusMode = false |
Whether we're focused working or general working.
Definition at line 227 of file desktop.h.
Referenced by focusMode(), and is_focusMode().
|
private |
Definition at line 545 of file desktop.h.
Referenced by connect_gradient_stop_selected(), and emit_gradient_stop_selected().
|
private |
Definition at line 169 of file desktop.h.
Referenced by guidesMessageContext(), SPDesktop(), and ~SPDesktop().
|
private |
Definition at line 540 of file desktop.h.
Referenced by layerManager(), layerManager(), and SPDesktop().
|
private |
Definition at line 171 of file desktop.h.
Referenced by SPDesktop().
|
private |
Definition at line 172 of file desktop.h.
Referenced by SPDesktop().
|
private |
Definition at line 167 of file desktop.h.
Referenced by messageStack(), and SPDesktop().
|
private |
Whether the overlays are temporarily hidden.
Definition at line 537 of file desktop.h.
Referenced by setTempHideOverlays().
sigc::signal<int (SPStyle *, int)>::accumulated<StopOnNonZero> SPDesktop::_query_style_signal |
Definition at line 247 of file desktop.h.
Referenced by connectQueryStyle(), and sp_desktop_query_style().
|
private |
The transform of the screen before quick zoom.
Definition at line 535 of file desktop.h.
Referenced by zoom_quick().
|
private |
Signifies that currently we're in quick zoom mode.
Definition at line 534 of file desktop.h.
Referenced by quick_zoomed(), and zoom_quick().
|
private |
Definition at line 550 of file desktop.h.
Referenced by _attachDocument(), and _detachDocument().
Glib::ustring SPDesktop::_reconstruction_old_layer_id |
Definition at line 244 of file desktop.h.
Referenced by _attachDocument(), reconstruction_finish(), and reconstruction_start().
|
private |
Definition at line 549 of file desktop.h.
Referenced by _attachDocument(), and _detachDocument().
|
private |
Remembers guides' visibility when hiding overlays.
Definition at line 538 of file desktop.h.
Referenced by setTempHideOverlays().
|
private |
Definition at line 174 of file desktop.h.
Referenced by _attachDocument(), and _detachDocument().
|
private |
Definition at line 551 of file desktop.h.
Referenced by _detachDocument(), and schedule_zoom_from_document().
|
private |
current selection; will never generally be NULL
Definition at line 208 of file desktop.h.
Referenced by change_document(), getSelection(), handle_y_axis_flip(), setDocument(), SPDesktop(), zoom_quick(), zoom_selection(), and ~SPDesktop().
sigc::signal<bool (SPCSSAttr const *, bool)>::accumulated<StopOnTrue> SPDesktop::_set_style_signal |
Definition at line 246 of file desktop.h.
Referenced by connectSetStyle(), and sp_desktop_set_style().
|
private |
Definition at line 179 of file desktop.h.
Referenced by getSnapIndicator(), SPDesktop(), and ~SPDesktop().
|
private |
Definition at line 177 of file desktop.h.
Referenced by add_temporary_canvasitem(), remove_temporary_canvasitem(), SPDesktop(), and ~SPDesktop().
|
private |
Definition at line 547 of file desktop.h.
Referenced by connect_text_cursor_moved(), and emit_text_cursor_moved().
|
private |
Definition at line 168 of file desktop.h.
Referenced by SPDesktop(), and tipsMessageContext().
|
private |
Definition at line 176 of file desktop.h.
Referenced by change_document(), clearWaitingCursor(), getTool(), scroll_absolute(), set_display_area(), setTool(), zoom_quick(), and ~SPDesktop().
|
private |
Definition at line 178 of file desktop.h.
Referenced by getTranslucencyGroup(), and SPDesktop().
|
private |
Definition at line 182 of file desktop.h.
Referenced by _attachDocument(), and viewNumber().
|
private |
Definition at line 436 of file desktop.h.
Referenced by _attachDocument(), change_document(), get_toolbar_by_name(), getContainer(), getDesktopWidget(), getInkscapeWindow(), getInkscapeWindow(), getWindowSize(), isToolboxButtonActive(), layoutWidget(), onStatusMessage(), presentWindow(), rotate_grab_focus(), scroll_absolute(), set_coordinate_status(), set_display_area(), setColorMode(), setDesktopWidget(), setRenderMode(), setToolboxAdjustmentValue(), setToolboxFocusTo(), setWindowSize(), setWindowTransient(), showInfoDialog(), showNotice(), toggleCommandPalette(), toggleRulers(), toggleScrollbars(), warnDialog(), and zoom_grab_focus().
|
private |
Definition at line 552 of file desktop.h.
Referenced by _attachDocument().
|
private |
Definition at line 184 of file desktop.h.
Referenced by _setupCanvasItems(), current_center(), flip_absolute_center_point(), flip_relative_center_point(), get_display_area(), getCanvas(), on_zoom_scale(), point(), quick_preview(), rotate_absolute_center_point(), rotate_relative_center_point(), schedule_zoom_from_document(), scroll_absolute(), scroll_relative(), scroll_to_point(), set_display_area(), set_display_area(), setColorMode(), setRenderMode(), setTempHideOverlays(), setWaitingCursor(), SPDesktop(), zoom_absolute(), zoom_quick(), and ~SPDesktop().
SPCSSAttr* SPDesktop::current = nullptr |
Current style.
Definition at line 226 of file desktop.h.
Referenced by sp_desktop_get_color(), sp_desktop_get_color_tool(), sp_desktop_get_master_opacity_tool(), sp_desktop_get_opacity_tool(), sp_desktop_get_style(), sp_desktop_set_style(), and SPDesktop().
unsigned SPDesktop::dkey = 0 |
Definition at line 229 of file desktop.h.
Referenced by _attachDocument(), _detachDocument(), Inkscape::LayerManager::_layer_activated(), Inkscape::LayerManager::_layer_deactivated(), Inkscape::UI::Tools::fit_item(), getGroupAtPoint(), getItemAtPoint(), getItemFromListAtPointBottom(), getItemsAtPoints(), Inkscape::PageManager::getOverlappingItems(), Inkscape::UI::Tools::InteractiveBooleansTool::hide_selected_objects(), Inkscape::LayerManager::isLayer(), itemIsHidden(), Inkscape::Application::maximum_dkey(), Inkscape::UI::Tools::NodeTool::select_area(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), and SPDesktop().
|
private |
Definition at line 166 of file desktop.h.
Referenced by _attachDocument(), _detachDocument(), doc(), doc2dt(), dt2doc(), getDocument(), reconstruction_finish(), setDocument(), SPDesktop(), and ~SPDesktop().
Inkscape::PaintTarget SPDesktop::gr_fill_or_stroke = Inkscape::FOR_FILL |
Definition at line 241 of file desktop.h.
Referenced by GrDrag::GrDrag(), and GrDrag::~GrDrag().
SPItem* SPDesktop::gr_item = nullptr |
Definition at line 238 of file desktop.h.
Referenced by GrDrag::GrDrag(), and GrDrag::~GrDrag().
unsigned SPDesktop::gr_point_i = 0 |
Definition at line 240 of file desktop.h.
Referenced by GrDrag::GrDrag(), and GrDrag::~GrDrag().
GrPointType SPDesktop::gr_point_type = POINT_LG_BEGIN |
Definition at line 239 of file desktop.h.
Referenced by GrDrag::GrDrag(), and GrDrag::~GrDrag().
bool SPDesktop::guides_active = false |
Definition at line 235 of file desktop.h.
Referenced by activate_guides(), and SPNamedView::show().
|
private |
Definition at line 181 of file desktop.h.
Referenced by _attachDocument(), _detachDocument(), activate_guides(), getNamedView(), quick_preview(), setTempHideOverlays(), SPDesktop(), and toggleLockGuides().
bool SPDesktop::rotation_locked = false |
Definition at line 233 of file desktop.h.
Referenced by get_rotation_lock(), and set_rotation_lock().
sigc::signal<void (double)> SPDesktop::signal_zoom_changed |
Emitted when the zoom factor changes (not emitted when scrolling).
The parameter is the new zoom factor
Definition at line 251 of file desktop.h.
Referenced by Inkscape::UI::Tools::ObjectPickerTool::ObjectPickerTool(), Inkscape::UI::Tools::PagesTool::PagesTool(), Inkscape::UI::PathManipulator::PathManipulator(), and set_display_area().
|
private |
Definition at line 533 of file desktop.h.
Referenced by clear_transform_history(), next_transform(), prev_transform(), and set_display_area().
|
private |
Definition at line 532 of file desktop.h.
Referenced by clear_transform_history(), next_transform(), prev_transform(), and set_display_area().
bool SPDesktop::waiting_cursor = false |
Definition at line 231 of file desktop.h.
Referenced by clearWaitingCursor(), isWaitingCursor(), setWaitingCursor(), and Inkscape::UI::Tools::ToolBase::use_tool_cursor().