WQtTreeWidget.h 1.93 KB
Newer Older
wiebel's avatar
wiebel committed
1 2
//---------------------------------------------------------------------------
//
3
// Project: OpenWalnut ( http://www.openwalnut.org )
wiebel's avatar
wiebel committed
4
//
5 6
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
// For more information see http://www.openwalnut.org/copying
wiebel's avatar
wiebel committed
7
//
wiebel's avatar
wiebel committed
8
// This file is part of OpenWalnut.
wiebel's avatar
wiebel committed
9
//
wiebel's avatar
wiebel committed
10
// OpenWalnut is free software: you can redistribute it and/or modify
wiebel's avatar
wiebel committed
11 12 13 14
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
wiebel's avatar
wiebel committed
15
// OpenWalnut is distributed in the hope that it will be useful,
wiebel's avatar
wiebel committed
16 17 18 19 20
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
wiebel's avatar
wiebel committed
21
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
wiebel's avatar
wiebel committed
22
//
wiebel's avatar
wiebel committed
23 24
//---------------------------------------------------------------------------

25 26
#ifndef WQTTREEWIDGET_H
#define WQTTREEWIDGET_H
wiebel's avatar
wiebel committed
27

28
#include <QtGui/QTreeWidget>
wiebel's avatar
wiebel committed
29

30
/**
31
 * tree widget for the control panel
32
 */
33
class WQtTreeWidget  : public QTreeWidget
wiebel's avatar
wiebel committed
34
{
35 36
    Q_OBJECT

37
public:
38 39
    /**
     * default constructor
40
     * \param parent the parent widget of this widget, i.e. the widget that manages this widget
41
     */
42
    explicit WQtTreeWidget( QWidget* parent = 0 );
43 44 45 46

    /**
     * destructor
     */
47 48
    virtual ~WQtTreeWidget();

49 50 51 52 53 54
   /**
    * Deletes an entry from the tree
    * \param item The given item will be removed from the tree
    */
    void deleteItem( QTreeWidgetItem* item );

schurade's avatar
schurade committed
55 56 57 58
    /**
     * handles the drop event for a tree item
     * \param event
     */
59 60
    virtual void dropEvent( QDropEvent *event );

61 62
protected:
private:
63
signals:
64 65 66 67 68 69
    /**
     * Item was dropped
     *
     * \param event the event
     */
    void dragDrop( QDropEvent* event );
70
};
wiebel's avatar
wiebel committed
71

72
#endif  // WQTTREEWIDGET_H