![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
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>
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 |
| PropertyWidgetQt * | getParentPropertyWidget () 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 PropertyEditorWidget * | getEditorWidget () const |
| virtual Property * | getProperty () |
| virtual bool | hasEditorWidget () const |
| PropertyWidget & | operator= (const PropertyWidget &) |
| PropertyWidget & | operator= (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) | |
| Observer & | operator= (const Observer &other) |
| Observer & | operator= (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 | |
| Property * | property_ = nullptr |
| Protected Attributes inherited from inviwo::Observer | |
| std::unordered_set< ObservableInterface * > | observables_ |
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.
|
virtual |
Implement this function to update the widget after the property has been modified.
Implements inviwo::PropertyWidget.