Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::StringMultilinePropertyWidgetQt Class Reference

Property widget for string properties which shows the contents spread over multiple lines. The height of the text editor is adjusted based on the contents and given defaults (2 to 10 lines). Changes are committed when the focus changes or CTRL + Return or CTRL + Enter is pressed. More...

#include <modules/qtwidgets/properties/stringmultilinepropertywidgetqt.h>

+ Inheritance diagram for inviwo::StringMultilinePropertyWidgetQt:

Public Member Functions

void setPropertyValue ()
 
 StringMultilinePropertyWidgetQt (StringProperty *property)
 
void updateFromProperty ()
 
- Public Member Functions inherited from inviwo::PropertyWidgetQt
virtual std::unique_ptr< QMenu > getContextMenu ()
 
int getNestedDepth () const
 
PropertyWidgetQtgetParentPropertyWidget () const
 
virtual std::unique_ptr< QMimeData > getPropertyMimeData () const
 
virtual void initState ()
 
virtual QSize minimumSizeHint () const override
 
virtual void onChildVisibilityChange (PropertyWidgetQt *child)
 
 PropertyWidgetQt (Property *property=nullptr)
 
void setNestedDepth (int depth)
 
void setParentPropertyWidget (PropertyWidgetQt *parent)
 
virtual void setReadOnly (bool readonly)
 
void setSpacingAndMargins (QLayout *layout)
 
virtual QSize sizeHint () const override
 
- Public Member Functions inherited from inviwo::PropertyWidget
virtual PropertyEditorWidgetgetEditorWidget ()
 
virtual PropertygetProperty ()
 
virtual bool hasEditorWidget () const
 
PropertyWidgetoperator= (const PropertyWidget &)
 
PropertyWidgetoperator= (PropertyWidget &&)
 
 PropertyWidget (const PropertyWidget &)
 
 PropertyWidget (Property *property)
 
 PropertyWidget (PropertyWidget &&)
 
virtual ~PropertyWidget ()
 
- Public Member Functions inherited from inviwo::PropertyObserver
virtual void onSetDisplayName (Property *property, const std::string &displayName)
 
virtual void onSetIdentifier (Property *property, const std::string &identifier)
 
virtual void onSetSemantics (Property *property, const PropertySemantics &semantics)
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (const Observer &other)
 
Observeroperator= (Observer &&other)
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 
virtual ~Observer ()
 

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)
 
- Static Public Attributes inherited from inviwo::PropertyWidgetQt
static const int margin
 
static const double marginEm
 
static const int minimumWidth
 
static const double minimumWidthEm
 
static const int spacing
 
static const double spacingEm
 
- Protected Member Functions inherited from inviwo::PropertyWidgetQt
virtual bool event (QEvent *event) override
 
int getSpacing () const
 Assigned on mousePressEvent.
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void onSetReadOnly (Property *property, bool readonly) override
 
virtual void onSetVisible (Property *property, bool visible) override
 
virtual void paintEvent (QPaintEvent *pe) override
 
virtual void setVisible (bool visible) override
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 
- 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_
 

Detailed Description

Property widget for string properties which shows the contents spread over multiple lines. The height of the text editor is adjusted based on the contents and given defaults (2 to 10 lines). Changes are committed when the focus changes or CTRL + Return or CTRL + Enter is pressed.

Member Function Documentation

◆ updateFromProperty()

void inviwo::StringMultilinePropertyWidgetQt::updateFromProperty ( )
virtual

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

Implements inviwo::PropertyWidget.


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