From 6a291bc696903c508ecc55fbd2b4f227d4ef6eef Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 25 Jul 2012 10:08:59 +0200 Subject: Re-view and re-add tab highlight feature --- src/tabwindow/tabbar.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/tabwindow/tabbar.h') diff --git a/src/tabwindow/tabbar.h b/src/tabwindow/tabbar.h index 9de5fe0a..4cc437ac 100644 --- a/src/tabwindow/tabbar.h +++ b/src/tabwindow/tabbar.h @@ -25,6 +25,13 @@ // KDE Includes #include +#include + +// Forward Declarations +class TabHighlightEffect; + +class QSignalMapper; + class TabBar : public KTabBar { @@ -33,6 +40,9 @@ class TabBar : public KTabBar public: TabBar(QWidget *parent); + void setTabHighlighted(int index, bool b); + QRect tabTextRect(int index); + static const int genericTabNumber = 6; protected: @@ -56,6 +66,14 @@ private Q_SLOTS: void contextMenu(int, const QPoint &); void emptyAreaContextMenu(const QPoint &); + + void removeAnimation(int index); + +private: + // highlightAnimation + TabHighlightEffect *m_tabHighlightEffect; + QHash m_highlightAnimation; + QSignalMapper *m_animationMapper; }; #endif // TAB_BAR -- cgit v1.2.1