summaryrefslogtreecommitdiff
path: root/src/tabbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabbar.h')
-rw-r--r--src/tabbar.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/tabbar.h b/src/tabbar.h
index b505f78b..d0d9d3e6 100644
--- a/src/tabbar.h
+++ b/src/tabbar.h
@@ -37,8 +37,13 @@
// KDE Includes
#include <KTabBar>
+//Qt Includes
+#include <QSignalMapper>
+
// Forward Declarations
class KPassivePopup;
+class TabHighlightEffect;
+class QPropertyAnimation;
/**
@@ -54,6 +59,10 @@ public:
explicit TabBar(QWidget *parent);
virtual ~TabBar() {}
+ void setTabHighlighted(int index);
+ void resetTabHighlighted(int index);
+ QRect tabTextRect(int index);
+
signals:
void cloneTab(int index);
void closeTab(int index);
@@ -74,7 +83,7 @@ protected:
virtual void leaveEvent(QEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
- virtual void tabRemoved(int);
+ virtual void tabRemoved(int index);
private slots:
void cloneTab();
@@ -88,6 +97,8 @@ private slots:
void showTabPreview();
+ void removeAnimation(int index);
+
private:
void setupHistoryActions();
friend class MainView;
@@ -104,6 +115,11 @@ private:
*/
int m_currentTabPreviewIndex;
bool m_isFirstTimeOnTab;
+
+ //highlightAnimation
+ TabHighlightEffect *m_tabHighlightEffect;
+ QHash<QByteArray, QPropertyAnimation*> m_highlightAnimation;
+ QSignalMapper *m_animationMapper;
};
#endif