Inkscape
Vector Graphics Editor
|
DialogBase is the base class for the dialog system. More...
#include <dialog-base.h>
Public Member Functions | |
DialogBase (char const *prefs_path=nullptr, Glib::ustring dialog_type={}) | |
DialogBase constructor. | |
DialogBase (DialogBase const &)=delete | |
DialogBase & | operator= (DialogBase const &)=delete |
~DialogBase () override | |
virtual void | update () |
The update() method is essential to Gtk state management. | |
void | setDesktop (SPDesktop *new_desktop) |
Called when the desktop might have changed for this dialog. | |
void | on_map () override |
Glib::ustring const & | get_name () const |
Glib::ustring const & | getPrefsPath () const |
Glib::ustring const & | get_type () const |
const Glib::ustring & | get_icon () const |
void | blink () |
Highlight notebook where dialog already exists. | |
virtual void | focus_dialog () |
void | defocus_dialog () |
bool | getShowing () |
void | fix_inner_scroll (Gtk::ScrolledWindow &scrollwin) |
SPDesktop * | getDesktop () const |
Protected Member Functions | |
InkscapeApplication * | getApp () const |
SPDocument * | getDocument () const |
Selection * | getSelection () const |
void | setShowing (bool showing) |
function called from notebook dialog that performs an update of the dialog and sets the dialog showing state true | |
Protected Attributes | |
Glib::ustring | _name |
Glib::ustring const | _prefs_path |
Glib::ustring const | _dialog_type |
Private Types | |
using | parent_type = Gtk::Box |
Private Member Functions | |
bool | blink_off () |
Callback to reset the dialog highlight. | |
bool | on_key_pressed (Gtk::EventControllerKey const &controller, unsigned keyval, unsigned keycode, Gdk::ModifierType state) |
void | unsetDesktop () |
Called to destruct desktops, must not call virtuals. | |
void | desktopDestroyed (SPDesktop *old_desktop) |
void | setDocument (SPDocument *new_document) |
Called when the document might have changed, called from setDesktop too. | |
virtual void | desktopReplaced () |
Called when the desktop has certainly changed. | |
virtual void | documentReplaced () |
virtual void | selectionChanged (Inkscape::Selection *selection) |
virtual void | selectionModified (Inkscape::Selection *selection, guint flags) |
Private Attributes | |
bool | _showing = true |
sigc::connection | _desktop_destroyed |
sigc::connection | _doc_replaced |
sigc::connection | _select_changed |
sigc::connection | _select_modified |
int | _modified_flags = 0 |
bool | _modified_while_hidden = false |
bool | _changed_while_hidden = false |
InkscapeApplication * | _app |
SPDesktop * | desktop = nullptr |
SPDocument * | document = nullptr |
Selection * | selection = nullptr |
Glib::ustring | _icon_name |
Friends | |
class | DialogNotebook |
DialogBase is the base class for the dialog system.
Each dialog has a reference to the application, in order to update its inner focus (be it of the active desktop, document, selection, etc.) in the update() method.
DialogBase derived classes' instances live in DialogNotebook classes and are managed by DialogContainer classes. DialogContainer instances can have at most one type of dialog, differentiated by the associated type.
Definition at line 39 of file dialog-base.h.
|
private |
Definition at line 41 of file dialog-base.h.
Inkscape::UI::Dialog::DialogBase::DialogBase | ( | char const * | prefs_path = nullptr , |
Glib::ustring | dialog_type = {} |
||
) |
DialogBase constructor.
prefs_path | characteristic path to load/save dialog position. |
dialog_type | is the "type" string for the dialog. |
Definition at line 44 of file dialog-base.cpp.
References _dialog_type, _icon_name, _name, get_dialog_data(), key, on_key_pressed(), and Inkscape::UI::Dialog::remove_first().
|
delete |
|
override |
Definition at line 71 of file dialog-base.cpp.
References unsetDesktop().
void Inkscape::UI::Dialog::DialogBase::blink | ( | ) |
Highlight notebook where dialog already exists.
Definition at line 101 of file dialog-base.cpp.
References blink_off().
Referenced by Inkscape::UI::Dialog::DialogContainer::new_dialog(), Inkscape::UI::Dialog::DialogNotebook::on_page_added(), Inkscape::UI::Dialog::FillAndStroke::showPageFill(), Inkscape::UI::Dialog::FillAndStroke::showPageStrokePaint(), and Inkscape::UI::Dialog::FillAndStroke::showPageStrokeStyle().
|
private |
Callback to reset the dialog highlight.
Definition at line 147 of file dialog-base.cpp.
Referenced by blink().
void Inkscape::UI::Dialog::DialogBase::defocus_dialog | ( | ) |
Definition at line 132 of file dialog-base.cpp.
References desktop, SPDesktop::getCanvas(), getDesktop(), and sp_dialog_defocus().
Referenced by on_key_pressed().
|
private |
|
inlineprivatevirtual |
Called when the desktop has certainly changed.
It may have changed to nullptr when destructing the dialog, so the override should expect nullptr too.
Reimplemented in Inkscape::UI::Dialog::FillAndStroke, Inkscape::UI::Dialog::SelectorsDialog, Inkscape::UI::Dialog::SwatchesPanel, Inkscape::UI::Dialog::ArrangeDialog, Inkscape::UI::Dialog::Transformation, Inkscape::UI::Dialog::XmlTree, Inkscape::UI::Dialog::Export, Inkscape::UI::Dialog::Find, Inkscape::UI::Dialog::ObjectAttributes, Inkscape::UI::Dialog::ObjectProperties, and Inkscape::UI::Dialog::ObjectsPanel.
Definition at line 102 of file dialog-base.h.
Referenced by setDesktop().
|
inlineprivatevirtual |
Reimplemented in Inkscape::UI::Dialog::PaintServersDialog, Inkscape::UI::Dialog::SelectorsDialog, Inkscape::UI::Dialog::StyleDialog, Inkscape::UI::Dialog::SvgFontsDialog, Inkscape::UI::Dialog::SwatchesPanel, Inkscape::UI::Dialog::TextEdit, Inkscape::UI::Dialog::XmlTree, Inkscape::UI::Dialog::DocumentProperties, Inkscape::UI::Dialog::DocumentResources, Inkscape::UI::Dialog::Export, Inkscape::UI::Dialog::FilterEffectsDialog, Inkscape::UI::Dialog::IconPreviewPanel, Inkscape::UI::Dialog::ObjectsPanel, Inkscape::UI::Dialog::SpellCheck, Inkscape::UI::Dialog::SymbolsDialog, and Inkscape::UI::Dialog::UndoHistory.
Definition at line 103 of file dialog-base.h.
Referenced by setDesktop().
void Inkscape::UI::Dialog::DialogBase::fix_inner_scroll | ( | Gtk::ScrolledWindow & | scrollwin | ) |
Definition at line 200 of file dialog-base.cpp.
References child, and Inkscape::UI::Widget::dx.
Referenced by Inkscape::UI::Dialog::XmlTree::XmlTree().
|
virtual |
Reimplemented in Inkscape::UI::Dialog::ExtensionsGallery, and Inkscape::UI::Dialog::LivePathEffectEditor.
Definition at line 115 of file dialog-base.cpp.
References child, and Inkscape::UI::find_focusable_widget().
Referenced by Inkscape::UI::Dialog::ExtensionsGallery::focus_dialog(), and Inkscape::UI::Dialog::LivePathEffectEditor::focus_dialog().
|
inline |
Definition at line 65 of file dialog-base.h.
References _icon_name.
|
inline |
Definition at line 62 of file dialog-base.h.
References _name.
Referenced by Inkscape::UI::Dialog::DialogWindow::DialogWindow().
|
inline |
Definition at line 64 of file dialog-base.h.
References _dialog_type.
Referenced by Inkscape::UI::Dialog::DialogContainer::has_dialog_of_type(), Inkscape::UI::Dialog::DialogContainer::link_dialog(), and Inkscape::UI::Dialog::DialogContainer::unlink_dialog().
|
inlineprotected |
Definition at line 80 of file dialog-base.h.
References _app.
Referenced by Inkscape::UI::Dialog::Export::desktopReplaced().
|
inline |
Definition at line 77 of file dialog-base.h.
References desktop.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_handleTransparentHover(), Inkscape::UI::Dialog::FillAndStroke::_onSwitchPage(), Inkscape::UI::Dialog::ColorItem::action_convert(), Inkscape::UI::Dialog::ColorItem::action_edit(), Inkscape::UI::Dialog::AlignAndDistribute::AlignAndDistribute(), Inkscape::UI::Dialog::Find::all_items(), Inkscape::UI::Dialog::Find::all_selection_items(), Inkscape::UI::Dialog::SpellCheck::allTextItems(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Dialog::Transformation::applyPageMove(), Inkscape::UI::Dialog::Transformation::applyPageSkew(), Inkscape::UI::Dialog::Transformation::applyPageTransform(), Inkscape::UI::Dialog::GridArrangeTab::arrange(), Inkscape::UI::Dialog::PolarArrangeTab::arrange(), Inkscape::UI::Dialog::DocumentProperties::browseExternalScript(), defocus_dialog(), Inkscape::UI::Dialog::FillAndStroke::desktopReplaced(), Inkscape::UI::Dialog::ArrangeDialog::desktopReplaced(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Dialog::XmlTree::desktopReplaced(), Inkscape::UI::Dialog::Export::desktopReplaced(), Inkscape::UI::Dialog::ObjectsPanel::desktopReplaced(), Inkscape::UI::Dialog::DocumentProperties::documentReplaced(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::UI::Dialog::TextEdit::getSelectedTextCount(), Inkscape::UI::Dialog::TextEdit::getSelectedTextItem(), Inkscape::UI::Dialog::Find::item_type_match(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Dialog::SpellCheck::nextWord(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Dialog::ColorItem::on_click(), Inkscape::UI::Dialog::ObjectsPanel::on_click(), Inkscape::UI::Dialog::GridArrangeTab::on_col_spinbutton_changed(), Inkscape::UI::Dialog::ColorItem::on_motion_enter(), Inkscape::UI::Dialog::ObjectsPanel::on_motion_enter(), Inkscape::UI::Dialog::ColorItem::on_motion_leave(), Inkscape::UI::Dialog::ObjectsPanel::on_motion_leave(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), Inkscape::UI::Dialog::ColorItem::on_rightclick(), Inkscape::UI::Dialog::GridArrangeTab::on_row_spinbutton_changed(), Inkscape::UI::Dialog::TextEdit::on_search_entry_changed(), Inkscape::UI::Dialog::ObjectsPanel::on_tree_key_pressed(), Inkscape::UI::Dialog::ObjectsPanel::on_window_key(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Dialog::DocumentProperties::onNewGrid(), Inkscape::UI::Dialog::Export::onNotebookPageSwitch(), Inkscape::UI::Dialog::TextEdit::onReadSelection(), Inkscape::UI::Dialog::Transformation::onRotateClockwiseClicked(), Inkscape::UI::Dialog::Transformation::onRotateCounterclockwiseClicked(), Inkscape::UI::Dialog::Transformation::onSwitchPage(), Inkscape::UI::Dialog::IconPreviewPanel::queueRefreshIfAutoRefreshEnabled(), Inkscape::UI::Dialog::DocumentProperties::rebuild_gridspage(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::Dialog::CloneTiler::remove(), Inkscape::UI::Dialog::ObjectsPanel::selectCursorItem(), Inkscape::UI::Dialog::StyleDialog::selectionChanged(), Inkscape::UI::Dialog::ObjectAttributes::selectionModified(), Inkscape::UI::Dialog::ObjectsPanel::selectRange(), Inkscape::UI::Dialog::XmlTree::set_dt_select(), Inkscape::UI::Dialog::ObjectsPanel::setRootWatcher(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), Inkscape::UI::Dialog::CloneTiler::unclump(), Inkscape::UI::Dialog::ObjectProperties::update_entries(), Inkscape::UI::Dialog::SwatchesPanel::update_fillstroke_indicators(), Inkscape::UI::Dialog::ObjectAttributes::update_panel(), Inkscape::UI::Dialog::DocumentProperties::update_widgets(), Inkscape::UI::Dialog::GridArrangeTab::updateSelection(), Inkscape::UI::Dialog::AttrDialog::valueEdited(), Inkscape::UI::Dialog::ObjectAttributes::widget_setup(), and Inkscape::UI::Dialog::XmlTree::XmlTree().
|
inlineprotected |
Definition at line 81 of file dialog-base.h.
References document.
Referenced by Inkscape::UI::Dialog::ObjectProperties::_aspectRatioToggled(), Inkscape::UI::Dialog::StyleDialog::_getObjVec(), Inkscape::UI::Dialog::ObjectsPanel::_handleEdited(), Inkscape::UI::Dialog::ObjectProperties::_hiddenToggled(), Inkscape::UI::Dialog::ObjectProperties::_highlightChanged(), Inkscape::UI::Dialog::ObjectProperties::_labelChanged(), Inkscape::UI::Dialog::UndoHistory::_onCollapseEvent(), Inkscape::UI::Dialog::StyleDialog::_onLinkObj(), Inkscape::UI::Dialog::UndoHistory::_onListSelectionChange(), Inkscape::UI::Dialog::ObjectProperties::_sensitivityToggled(), Inkscape::UI::Dialog::StyleDialog::_writeStyleElement(), Inkscape::UI::Dialog::DocumentProperties::addEmbeddedScript(), Inkscape::UI::Dialog::DocumentProperties::addExternalScript(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::DocumentProperties::build_page(), Inkscape::UI::Dialog::DocumentProperties::build_scripting(), Inkscape::UI::Dialog::DocumentProperties::changeEmbeddedScript(), Inkscape::UI::Dialog::XmlTree::cmd_delete_node(), Inkscape::UI::Dialog::XmlTree::cmd_duplicate_node(), Inkscape::UI::Dialog::XmlTree::cmd_indent_node(), Inkscape::UI::Dialog::XmlTree::cmd_lower_node(), Inkscape::UI::Dialog::XmlTree::cmd_new_element_node(), Inkscape::UI::Dialog::XmlTree::cmd_new_text_node(), Inkscape::UI::Dialog::XmlTree::cmd_raise_node(), Inkscape::UI::Dialog::XmlTree::cmd_unindent_node(), Inkscape::UI::Dialog::ObjectsPanel::colorTagPopup(), Inkscape::UI::Dialog::UndoHistory::connectEventLog(), Inkscape::UI::Dialog::DocumentProperties::display_unit_change(), Inkscape::UI::Dialog::LivePathEffectEditor::do_item_action_undoable(), Inkscape::UI::Dialog::StyleDialog::documentReplaced(), Inkscape::UI::Dialog::SvgFontsDialog::documentReplaced(), Inkscape::UI::Dialog::SwatchesPanel::documentReplaced(), Inkscape::UI::Dialog::XmlTree::documentReplaced(), Inkscape::UI::Dialog::Export::documentReplaced(), Inkscape::UI::Dialog::FilterEffectsDialog::documentReplaced(), Inkscape::UI::Dialog::IconPreviewPanel::documentReplaced(), Inkscape::UI::Dialog::UndoHistory::documentReplaced(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::UI::Dialog::DocumentProperties::editEmbeddedScript(), Inkscape::UI::Dialog::ObjectsPanel::getObject(), Inkscape::UI::Dialog::GlyphsPanel::insertText(), Inkscape::UI::Dialog::DocumentProperties::linkSelectedProfile(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_drop(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_motion(), Inkscape::UI::Dialog::SvgFontsDialog::on_kerning_value_changed(), Inkscape::UI::Dialog::ObjectsPanel::on_motion_motion(), Inkscape::UI::Dialog::SpellCheck::onAccept(), Inkscape::UI::Dialog::DocumentProperties::onNewGrid(), Inkscape::UI::Dialog::SpellCheck::onStart(), Inkscape::UI::Dialog::DocumentProperties::populate_linked_profiles_box(), Inkscape::UI::Dialog::DocumentProperties::populate_script_lists(), Inkscape::UI::Dialog::StyleDialog::readStyleElement(), Inkscape::UI::Dialog::SwatchesPanel::rebuild_isswatch(), Inkscape::UI::Dialog::XmlTree::rebuildTree(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::Dialog::CloneTiler::remove(), Inkscape::UI::Dialog::DocumentProperties::removeEmbeddedScript(), Inkscape::UI::Dialog::DocumentProperties::removeExternalScript(), Inkscape::UI::Dialog::DocumentProperties::removeSelectedProfile(), Inkscape::UI::Dialog::DocumentProperties::save_default_metadata(), Inkscape::UI::Dialog::SwatchesPanel::select_palette(), Inkscape::UI::Dialog::XmlTree::set_dt_select(), Inkscape::UI::Dialog::XmlTree::set_tree_select(), Inkscape::UI::Dialog::ObjectsPanel::setRootWatcher(), Inkscape::UI::Dialog::AttrDialog::setUndo(), Inkscape::UI::Dialog::XmlTree::stopNodeEditing(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), Inkscape::UI::Dialog::LivePathEffectEditor::toggleVisible(), Inkscape::UI::Dialog::SwatchesPanel::track_gradients(), Inkscape::UI::Dialog::CloneTiler::unclump(), Inkscape::UI::Dialog::SwatchesPanel::update_fillstroke_indicators(), Inkscape::UI::Dialog::SvgFontsDialog::update_fonts(), Inkscape::UI::Dialog::SwatchesPanel::update_isswatch(), and Inkscape::UI::Dialog::DocumentProperties::update_widgets().
|
inline |
Definition at line 63 of file dialog-base.h.
References _prefs_path.
|
inlineprotected |
Definition at line 82 of file dialog-base.h.
References selection.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_activateAction(), Inkscape::UI::Dialog::Transformation::_apply(), Inkscape::UI::Dialog::ObjectProperties::_aspectRatioToggled(), Inkscape::UI::Dialog::ObjectProperties::_hiddenToggled(), Inkscape::UI::Dialog::ObjectProperties::_highlightChanged(), Inkscape::UI::Dialog::ObjectProperties::_labelChanged(), Inkscape::UI::Dialog::StyleDialog::_onLinkObj(), Inkscape::UI::Dialog::FillAndStroke::_onSwitchPage(), Inkscape::UI::Dialog::ObjectsPanel::_selectionChanged(), Inkscape::UI::Dialog::ObjectProperties::_sensitivityToggled(), Inkscape::UI::Dialog::StyleDialog::_writeStyleElement(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::GlyphsPanel::calcCanInsert(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Dialog::Find::desktopReplaced(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::UI::Dialog::XmlTree::get_dt_select(), Inkscape::UI::Dialog::GlyphsPanel::insertText(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Dialog::ObjectsPanel::on_click(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_begin(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_drop(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_motion(), Inkscape::UI::Dialog::ObjectsPanel::on_tree_key_pressed(), Inkscape::UI::Dialog::Transformation::onClear(), Inkscape::UI::Dialog::Transformation::onMoveRelativeToggled(), Inkscape::UI::Dialog::Transformation::onReplaceMatrixToggled(), Inkscape::UI::Dialog::Transformation::onSwitchPage(), Inkscape::UI::Dialog::StyleDialog::readStyleElement(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::Dialog::CloneTiler::remove(), Inkscape::UI::Dialog::ObjectsPanel::selectCursorItem(), Inkscape::UI::Dialog::ObjectsPanel::selectRange(), Inkscape::UI::Dialog::XmlTree::set_dt_select(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), Inkscape::UI::Dialog::CloneTiler::unclump(), and Inkscape::UI::Dialog::ObjectProperties::update_entries().
|
inline |
Definition at line 72 of file dialog-base.h.
References _showing.
Referenced by Inkscape::UI::Dialog::StyleDialog::_nodeAdded(), Inkscape::UI::Dialog::StyleDialog::_nodeChanged(), and Inkscape::UI::Dialog::StyleDialog::_nodeRemoved().
|
private |
Definition at line 86 of file dialog-base.cpp.
References defocus_dialog(), and Inkscape::UI::Tools::get_latin_keyval().
Referenced by DialogBase().
|
override |
Definition at line 76 of file dialog-base.cpp.
References Inkscape::Application::instance(), setDesktop(), and update().
|
delete |
|
inlineprivatevirtual |
Reimplemented in Inkscape::UI::Dialog::LivePathEffectEditor, Inkscape::UI::Dialog::Transformation, Inkscape::UI::Dialog::Export, Inkscape::UI::Dialog::FilterEffectsDialog, Inkscape::UI::Dialog::Prototype, Inkscape::UI::Dialog::SymbolsDialog, Inkscape::UI::Dialog::ObjectsPanel, Inkscape::UI::Dialog::FillAndStroke, Inkscape::UI::Dialog::GlyphsPanel, Inkscape::UI::Dialog::PaintServersDialog, Inkscape::UI::Dialog::SelectorsDialog, Inkscape::UI::Dialog::StyleDialog, Inkscape::UI::Dialog::SwatchesPanel, Inkscape::UI::Dialog::TextEdit, Inkscape::UI::Dialog::XmlTree, Inkscape::UI::Dialog::Find, Inkscape::UI::Dialog::IconPreviewPanel, Inkscape::UI::Dialog::ObjectAttributes, and Inkscape::UI::Dialog::ObjectProperties.
Definition at line 104 of file dialog-base.h.
Referenced by setDesktop().
|
inlineprivatevirtual |
Reimplemented in Inkscape::UI::Dialog::FilterEffectsDialog, Inkscape::UI::Dialog::SwatchesPanel, Inkscape::UI::Dialog::TextEdit, Inkscape::UI::Dialog::IconPreviewPanel, and Inkscape::UI::Dialog::ObjectAttributes.
Definition at line 105 of file dialog-base.h.
Referenced by setDesktop().
void Inkscape::UI::Dialog::DialogBase::setDesktop | ( | SPDesktop * | new_desktop | ) |
Called when the desktop might have changed for this dialog.
Definition at line 159 of file dialog-base.cpp.
References _changed_while_hidden, _desktop_destroyed, _doc_replaced, _modified_flags, _modified_while_hidden, _select_changed, _select_modified, _showing, Inkscape::Selection::connectChanged(), SPDesktop::connectDestroy(), SPDesktop::connectDocumentReplaced(), Inkscape::Selection::connectModified(), desktop, desktopDestroyed(), desktopReplaced(), documentReplaced(), SPDesktop::getDocument(), SPDesktop::getSelection(), selection, selectionChanged(), selectionModified(), Inkscape::UI::Dialog::set_sensitive(), setDocument(), and unsetDesktop().
Referenced by Inkscape::UI::Dialog::XmlTree::desktopReplaced(), on_map(), SPDesktopWidget::on_unrealize(), Inkscape::UI::Toolbar::MeasureToolbar::setDesktop(), and SPDesktopWidget::switchDesktop().
|
private |
Called when the document might have changed, called from setDesktop too.
Definition at line 281 of file dialog-base.cpp.
Referenced by setDesktop().
|
protected |
function called from notebook dialog that performs an update of the dialog and sets the dialog showing state true
Definition at line 242 of file dialog-base.cpp.
|
private |
Called to destruct desktops, must not call virtuals.
Definition at line 257 of file dialog-base.cpp.
References desktop.
Referenced by setDesktop(), and ~DialogBase().
|
inlinevirtual |
The update() method is essential to Gtk state management.
DialogBase implementations get updated whenever a new focus event happens if they are in a DialogWindow or if they are in the currently focused window.
DO NOT use update to keep SPDesktop, SPDocument or Selection states, use the virtual functions below.
Reimplemented in Inkscape::UI::Dialog::SelectorsDialog, and Inkscape::UI::Dialog::DocumentProperties.
Definition at line 55 of file dialog-base.h.
Referenced by Inkscape::UI::Dialog::FillAndStroke::_onSwitchPage(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), on_map(), and Inkscape::UI::Dialog::FilterEffectsDialog::PrimitiveList::remove_selected().
|
friend |
Definition at line 83 of file dialog-base.h.
|
private |
Definition at line 116 of file dialog-base.h.
Referenced by getApp().
|
private |
Definition at line 114 of file dialog-base.h.
Referenced by setDesktop().
|
private |
Definition at line 107 of file dialog-base.h.
Referenced by setDesktop().
|
protected |
Definition at line 87 of file dialog-base.h.
Referenced by DialogBase(), and get_type().
|
private |
Definition at line 108 of file dialog-base.h.
Referenced by setDesktop().
|
private |
Definition at line 120 of file dialog-base.h.
Referenced by DialogBase(), and get_icon().
|
private |
Definition at line 112 of file dialog-base.h.
Referenced by setDesktop().
|
private |
Definition at line 113 of file dialog-base.h.
Referenced by setDesktop().
|
protected |
Definition at line 85 of file dialog-base.h.
Referenced by DialogBase(), get_name(), and Inkscape::UI::Dialog::Prototype::Prototype().
|
protected |
Definition at line 86 of file dialog-base.h.
Referenced by Inkscape::UI::Dialog::ObjectProperties::_init(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_segments_min_length_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_angle_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_deltas_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_deltas_label_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::_show_segments_label_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::angle_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::between_btn_change(), Inkscape::UI::Dialog::DocumentProperties::browseExternalScript(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::dX_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::dY_btn_change(), Inkscape::UI::Dialog::ExtensionsGallery::ExtensionsGallery(), getPrefsPath(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::labels_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::length_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Dialog::SpellCheck::nextWord(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::segments_btn_change(), Inkscape::UI::Dialog::SwatchesPanel::set_palette(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_height_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_length_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_width_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_X_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::shape_Y_btn_change(), Inkscape::UI::Dialog::ExtensionsGallery::show_category(), Inkscape::UI::Dialog::SwatchesPanel::SwatchesPanel(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::tabs_btn_change(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::units_btn_change(), and Inkscape::UI::Dialog::ExtensionsGallery::update_name().
|
private |
Definition at line 109 of file dialog-base.h.
Referenced by setDesktop().
|
private |
Definition at line 110 of file dialog-base.h.
Referenced by setDesktop().
|
private |
Definition at line 94 of file dialog-base.h.
Referenced by getShowing(), and setDesktop().
|
private |
Definition at line 117 of file dialog-base.h.
Referenced by Inkscape::UI::Dialog::Find::all_items(), Inkscape::UI::Dialog::Find::all_selection_items(), Inkscape::UI::Dialog::SpellCheck::allTextItems(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::UI::Dialog::TextEdit::apply_changes(), Inkscape::UI::Dialog::Export::checkOrCreateDirectory(), defocus_dialog(), Inkscape::UI::Dialog::Transformation::desktopReplaced(), Inkscape::UI::Dialog::ObjectsPanel::desktopReplaced(), Inkscape::UI::Dialog::DocumentProperties::documentReplaced(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::UI::Dialog::Export::exportRaster(), Inkscape::UI::Dialog::Export::exportVector(), getDesktop(), Inkscape::UI::Dialog::MeasureToolSettingsDialog::MeasureToolSettingsDialog(), Inkscape::UI::Dialog::SpellCheck::nextWord(), Inkscape::UI::Dialog::TextEdit::on_fcm_button_clicked(), Inkscape::UI::Dialog::ObjectsPanel::on_tree_key_pressed(), Inkscape::UI::Dialog::ObjectsPanel::on_window_key(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Dialog::DocumentProperties::onNewGrid(), Inkscape::UI::Dialog::Export::onNotebookPageSwitch(), Inkscape::UI::Dialog::TextEdit::onReadSelection(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::remove_filter(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::select_filter_elements(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::selection_toggled(), Inkscape::UI::Dialog::DocumentProperties::set_content_scale(), Inkscape::UI::Dialog::DocumentProperties::set_document_scale(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_pos(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_size(), setDesktop(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), Inkscape::UI::Dialog::DocumentProperties::update_scale_ui(), Inkscape::UI::Dialog::DocumentProperties::update_viewbox(), Inkscape::UI::Dialog::DocumentProperties::update_viewbox_ui(), and Inkscape::UI::Dialog::DocumentProperties::update_widgets().
|
private |
Definition at line 118 of file dialog-base.h.
Referenced by Inkscape::UI::Dialog::DocumentProperties::addEmbeddedScript(), Inkscape::UI::Dialog::DocumentProperties::addExternalScript(), Inkscape::UI::Dialog::DocumentProperties::build_page(), Inkscape::UI::Dialog::DocumentProperties::build_scripting(), Inkscape::UI::Dialog::DocumentProperties::changeEmbeddedScript(), Inkscape::UI::Dialog::XmlTree::cmd_delete_node(), Inkscape::UI::Dialog::XmlTree::cmd_duplicate_node(), Inkscape::UI::Dialog::XmlTree::cmd_indent_node(), Inkscape::UI::Dialog::XmlTree::cmd_lower_node(), Inkscape::UI::Dialog::XmlTree::cmd_new_element_node(), Inkscape::UI::Dialog::XmlTree::cmd_new_text_node(), Inkscape::UI::Dialog::XmlTree::cmd_raise_node(), Inkscape::UI::Dialog::XmlTree::cmd_unindent_node(), Inkscape::UI::Dialog::UndoHistory::connectEventLog(), Inkscape::UI::Dialog::DocumentProperties::display_unit_change(), Inkscape::UI::Dialog::StyleDialog::documentReplaced(), Inkscape::UI::Dialog::SvgFontsDialog::documentReplaced(), Inkscape::UI::Dialog::XmlTree::documentReplaced(), Inkscape::UI::Dialog::DocumentProperties::documentReplaced(), Inkscape::UI::Dialog::FilterEffectsDialog::documentReplaced(), Inkscape::UI::Dialog::UndoHistory::documentReplaced(), Inkscape::UI::Dialog::Prototype::documentReplaced(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), Inkscape::UI::Dialog::DocumentProperties::editEmbeddedScript(), getDocument(), Inkscape::UI::Dialog::DocumentProperties::linkSelectedProfile(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_drop(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_motion(), Inkscape::UI::Dialog::FontCollectionsManager::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_reset_button_pressed(), Inkscape::UI::Dialog::TextEdit::on_search_entry_changed(), Inkscape::UI::Dialog::DocumentProperties::onNewGrid(), Inkscape::UI::Dialog::DocumentProperties::populate_linked_profiles_box(), Inkscape::UI::Dialog::DocumentProperties::populate_script_lists(), Inkscape::UI::Dialog::StyleDialog::readStyleElement(), Inkscape::UI::Dialog::XmlTree::rebuildTree(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::Dialog::DocumentProperties::removeEmbeddedScript(), Inkscape::UI::Dialog::DocumentProperties::removeExternalScript(), Inkscape::UI::Dialog::DocumentProperties::removeSelectedProfile(), Inkscape::UI::Dialog::DocumentProperties::save_default_metadata(), Inkscape::UI::Dialog::DocumentProperties::set_content_scale(), Inkscape::UI::Dialog::DocumentProperties::set_document_scale(), Inkscape::UI::Dialog::XmlTree::set_dt_select(), Inkscape::UI::Dialog::XmlTree::set_tree_select(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_pos(), Inkscape::UI::Dialog::DocumentProperties::set_viewbox_size(), Inkscape::UI::Dialog::ObjectsPanel::setRootWatcher(), Inkscape::UI::Dialog::XmlTree::stopNodeEditing(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::update_filters(), Inkscape::UI::Dialog::SvgFontsDialog::update_fonts(), Inkscape::UI::Dialog::DocumentProperties::update_scale_ui(), Inkscape::UI::Dialog::DocumentProperties::update_viewbox(), Inkscape::UI::Dialog::DocumentProperties::update_viewbox_ui(), and Inkscape::UI::Dialog::DocumentProperties::update_widgets().
|
private |
Definition at line 119 of file dialog-base.h.
Referenced by Inkscape::UI::Dialog::ObjectsPanel::_activateAction(), Inkscape::UI::Dialog::Transformation::_apply(), Inkscape::UI::Dialog::StyleDialog::_onLinkObj(), Inkscape::UI::Dialog::StyleDialog::_writeStyleElement(), Inkscape::UI::Dialog::CloneTiler::apply(), 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::GlyphsPanel::calcCanInsert(), Inkscape::UI::Dialog::CloneTiler::change_selection(), Inkscape::UI::Dialog::XmlTree::deferred_on_tree_select_row(), Inkscape::UI::Dialog::Find::desktopReplaced(), Inkscape::UI::Dialog::ObjectsPanel::drag_end_impl(), Inkscape::UI::Dialog::XmlTree::get_dt_select(), Inkscape::UI::Dialog::SvgFontsDialog::get_selected_glyph_iter(), getSelection(), Inkscape::UI::Dialog::GlyphsPanel::insertText(), Inkscape::UI::Dialog::ObjectsPanel::on_click(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_begin(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_drop(), Inkscape::UI::Dialog::ObjectsPanel::on_drag_motion(), Inkscape::UI::Dialog::Find::onAction(), Inkscape::UI::Dialog::Transformation::onClear(), Inkscape::UI::Dialog::Transformation::onMoveRelativeToggled(), Inkscape::UI::Dialog::Export::onNotebookPageSwitch(), Inkscape::UI::Dialog::Transformation::onReplaceMatrixToggled(), Inkscape::UI::Dialog::AttrDialog::onTreeViewKeyPressed(), Inkscape::UI::Dialog::StyleDialog::readStyleElement(), Inkscape::UI::Dialog::IconPreviewPanel::refreshPreview(), Inkscape::UI::Dialog::CloneTiler::remove(), Inkscape::UI::Dialog::ObjectsPanel::selectCursorItem(), Inkscape::UI::Dialog::LivePathEffectEditor::selectionChanged(), Inkscape::UI::Dialog::Transformation::selectionChanged(), Inkscape::UI::Dialog::Export::selectionChanged(), Inkscape::UI::Dialog::FilterEffectsDialog::selectionChanged(), Inkscape::UI::Dialog::Prototype::selectionChanged(), Inkscape::UI::Dialog::FilterEffectsDialog::selectionModified(), Inkscape::UI::Dialog::LivePathEffectEditor::selectionModified(), Inkscape::UI::Dialog::Transformation::selectionModified(), Inkscape::UI::Dialog::Export::selectionModified(), Inkscape::UI::Dialog::ObjectAttributes::selectionModified(), Inkscape::UI::Dialog::ObjectsPanel::selectRange(), setDesktop(), Inkscape::UI::Dialog::AttrDialog::storeMoveToNext(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), Inkscape::UI::Dialog::ObjectsPanel::toggleVisible(), Inkscape::UI::Dialog::CloneTiler::unclump(), Inkscape::UI::Dialog::ObjectProperties::update_entries(), Inkscape::UI::Dialog::SvgFontsDialog::update_fonts(), Inkscape::UI::Dialog::Transformation::updatePageMove(), Inkscape::UI::Dialog::Transformation::updatePageRotate(), Inkscape::UI::Dialog::Transformation::updatePageScale(), Inkscape::UI::Dialog::Transformation::updatePageSkew(), Inkscape::UI::Dialog::Transformation::updatePageTransform(), Inkscape::UI::Dialog::Transformation::updateSelection(), and Inkscape::UI::Dialog::ObjectAttributes::widget_setup().