Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | List of all members
pqFontPropertyWidget Class Reference

pqFontPropertyWidget is a pqPropertyWidget that can be used to set properties relating to fonts. More...

#include <pqFontPropertyWidget.h>

Inheritance diagram for pqFontPropertyWidget:
Inheritance graph
[legend]
Collaboration diagram for pqFontPropertyWidget:
Collaboration graph
[legend]

Signals

void horizontalJustificationChanged (QString &)
 
void verticalJustificationChanged (QString &)
 
- Signals inherited from pqPropertyWidget
void viewChanged (pqView *view)
 This signal is emitted when the current view changes. More...
 
void changeAvailable ()
 This signal is fired as soon as the user starts editing in the widget. More...
 
void changeFinished ()
 This signal is fired as soon as the user is done with making an atomic change. More...
 
void restartRequired ()
 Indicates that a restart of the program is required for the setting to take effect. More...
 

Public Member Functions

 pqFontPropertyWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *smgroup, QWidget *parent=nullptr)
 
 ~pqFontPropertyWidget () override
 
QString HorizontalJustification () const
 
QString VerticalJustification () const
 
- Public Member Functions inherited from pqPropertyGroupWidget
 pqPropertyGroupWidget (vtkSMProxy *proxy, vtkSMPropertyGroup *smGroup, QWidget *parent=nullptr)
 
vtkSMPropertyGrouppropertyGroup () const
 
void addPropertyLink (QComboBox *cb, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QLineEdit *edit, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QCheckBox *button, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QToolButton *button, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QGroupBox *groupBox, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QDoubleSpinBox *spinBox, const char *propertyName, int smindex=-1)
 
void addPropertyLink (QSpinBox *spinBox, const char *propertyName, int smindex=-1)
 
void addPropertyLink (pqColorChooserButton *color, const char *propertyName, int smindex=-1)
 
void addPropertyLink (pqDoubleSliderWidget *slider, const char *propertyName, int smindex=-1)
 
char * panelVisibility () const override
 Overwrite pqPropertyWidget to forward calls to vtkSMPropertyGroup. More...
 
void setPanelVisibility (const char *vis) override
 
- Public Member Functions inherited from pqPropertyWidget
 pqPropertyWidget (vtkSMProxy *proxy, QWidget *parent=nullptr)
 
 ~pqPropertyWidget () override
 
virtual void apply ()
 
virtual void reset ()
 
virtual void updateWidget (bool showing_advanced_properties)
 
pqViewview () const
 
vtkSMProxyproxy () const
 
vtkSMPropertyproperty () const
 
virtual bool isSingleRowItem () const
 Determines if the PropertyWidget must be constructed using a single row. More...
 
bool showLabel () const
 
const QList< QPointer< pqPropertyWidgetDecorator > > & decorators () const
 Provides access to the decorators for this widget. More...
 
void setProperty (vtkSMProperty *property)
 
virtual void select ()
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
virtual void selectPort (int portIndex)
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
virtual void deselect ()
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 
bool isSelected () const
 These methods are called by pqPropertiesPanel when the panel for proxy becomes active/deactive. More...
 

Protected Slots

void changeHorizontalJustificationIcon (QAction *)
 
void changeVerticalJustificationIcon (QAction *)
 
void onFontFamilyChanged ()
 

Protected Member Functions

void setHorizontalJustification (QString &)
 
void setVerticalJustification (QString &)
 
void setupHorizontalJustificationButton ()
 
void setupVerticalJustificationButton ()
 
void UpdateToolButtonIcon (QString &str, QToolButton *justification)
 
QActionGroup * CreateFontActionGroup (QToolButton *justification)
 
- Protected Member Functions inherited from pqPropertyWidget
void addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1)
 
void addPropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
 
void removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProperty *smproperty, int smindex=-1)
 
void removePropertyLink (QObject *qobject, const char *qproperty, const char *qsignal, vtkSMProxy *smproxy, vtkSMProperty *smproperty, int smindex=-1)
 
void setShowLabel (bool show)
 
void setChangeAvailableAsChangeFinished (bool status)
 For most pqPropertyWidget subclasses a changeAvailable() signal, corresponds to a changeFinished() signal. More...
 
void addDecorator (pqPropertyWidgetDecorator *)
 Register a decorator. More...
 
void removeDecorator (pqPropertyWidgetDecorator *)
 Unregisters a decorator. More...
 
pqPropertyLinkslinks ()
 Provides access to the pqPropertyLinks instance. More...
 

Properties

QString HorizontalJustification
 
QString VerticalJustification
 

Additional Inherited Members

- Public Slots inherited from pqPropertyWidget
virtual void setView (pqView *)
 called to set the active view. More...
 
- Static Public Member Functions inherited from pqPropertyWidget
template<class T >
static QString getXMLName (T *object)
 Description: This static utility method returns the XML name for an object as a QString. More...
 
static QString getTooltip (vtkSMProperty *property)
 Returns the tooltip to use for the property. More...
 
static int hintsWidgetHeightNumberOfRows (vtkPVXMLElement *hints, int defaultValue=10)
 Helper method to return value from WidgetHeight XML hint, if any. More...
 

Detailed Description

pqFontPropertyWidget is a pqPropertyWidget that can be used to set properties relating to fonts.

The widget expects the property-group to have properties with functions set to "Color", "Opacity", "Family", "Size", "Bold", "Italics" and "Shadow". If any property is missing, the corresponding widget will be hidden.

Definition at line 48 of file pqFontPropertyWidget.h.

Constructor & Destructor Documentation

◆ pqFontPropertyWidget()

pqFontPropertyWidget::pqFontPropertyWidget ( vtkSMProxy proxy,
vtkSMPropertyGroup smgroup,
QWidget *  parent = nullptr 
)

◆ ~pqFontPropertyWidget()

pqFontPropertyWidget::~pqFontPropertyWidget ( )
override

Member Function Documentation

◆ HorizontalJustification()

QString pqFontPropertyWidget::HorizontalJustification ( ) const

◆ VerticalJustification()

QString pqFontPropertyWidget::VerticalJustification ( ) const

◆ horizontalJustificationChanged

void pqFontPropertyWidget::horizontalJustificationChanged ( QString &  )
signal

◆ verticalJustificationChanged

void pqFontPropertyWidget::verticalJustificationChanged ( QString &  )
signal

◆ setHorizontalJustification()

void pqFontPropertyWidget::setHorizontalJustification ( QString &  )
protected

◆ setVerticalJustification()

void pqFontPropertyWidget::setVerticalJustification ( QString &  )
protected

◆ setupHorizontalJustificationButton()

void pqFontPropertyWidget::setupHorizontalJustificationButton ( )
protected

◆ setupVerticalJustificationButton()

void pqFontPropertyWidget::setupVerticalJustificationButton ( )
protected

◆ UpdateToolButtonIcon()

void pqFontPropertyWidget::UpdateToolButtonIcon ( QString &  str,
QToolButton *  justification 
)
protected

◆ CreateFontActionGroup()

QActionGroup* pqFontPropertyWidget::CreateFontActionGroup ( QToolButton *  justification)
protected

◆ changeHorizontalJustificationIcon

void pqFontPropertyWidget::changeHorizontalJustificationIcon ( QAction *  )
protectedslot

◆ changeVerticalJustificationIcon

void pqFontPropertyWidget::changeVerticalJustificationIcon ( QAction *  )
protectedslot

◆ onFontFamilyChanged

void pqFontPropertyWidget::onFontFamilyChanged ( )
protectedslot

Property Documentation

◆ HorizontalJustification

QString pqFontPropertyWidget::HorizontalJustification
readwrite

Definition at line 52 of file pqFontPropertyWidget.h.

◆ VerticalJustification

QString pqFontPropertyWidget::VerticalJustification
readwrite

Definition at line 54 of file pqFontPropertyWidget.h.


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