Falkon Develop
Cross-platform Qt-based web browser
WebTab Class Reference

#include <webtab.h>

Inheritance diagram for WebTab:

Classes

struct  SavedTab
 

Public Types

enum  AddChildBehavior { AppendChild = 0 , PrependChild }
 

Signals

void titleChanged (const QString &title)
 
void iconChanged (const QIcon &icon)
 
void pinnedChanged (bool pinned)
 
void restoredChanged (bool restored)
 
void currentTabChanged (bool current)
 
void loadingChanged (bool loading)
 
void mutedChanged (bool muted)
 
void playingChanged (bool playing)
 
void backgroundActivityChanged (bool activity)
 
void parentTabChanged (WebTab *tab)
 
void childTabAdded (WebTab *tab, int index)
 
void childTabRemoved (WebTab *tab, int index)
 

Public Member Functions

 WebTab (QWidget *parent=nullptr)
 
BrowserWindowbrowserWindow () const
 
TabbedWebViewwebView () const
 
LocationBarlocationBar () const
 
TabIcontabIcon () const
 
WebTabparentTab () const
 
void setParentTab (WebTab *tab)
 
void addChildTab (WebTab *tab, int index=-1)
 
QVector< WebTab * > childTabs () const
 
QHash< QString, QVariant > sessionData () const
 
void setSessionData (const QString &key, const QVariant &value)
 
QUrl url () const
 
QString title (bool allowEmpty=false) const
 
QIcon icon (bool allowNull=false) const
 
QWebEngineHistory * history () const
 
int zoomLevel () const
 
void setZoomLevel (int level)
 
void detach ()
 
void attach (BrowserWindow *window)
 
QByteArray historyData () const
 
void stop ()
 
void reload ()
 
void load (const LoadRequest &request)
 
void unload ()
 
bool isLoading () const
 
bool isPinned () const
 
void setPinned (bool state)
 
void togglePinned ()
 
bool isMuted () const
 
bool isPlaying () const
 
void setMuted (bool muted)
 
void toggleMuted ()
 
bool backgroundActivity () const
 
int tabIndex () const
 
bool isCurrentTab () const
 
void makeCurrentTab ()
 
void closeTab ()
 
void moveTab (int to)
 
bool haveInspector () const
 
void showWebInspector (bool inspectElement=false)
 
void toggleWebInspector ()
 
void showSearchToolBar (const QString &searchText=QString())
 
bool isRestored () const
 
void restoreTab (const SavedTab &tab)
 
void p_restoreTab (const SavedTab &tab)
 
void p_restoreTab (const QUrl &url, const QByteArray &history, int zoomLevel)
 
void tabActivated ()
 

Static Public Member Functions

static AddChildBehavior addChildBehavior ()
 
static void setAddChildBehavior (AddChildBehavior behavior)
 

Detailed Description

Definition at line 39 of file webtab.h.

Member Enumeration Documentation

◆ AddChildBehavior

Enumerator
AppendChild 
PrependChild 

Definition at line 64 of file webtab.h.

Constructor & Destructor Documentation

◆ WebTab()

WebTab::WebTab ( QWidget *  parent = nullptr)
explicit

Definition at line 135 of file webtab.cpp.

Member Function Documentation

◆ addChildBehavior()

WebTab::AddChildBehavior WebTab::addChildBehavior ( )
static

Definition at line 649 of file webtab.cpp.

◆ addChildTab()

void WebTab::addChildTab ( WebTab tab,
int  index = -1 
)

Definition at line 502 of file webtab.cpp.

◆ attach()

void WebTab::attach ( BrowserWindow window)

Definition at line 345 of file webtab.cpp.

◆ backgroundActivity()

bool WebTab::backgroundActivity ( ) const

Definition at line 454 of file webtab.cpp.

◆ backgroundActivityChanged

void WebTab::backgroundActivityChanged ( bool  activity)
signal

◆ browserWindow()

BrowserWindow * WebTab::browserWindow ( ) const

Definition at line 204 of file webtab.cpp.

◆ childTabAdded

void WebTab::childTabAdded ( WebTab tab,
int  index 
)
signal

◆ childTabRemoved

void WebTab::childTabRemoved ( WebTab tab,
int  index 
)
signal

◆ childTabs()

QVector< WebTab * > WebTab::childTabs ( ) const

Definition at line 533 of file webtab.cpp.

◆ closeTab()

void WebTab::closeTab ( )

Definition at line 696 of file webtab.cpp.

◆ currentTabChanged

void WebTab::currentTabChanged ( bool  current)
signal

◆ detach()

void WebTab::detach ( )

Definition at line 314 of file webtab.cpp.

◆ haveInspector()

bool WebTab::haveInspector ( ) const

Definition at line 214 of file webtab.cpp.

◆ history()

QWebEngineHistory * WebTab::history ( ) const

Definition at line 299 of file webtab.cpp.

◆ historyData()

QByteArray WebTab::historyData ( ) const

Definition at line 368 of file webtab.cpp.

◆ icon()

QIcon WebTab::icon ( bool  allowNull = false) const

Definition at line 286 of file webtab.cpp.

◆ iconChanged

void WebTab::iconChanged ( const QIcon &  icon)
signal

◆ isCurrentTab()

bool WebTab::isCurrentTab ( ) const

Definition at line 684 of file webtab.cpp.

◆ isLoading()

bool WebTab::isLoading ( ) const

Definition at line 409 of file webtab.cpp.

◆ isMuted()

bool WebTab::isMuted ( ) const

Definition at line 433 of file webtab.cpp.

◆ isPinned()

bool WebTab::isPinned ( ) const

Definition at line 414 of file webtab.cpp.

◆ isPlaying()

bool WebTab::isPlaying ( ) const

Definition at line 438 of file webtab.cpp.

◆ isRestored()

bool WebTab::isRestored ( ) const

Definition at line 548 of file webtab.cpp.

◆ load()

void WebTab::load ( const LoadRequest request)

Definition at line 391 of file webtab.cpp.

◆ loadingChanged

void WebTab::loadingChanged ( bool  loading)
signal

◆ locationBar()

LocationBar * WebTab::locationBar ( ) const

Definition at line 459 of file webtab.cpp.

◆ makeCurrentTab()

void WebTab::makeCurrentTab ( )

Definition at line 689 of file webtab.cpp.

◆ moveTab()

void WebTab::moveTab ( int  to)

Definition at line 703 of file webtab.cpp.

◆ mutedChanged

void WebTab::mutedChanged ( bool  muted)
signal

◆ p_restoreTab() [1/2]

void WebTab::p_restoreTab ( const QUrl &  url,
const QByteArray &  history,
int  zoomLevel 
)

Definition at line 578 of file webtab.cpp.

◆ p_restoreTab() [2/2]

void WebTab::p_restoreTab ( const SavedTab tab)

Definition at line 597 of file webtab.cpp.

◆ parentTab()

WebTab * WebTab::parentTab ( ) const

Definition at line 469 of file webtab.cpp.

◆ parentTabChanged

void WebTab::parentTabChanged ( WebTab tab)
signal

◆ pinnedChanged

void WebTab::pinnedChanged ( bool  pinned)
signal

◆ playingChanged

void WebTab::playingChanged ( bool  playing)
signal

◆ reload()

void WebTab::reload ( )

Definition at line 386 of file webtab.cpp.

◆ restoredChanged

void WebTab::restoredChanged ( bool  restored)
signal

◆ restoreTab()

void WebTab::restoreTab ( const SavedTab tab)

Definition at line 553 of file webtab.cpp.

◆ sessionData()

QHash< QString, QVariant > WebTab::sessionData ( ) const

Definition at line 538 of file webtab.cpp.

◆ setAddChildBehavior()

void WebTab::setAddChildBehavior ( AddChildBehavior  behavior)
static

Definition at line 655 of file webtab.cpp.

◆ setMuted()

void WebTab::setMuted ( bool  muted)

Definition at line 443 of file webtab.cpp.

◆ setParentTab()

void WebTab::setParentTab ( WebTab tab)

Definition at line 474 of file webtab.cpp.

◆ setPinned()

void WebTab::setPinned ( bool  state)

Definition at line 419 of file webtab.cpp.

◆ setSessionData()

void WebTab::setSessionData ( const QString &  key,
const QVariant &  value 
)

Definition at line 543 of file webtab.cpp.

◆ setZoomLevel()

void WebTab::setZoomLevel ( int  level)

Definition at line 309 of file webtab.cpp.

◆ showSearchToolBar()

void WebTab::showSearchToolBar ( const QString &  searchText = QString())

Definition at line 242 of file webtab.cpp.

◆ showWebInspector()

void WebTab::showWebInspector ( bool  inspectElement = false)

Definition at line 219 of file webtab.cpp.

◆ stop()

void WebTab::stop ( )

Definition at line 381 of file webtab.cpp.

◆ tabActivated()

void WebTab::tabActivated ( )

Definition at line 630 of file webtab.cpp.

◆ tabIcon()

TabIcon * WebTab::tabIcon ( ) const

Definition at line 464 of file webtab.cpp.

◆ tabIndex()

int WebTab::tabIndex ( ) const

Definition at line 710 of file webtab.cpp.

◆ title()

QString WebTab::title ( bool  allowEmpty = false) const

Definition at line 276 of file webtab.cpp.

◆ titleChanged

void WebTab::titleChanged ( const QString &  title)
signal

◆ toggleMuted()

void WebTab::toggleMuted ( )

Definition at line 448 of file webtab.cpp.

◆ togglePinned()

void WebTab::togglePinned ( )

Definition at line 715 of file webtab.cpp.

◆ toggleWebInspector()

void WebTab::toggleWebInspector ( )

Definition at line 234 of file webtab.cpp.

◆ unload()

void WebTab::unload ( )

Definition at line 401 of file webtab.cpp.

◆ url()

QUrl WebTab::url ( ) const

Definition at line 263 of file webtab.cpp.

◆ webView()

TabbedWebView * WebTab::webView ( ) const

Definition at line 209 of file webtab.cpp.

◆ zoomLevel()

int WebTab::zoomLevel ( ) const

Definition at line 304 of file webtab.cpp.


The documentation for this class was generated from the following files: