##// END OF EJS Templates
Visual display when dropping on top of a existing graph
Visual display when dropping on top of a existing graph

File last commit:

r852:2e038915a77e
r857:8c8decf98df7
Show More
VisualizationDragDropContainer.h
51 lines | 1.5 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationDragDropContainer.h
Fixes for review
r849 #ifndef SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H
#define SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H
New visualization classes for the drag&drop
r841
#include <Common/spimpl.h>
drop of variables in the visualization
r852 #include <QLoggingCategory>
Format changes
r847 #include <QMimeData>
#include <QVBoxLayout>
#include <QWidget>
New visualization classes for the drag&drop
r841
drop of variables in the visualization
r852 #include <functional>
Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer)
New visualization classes for the drag&drop
r841 class VisualizationDragWidget;
Format changes
r847 class VisualizationDragDropContainer : public QWidget {
New visualization classes for the drag&drop
r841 Q_OBJECT
signals:
Format changes
r847 void dropOccured(int dropIndex, const QMimeData *mimeData);
New visualization classes for the drag&drop
r841
public:
drop of variables in the visualization
r852 using AcceptMimeDataFunction = std::function<bool(const QMimeData *mimeData)>;
Format changes
r847 VisualizationDragDropContainer(QWidget *parent = nullptr);
New visualization classes for the drag&drop
r841
Format changes
r847 void addDragWidget(VisualizationDragWidget *dragWidget);
void insertDragWidget(int index, VisualizationDragWidget *dragWidget);
New visualization classes for the drag&drop
r841
Format changes
r847 void setAcceptedMimeTypes(const QStringList &mimeTypes);
void setMergeAllowedMimeTypes(const QStringList &mimeTypes);
New visualization classes for the drag&drop
r841
int countDragWidget() const;
drop of variables in the visualization
r852 void setAcceptMimeDataFunction(AcceptMimeDataFunction fun);
New visualization classes for the drag&drop
r841 protected:
void dragEnterEvent(QDragEnterEvent *event);
void dragLeaveEvent(QDragLeaveEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
void dropEvent(QDropEvent *event);
private:
class VisualizationDragDropContainerPrivate;
spimpl::unique_impl_ptr<VisualizationDragDropContainerPrivate> impl;
private slots:
Format changes
r847 void startDrag(VisualizationDragWidget *dragWidget, const QPoint &dragPosition);
New visualization classes for the drag&drop
r841 };
Fixes for review
r849 #endif // SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H