From 3df12cd87674fdfbc2afa21584e1f3e558fa873b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 13 Apr 2013 15:00:04 -0500 Subject: Add menu items to rearrange taskbar entries Make taskbar drag and drop moving more robust This resolves Bug 1103 --- kicker/taskbar/taskcontainer.h | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'kicker/taskbar/taskcontainer.h') diff --git a/kicker/taskbar/taskcontainer.h b/kicker/taskbar/taskcontainer.h index 857cd6c45..edaf337b4 100644 --- a/kicker/taskbar/taskcontainer.h +++ b/kicker/taskbar/taskcontainer.h @@ -127,22 +127,28 @@ protected slots: void taskChanged(bool geometryChangeOnly); void showMe(); + void slotTaskMoveBeginning(); + void slotTaskMoveLeft(); + void slotTaskMoveRight(); + void slotTaskMoveEnd(); + private: void checkAttention(const Task::Ptr changed_task = NULL); - TQString sid; - TQTimer animationTimer; - TQTimer dragSwitchTimer; - TQTimer attentionTimer; - TQTimer m_paintEventCompressionTimer; + TQPopupMenu* makeTaskMoveMenu(); + TQString sid; + TQTimer animationTimer; + TQTimer dragSwitchTimer; + TQTimer attentionTimer; + TQTimer m_paintEventCompressionTimer; int currentFrame; PixmapList frames; int attentionState; - TQRect iconRect; - TQPixmap animBg; + TQRect iconRect; + TQPixmap animBg; Task::List tasks; Task::List m_filteredTasks; Task::Ptr lastActivated; - TQPopupMenu* m_menu; + TQPopupMenu* m_menu; Startup::Ptr m_startup; ArrowType arrowType; TaskBar* taskBar; -- cgit v1.2.1