Inkscape
Vector Graphics Editor
|
A dialog widget to show object attributes (currently for images and links). More...
#include <object-attributes.h>
Public Member Functions | |
ObjectAttributes () | |
~ObjectAttributes () override=default | |
void | selectionChanged (Selection *selection) override |
void | selectionModified (Selection *selection, guint flags) override |
void | desktopReplaced () override |
Called when the desktop has certainly changed. | |
void | widget_setup () |
Updates entries and other child widgets on selection change, object modification, etc. | |
![]() | |
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. | |
void | focus_dialog () |
void | defocus_dialog () |
bool | getShowing () |
void | fix_inner_scroll (Gtk::Widget *child) |
SPDesktop * | getDesktop () const |
Private Member Functions | |
void | create_panels () |
details::AttributesPanel * | get_panel (SPObject *object) |
void | update_panel (SPObject *object) |
Private Attributes | |
Glib::RefPtr< Gtk::Builder > | _builder |
std::map< std::string, std::unique_ptr< details::AttributesPanel > > | _panels |
details::AttributesPanel * | _current_panel = nullptr |
OperationBlocker | _update |
Gtk::Box & | _main_panel |
Gtk::Label & | _obj_title |
SPItem * | _current_item = nullptr |
Inkscape::UI::Widget::StyleSwatch | _style_swatch |
ObjectProperties & | _obj_properties |
Additional Inherited Members | |
![]() | |
InkscapeApplication * | getApp () const |
SPDocument * | getDocument () const |
Selection * | getSelection () const |
void | setShowing (bool showing) |
function called from notebook dialog that performs an update of the dialog and sets the dialog showing state true | |
![]() | |
Glib::ustring | _name |
Glib::ustring const | _prefs_path |
Glib::ustring const | _dialog_type |
A dialog widget to show object attributes (currently for images and links).
Definition at line 74 of file object-attributes.h.
Inkscape::UI::Dialog::ObjectAttributes::ObjectAttributes | ( | ) |
Definition at line 99 of file object-attributes.cpp.
References _builder, _obj_properties, _obj_title, _style_swatch, Inkscape::append(), Inkscape::UI::create_builder(), create_panels(), Inkscape::UI::get_widget(), and main().
|
overridedefault |
|
private |
Definition at line 956 of file object-attributes.cpp.
References _builder, _panels, and name.
Referenced by ObjectAttributes().
|
overridevirtual |
Called when the desktop has certainly changed.
It may have changed to nullptr when destructing the dialog, so the override should expect nullptr too.
Reimplemented from Inkscape::UI::Dialog::DialogBase.
Definition at line 195 of file object-attributes.cpp.
References _obj_properties, and Inkscape::UI::Dialog::ObjectProperties::update_entries().
|
private |
Definition at line 948 of file object-attributes.cpp.
References _panels, Inkscape::UI::Dialog::get_key(), and name.
Referenced by widget_setup().
|
overridevirtual |
Reimplemented from Inkscape::UI::Dialog::DialogBase.
Definition at line 199 of file object-attributes.cpp.
References _obj_properties, Inkscape::UI::Dialog::ObjectProperties::update_entries(), and widget_setup().
|
overridevirtual |
Reimplemented from Inkscape::UI::Dialog::DialogBase.
Definition at line 204 of file object-attributes.cpp.
References _current_item, _current_panel, _update, Inkscape::UI::Dialog::DialogBase::getDesktop(), SPDesktop::getSelection(), item, OperationBlocker::pending(), Inkscape::UI::Dialog::DialogBase::selection, Inkscape::ObjectSet::singleItem(), and update_panel().
|
private |
Definition at line 184 of file object-attributes.cpp.
References _current_panel, _style_swatch, Inkscape::UI::Dialog::DialogBase::getDesktop(), item, Inkscape::UI::Widget::StyleSwatch::setStyle(), SPObject::style, Inkscape::UI::Dialog::details::AttributesPanel::supports_fill_stroke(), and Inkscape::UI::Dialog::details::AttributesPanel::update_panel().
Referenced by selectionModified().
void Inkscape::UI::Dialog::ObjectAttributes::widget_setup | ( | ) |
Updates entries and other child widgets on selection change, object modification, etc.
Definition at line 119 of file object-attributes.cpp.
References _current_item, _current_panel, _main_panel, _obj_title, _style_swatch, _update, OperationBlocker::block(), SPItem::displayName(), get_panel(), Inkscape::UI::Dialog::DialogBase::getDesktop(), SPDesktop::getSelection(), item, name, Inkscape::UI::pack_start(), OperationBlocker::pending(), Inkscape::UI::Dialog::DialogBase::selection, Inkscape::UI::Widget::StyleSwatch::setStyle(), Inkscape::ObjectSet::singleItem(), Inkscape::ObjectSet::size(), SPObject::style, Inkscape::UI::Dialog::details::AttributesPanel::update_panel(), and Inkscape::UI::Dialog::details::AttributesPanel::widget().
Referenced by selectionChanged().
|
private |
Definition at line 91 of file object-attributes.h.
Referenced by create_panels(), and ObjectAttributes().
|
private |
Definition at line 103 of file object-attributes.h.
Referenced by selectionModified(), and widget_setup().
|
private |
Definition at line 98 of file object-attributes.h.
Referenced by selectionModified(), update_panel(), and widget_setup().
|
private |
Definition at line 100 of file object-attributes.h.
Referenced by widget_setup().
|
private |
Definition at line 105 of file object-attributes.h.
Referenced by desktopReplaced(), ObjectAttributes(), and selectionChanged().
|
private |
Definition at line 101 of file object-attributes.h.
Referenced by ObjectAttributes(), and widget_setup().
|
private |
Definition at line 94 of file object-attributes.h.
Referenced by create_panels(), and get_panel().
|
private |
Definition at line 104 of file object-attributes.h.
Referenced by ObjectAttributes(), update_panel(), and widget_setup().
|
private |
Definition at line 99 of file object-attributes.h.
Referenced by selectionModified(), and widget_setup().