##// END OF EJS Templates
Wait for the end of an acquisition to validate an operation (2)...
Wait for the end of an acquisition to validate an operation (2) Creates signal in VariableController emitted when there is no pending acquisition

File last commit:

r1075:029fbf916457
r1214:feac825a443e
Show More
DragDropGuiController.h
75 lines | 2.6 KiB | text/x-c | CLexer
/ gui / include / DragAndDrop / DragDropGuiController.h
Rename "DragDropHelper" in "DragDropGuiController"
r1075 #ifndef SCIQLOP_DRAGDROPGUICONTROLLER_H
#define SCIQLOP_DRAGDROPGUICONTROLLER_H
New helper class for the drag&drop
r837
#include <Common/spimpl.h>
drop of variables in the visualization
r850 #include <QLoggingCategory>
New helper class for the drag&drop
r837 #include <QWidget>
class QVBoxLayout;
class QScrollArea;
New event filter class to manage the tab switching of a tabBar during a drag&drop
r886 class QTabBar;
New helper class for the drag&drop
r837 class VisualizationDragWidget;
drop of variables in the visualization
r850 class VisualizationDragDropContainer;
New helper class for the drag&drop
r837 class QMimeData;
Rename "DragDropHelper" in "DragDropGuiController"
r1075 Q_DECLARE_LOGGING_CATEGORY(LOG_DragDropGuiController)
Manage the scroll of the tab QScrollArea during a drag&drop operation
r840
New helper class for the drag&drop
r837 /**
* @brief Helper class for drag&drop operations.
drop of variables in the visualization
r850 * @note The helper is accessible from the sqpApp singleton and has the same life as the whole
* application (like a controller). But contrary to a controller, it doesn't live in a thread and
* can interect with the gui.
* @see SqpApplication
New helper class for the drag&drop
r837 */
Rename "DragDropHelper" in "DragDropGuiController"
r1075 class DragDropGuiController {
New helper class for the drag&drop
r837 public:
static const QString MIME_TYPE_GRAPH;
static const QString MIME_TYPE_ZONE;
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.
r881 enum class PlaceHolderType { Default, Graph, Zone };
Rename "DragDropHelper" in "DragDropGuiController"
r1075 DragDropGuiController();
virtual ~DragDropGuiController();
Format changes
r844
drop of variables in the visualization
r850 /// Resets some internal variables. Must be called before any new drag&drop operation.
void resetDragAndDrop();
/// Sets the visualization widget currently being drag on the visualization.
Format changes
r844 void setCurrentDragWidget(VisualizationDragWidget *dragWidget);
drop of variables in the visualization
r850
/// Returns the visualization widget currently being drag on the visualization.
/// Can be null if a new visualization widget is intended to be created by the drag&drop
/// operation.
Format changes
r844 VisualizationDragWidget *getCurrentDragWidget() const;
New helper class for the drag&drop
r837
QWidget &placeHolder() const;
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.
r881 void insertPlaceHolder(QVBoxLayout *layout, int index, PlaceHolderType type,
const QString &topLabelText);
New helper class for the drag&drop
r837 void removePlaceHolder();
bool isPlaceHolderSet() const;
drop of variables in the visualization
r850 /// Checks if the specified mime data is valid for a drop in the visualization
bool checkMimeDataForVisualization(const QMimeData *mimeData,
VisualizationDragDropContainer *dropContainer);
Format changes
r844 void addDragDropScrollArea(QScrollArea *scrollArea);
void removeDragDropScrollArea(QScrollArea *scrollArea);
New helper class for the drag&drop
r837
New event filter class to manage the tab switching of a tabBar during a drag&drop
r886 void addDragDropTabBar(QTabBar *tabBar);
void removeDragDropTabBar(QTabBar *tabBar);
Format changes
r844 QUrl imageTemporaryUrl(const QImage &image) const;
New helper class for the drag&drop
r837
Improves visual effect of dropping a variable in a graph
r873 void setHightlightedDragWidget(VisualizationDragWidget *dragWidget);
drop of variable inside an existing graph
r875 VisualizationDragWidget *getHightlightedDragWidget() const;
Improves visual effect of dropping a variable in a graph
r873
Thibaud Rabillard
Fix for D&D bug on mac
r911 /// Delays the closing of a widget during a drag&drop operation
void delayedCloseWidget(QWidget *widget);
void doCloseWidgets();
New helper class for the drag&drop
r837 private:
Rename "DragDropHelper" in "DragDropGuiController"
r1075 class DragDropGuiControllerPrivate;
spimpl::unique_impl_ptr<DragDropGuiControllerPrivate> impl;
New helper class for the drag&drop
r837 };
Rename "DragDropHelper" in "DragDropGuiController"
r1075 #endif // SCIQLOP_DRAGDROPGUICONTROLLER_H