summaryrefslogtreecommitdiffstats
path: root/src/part/radialMap/segmentTip.h
blob: 8bc479ec2b7abd9abfa2d698dc98159c808412f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Author: Max Howell <max.howell@methylblue.com>, (C) 2004
// Copyright: See COPYING file that comes with this distribution

#ifndef SEGMENTTIP_H
#define SEGMENTTIP_H

#include <kpixmap.h>
#include <qwidget.h>

class File;
class Directory;

namespace RadialMap
{
    class SegmentTip : public QWidget
    {
    public:
        SegmentTip( uint );

        void updateTip( const File*, const Directory* );
        void moveTo( QPoint, const QWidget&, bool );

    private:
        virtual bool eventFilter( QObject*, QEvent* );
        virtual bool event( QEvent* );

        uint    m_cursorHeight;
        KPixmap m_pixmap;
        QString m_text;
        bool    m_backing_store;
    };
}

#endif