8 Selection::~Selection()
12 void Selection::setMapCenter(MapCenterObj *mco)
17 void Selection::copy(const Selection &other)
19 mapCenter=other.mapCenter;
20 selectList=other.selectList;
23 void Selection::clear()
28 bool Selection::select(LinkableMapObj *lmo)
31 selectList.append (lmo);
35 bool Selection::select (const QString &s)
37 LinkableMapObj *lmo=mapCenter->findObjBySelect(s);
39 // Finally select the found object
50 void Selection::unselect()
55 bool Selection::isEmpty()
57 return selectList.isEmpty();
60 uint Selection::count()
62 return selectList.count();
65 QString Selection::getSelectString()
67 // TODO multiselection (maybe separated by ";")
68 if (selectList.count()==1)
69 return selectList.first()->getSelectString();