Project

General

Profile

Actions

Feature #512

closed

Persistent pinned status

Added by 0xd34df00d almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Core
Target version:
Start date:
11/29/2011
Due date:
% Done:

100%

Estimated time:
7:00 h

Description

Since I've implemented stubs for global Session Manager in LeechCraft, it's now possible to save the state of pinned tabs.

Tabs that support saving state now implement the IRecoverableTab interface (defined in interfaces/ihaverecoverabletabs.h). Data that identifies the tab could be obtained via the IRecoverableTab::GetTabRecoverData() method. One could hook to the IRecoverableTab::tabRecoverDataChanged() signal to keep in sync the association between recover data and the corresponding widget in the UI.
Later, when tabs are restored on next startup, the IHaveRecoverableTabs::tabRecovered(const QByteArray&, QWidget*) signal is emitted, so one could use it to restore any additional state of the tab.

I also suggest moving Pinned feature out of the Core to a plugin, since it becomes too big for that.

Actions

Also available in: Atom PDF