Chris@190: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
Chris@190: 
Chris@190: /*
Chris@190:     Sonic Visualiser
Chris@190:     An audio file viewer and annotation editor.
Chris@190:     Centre for Digital Music, Queen Mary, University of London.
Chris@190:     This file copyright 2007 QMUL.
Chris@190:     
Chris@190:     This program is free software; you can redistribute it and/or
Chris@190:     modify it under the terms of the GNU General Public License as
Chris@190:     published by the Free Software Foundation; either version 2 of the
Chris@190:     License, or (at your option) any later version.  See the file
Chris@190:     COPYING included with this distribution for more information.
Chris@190: */
Chris@190: 
Chris@190: #ifndef _NOTIFYING_TAB_BAR_H_
Chris@190: #define _NOTIFYING_TAB_BAR_H_
Chris@190: 
Chris@190: #include <QTabBar>
Chris@190: 
Chris@190: class NotifyingTabBar : public QTabBar
Chris@190: {
Chris@190:     Q_OBJECT
Chris@190: 
Chris@190: public:
Chris@190:     NotifyingTabBar(QWidget *parent = 0);
Chris@190:     virtual ~NotifyingTabBar();
Chris@190:     
Chris@190: signals:
Chris@190:     void mouseEntered();
Chris@190:     void mouseLeft();
Chris@190:     void activeTabClicked();
Chris@190: 
Chris@190: protected:
Chris@190:     virtual void mousePressEvent(QMouseEvent *);
Chris@190:     virtual void enterEvent(QEvent *);
Chris@190:     virtual void leaveEvent(QEvent *);
Chris@190: };
Chris@190: 
Chris@190: #endif