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

combo box domain observes the domain for a combo box and updates accordingly. More...

#include <pqComboBoxDomain.h>

Inherits QObject.

Public Slots

void domainChanged ()
 

Public Member Functions

 pqComboBoxDomain (QComboBox *p, vtkSMProperty *prop, vtkSMDomain *domain=nullptr)
 constructor requires a QComboBox, and the property with the domain to observe. More...
 
 ~pqComboBoxDomain () override
 
void forceDomainChanged ()
 
void addString (const QString &)
 Provides a mechanism to always add a set of strings to the combo box irrespective of what the domain tells us. More...
 
void insertString (int, const QString &)
 
void removeString (const QString &)
 
void removeAllStrings ()
 
vtkSMPropertygetProperty () const
 
vtkSMDomaingetDomain () const
 
const QStringList & getUserStrings () const
 

Protected Slots

virtual void internalDomainChanged ()
 

Protected Member Functions

void markForUpdate (bool mark)
 

Protected Attributes

pqInternal * Internal
 

Detailed Description

combo box domain observes the domain for a combo box and updates accordingly.

the list of values in the combo box is automatically updated when the domain changes

Definition at line 48 of file pqComboBoxDomain.h.

Constructor & Destructor Documentation

◆ pqComboBoxDomain()

pqComboBoxDomain::pqComboBoxDomain ( QComboBox *  p,
vtkSMProperty prop,
vtkSMDomain domain = nullptr 
)

constructor requires a QComboBox, and the property with the domain to observe.

optionally pass in a domain if a specific one needs to be watched

◆ ~pqComboBoxDomain()

pqComboBoxDomain::~pqComboBoxDomain ( )
override

Member Function Documentation

◆ forceDomainChanged()

void pqComboBoxDomain::forceDomainChanged ( )
inline

Definition at line 63 of file pqComboBoxDomain.h.

◆ addString()

void pqComboBoxDomain::addString ( const QString &  )

Provides a mechanism to always add a set of strings to the combo box irrespective of what the domain tells us.

◆ insertString()

void pqComboBoxDomain::insertString ( int  ,
const QString &   
)

◆ removeString()

void pqComboBoxDomain::removeString ( const QString &  )

◆ removeAllStrings()

void pqComboBoxDomain::removeAllStrings ( )

◆ getProperty()

vtkSMProperty* pqComboBoxDomain::getProperty ( ) const

◆ getDomain()

vtkSMDomain* pqComboBoxDomain::getDomain ( ) const

◆ getUserStrings()

const QStringList& pqComboBoxDomain::getUserStrings ( ) const

◆ domainChanged

void pqComboBoxDomain::domainChanged ( )
slot

◆ internalDomainChanged

virtual void pqComboBoxDomain::internalDomainChanged ( )
protectedvirtualslot

◆ markForUpdate()

void pqComboBoxDomain::markForUpdate ( bool  mark)
protected

Member Data Documentation

◆ Internal

pqInternal* pqComboBoxDomain::Internal
protected

Definition at line 86 of file pqComboBoxDomain.h.


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