Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::UI::Dialog::ObjectAttributes Class Reference

A dialog widget to show object attributes (currently for images and links). More...

#include <object-attributes.h>

Inheritance diagram for Inkscape::UI::Dialog::ObjectAttributes:
Inkscape::UI::Dialog::DialogBase

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.
 
- Public Member Functions inherited from Inkscape::UI::Dialog::DialogBase
 DialogBase (char const *prefs_path=nullptr, Glib::ustring dialog_type={})
 DialogBase constructor.
 
 DialogBase (DialogBase const &)=delete
 
DialogBaseoperator= (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)
 
SPDesktopgetDesktop () const
 

Private Member Functions

void create_panels ()
 
details::AttributesPanelget_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

- Protected Member Functions inherited from Inkscape::UI::Dialog::DialogBase
InkscapeApplicationgetApp () const
 
SPDocumentgetDocument () const
 
SelectiongetSelection () 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 inherited from Inkscape::UI::Dialog::DialogBase
Glib::ustring _name
 
Glib::ustring const _prefs_path
 
Glib::ustring const _dialog_type
 

Detailed Description

A dialog widget to show object attributes (currently for images and links).

Definition at line 74 of file object-attributes.h.

Constructor & Destructor Documentation

◆ ObjectAttributes()

Inkscape::UI::Dialog::ObjectAttributes::ObjectAttributes ( )

◆ ~ObjectAttributes()

Inkscape::UI::Dialog::ObjectAttributes::~ObjectAttributes ( )
overridedefault

Member Function Documentation

◆ create_panels()

void Inkscape::UI::Dialog::ObjectAttributes::create_panels ( )
private

Definition at line 956 of file object-attributes.cpp.

References _builder, _panels, and name.

Referenced by ObjectAttributes().

◆ desktopReplaced()

void Inkscape::UI::Dialog::ObjectAttributes::desktopReplaced ( )
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().

◆ get_panel()

details::AttributesPanel * Inkscape::UI::Dialog::ObjectAttributes::get_panel ( SPObject object)
private

Definition at line 948 of file object-attributes.cpp.

References _panels, Inkscape::UI::Dialog::get_key(), and name.

Referenced by widget_setup().

◆ selectionChanged()

void Inkscape::UI::Dialog::ObjectAttributes::selectionChanged ( Selection selection)
overridevirtual

◆ selectionModified()

void Inkscape::UI::Dialog::ObjectAttributes::selectionModified ( Selection selection,
guint  flags 
)
overridevirtual

◆ update_panel()

◆ widget_setup()

Member Data Documentation

◆ _builder

Glib::RefPtr<Gtk::Builder> Inkscape::UI::Dialog::ObjectAttributes::_builder
private

Definition at line 91 of file object-attributes.h.

Referenced by create_panels(), and ObjectAttributes().

◆ _current_item

SPItem* Inkscape::UI::Dialog::ObjectAttributes::_current_item = nullptr
private

Definition at line 103 of file object-attributes.h.

Referenced by selectionModified(), and widget_setup().

◆ _current_panel

details::AttributesPanel* Inkscape::UI::Dialog::ObjectAttributes::_current_panel = nullptr
private

Definition at line 98 of file object-attributes.h.

Referenced by selectionModified(), update_panel(), and widget_setup().

◆ _main_panel

Gtk::Box& Inkscape::UI::Dialog::ObjectAttributes::_main_panel
private

Definition at line 100 of file object-attributes.h.

Referenced by widget_setup().

◆ _obj_properties

ObjectProperties& Inkscape::UI::Dialog::ObjectAttributes::_obj_properties
private

Definition at line 105 of file object-attributes.h.

Referenced by desktopReplaced(), ObjectAttributes(), and selectionChanged().

◆ _obj_title

Gtk::Label& Inkscape::UI::Dialog::ObjectAttributes::_obj_title
private

Definition at line 101 of file object-attributes.h.

Referenced by ObjectAttributes(), and widget_setup().

◆ _panels

std::map<std::string, std::unique_ptr<details::AttributesPanel> > Inkscape::UI::Dialog::ObjectAttributes::_panels
private

Definition at line 94 of file object-attributes.h.

Referenced by create_panels(), and get_panel().

◆ _style_swatch

Inkscape::UI::Widget::StyleSwatch Inkscape::UI::Dialog::ObjectAttributes::_style_swatch
private

Definition at line 104 of file object-attributes.h.

Referenced by ObjectAttributes(), update_panel(), and widget_setup().

◆ _update

OperationBlocker Inkscape::UI::Dialog::ObjectAttributes::_update
private

Definition at line 99 of file object-attributes.h.

Referenced by selectionModified(), and widget_setup().


The documentation for this class was generated from the following files: