35 SchemaContainerItem::SchemaContainerItem(
SchemaItem *parent, QString label,
Subject* subject)
38 DEBTRACE(
"SchemaContainerItem::SchemaContainerItem " << subject->
getName());
56 DEBTRACE(
"ADDCHILDREF " <<
ref->getReference()->getName());
67 DEBTRACE(
"REMOVECHILDREF " <<
ref->getReference()->getName());
70 int position = toRemove->
row();
71 model->beginRemoveRows(
modelIndex(), position, position);
73 model->endRemoveRows();
86 int position = toMove->
row();
87 model->beginRemoveRows(
modelIndex(), position, position);
89 model->endRemoveRows();
99 DEBTRACE(
"PASTE " <<
ref->getReference()->getName());
103 model->beginInsertRows(
modelIndex(), nbsons, nbsons);
105 model->endInsertRows();
117 DEBTRACE(
"SchemaContainersItem::addComponentInstance");
120 model->beginInsertRows(
modelIndex(), nbsons, nbsons);
124 model->endInsertRows();
130 m.popupMenu(caller, globalPos);
135 return "<p>To edit the container properties, select the container and use the input panel. <a href=\"modification.html#property-page-for-container\">More...</a></p>";
#define YASSERT(val)
YASSERT macro is always defined, used like assert, but throw a YACS::Exception instead of abort.
static std::string eventName(GuiEvent event)
std::map< YACS::HMI::Subject *, YACS::HMI::SchemaItem * > _mapOfSchemaItem
YACS::HMI::SchemaModel * getSchemaModel()
static QtGuiContext * getQtCurrent()
virtual void update(GuiEvent event, int type, Subject *son)
void addComponentInstance(Subject *subject)
void popupMenu(QWidget *caller, const QPoint &globalPos)
virtual QVariant editionWhatsThis(int column) const
virtual Subject * getSubject()
QModelIndex modelIndex(int column=0)
QList< QVariant > _itemDeco
virtual void update(GuiEvent event, int type, Subject *son)
virtual void reparent(SchemaItem *parent)
virtual void removeChild(SchemaItem *child)
virtual int childCount() const
virtual std::string getName()
def ref(target, callback=None)