2007-03-11 00:56:43 +00:00
|
|
|
/***************************************************************************
|
2007-03-11 09:15:08 +00:00
|
|
|
* Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at> *
|
2007-03-11 00:56:43 +00:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the *
|
|
|
|
* Free Software Foundation, Inc., *
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SIDEBARTREEVIEW_H
|
|
|
|
#define SIDEBARTREEVIEW_H
|
|
|
|
|
2007-03-11 09:15:08 +00:00
|
|
|
#include <kurl.h>
|
2007-05-09 22:23:52 +00:00
|
|
|
#include <QtGui/QTreeView>
|
2007-03-11 00:56:43 +00:00
|
|
|
|
|
|
|
/**
|
2007-03-11 09:15:08 +00:00
|
|
|
* @brief Tree view widget which is used for the sidebar panel.
|
|
|
|
*
|
|
|
|
* @see TreeViewSidebarPage
|
2007-03-11 00:56:43 +00:00
|
|
|
*/
|
|
|
|
class SidebarTreeView : public QTreeView
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2007-03-25 06:44:28 +00:00
|
|
|
explicit SidebarTreeView(QWidget* parent = 0);
|
2007-03-11 00:56:43 +00:00
|
|
|
virtual ~SidebarTreeView();
|
|
|
|
|
2007-03-11 09:15:08 +00:00
|
|
|
signals:
|
2007-04-09 19:12:54 +00:00
|
|
|
/**
|
|
|
|
* Is emitted if the URLs \a urls have been dropped to
|
|
|
|
* the index \a index.
|
|
|
|
*/
|
2007-03-11 09:15:08 +00:00
|
|
|
void urlsDropped(const KUrl::List& urls,
|
2007-03-11 11:13:07 +00:00
|
|
|
const QModelIndex& index);
|
2007-03-11 09:15:08 +00:00
|
|
|
|
2007-03-11 00:56:43 +00:00
|
|
|
protected:
|
|
|
|
virtual bool event(QEvent* event);
|
|
|
|
virtual void dragEnterEvent(QDragEnterEvent* event);
|
|
|
|
virtual void dropEvent(QDropEvent* event);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|