Inviwo  0.9.10.1
Inviwo documentation
inviwo::PropertyWidgetQt Class Reference
+ Inheritance diagram for inviwo::PropertyWidgetQt:

Public Types

using BaseCallBack = std::function< void()>
 

Public Member Functions

 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
 
PropertyWidgetQtgetParentPropertyWidget () const
 
void setParentPropertyWidget (PropertyWidgetQt *parent)
 
virtual std::unique_ptr< QMenu > getContextMenu ()
 
virtual std::unique_ptr< QMimeData > getPropertyMimeData () const
 
- Public Member Functions inherited from inviwo::PropertyWidget
 PropertyWidget (Property *property)
 
virtual ~PropertyWidget ()
 
virtual void updateFromProperty ()=0
 
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)
 
virtual void onSetSemantics (Property *property, const PropertySemantics &semantics)
 
- 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 ()
 

Static Public Member Functions

static void setSpacingAndMargins (QWidget *w, QLayout *layout)
 

Static Public Attributes

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
 

Protected Member Functions

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.
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 

Protected Attributes

QPoint mousePressedPosition_
 
- Protected Attributes inherited from inviwo::PropertyWidget
Propertyproperty_ = nullptr
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Additional Inherited Members

- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 

Member Data Documentation

◆ marginEm

const double inviwo::PropertyWidgetQt::marginEm
static
Initial value:
=
PropertyWidgetQt::margin / static_cast<double>(utilqt::refEm())

◆ minimumWidthEm

const double inviwo::PropertyWidgetQt::minimumWidthEm
static
Initial value:
=
PropertyWidgetQt::minimumWidth / static_cast<double>(utilqt::refEm())

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