Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
pqOutputPortComboBox Class Reference

pqOutputPortComboBox is a combo-box that shows all outputports for all sources/filters. More...

#include <pqOutputPortComboBox.h>

Inherits QComboBox.

Public Slots

void setCurrentPort (pqOutputPort *port)
 Sets the current index to be the one representing the indicated port. More...
 

Signals

void currentIndexChanged (pqOutputPort *)
 Fired when the current index changes. More...
 

Public Member Functions

 pqOutputPortComboBox (QWidget *parent=nullptr)
 
 ~pqOutputPortComboBox () override
 
void setAutoUpdateIndex (bool val)
 Enable/Disable changing of the combo-box selected index based on the active source/port. More...
 
bool autoUpdateIndex () const
 
void addCustomEntry (const QString &label, pqOutputPort *port)
 Makes is possible to add custom items to the combo-box. More...
 
pqOutputPortcurrentPort () const
 Returns the currently selected output port. More...
 
void fillExistingPorts ()
 May be called once after creation to initialize the widget with already existing sources. More...
 

Protected Attributes

bool AutoUpdateIndex
 

Detailed Description

pqOutputPortComboBox is a combo-box that shows all outputports for all sources/filters.

Definition at line 18 of file pqOutputPortComboBox.h.

Constructor & Destructor Documentation

◆ pqOutputPortComboBox()

pqOutputPortComboBox::pqOutputPortComboBox ( QWidget *  parent = nullptr)

◆ ~pqOutputPortComboBox()

pqOutputPortComboBox::~pqOutputPortComboBox ( )
override

Member Function Documentation

◆ setAutoUpdateIndex()

void pqOutputPortComboBox::setAutoUpdateIndex ( bool  val)
inline

Enable/Disable changing of the combo-box selected index based on the active source/port.

Default is true i.e. enabled.

Definition at line 31 of file pqOutputPortComboBox.h.

◆ autoUpdateIndex()

bool pqOutputPortComboBox::autoUpdateIndex ( ) const
inline

Definition at line 32 of file pqOutputPortComboBox.h.

◆ addCustomEntry()

void pqOutputPortComboBox::addCustomEntry ( const QString &  label,
pqOutputPort port 
)

Makes is possible to add custom items to the combo-box.

port can be nullptr.

◆ currentPort()

pqOutputPort* pqOutputPortComboBox::currentPort ( ) const

Returns the currently selected output port.

◆ fillExistingPorts()

void pqOutputPortComboBox::fillExistingPorts ( )

May be called once after creation to initialize the widget with already existing sources.

◆ setCurrentPort

void pqOutputPortComboBox::setCurrentPort ( pqOutputPort port)
slot

Sets the current index to be the one representing the indicated port.

◆ currentIndexChanged

void pqOutputPortComboBox::currentIndexChanged ( pqOutputPort )
signal

Fired when the current index changes.

Member Data Documentation

◆ AutoUpdateIndex

bool pqOutputPortComboBox::AutoUpdateIndex
protected

Definition at line 92 of file pqOutputPortComboBox.h.


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