Lines Matching defs:obj
129 * @param obj The object to watch
131 ObjectWatcher(ObjectsPanel* pnl, SPObject* obj) :
133 _obj(obj),
134 _repr(obj->getRepr()),
303 * @param obj Object which was changed (currently not used as the entire tree is recreated)
305 void ObjectsPanel::_objectsChanged(SPObject */*obj*/)
337 * @param obj Root object to add to the tree
340 void ObjectsPanel::_addObject(SPObject* obj, Gtk::TreeModel::Row* parentRow)
342 if ( _desktop && obj ) {
343 for ( SPObject *child = obj->children; child != NULL; child = child->next) {
369 if (SP_IS_GROUP(obj) && SP_GROUP(obj)->expanded())
391 * @param obj The item to update in the tree
394 void ObjectsPanel::_updateObject( SPObject *obj, bool recurse ) {
398 _store->foreach_iter( sigc::bind<SPObject*>(sigc::mem_fun(*this, &ObjectsPanel::_checkForUpdated), obj) );
402 for (SPObject * iter = obj->children; iter != NULL; iter = iter->next)
412 * @param obj Object to update
415 bool ObjectsPanel::_checkForUpdated(const Gtk::TreeIter& iter, SPObject* obj)
418 if ( obj == row[_model->_colObject] )
421 SPItem * item = SP_IS_ITEM(obj) ? SP_ITEM(obj) : 0;
422 SPGroup * group = SP_IS_GROUP(obj) ? SP_GROUP(obj) : 0;
424 row[_model->_colLabel] = obj->label() ? obj->label() : obj->getId();
1072 SPItem *obj = _dnd_source.back();
1075 if (obj != _dnd_target) {
1077 idvector.push_back(g_strdup(obj->getId()));
1078 obj->moveTo(_dnd_target, _dnd_into);
1087 SPObject *obj = _document->getObjectById(id);
1089 if (obj && SP_IS_ITEM(obj)) {
1090 SPItem *item = SP_ITEM(obj);
1295 for (SPObject* obj = _document->getRoot()->firstChild(); obj != NULL; obj = obj->next) {
1296 if (SP_IS_GROUP(obj)) {
1297 _setCollapsed(SP_GROUP(obj));