24 #include "variableInstanceList.rcd" 25 #include "variableInstanceList.xcd" 33 VariableInstanceList::VariableInstanceList(): model(*
minsky().model) {}
41 if (
const auto* v=(*i)->variableCast())
44 if (
auto controller=v->controller.lock())
45 bookmarks.emplace_back(this->model.x()-controller->left()+50, this->model.
y()-controller->top()+50, controller->zoomFactor(),
48 bookmarks.emplace_back(this->model.
x()-v->left()+50, this->model.
y()-v->top()+50, v->zoomFactor(),
void gotoInstance(std::size_t)
zoom model to instance number in the list
CLASSDESC_ACCESS_EXPLICIT_INSTANTIATION(minsky::VariableInstanceList)
string valueId(const string &name)
construct a valueId from fully qualified name @ name should not be canonicalised
bool recursiveDo(M GroupItems::*map, O op) const
Perform action heirarchically on elements of map map. If op returns true, the operation terminates...
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
std::vector< ItemPtr > Items
void gotoBookmark_b(const Bookmark &b)
std::vector< ItemPtr > items
void ensureItemInserted(const ItemPtr &item)
check if item already present, and if not, inserts item delegates to ensureGroupInserted if passed a ...
virtual void resetScroll()
reset main window scroll bars after model has been panned
std::vector< Bookmark > bookmarks
string to_string(CONST84 char *x)
Minsky & minsky()
global minsky object