40 #ifndef YQPkgFilterTab_h
41 #define YQPkgFilterTab_h
107 void addPage(
const QString & pageLabel,
108 QWidget * pageContent,
109 const QString & internalName );
152 virtual bool eventFilter ( QObject * watchedObj, QEvent * event );
170 void showPage(
const QString & internalName );
252 ImplPtr<YQPkgFilterTabPrivate> priv;
264 const QString & internalName )
268 , closeEnabled(
true )
280 #endif // YQPkgFilterTab_h
QWidget * rightPane() const
Return the right pane.
virtual ~YQPkgFilterTab()
Destructor.
virtual bool eventFilter(QObject *watchedObj, QEvent *event)
Event filter to catch mouse right clicks on open tabs for the tab context menu.
void contextMovePageLeft()
Move the current tab page (from the context menu) one position to the left.
void contextClosePage()
Close the current tab page (from the context menu).
void showPage(QWidget *page)
Show a page.
YQPkgFilterTab(QWidget *parent, const QString &settingsName)
Constructor.
YQPkgDiskUsageList * diskUsageList() const
Return the disk usage list widget or 0 if there is none.
void addPage(const QString &pageLabel, QWidget *pageContent, const QString &internalName)
Add a page with a user-visible "pageLabel", a widget with the page content and an internal name (or I...
Helper class for filter pages.
void closeCurrentPage()
Close the current page unless this is the last visible page.
List of disk usage of all attached partitions.
void closeAllPages()
Close all currently open pages.
void swapTabs(YQPkgFilterPage *page1, YQPkgFilterPage *page2)
Swap two tabs and adjust their tab indices accordingly.
bool postTabContextMenu(const QPoint &pos)
Open the tab context menu for the tab at the specified position.
int tabCount() const
Return the number of open tabs.
void saveSettings()
Save the current settings, including which tabs are currently open and in which order.
void currentChanged(QWidget *newPageContent)
Emitted when the current page changes.
void contextMovePageRight()
Move the current tab page (from the context menu) one position to the right.
void loadSettings()
Load settings, including which tabs are to be opened and in which order.
Widget for "tabbed browsing" in packages:
YQPkgFilterPage * findPage(QWidget *pageContent)
Find a filter page by its content widget (the widget that was passed to addPage() ).