Inkscape
Vector Graphics Editor
|
#include <inkscape-window.h>
Public Member Functions | |
InkscapeWindow (SPDesktop *desktop) | |
~InkscapeWindow () override | |
SPDocument * | get_document () |
SPDesktop * | get_desktop () |
SPDesktopWidget * | get_desktop_widget () |
void | change_document (SPDocument *document) |
Gdk::Toplevel::State | get_toplevel_state () const |
bool | isFullscreen () const |
bool | isMaximised () const |
bool | isMinimised () const |
void | toggleFullscreen () |
void | setActiveTab (SPDesktop *desktop) |
Private Member Functions | |
void | add_document_actions () |
Make document actions accessible from the window. | |
void | on_realize () override |
Glib::RefPtr< Gdk::Toplevel const > | get_toplevel () const |
void | on_toplevel_state_changed () |
void | on_is_active_changed () |
bool | on_close_request () override |
void | on_size_changed () |
Configure is called when the widget's size, position or stack changes. | |
void | update_dialogs () |
Private Attributes | |
InkscapeApplication * | _app = nullptr |
SPDocument * | _document = nullptr |
SPDesktop * | _desktop = nullptr |
SPDesktopWidget * | _desktop_widget = nullptr |
Glib::RefPtr< Gtk::ShortcutController > | _shortcut_controller |
sigc::scoped_connection | _toplevel_state_connection |
Gdk::Toplevel::State | _old_toplevel_state {} |
Definition at line 33 of file inkscape-window.h.
InkscapeWindow::InkscapeWindow | ( | SPDesktop * | desktop | ) |
Definition at line 62 of file inkscape-window.cpp.
References _app, _desktop_widget, _document, _shortcut_controller, add_actions_canvas_mode(), add_actions_canvas_snapping(), add_actions_canvas_transform(), add_actions_dialogs(), add_actions_edit_window(), add_actions_file_window(), add_actions_help_url(), add_actions_layer(), add_actions_node_align(), add_actions_page_tools(), add_actions_path(), add_actions_select_window(), add_actions_tools(), add_actions_transform(), add_actions_view_mode(), add_actions_view_window(), add_document_actions(), SPDesktopWidget::addDesktop(), build_menu(), child, desktop, Inkscape::Preferences::get(), Inkscape::UI::get_children(), InkscapeApplication::get_number_of_windows(), SPDocument::getActionGroup(), SPDesktopWidget::getDialogContainer(), Inkscape::Shortcuts::getInstance(), InkscapeApplication::gio_app(), InkscapeApplication::gtk_app(), on_close_request(), on_is_active_changed(), on_size_changed(), and set_tooltips_and_shift_icons().
|
overridedefault |
|
private |
Make document actions accessible from the window.
Definition at line 360 of file inkscape-window.cpp.
References _document, action_name, and SPDocument::getActionGroup().
Referenced by change_document(), InkscapeWindow(), and setActiveTab().
void InkscapeWindow::change_document | ( | SPDocument * | document | ) |
Definition at line 171 of file inkscape-window.cpp.
References _app, _document, add_document_actions(), InkscapeApplication::set_active_document(), and update_dialogs().
Referenced by SPDesktop::change_document().
|
inline |
Definition at line 40 of file inkscape-window.h.
References _desktop.
Referenced by canvas_color_manage_toggle(), canvas_color_mode_gray(), canvas_color_mode_toggle(), canvas_command_palette(), canvas_commands_bar_toggle(), canvas_interface_mode(), canvas_palette_toggle(), canvas_rotate_absolute_degrees(), canvas_rotate_absolute_radians(), canvas_rotate_lock(), canvas_rotate_relative_degrees(), canvas_rotate_relative_radians(), canvas_rulers_toggle(), canvas_scroll_bars(), canvas_set_display_mode(), canvas_snap_controls_bar_toggle(), canvas_split_mode(), canvas_statusbar_toggle(), canvas_tool_control_bar_toggle(), canvas_toolbox_toggle(), canvas_transform(), canvas_zoom_absolute(), canvas_zoom_relative(), dialog_open(), dialog_toggle(), document_cleanup(), document_close(), group_enter(), group_exit(), layer_bottom(), layer_delete(), layer_duplicate(), layer_from_group(), layer_hide_all(), layer_hide_toggle(), layer_hide_toggle_others(), layer_lock_all(), layer_lock_toggle(), layer_lock_toggle_others(), layer_lower(), layer_new(), layer_new_above(), layer_next(), layer_previous(), layer_raise(), layer_rename(), layer_to_group(), layer_top(), layer_unhide_all(), layer_unlock_all(), node_align(), node_distribute(), page_delete_and_center(), page_new_and_center(), paste(), paste_in_place(), paste_on_page(), path_effect_parameter_next(), select_all(), select_all_layers(), select_invert(), select_invert_all(), select_none(), select_path_inset(), select_path_inset_screen(), select_path_offset(), select_path_offset_dynamic(), select_path_offset_linked(), select_path_offset_screen(), select_path_reverse(), select_same_fill(), select_same_fill_and_stroke(), select_same_object_type(), select_same_stroke_color(), select_same_stroke_style(), selection_move_to_layer(), selection_move_to_layer_above(), selection_move_to_layer_below(), set_active_tool(), Inkscape::UI::Dialog::DialogContainer::set_inkscape_window(), tool_preferences(), tool_switch(), tool_toggle(), transform_grow_screen(), transform_rotate_screen(), view_focus_toggle(), view_full_screen_focus(), and view_set_gui().
|
inline |
Definition at line 41 of file inkscape-window.h.
References _desktop_widget.
Referenced by canvas_interface_mode(), InkscapeApplication::desktopClose(), InkscapeApplication::desktopOpen(), InkscapeApplication::detachDesktopToNewWindow(), and on_close_request().
|
inline |
Definition at line 39 of file inkscape-window.h.
References _document.
Referenced by document_cleanup(), document_import(), document_print(), and Inkscape::UI::Dialog::DialogWindow::update_dialogs().
|
private |
Definition at line 208 of file inkscape-window.cpp.
Referenced by get_toplevel_state(), and on_realize().
Gdk::Toplevel::State InkscapeWindow::get_toplevel_state | ( | ) | const |
Definition at line 213 of file inkscape-window.cpp.
References get_toplevel().
Referenced by isFullscreen(), isMaximised(), isMinimised(), and on_toplevel_state_changed().
bool InkscapeWindow::isFullscreen | ( | ) | const |
Definition at line 221 of file inkscape-window.cpp.
References get_toplevel_state(), and Inkscape::Util::has_flag().
Referenced by SPDesktop::is_fullscreen(), on_size_changed(), toggleFullscreen(), and view_full_screen_focus().
bool InkscapeWindow::isMaximised | ( | ) | const |
Definition at line 226 of file inkscape-window.cpp.
References get_toplevel_state(), and Inkscape::Util::has_flag().
Referenced by SPDesktop::is_maximized(), and on_size_changed().
bool InkscapeWindow::isMinimised | ( | ) | const |
Definition at line 231 of file inkscape-window.cpp.
References get_toplevel_state(), and Inkscape::Util::has_flag().
Referenced by SPDesktop::isMinimised().
|
overrideprivate |
Definition at line 291 of file inkscape-window.cpp.
References _app, desktop, InkscapeApplication::destroyDesktop(), get_desktop_widget(), and SPDesktopWidget::get_desktops().
Referenced by InkscapeWindow().
|
private |
Definition at line 256 of file inkscape-window.cpp.
References _app, _desktop, _desktop_widget, _document, SPDesktop::getSelection(), SPDesktopWidget::onFocus(), retransientize_dialogs(), InkscapeApplication::set_active_desktop(), InkscapeApplication::set_active_document(), InkscapeApplication::set_active_selection(), InkscapeApplication::set_active_window(), and update_dialogs().
Referenced by InkscapeWindow().
|
overrideprivate |
Definition at line 158 of file inkscape-window.cpp.
References _toplevel_state_connection, get_toplevel(), and on_toplevel_state_changed().
|
private |
Configure is called when the widget's size, position or stack changes.
Definition at line 307 of file inkscape-window.cpp.
References _desktop, isFullscreen(), isMaximised(), SPDesktop::isMinimised(), surface, and w.
Referenced by InkscapeWindow().
|
private |
Definition at line 245 of file inkscape-window.cpp.
References _desktop, _old_toplevel_state, get_toplevel_state(), and SPDesktop::onWindowStateChanged().
Referenced by on_realize().
void InkscapeWindow::setActiveTab | ( | SPDesktop * | desktop | ) |
Definition at line 277 of file inkscape-window.cpp.
References _app, _desktop, _document, add_document_actions(), desktop, SPDesktop::getDocument(), SPDesktop::getSelection(), InkscapeApplication::set_active_desktop(), InkscapeApplication::set_active_document(), InkscapeApplication::set_active_selection(), and update_dialogs().
Referenced by SPDesktopWidget::switchDesktop().
void InkscapeWindow::toggleFullscreen | ( | ) |
Definition at line 236 of file inkscape-window.cpp.
References isFullscreen().
Referenced by view_full_screen_focus(), and view_fullscreen().
|
private |
Definition at line 344 of file inkscape-window.cpp.
References _app, _desktop, InkscapeApplication::gtk_app(), and SPDesktop::updateDialogs().
Referenced by change_document(), on_is_active_changed(), and setActiveTab().
|
private |
Definition at line 55 of file inkscape-window.h.
Referenced by change_document(), InkscapeWindow(), on_close_request(), on_is_active_changed(), setActiveTab(), and update_dialogs().
|
private |
Definition at line 57 of file inkscape-window.h.
Referenced by get_desktop(), on_is_active_changed(), on_size_changed(), on_toplevel_state_changed(), setActiveTab(), and update_dialogs().
|
private |
Definition at line 58 of file inkscape-window.h.
Referenced by get_desktop_widget(), InkscapeWindow(), and on_is_active_changed().
|
private |
Definition at line 56 of file inkscape-window.h.
Referenced by add_document_actions(), change_document(), get_document(), InkscapeWindow(), on_is_active_changed(), and setActiveTab().
|
private |
Definition at line 64 of file inkscape-window.h.
Referenced by on_toplevel_state_changed().
|
private |
Definition at line 59 of file inkscape-window.h.
Referenced by InkscapeWindow().
|
private |
Definition at line 63 of file inkscape-window.h.
Referenced by on_realize().