LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
IDNDTab Class Referenceabstract

Interface for tabs supporting Drag'n'Drop on tab level. More...

#include "idndtab.h"

Public Member Functions

virtual ~IDNDTab ()
 
virtual void FillMimeData (QMimeData *data)=0
 Called when this tab starts being dragged. More...
 
virtual void HandleDragEnter (QDragMoveEvent *event)=0
 Called when something is being dragged over this tab. More...
 
virtual void HandleDrop (QDropEvent *event)=0
 Called when something is dropped over this tab. More...
 

Detailed Description

Interface for tabs supporting Drag'n'Drop on tab level.

Tabs (implementing ITabWidget) that support Drag'n'Drop on tab level, like dragging one tab to another, can implement this interface. For example, a Poshuku tab can fill a DnD object with current page URL and its snapshot upon drag start.

See also
ITabWidget

Definition at line 26 of file idndtab.h.

Constructor & Destructor Documentation

◆ ~IDNDTab()

virtual IDNDTab::~IDNDTab ( )
inlinevirtual

Definition at line 29 of file idndtab.h.

Member Function Documentation

◆ FillMimeData()

virtual void IDNDTab::FillMimeData ( QMimeData *  data)
pure virtual

Called when this tab starts being dragged.

The implementation should fill the data with the information relevant to the current page, like a web page URL.

Parameters
[out]dataThe QMimeData object to fill.

◆ HandleDragEnter()

virtual void IDNDTab::HandleDragEnter ( QDragMoveEvent *  event)
pure virtual

Called when something is being dragged over this tab.

This function is called by the LeechCraft Core when a drag operation is in progress and the mouse cursor enters the tab corresponding to this widget in the tab bar. The implementation may call QDragMoveEvent::acceptProposedEvent() on the event or ignore it.

This function is somewhat similar to QWidget::dragEnterEvent() or QWidget::dragMoveEvent().

Parameters
[in,out]eventThe object describing the DnD operation.

◆ HandleDrop()

virtual void IDNDTab::HandleDrop ( QDropEvent *  event)
pure virtual

Called when something is dropped over this tab.

This function is called by the LeechCraft Core when a drag operation is in progress and the drag is dropped on the corresponding tab.

This function is somewhat similar to QWidget::dropEvent().

Parameters
[in]eventThe object describing the DnD operation.

The documentation for this class was generated from the following file: