Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
pqTabbedMultiViewWidget::pqTabWidget Class Reference

Internal class used as the TabWidget. More...

#include <pqTabbedMultiViewWidget.h>

Inherits QTabWidget.

Public Member Functions

 pqTabWidget (QWidget *parentWdg=nullptr)
 
 ~pqTabWidget () override
 
virtual void setTabButton (int index, QTabBar::ButtonPosition position, QWidget *wdg)
 Set a button to use on the tab bar. More...
 
virtual int tabButtonIndex (QWidget *wdg, QTabBar::ButtonPosition position) const
 Given the QWidget pointer that points to the buttons (popout or close) in the tabbar, this returns the index of that that the button corresponds to. More...
 
virtual int addAsTab (pqMultiViewWidget *wdg, pqTabbedMultiViewWidget *self)
 Add a pqTabbedMultiViewWidget instance as a new tab. More...
 
void setReadOnly (bool val)
 When true the widget disable changes to the tabs i.e adding/removing tabs by user interaction. More...
 
bool readOnly () const
 
QSize preview (const QSize &)
 Enter/exit preview mode. More...
 
void setTabBarVisibility (bool)
 Get/Set tab bar visibility. More...
 
bool tabBarVisibility () const
 Get/Set tab bar visibility. More...
 

Static Public Member Functions

static QString popoutLabelText (bool popped_out)
 Returns the label/tooltip to use for the popout button given the popped_out state. More...
 
static QStyle::StandardPixmap popoutLabelPixmap (bool popped_out)
 Returns the icon to use for the popout button given the popped_out state. More...
 

Protected Member Functions

void createViewSelectorTabIfNeeded (int tabIndex)
 

Friends

class pqTabbedMultiViewWidget
 

Detailed Description

Internal class used as the TabWidget.

Definition at line 213 of file pqTabbedMultiViewWidget.h.

Constructor & Destructor Documentation

◆ pqTabWidget()

pqTabbedMultiViewWidget::pqTabWidget::pqTabWidget ( QWidget *  parentWdg = nullptr)

◆ ~pqTabWidget()

pqTabbedMultiViewWidget::pqTabWidget::~pqTabWidget ( )
override

Member Function Documentation

◆ setTabButton()

virtual void pqTabbedMultiViewWidget::pqTabWidget::setTabButton ( int  index,
QTabBar::ButtonPosition  position,
QWidget *  wdg 
)
virtual

Set a button to use on the tab bar.

◆ tabButtonIndex()

virtual int pqTabbedMultiViewWidget::pqTabWidget::tabButtonIndex ( QWidget *  wdg,
QTabBar::ButtonPosition  position 
) const
virtual

Given the QWidget pointer that points to the buttons (popout or close) in the tabbar, this returns the index of that that the button corresponds to.

◆ addAsTab()

virtual int pqTabbedMultiViewWidget::pqTabWidget::addAsTab ( pqMultiViewWidget wdg,
pqTabbedMultiViewWidget self 
)
virtual

Add a pqTabbedMultiViewWidget instance as a new tab.

This will setup the appropriate tab-bar for this new tab (with 2 buttons for popout and close).

◆ popoutLabelText()

static QString pqTabbedMultiViewWidget::pqTabWidget::popoutLabelText ( bool  popped_out)
static

Returns the label/tooltip to use for the popout button given the popped_out state.

◆ popoutLabelPixmap()

static QStyle::StandardPixmap pqTabbedMultiViewWidget::pqTabWidget::popoutLabelPixmap ( bool  popped_out)
static

Returns the icon to use for the popout button given the popped_out state.

◆ setReadOnly()

void pqTabbedMultiViewWidget::pqTabWidget::setReadOnly ( bool  val)

When true the widget disable changes to the tabs i.e adding/removing tabs by user interaction.

◆ readOnly()

bool pqTabbedMultiViewWidget::pqTabWidget::readOnly ( ) const
inline

Definition at line 258 of file pqTabbedMultiViewWidget.h.

◆ preview()

QSize pqTabbedMultiViewWidget::pqTabWidget::preview ( const QSize &  )

Enter/exit preview mode.

◆ setTabBarVisibility()

void pqTabbedMultiViewWidget::pqTabWidget::setTabBarVisibility ( bool  )

Get/Set tab bar visibility.

Use this instead of directly calling this->tabBar()->setVisible() as that avoid interactions with preview mode.

◆ tabBarVisibility()

bool pqTabbedMultiViewWidget::pqTabWidget::tabBarVisibility ( ) const
inline

Get/Set tab bar visibility.

Use this instead of directly calling this->tabBar()->setVisible() as that avoid interactions with preview mode.

Definition at line 272 of file pqTabbedMultiViewWidget.h.

◆ createViewSelectorTabIfNeeded()

void pqTabbedMultiViewWidget::pqTabWidget::createViewSelectorTabIfNeeded ( int  tabIndex)
protected

Friends And Related Function Documentation

◆ pqTabbedMultiViewWidget

friend class pqTabbedMultiViewWidget
friend

Definition at line 281 of file pqTabbedMultiViewWidget.h.


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