![]() |
Inviwo
0.9.10.1
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 <stringmultilinepropertywidgetqt.h>
Public Member Functions | |
StringMultilinePropertyWidgetQt (StringProperty *property) | |
void | updateFromProperty () |
void | setPropertyValue () |
![]() | |
PropertyWidgetQt (Property *property=nullptr) | |
virtual void | initState () |
void | setSpacingAndMargins (QLayout *layout) |
virtual void | onChildVisibilityChange (PropertyWidgetQt *child) |
virtual void | setReadOnly (bool readonly) |
virtual QSize | sizeHint () const override |
virtual QSize | minimumSizeHint () const override |
void | setNestedDepth (int depth) |
int | getNestedDepth () const |
PropertyWidgetQt * | getParentPropertyWidget () const |
void | setParentPropertyWidget (PropertyWidgetQt *parent) |
virtual std::unique_ptr< QMenu > | getContextMenu () |
virtual std::unique_ptr< QMimeData > | getPropertyMimeData () const |
![]() | |
PropertyWidget (Property *property) | |
virtual | ~PropertyWidget () |
virtual PropertyEditorWidget * | getEditorWidget () const |
virtual bool | hasEditorWidget () const |
virtual Property * | getProperty () |
![]() | |
virtual void | onSetIdentifier (Property *property, const std::string &identifier) |
virtual void | onSetDisplayName (Property *property, const std::string &displayName) |
virtual void | onSetSemantics (Property *property, const PropertySemantics &semantics) |
![]() | |
Observer (const Observer &other) | |
Observer (Observer &&other) | |
Observer & | operator= (Observer &&other) |
Observer & | operator= (const Observer &other) |
virtual | ~Observer () |
void | removeObservation (ObservableInterface *observable) |
void | removeObservations () |
Additional Inherited Members | |
![]() | |
using | BaseCallBack = std::function< void()> |
![]() | |
static void | setSpacingAndMargins (QWidget *w, QLayout *layout) |
![]() | |
static const double | minimumWidthEm |
static const double | spacingEm = utilqt::refSpaceEm() |
static const double | marginEm |
static const int | minimumWidth = 200 |
static const int | spacing = 7 |
static const int | margin = 0 |
![]() | |
using | ObservableSet = std::unordered_set< ObservableInterface * > |
![]() | |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | onSetReadOnly (Property *property, bool readonly) override |
virtual void | onSetVisible (Property *property, bool visible) override |
virtual void | onSetUsageMode (Property *property, UsageMode usageMode) override |
virtual void | setVisible (bool visible) override |
UsageMode | getApplicationUsageMode () |
virtual bool | event (QEvent *event) override |
virtual void | paintEvent (QPaintEvent *pe) override |
int | getSpacing () const |
Assigned on mousePressEvent. | |
![]() | |
void | addObservation (ObservableInterface *observable) |
![]() | |
QPoint | mousePressedPosition_ |
![]() | |
Property * | property_ = nullptr |
![]() | |
ObservableSet | 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.