##// END OF EJS Templates
Modification of the testCosinusAcquisition to test with 2Millions point...
Modification of the testCosinusAcquisition to test with 2Millions point instead of 20 millions that could make failed tests on windows and on a debug mode

File last commit:

r1064:1b1ede101ec5
r1109:03df095ebc87
Show More
VisualizationDragDropContainer.h
61 lines | 2.0 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>
Fix some glitches which occurred when dragging in the visualization something from the sides.
r886 #include <QFrame>
drop of variables in the visualization
r852 #include <QLoggingCategory>
Format changes
r847 #include <QMimeData>
#include <QVBoxLayout>
New visualization classes for the drag&drop
r841
drop of variables in the visualization
r852 #include <functional>
Moves the DragDropHelper file
r890 #include <DragAndDrop/DragDropHelper.h>
Add an empty area at the bottom of the tab where a new zone can be created from a drop. Differentiate graph and zone placeHolders.
r887
drop of variables in the visualization
r852 Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer)
New visualization classes for the drag&drop
r841 class VisualizationDragWidget;
Fix some glitches which occurred when dragging in the visualization something from the sides.
r886 class VisualizationDragDropContainer : public QFrame {
New visualization classes for the drag&drop
r841 Q_OBJECT
signals:
drop of variable inside an existing graph
r881 void dropOccuredInContainer(int dropIndex, const QMimeData *mimeData);
void dropOccuredOnWidget(VisualizationDragWidget *dragWidget, const QMimeData *mimeData);
New visualization classes for the drag&drop
r841
public:
drop of zone on the time widget
r977 enum class DropBehavior { Inserted, Merged, InsertedAndMerged, Forbidden };
drop of variables in the visualization
r852 using AcceptMimeDataFunction = std::function<bool(const QMimeData *mimeData)>;
Alexandre Leroux
Handle the previous prohibition for drag and drop
r1064 using AcceptDragWidgetFunction
= std::function<bool(const VisualizationDragWidget *dragWidget, const QMimeData *mimeData)>;
drop of variables in the visualization
r852
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
drop of zone on the time widget
r977 void setMimeType(const QString &mimeType, DropBehavior behavior);
New visualization classes for the drag&drop
r841
int countDragWidget() const;
drop of variables in the visualization
r852 void setAcceptMimeDataFunction(AcceptMimeDataFunction fun);
Alexandre Leroux
Handle the previous prohibition for drag and drop
r1064 void setAcceptDragWidgetFunction(AcceptDragWidgetFunction fun);
Add an empty area at the bottom of the tab where a new zone can be created from a drop. Differentiate graph and zone placeHolders.
r887 void setPlaceHolderType(DragDropHelper::PlaceHolderType type,
const QString &placeHolderText = QString());
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