15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_ILAYERVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_ILAYERVIEW_H
33 virtual QString
getLabel()
const {
return ""; }
38 QVariant
itemChange(GraphicsItemChange change,
const QVariant& value);
Defines class ConnectableView.
view of ISampleNode's with rectangular shape and node functionality
Base class for LayerView and MultiLayerView Provides functionality for moving view on top of MultiLay...
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Detects movement of the ILayerView and sends possible drop areas to GraphicsScene for visualization.
ILayerView(QGraphicsItem *parent=0)
QPointF m_drag_start_position
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Detects possible MultiLayerView's to drop given ILayerView and propagate request to SessionModel.
MultiLayerCandidate getMultiLayerCandidate()
Finds candidate (another MultiLayer) into which we will move our ILayerView.
virtual QString getLabel() const
void update_appearance()
updates visual appearance of the item (color, icons, size etc)
void onPropertyChange(const QString &propertyName)
Propagates change of 'Thickness' dynamic property to screen thickness of ILayerView.
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Class to hold MultiLayer candidate for dropping LayerView.
bool operator<(const MultiLayerCandidate &cmp) const
QLineF getInterfaceToScene()
returns line representing interface of multilayer in scene coordinates
int row
requested row number to drop in
MultiLayerView * multilayer
pointer to the candidate
int distance
distance from given ILayerView and drop area
Class representing view of MultiLayer.