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 void contextMovePageRight()
Move the current tab page (from the context menu) one position to the right.
bool postTabContextMenu(const QPoint &pos)
Open the tab context menu for the tab at the specified position.
void showPage(QWidget *page)
Show a page.
void saveSettings()
Save the current settings, including which tabs are currently open and in which order.
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...
virtual ~YQPkgFilterTab()
Destructor.
YQPkgFilterTab(QWidget *parent, const QString &settingsName)
Constructor.
Widget for "tabbed browsing" in packages:
void swapTabs(YQPkgFilterPage *page1, YQPkgFilterPage *page2)
Swap two tabs and adjust their tab indices accordingly.
YQPkgDiskUsageList * diskUsageList() const
Return the disk usage list widget or 0 if there is none.
QWidget * rightPane() const
Return the right pane.
void closeAllPages()
Close all currently open pages.
void currentChanged(QWidget *newPageContent)
Emitted when the current page changes.
void loadSettings()
Load settings, including which tabs are to be opened and in which order.
virtual bool eventFilter(QObject *watchedObj, QEvent *event)
Event filter to catch mouse right clicks on open tabs for the tab context menu.
int tabCount() const
Return the number of open tabs.
Helper class for filter pages.
YQPkgFilterPage * findPage(QWidget *pageContent)
Find a filter page by its content widget (the widget that was passed to addPage() )...
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 closeCurrentPage()
Close the current page unless this is the last visible page.
List of disk usage of all attached partitions.