Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Dialog::SelectorsDialog Class Referencefinal

The SelectorsDialog class A list of CSS selectors will show up in this dialog. More...

#include <selectorsdialog.h>

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

Classes

class  ModelColumns
 
class  TreeStore
 

Public Member Functions

 SelectorsDialog ()
 Constructor A treeview and a set of two buttons are added to the dialog.
 
 ~SelectorsDialog () final
 
void update () final
 The update() method is essential to Gtk state management.
 
void desktopReplaced () final
 Called when the desktop has certainly changed.
 
void documentReplaced () final
 
void selectionChanged (Selection *selection) final
 
- 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
 
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)
 
SPDesktopgetDesktop () const
 

Private Types

enum  SelectorType { CLASS , ID , TAG }
 
enum  coltype { OBJECT , SELECTOR , OTHER }
 

Private Member Functions

void removeObservers ()
 
void _nodeAdded (Inkscape::XML::Node &repr)
 
void _nodeRemoved (Inkscape::XML::Node &repr)
 
void _nodeChanged (Inkscape::XML::Node &repr)
 
Inkscape::XML::Node_getStyleTextNode (bool create_if_missing=false)
 
void _readStyleElement ()
 Fill the internal Gtk::TreeStore from the svg:style element.
 
void _insertSyntacticElement (CSS::RuleStatement const &rule, bool expand, Gtk::TreeIter< Gtk::TreeRow > where)
 Populate a tree row with a representation of a CSS rule statement.
 
void _insertSyntacticElement (CSS::BlockAtStatement const &block_at, bool expand, Gtk::TreeIter< Gtk::TreeRow > where)
 Populate a tree row with a representation of a CSS block -statement.
 
void _insertSyntacticElement (CSS::OtherStatement const &other, bool, Gtk::TreeIter< Gtk::TreeRow > where)
 Populate a tree row with a representation of a generic ("other") CSS statement.
 
void _writeStyleElement ()
 Update the content of the style element as selectors (or objects) are added/removed.
 
Glib::ustring _formatRowAsCSS (Gtk::TreeConstRow const &row) const
 Return the representation of the contents of a tree row in the dialog as a CSS string.
 
std::vector< SPObject * > getSelectedObjects ()
 
void _addToSelector (Gtk::TreeModel::Row row)
 
void _removeFromSelector (Gtk::TreeModel::Row row)
 
Glib::ustring _getIdList (std::vector< SPObject * >)
 
std::vector< SPObject * > _getObjVec (Glib::ustring const &selector)
 
void _insertClass (const std::vector< SPObject * > &objVec, const Glib::ustring &className)
 
void _insertClass (SPObject *obj, const Glib::ustring &className)
 
void _removeClass (const std::vector< SPObject * > &objVec, const Glib::ustring &className, bool all=false)
 
void _removeClass (SPObject *obj, const Glib::ustring &className, bool all=false)
 
void _toggleDirection (Gtk::ToggleButton *vertical)
 
void _showWidgets ()
 
void _rowExpand (const Gtk::TreeModel::iterator &iter, const Gtk::TreeModel::Path &path)
 
void _rowCollapse (const Gtk::TreeModel::iterator &iter, const Gtk::TreeModel::Path &path)
 
void _closeDialog (Gtk::Dialog *textDialogPtr)
 
void _addSelector ()
 This function opens a dialog to add a selector.
 
void _delSelector ()
 This function deletes selector when '-' at the bottom is clicked.
 
void onTreeViewClickReleased (int n_press, double x, double y)
 
void _selectRow ()
 This function selects the row in treeview corresponding to an object selected in the drawing.
 
void _vscroll ()
 
void _styleButton (Gtk::Button &btn, char const *iconName, char const *tooltip)
 

Static Private Member Functions

static Glib::ustring _getSelectorClasses (Glib::ustring selector)
 

Private Attributes

ModelColumns _mColumns
 
Glib::RefPtr< Gtk::TreeModelFilter > _modelfilter
 
Glib::RefPtr< TreeStore_store
 
Gtk::TreeView _treeView
 
Gtk::TreeModel::Path _lastpath
 
StyleDialog_style_dialog
 
Gtk::Paned _paned
 
Glib::RefPtr< Gtk::Adjustment > _vadj
 
Gtk::Box _button_box
 
Gtk::Box _selectors_box
 
Gtk::ScrolledWindow _scrolled_window_selectors
 
Gtk::Button _del
 
Gtk::Button _create
 
std::unique_ptr< Inkscape::XML::NodeObserverm_nodewatcher
 
std::unique_ptr< Inkscape::XML::NodeObserverm_styletextwatcher
 
double _scrollpos {0.0}
 
bool _scrollock {false}
 
bool _updating {false}
 
Inkscape::XML::Nodem_root {nullptr}
 
Inkscape::XML::Node_textNode {nullptr}
 
Inkscape::XML::SignalObserver _objObserver
 

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

The SelectorsDialog class A list of CSS selectors will show up in this dialog.

This dialog allows one to add and delete selectors. Elements can be added to and removed from the selectors in the dialog. Selection of any selector row selects the matching objects in the drawing and vice-versa. (Only simple selectors supported for now.)

This class must keep two things in sync:

  1. The text node of the style element.
  2. The Gtk::TreeModel.

Definition at line 54 of file selectorsdialog.h.

Member Enumeration Documentation

◆ coltype

Enumerator
OBJECT 
SELECTOR 
OTHER 

Definition at line 78 of file selectorsdialog.h.

◆ SelectorType

Enumerator
CLASS 
ID 
TAG 

Definition at line 73 of file selectorsdialog.h.

Constructor & Destructor Documentation

◆ SelectorsDialog()

Inkscape::UI::Dialog::SelectorsDialog::SelectorsDialog ( )

Constructor A treeview and a set of two buttons are added to the dialog.

_addSelector adds selectors to treeview. _delSelector deletes the selector from the dialog. Any addition/deletion of the selectors updates XML style element accordingly.

Definition at line 221 of file selectorsdialog.cpp.

References _addToSelector(), Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colSelector, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colType, _del, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_fontWeight, _mColumns, _removeFromSelector(), _rowCollapse(), _rowExpand(), _scrollpos, _selectRow(), _showWidgets(), _store, _treeView, _updating, _vadj, _vscroll(), Inkscape::UI::Dialog::SelectorsDialog::TreeStore::create(), label, m_nodewatcher, and m_styletextwatcher.

◆ ~SelectorsDialog()

Inkscape::UI::Dialog::SelectorsDialog::~SelectorsDialog ( )
final

Definition at line 1142 of file selectorsdialog.cpp.

Member Function Documentation

◆ _addSelector()

void Inkscape::UI::Dialog::SelectorsDialog::_addSelector ( )
private

This function opens a dialog to add a selector.

The dialog is prefilled with an 'id' selector containing a list of the id's of selected objects or with a 'class' selector if no objects are selected.

By default, the entrybox contains 'Class1' as text. However, if object(s) is(are) selected and user clicks '+' at the bottom of dialog, the entrybox will have the id(s) of the selected objects as text.

selectorValue This string stores selector name. The text from entrybox is saved as name for selector. If the entrybox is empty, the text (thus selectorName) is set to ".Class1"

Definition at line 956 of file selectorsdialog.cpp.

References cr_selector_destroy(), cr_selector_parse_from_buf(), CR_UTF_8, Inkscape::UI::dialog_run(), FONT_WEIGHT_NORMAL, Inkscape::UI::pack_start(), result, Inkscape::CSS::selector_to_validated_string(), Inkscape::UI::shrink, Inkscape::Util::trim(), and Inkscape::UI::Dialog::vector_contains().

Referenced by _showWidgets().

◆ _addToSelector()

void Inkscape::UI::Dialog::SelectorsDialog::_addToSelector ( Gtk::TreeModel::Row  row)
private
Parameters
rowAdd selected objects on the desktop to the selector corresponding to 'row'.

Definition at line 658 of file selectorsdialog.cpp.

References Inkscape::XML::Node::attributeList(), css, FONT_WEIGHT_NORMAL, key, sp_repr_css_attr_add_from_string(), sp_repr_css_attr_new(), sp_repr_css_attr_unref(), and sp_repr_css_write_string().

Referenced by SelectorsDialog().

◆ _closeDialog()

void Inkscape::UI::Dialog::SelectorsDialog::_closeDialog ( Gtk::Dialog *  textDialogPtr)
private

Definition at line 1090 of file selectorsdialog.cpp.

◆ _delSelector()

void Inkscape::UI::Dialog::SelectorsDialog::_delSelector ( )
private

This function deletes selector when '-' at the bottom is clicked.

Note: If deleting a class selector, class attributes are NOT changed.

Definition at line 1096 of file selectorsdialog.cpp.

Referenced by _showWidgets().

◆ _formatRowAsCSS()

Glib::ustring Inkscape::UI::Dialog::SelectorsDialog::_formatRowAsCSS ( Gtk::TreeConstRow const &  row) const
private

Return the representation of the contents of a tree row in the dialog as a CSS string.

Definition at line 544 of file selectorsdialog.cpp.

References child, and result.

◆ _getIdList()

Glib::ustring Inkscape::UI::Dialog::SelectorsDialog::_getIdList ( std::vector< SPObject * >  sel)
private
Parameters
sel
Returns
This function returns a comma separated list of ids for objects in input vector. It is used in creating an 'id' selector. It relies on objects having 'id's.

Definition at line 820 of file selectorsdialog.cpp.

◆ _getObjVec()

std::vector< SPObject * > Inkscape::UI::Dialog::SelectorsDialog::_getObjVec ( Glib::ustring const &  selector)
private
Parameters
selectora valid CSS selector string.
Returns
objVec: a vector of pointers to SPObject's the selector matches. Return a vector of all objects that selector matches.

Definition at line 841 of file selectorsdialog.cpp.

Referenced by _insertSyntacticElement().

◆ _getSelectorClasses()

Glib::ustring Inkscape::UI::Dialog::SelectorsDialog::_getSelectorClasses ( Glib::ustring  selector)
staticprivate

◆ _getStyleTextNode()

Inkscape::XML::Node * Inkscape::UI::Dialog::SelectorsDialog::_getStyleTextNode ( bool  create_if_missing = false)
private
Returns
Inkscape::XML::Node* pointing to a style element's text node. Returns the style element's text node. If there is no style element, one is created. Ditto for text node.

Definition at line 375 of file selectorsdialog.cpp.

References _textNode, Inkscape::XML::Node::addObserver(), Inkscape::UI::Dialog::get_first_style_text_node(), m_root, m_styletextwatcher, and Inkscape::XML::Node::removeObserver().

Referenced by _readStyleElement().

◆ _insertClass() [1/2]

void Inkscape::UI::Dialog::SelectorsDialog::_insertClass ( const std::vector< SPObject * > &  objVec,
const Glib::ustring &  className 
)
private
Parameters
objslist of objects to insert class
classclass to insert Insert a class name into objects' 'class' attribute.

Definition at line 855 of file selectorsdialog.cpp.

◆ _insertClass() [2/2]

void Inkscape::UI::Dialog::SelectorsDialog::_insertClass ( SPObject obj,
const Glib::ustring &  className 
)
private
Parameters
objslist of objects to insert class
classclass to insert Insert a class name into objects' 'class' attribute.

Definition at line 876 of file selectorsdialog.cpp.

References Inkscape::XML::Node::attribute(), SPObject::getRepr(), Inkscape::XML::Node::setAttribute(), and Inkscape::UI::Dialog::vector_contains().

◆ _insertSyntacticElement() [1/3]

void Inkscape::UI::Dialog::SelectorsDialog::_insertSyntacticElement ( CSS::BlockAtStatement const &  block_at,
bool  expand,
Gtk::TreeIter< Gtk::TreeRow >  where 
)
private

Populate a tree row with a representation of a CSS block -statement.

Reminder: a block -statement is something like

@media print { rect { fill: none; } ... } In particular, the block may contain further nested blocks.

Parameters
block_atThe block -statement
expandWhether the tree row should be expanded
whereIterator to the tree row to populate

Definition at line 446 of file selectorsdialog.cpp.

References Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colExpand, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colObj, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colSelector, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colType, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_fontWeight, _mColumns, Inkscape::CSS::BlockAtStatement::at_statement, Inkscape::CSS::BlockAtStatement::block_content, FONT_WEIGHT_NORMAL, and OTHER.

◆ _insertSyntacticElement() [2/3]

void Inkscape::UI::Dialog::SelectorsDialog::_insertSyntacticElement ( CSS::OtherStatement const &  other,
bool  ,
Gtk::TreeIter< Gtk::TreeRow >  where 
)
private

Populate a tree row with a representation of a generic ("other") CSS statement.

This function is used for statements other than rule set statements or block -statements, for example for an @charset statement.

Parameters
otherThe CSS statement
whereIterator to the tree row to populate

Definition at line 471 of file selectorsdialog.cpp.

References Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colExpand, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colObj, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colSelector, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colType, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_fontWeight, _mColumns, FONT_WEIGHT_NORMAL, and OTHER.

◆ _insertSyntacticElement() [3/3]

void Inkscape::UI::Dialog::SelectorsDialog::_insertSyntacticElement ( CSS::RuleStatement const &  rule,
bool  expand,
Gtk::TreeIter< Gtk::TreeRow >  where 
)
private

Populate a tree row with a representation of a CSS rule statement.

Reminder: a rule statement is something like

.selector1, #selector2 { fill: red; stroke-width: 2pt; }

Parameters
ruleThe rule statement
expandWhether the tree row should be expanded
whereIterator to the tree row to populate

Definition at line 406 of file selectorsdialog.cpp.

References Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colExpand, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colObj, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colProperties, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colSelector, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_colType, Inkscape::UI::Dialog::SelectorsDialog::ModelColumns::_fontWeight, _getObjVec(), _mColumns, _store, FONT_WEIGHT_NORMAL, OBJECT, Inkscape::CSS::RuleStatement::rules, SELECTOR, and Inkscape::CSS::RuleStatement::selectors.

◆ _nodeAdded()

void Inkscape::UI::Dialog::SelectorsDialog::_nodeAdded ( Inkscape::XML::Node repr)
private

Definition at line 136 of file selectorsdialog.cpp.

References _readStyleElement(), and _selectRow().

◆ _nodeChanged()

void Inkscape::UI::Dialog::SelectorsDialog::_nodeChanged ( Inkscape::XML::Node repr)
private

Definition at line 152 of file selectorsdialog.cpp.

References _readStyleElement(), _scrollock, and _selectRow().

◆ _nodeRemoved()

void Inkscape::UI::Dialog::SelectorsDialog::_nodeRemoved ( Inkscape::XML::Node repr)
private

Definition at line 142 of file selectorsdialog.cpp.

References _readStyleElement(), _selectRow(), and _textNode.

◆ _readStyleElement()

void Inkscape::UI::Dialog::SelectorsDialog::_readStyleElement ( )
private

◆ _removeClass() [1/2]

void Inkscape::UI::Dialog::SelectorsDialog::_removeClass ( const std::vector< SPObject * > &  objVec,
const Glib::ustring &  className,
bool  all = false 
)
private
Parameters
objslist of objects to insert class
classclass to insert Insert a class name into objects' 'class' attribute.

Definition at line 905 of file selectorsdialog.cpp.

◆ _removeClass() [2/2]

void Inkscape::UI::Dialog::SelectorsDialog::_removeClass ( SPObject obj,
const Glib::ustring &  className,
bool  all = false 
)
private
Parameters
objslist of objects to insert class
classclass to insert Insert a class name into objects' 'class' attribute.

Definition at line 919 of file selectorsdialog.cpp.

References Inkscape::XML::Node::attribute(), SPObject::getRepr(), Inkscape::XML::Node::removeAttribute(), Inkscape::XML::Node::setAttribute(), and Inkscape::Util::trim().

◆ _removeFromSelector()

void Inkscape::UI::Dialog::SelectorsDialog::_removeFromSelector ( Gtk::TreeModel::Row  row)
private
Parameters
rowRemove the object corresponding to 'row' from the parent selector.

Definition at line 757 of file selectorsdialog.cpp.

References parent, SPStyle::readFromObject(), SPObject::requestDisplayUpdate(), SPObject::style, and Inkscape::Util::trim().

Referenced by SelectorsDialog().

◆ _rowCollapse()

void Inkscape::UI::Dialog::SelectorsDialog::_rowCollapse ( const Gtk::TreeModel::iterator &  iter,
const Gtk::TreeModel::Path &  path 
)
private

Definition at line 536 of file selectorsdialog.cpp.

Referenced by SelectorsDialog().

◆ _rowExpand()

void Inkscape::UI::Dialog::SelectorsDialog::_rowExpand ( const Gtk::TreeModel::iterator &  iter,
const Gtk::TreeModel::Path &  path 
)
private

Definition at line 529 of file selectorsdialog.cpp.

Referenced by SelectorsDialog().

◆ _selectRow()

void Inkscape::UI::Dialog::SelectorsDialog::_selectRow ( )
private

This function selects the row in treeview corresponding to an object selected in the drawing.

If more than one row matches, the first is chosen.

Definition at line 1191 of file selectorsdialog.cpp.

References FONT_WEIGHT_BOLD, FONT_WEIGHT_NORMAL, Inkscape::Selection::includes(), and Inkscape::ObjectSet::isEmpty().

Referenced by _nodeAdded(), _nodeChanged(), _nodeRemoved(), and SelectorsDialog().

◆ _showWidgets()

◆ _styleButton()

void Inkscape::UI::Dialog::SelectorsDialog::_styleButton ( Gtk::Button &  btn,
char const *  iconName,
char const *  tooltip 
)
private
Parameters
btn
iconName
tooltipSet the style of '+' and '-' buttons at the bottom of dialog.

Definition at line 1265 of file selectorsdialog.cpp.

Referenced by _showWidgets().

◆ _toggleDirection()

void Inkscape::UI::Dialog::SelectorsDialog::_toggleDirection ( Gtk::ToggleButton *  vertical)
private

◆ _vscroll()

void Inkscape::UI::Dialog::SelectorsDialog::_vscroll ( )
private

Definition at line 281 of file selectorsdialog.cpp.

References _scrollock, _scrollpos, and _vadj.

Referenced by _showWidgets(), and SelectorsDialog().

◆ _writeStyleElement()

void Inkscape::UI::Dialog::SelectorsDialog::_writeStyleElement ( )
private

Update the content of the style element as selectors (or objects) are added/removed.

Definition at line 566 of file selectorsdialog.cpp.

References Inkscape::DocumentUndo::done(), and Inkscape::XML::Node::setContent().

◆ desktopReplaced()

void Inkscape::UI::Dialog::SelectorsDialog::desktopReplaced ( )
finalvirtual

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 1153 of file selectorsdialog.cpp.

◆ documentReplaced()

void Inkscape::UI::Dialog::SelectorsDialog::documentReplaced ( )
finalvirtual

Reimplemented from Inkscape::UI::Dialog::DialogBase.

Definition at line 1170 of file selectorsdialog.cpp.

◆ getSelectedObjects()

std::vector< SPObject * > Inkscape::UI::Dialog::SelectorsDialog::getSelectedObjects ( )
private

Definition at line 648 of file selectorsdialog.cpp.

◆ onTreeViewClickReleased()

void Inkscape::UI::Dialog::SelectorsDialog::onTreeViewClickReleased ( int  n_press,
double  x,
double  y 
)
private

◆ removeObservers()

void Inkscape::UI::Dialog::SelectorsDialog::removeObservers ( )
private

Definition at line 1158 of file selectorsdialog.cpp.

◆ selectionChanged()

void Inkscape::UI::Dialog::SelectorsDialog::selectionChanged ( Selection selection)
finalvirtual

Reimplemented from Inkscape::UI::Dialog::DialogBase.

Definition at line 1180 of file selectorsdialog.cpp.

◆ update()

void Inkscape::UI::Dialog::SelectorsDialog::update ( )
finalvirtual

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 from Inkscape::UI::Dialog::DialogBase.

Definition at line 1148 of file selectorsdialog.cpp.

Member Data Documentation

◆ _button_box

Gtk::Box Inkscape::UI::Dialog::SelectorsDialog::_button_box
private

Definition at line 128 of file selectorsdialog.h.

Referenced by _showWidgets().

◆ _create

Gtk::Button Inkscape::UI::Dialog::SelectorsDialog::_create
private

Definition at line 133 of file selectorsdialog.h.

Referenced by _showWidgets().

◆ _del

Gtk::Button Inkscape::UI::Dialog::SelectorsDialog::_del
private

Definition at line 132 of file selectorsdialog.h.

Referenced by _showWidgets(), and SelectorsDialog().

◆ _lastpath

Gtk::TreeModel::Path Inkscape::UI::Dialog::SelectorsDialog::_lastpath
private

Definition at line 123 of file selectorsdialog.h.

◆ _mColumns

◆ _modelfilter

Glib::RefPtr<Gtk::TreeModelFilter> Inkscape::UI::Dialog::SelectorsDialog::_modelfilter
private

Definition at line 120 of file selectorsdialog.h.

◆ _objObserver

Inkscape::XML::SignalObserver Inkscape::UI::Dialog::SelectorsDialog::_objObserver
private

Definition at line 176 of file selectorsdialog.h.

◆ _paned

Gtk::Paned Inkscape::UI::Dialog::SelectorsDialog::_paned
private

Definition at line 126 of file selectorsdialog.h.

Referenced by _showWidgets(), and _toggleDirection().

◆ _scrolled_window_selectors

Gtk::ScrolledWindow Inkscape::UI::Dialog::SelectorsDialog::_scrolled_window_selectors
private

Definition at line 130 of file selectorsdialog.h.

Referenced by _showWidgets().

◆ _scrollock

bool Inkscape::UI::Dialog::SelectorsDialog::_scrollock {false}
private

Definition at line 167 of file selectorsdialog.h.

Referenced by _nodeChanged(), _readStyleElement(), and _vscroll().

◆ _scrollpos

double Inkscape::UI::Dialog::SelectorsDialog::_scrollpos {0.0}
private

Definition at line 166 of file selectorsdialog.h.

Referenced by _vscroll(), and SelectorsDialog().

◆ _selectors_box

Gtk::Box Inkscape::UI::Dialog::SelectorsDialog::_selectors_box
private

Definition at line 129 of file selectorsdialog.h.

Referenced by _showWidgets().

◆ _store

Glib::RefPtr<TreeStore> Inkscape::UI::Dialog::SelectorsDialog::_store
private

Definition at line 121 of file selectorsdialog.h.

Referenced by _insertSyntacticElement(), _readStyleElement(), and SelectorsDialog().

◆ _style_dialog

StyleDialog* Inkscape::UI::Dialog::SelectorsDialog::_style_dialog
private

Definition at line 125 of file selectorsdialog.h.

Referenced by _showWidgets().

◆ _textNode

Inkscape::XML::Node* Inkscape::UI::Dialog::SelectorsDialog::_textNode {nullptr}
private

Definition at line 170 of file selectorsdialog.h.

Referenced by _getStyleTextNode(), and _nodeRemoved().

◆ _treeView

Gtk::TreeView Inkscape::UI::Dialog::SelectorsDialog::_treeView
private

Definition at line 122 of file selectorsdialog.h.

Referenced by _showWidgets(), and SelectorsDialog().

◆ _updating

bool Inkscape::UI::Dialog::SelectorsDialog::_updating {false}
private

Definition at line 168 of file selectorsdialog.h.

Referenced by _readStyleElement(), _showWidgets(), and SelectorsDialog().

◆ _vadj

Glib::RefPtr<Gtk::Adjustment> Inkscape::UI::Dialog::SelectorsDialog::_vadj
private

Definition at line 127 of file selectorsdialog.h.

Referenced by _showWidgets(), _vscroll(), and SelectorsDialog().

◆ m_nodewatcher

std::unique_ptr<Inkscape::XML::NodeObserver> Inkscape::UI::Dialog::SelectorsDialog::m_nodewatcher
private

Definition at line 149 of file selectorsdialog.h.

Referenced by SelectorsDialog().

◆ m_root

Inkscape::XML::Node* Inkscape::UI::Dialog::SelectorsDialog::m_root {nullptr}
private

Definition at line 169 of file selectorsdialog.h.

Referenced by _getStyleTextNode().

◆ m_styletextwatcher

std::unique_ptr<Inkscape::XML::NodeObserver> Inkscape::UI::Dialog::SelectorsDialog::m_styletextwatcher
private

Definition at line 150 of file selectorsdialog.h.

Referenced by _getStyleTextNode(), and SelectorsDialog().


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