Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::CollapsibleGroupBoxWidgetQt Class Reference
+ Inheritance diagram for inviwo::CollapsibleGroupBoxWidgetQt:

Public Member Functions

 CollapsibleGroupBoxWidgetQt (CompositeProperty *property, bool isCheckable=false)
 
 CollapsibleGroupBoxWidgetQt (Processor *property, bool isCheckable=false)
 
 CollapsibleGroupBoxWidgetQt (Settings *property, bool isCheckable=false)
 
 CollapsibleGroupBoxWidgetQt (Property *property, PropertyOwner *owner, const std::string &displayName="", bool isCheckable=false)
 
virtual std::string getDisplayName () const
 
virtual void setDisplayName (const std::string &displayName)
 
void addProperty (Property *tmpProperty)
 
const std::vector< Property * > & getProperties () const
 
const std::vector< PropertyWidgetQt * > & getPropertyWidgets () const
 
PropertyWidgetQtwidgetForProperty (Property *) const
 
PropertypropertyForWidget (PropertyWidgetQt *) const
 
void setPropertyOwner (PropertyOwner *propertyOwner)
 
PropertyOwnergetPropertyOwner () const
 
void setShowIfEmpty (bool val)
 
virtual bool isCollapsed () const
 
virtual bool isChecked () const
 
bool isCheckable () const
 
void setCheckable (bool checkable)
 
void setCheckBoxText (std::string_view text)
 
void setCheckBoxVisible (bool visible)
 
void setCheckBoxReadonly (bool readonly)
 
virtual bool isChildRemovable () const
 
virtual QSize sizeHint () const override
 
virtual QSize minimumSizeHint () const override
 
virtual void setReadOnly (bool readonly) override
 
void toggleCollapsed ()
 
virtual std::unique_ptr< QMenu > getContextMenu () override
 
std::unique_ptr< QMimeData > getPropertyOwnerMimeData () const
 
- Public Member Functions inherited from inviwo::PropertyWidgetQt
 PropertyWidgetQt (Property *property=nullptr)
 
virtual void initState ()
 
void setSpacingAndMargins (QLayout *layout)
 
virtual void onChildVisibilityChange (PropertyWidgetQt *child)
 
void setNestedDepth (int depth)
 
int getNestedDepth () const
 
PropertyWidgetQtgetParentPropertyWidget () const
 
void setParentPropertyWidget (PropertyWidgetQt *parent)
 
virtual std::unique_ptr< QMimeData > getPropertyMimeData () const
 
- Public Member Functions inherited from inviwo::PropertyWidget
 PropertyWidget (Property *property)
 
 PropertyWidget (const PropertyWidget &)
 
 PropertyWidget (PropertyWidget &&)
 
PropertyWidgetoperator= (const PropertyWidget &)
 
PropertyWidgetoperator= (PropertyWidget &&)
 
virtual ~PropertyWidget ()
 
virtual PropertyEditorWidgetgetEditorWidget () const
 
virtual bool hasEditorWidget () const
 
virtual PropertygetProperty ()
 
- Public Member Functions inherited from inviwo::PropertyObserver
virtual void onSetIdentifier (Property *property, const std::string &identifier)
 
virtual void onSetDisplayName (Property *property, const std::string &displayName)
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 
- Public Member Functions inherited from inviwo::PropertyOwnerObserver
virtual void onWillAddProperty (PropertyOwner *owner, Property *property, size_t index)
 
virtual void onDidRemoveProperty (PropertyOwner *owner, Property *property, size_t index)
 

Protected Member Functions

virtual void updateFromProperty () override
 
virtual void onDidAddProperty (Property *property, size_t index) override
 
virtual void onWillRemoveProperty (Property *property, size_t index) override
 
virtual void onSetSemantics (Property *property, const PropertySemantics &semantics) override
 
virtual void onSetReadOnly (Property *property, bool readonly) override
 
virtual void onSetVisible (Property *property, bool visible) override
 
virtual void setVisible (bool visible) override
 
virtual void setCollapsed (bool value)
 
virtual void setChecked (bool checked)
 
void setEmptyLabelString (const std::string &str)
 set the text which is shown if there are no sub-properties and showIfEmpty is true
 
void addButtonLayout (QGridLayout *layout, int row, Property *prop)
 
void insertProperty (Property *prop, size_t index)
 
void insertPropertyWidget (PropertyWidgetQt *propertyWidget, bool insertAtEnd)
 
virtual void updateFocusPolicy ()
 
- Protected Member Functions inherited from inviwo::PropertyWidgetQt
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual bool event (QEvent *event) override
 
virtual void paintEvent (QPaintEvent *pe) override
 
int getSpacing () const
 Assigned on mousePressEvent.
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Static Protected Member Functions

static std::unique_ptr< QWidget > createPropertyLayoutWidget (QLabel *defaultLabel)
 

Protected Attributes

std::string displayName_
 
bool checked_
 
std::vector< Property * > properties_
 
std::vector< PropertyWidgetQt * > propertyWidgets_
 
std::vector< std::unique_ptr< PropertyWidgetQt > > oldWidgets_
 
EditableLabelQtlabel_
 
QToolButton * resetButton_
 
- Protected Attributes inherited from inviwo::PropertyWidgetQt
QPoint mousePressedPosition_
 
- Protected Attributes inherited from inviwo::PropertyWidget
Propertyproperty_ = nullptr
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Additional Inherited Members

- Public Types inherited from inviwo::PropertyWidgetQt
using BaseCallBack = std::function<void()>
 
- Static Public Member Functions inherited from inviwo::PropertyWidgetQt
static void setSpacingAndMargins (QWidget *w, QLayout *layout)
 
- Public Attributes inherited from inviwo::PropertyOwnerObserver
friend PropertyOwnerObservable
 
- Static Public Attributes inherited from inviwo::PropertyWidgetQt
static const double minimumWidthEm
 
static const double spacingEm
 
static const double marginEm
 
static const int minimumWidth
 
static const int spacing
 
static const int margin
 

Member Function Documentation

◆ getContextMenu()

virtual std::unique_ptr< QMenu > inviwo::CollapsibleGroupBoxWidgetQt::getContextMenu ( )
overridevirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ minimumSizeHint()

virtual QSize inviwo::CollapsibleGroupBoxWidgetQt::minimumSizeHint ( ) const
overridevirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ onDidAddProperty()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::onDidAddProperty ( Property * property,
size_t index )
overrideprotectedvirtual

Reimplemented from inviwo::PropertyOwnerObserver.

◆ onSetReadOnly()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::onSetReadOnly ( Property * property,
bool readonly )
overrideprotectedvirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ onSetSemantics()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::onSetSemantics ( Property * property,
const PropertySemantics & semantics )
overrideprotectedvirtual

Reimplemented from inviwo::PropertyObserver.

◆ onSetVisible()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::onSetVisible ( Property * property,
bool visible )
overrideprotectedvirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ onWillRemoveProperty()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::onWillRemoveProperty ( Property * property,
size_t index )
overrideprotectedvirtual

Reimplemented from inviwo::PropertyOwnerObserver.

◆ setEmptyLabelString()

void inviwo::CollapsibleGroupBoxWidgetQt::setEmptyLabelString ( const std::string & str)
protected

set the text which is shown if there are no sub-properties and showIfEmpty is true

Parameters
strtext to indicate that there are no sub-properties
See also
setShowIfEmpty

◆ setReadOnly()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::setReadOnly ( bool readonly)
overridevirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ setVisible()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::setVisible ( bool visible)
overrideprotectedvirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ sizeHint()

virtual QSize inviwo::CollapsibleGroupBoxWidgetQt::sizeHint ( ) const
overridevirtual

Reimplemented from inviwo::PropertyWidgetQt.

◆ updateFromProperty()

virtual void inviwo::CollapsibleGroupBoxWidgetQt::updateFromProperty ( )
overrideprotectedvirtual

Implement this function to update the widget after the property has been modified.

Implements inviwo::PropertyWidget.

Reimplemented in inviwo::BoolCompositePropertyWidgetQt, and inviwo::ListPropertyWidgetQt.


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