|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <DropWidget.h>
Classes | |
| class | StandardWidget |
Public Types | |
| using | Dropped = std::function< void(void)> |
Public Member Functions | |
| DropRegion (QObject *parent, QWidget *widget, const Dropped &dropped=Dropped()) | |
| DropRegion (QObject *parent, const QString &title, const QString &description, const QString &iconName="file-import", const bool &dropAllowed=true, const Dropped &dropped=Dropped()) | |
| QWidget * | getWidget () const |
| void | drop () |
Protected Attributes | |
| QWidget * | _widget |
| const Dropped | _dropped |
Drop region class
This class represents a drop region (a region where mime data can be dropped) It has a visual representation widget and a callback function dropped when dropping takes place
| using hdps::gui::DropWidget::DropRegion::Dropped = std::function<void(void)> |
Callback function when mime data is dropped
| hdps::gui::DropWidget::DropRegion::DropRegion | ( | QObject * | parent, |
| QWidget * | widget, | ||
| const Dropped & | dropped = Dropped() |
||
| ) |
Constructs a drop region object with a custom widget
| parent | Parent widget to enable drag and drop behavior for |
| widget | Widget for the visual representation of the region |
| iconName | Name of the icon |
| dropped | Callback function when mime data is dropped |
| hdps::gui::DropWidget::DropRegion::DropRegion | ( | QObject * | parent, |
| const QString & | title, | ||
| const QString & | description, | ||
| const QString & | iconName = "file-import", |
||
| const bool & | dropAllowed = true, |
||
| const Dropped & | dropped = Dropped() |
||
| ) |
Constructs a drop region object with a standard widget
| parent | Parent widget to enable drag and drop behavior for |
| title | Title of the drop region |
| description | Description of the drop region |
| iconName | Name of the icon |
| dropAllowed | Whether dropping is allowed in the region |
| dropped | Callback function when mime data is dropped |
| void hdps::gui::DropWidget::DropRegion::drop | ( | ) |
Initiate the dropping process
| QWidget * hdps::gui::DropWidget::DropRegion::getWidget | ( | ) | const |
Get visual representation of the region
|
protected |
visual representation of the region
|
protected |