LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
idndtab.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QtPlugin>
12
13class QDropEvent;
14class QDragMoveEvent;
15class QMimeData;
16
26class Q_DECL_EXPORT IDNDTab
27{
28public:
29 virtual ~IDNDTab () {}
30
38 virtual void FillMimeData (QMimeData *data) = 0;
39
53 virtual void HandleDragEnter (QDragMoveEvent *event) = 0;
54
65 virtual void HandleDrop (QDropEvent *event) = 0;
66};
67
68Q_DECLARE_INTERFACE (IDNDTab, "org.Deviant.LeechCraft.IDNDTab/1.0")
Interface for tabs supporting Drag'n'Drop on tab level.
Definition idndtab.h:27
virtual void FillMimeData(QMimeData *data)=0
Called when this tab starts being dragged.
virtual ~IDNDTab()
Definition idndtab.h:29
virtual void HandleDrop(QDropEvent *event)=0
Called when something is dropped over this tab.
virtual void HandleDragEnter(QDragMoveEvent *event)=0
Called when something is being dragged over this tab.