##// END OF EJS Templates
Merge branch 'feature/SpectrogramSeries' into develop
Merge branch 'feature/SpectrogramSeries' into develop

File last commit:

r850:2e038915a77e
r867:73c43e70e278 merge
Show More
VisualizationDragDropContainer.h
51 lines | 1.5 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationDragDropContainer.h
Fixes for review
r846 #ifndef SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H
#define SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H
New visualization classes for the drag&drop
r838
#include <Common/spimpl.h>
drop of variables in the visualization
r850 #include <QLoggingCategory>
Format changes
r844 #include <QMimeData>
#include <QVBoxLayout>
#include <QWidget>
New visualization classes for the drag&drop
r838
drop of variables in the visualization
r850 #include <functional>
Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer)
New visualization classes for the drag&drop
r838 class VisualizationDragWidget;
Format changes
r844 class VisualizationDragDropContainer : public QWidget {
New visualization classes for the drag&drop
r838 Q_OBJECT
signals:
Format changes
r844 void dropOccured(int dropIndex, const QMimeData *mimeData);
New visualization classes for the drag&drop
r838
public:
drop of variables in the visualization
r850 using AcceptMimeDataFunction = std::function<bool(const QMimeData *mimeData)>;
Format changes
r844 VisualizationDragDropContainer(QWidget *parent = nullptr);
New visualization classes for the drag&drop
r838
Format changes
r844 void addDragWidget(VisualizationDragWidget *dragWidget);
void insertDragWidget(int index, VisualizationDragWidget *dragWidget);
New visualization classes for the drag&drop
r838
Format changes
r844 void setAcceptedMimeTypes(const QStringList &mimeTypes);
void setMergeAllowedMimeTypes(const QStringList &mimeTypes);
New visualization classes for the drag&drop
r838
int countDragWidget() const;
drop of variables in the visualization
r850 void setAcceptMimeDataFunction(AcceptMimeDataFunction fun);
New visualization classes for the drag&drop
r838 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
r844 void startDrag(VisualizationDragWidget *dragWidget, const QPoint &dragPosition);
New visualization classes for the drag&drop
r838 };
Fixes for review
r846 #endif // SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H