Commit 436f57a2 authored by Jabier Arraiza's avatar Jabier Arraiza

Fixes on selector dialog based in LGM input

parent 85f5be05
This diff is collapsed.
......@@ -59,13 +59,18 @@ public:
// Monitor all objects for addition/removal/attribute change
class NodeWatcher;
enum SelectorType {
CLASS,
ID,
TAG
};
void fixCSSSelectors(Glib::ustring &selector);
std::vector<SelectorDialog::NodeWatcher*> _nodeWatchers;
void _nodeAdded( Inkscape::XML::Node &repr );
void _nodeRemoved( Inkscape::XML::Node &repr );
void _nodeChanged( Inkscape::XML::Node &repr );
// Data structure
enum coltype { OBJECT, SELECTOR, UNHANDLED };
enum coltype { OBJECT, SELECTOR};
class ModelColumns : public Gtk::TreeModel::ColumnRecord {
public:
ModelColumns() {
......@@ -133,8 +138,12 @@ public:
Glib::ustring _getIdList(std::vector<SPObject *>);
std::vector<SPObject *> _getObjVec(Glib::ustring selector);
void _insertClass(const std::vector<SPObject *>& objVec, const Glib::ustring& className);
void _selectObjects(int, int);
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 _selectObjects(int, int);
// Variables
bool _updating; // Prevent cyclic actions: read <-> write, select via dialog <-> via desktop
Inkscape::XML::Node *_textNode; // Track so we know when to add a NodeObserver.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment