##// END OF EJS Templates
Handles rendering of plottables (1)...
Handles rendering of plottables (1) As for the axes properties, we create a helper used to set rendering properties of the plottables depending on the type of the data series used to create these plottables. Rendering properties will be, for example: - the color of each component for a scalar or a vector - the color scale management for a spectrogram

File last commit:

r879:5662e2f354c4
r918:8264fa4b2aa2
Show More
VisualizationDragWidget.h
30 lines | 882 B | text/x-c | CLexer
#ifndef SCIQLOP_VISUALIZATIONDRAGWIDGET_H
#define SCIQLOP_VISUALIZATIONDRAGWIDGET_H
#include <Common/spimpl.h>
#include <QMimeData>
#include <QWidget>
class VisualizationDragWidget : public QWidget {
Q_OBJECT
public:
VisualizationDragWidget(QWidget *parent = nullptr);
virtual QMimeData *mimeData() const = 0;
virtual bool isDragAllowed() const = 0;
virtual void highlightForMerge(bool highlighted) { Q_UNUSED(highlighted); };
protected:
virtual void mousePressEvent(QMouseEvent *event) override;
virtual void mouseMoveEvent(QMouseEvent *event) override;
private:
class VisualizationDragWidgetPrivate;
spimpl::unique_impl_ptr<VisualizationDragWidgetPrivate> impl;
signals:
void dragDetected(VisualizationDragWidget *dragWidget, const QPoint &dragPosition);
};
#endif // SCIQLOP_VISUALIZATIONDRAGWIDGET_H