BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Mime data for use with SampleDesigner drag and drop operations. More...
Public Member Functions | |
DesignerMimeData (const QString &name, const QString &xmldescr, QDrag *drag) | |
virtual | ~DesignerMimeData () |
QString | getClassName () const |
Static Public Member Functions | |
static Qt::DropAction | execDrag (const QString &name, const QString &xmldescr, QWidget *dragSource) |
Execute a drag and drop operation. More... | |
Private Member Functions | |
QPixmap | getPixmap (const QString &name) |
void | read_widget (QXmlStreamReader &reader) |
void | read_xmldescr (const QString &xmldescr) |
Private Attributes | |
QString | m_classname |
QString | m_entryname |
QString | m_xmldescr |
Mime data for use with SampleDesigner drag and drop operations.
Definition at line 24 of file DesignerMimeData.h.
DesignerMimeData::DesignerMimeData | ( | const QString & | name, |
const QString & | xmldescr, | ||
QDrag * | drag | ||
) |
Definition at line 31 of file DesignerMimeData.cpp.
References getPixmap(), m_classname, m_xmldescr, and read_xmldescr().
Referenced by execDrag().
|
inlinevirtual |
Definition at line 28 of file DesignerMimeData.h.
|
static |
Execute a drag and drop operation.
Definition at line 91 of file DesignerMimeData.cpp.
References DesignerMimeData(), and RealSpace::Particles::name().
Referenced by qdesigner_internal::WidgetBox::handleMousePress().
|
inline |
Definition at line 34 of file DesignerMimeData.h.
References m_classname.
Referenced by MultiLayerView::checkDragEvent(), DesignerScene::dropEvent(), MultiLayerView::dropEvent(), and DesignerScene::isAcceptedByMultiLayer().
|
private |
Definition at line 106 of file DesignerMimeData.cpp.
References DesignerHelper::getMimePixmap(), and RealSpace::Particles::name().
Referenced by DesignerMimeData().
|
private |
Definition at line 77 of file DesignerMimeData.cpp.
References m_classname, and RealSpace::Particles::name().
Referenced by read_xmldescr().
|
private |
Definition at line 47 of file DesignerMimeData.cpp.
References m_entryname, RealSpace::Particles::name(), QStringLiteral, and read_widget().
Referenced by DesignerMimeData().
|
private |
Definition at line 44 of file DesignerMimeData.h.
Referenced by DesignerMimeData(), getClassName(), and read_widget().
|
private |
Definition at line 42 of file DesignerMimeData.h.
Referenced by read_xmldescr().
|
private |
Definition at line 43 of file DesignerMimeData.h.
Referenced by DesignerMimeData().