itom
Loading...
Searching...
No Matches
ParamEditorWidget Class Reference
Inheritance diagram for ParamEditorWidget:

Public Slots

ito::RetVal applyChangedParameters ()
 

Protected Types

enum  MessageLevel { msgLevelNo = 0 , msgLevelErrorOnly = 1 , msgLevelWarningOnly = 2 , msgLevelWarningAndError = msgLevelErrorOnly | msgLevelWarningOnly }
 

Protected Member Functions

ito::RetVal setPluginParameter (QSharedPointer< ito::ParamBase > param, MessageLevel msgLevel=msgLevelWarningAndError) const
 
ito::RetVal setPluginParameters (const QVector< QSharedPointer< ito::ParamBase > > params, MessageLevel msgLevel=msgLevelWarningAndError) const
 
ito::RetVal observeInvocation (ItomSharedSemaphore *waitCond, MessageLevel msgLevel) const
 
ito::RetVal addParam (const ito::Param &param)
 
ito::RetVal addParamInt (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamChar (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamDouble (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamString (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamOthers (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamInterval (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamRect (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamIntArray (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamCharArray (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamDoubleArray (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal addParamStringList (const ito::Param &param, QtProperty *groupProperty)
 
ito::RetVal loadPlugin (QPointer< ito::AddInBase > plugin)
 
void timerEvent (QTimerEvent *event)
 

Properties

QPointer< ito::AddInBaseplugin
 
int indentation
 
bool rootIsDecorated
 
bool alternatingRowColors
 
bool headerVisible
 
ResizeMode resizeMode
 
int splitterPosition
 
bool propertiesWithoutValueMarked
 
bool readonly
 
bool showDescriptions
 
QStringList filteredCategories
 
bool immediatelyModifyPluginParamsAfterChange
 
int numChangedParameters
 
bool collapsed
 
bool popupSlider
 

Private Slots

void valueChanged (QtProperty *prop, int value)
 
void valueChanged (QtProperty *prop, char value)
 
void valueChanged (QtProperty *prop, double value)
 
void valueChanged (QtProperty *prop, int num, const char *values)
 
void valueChanged (QtProperty *prop, int num, const int *values)
 
void valueChanged (QtProperty *prop, int num, const double *values)
 
void valueChanged (QtProperty *prop, int num, const ito::ByteArray *values)
 
void valueChanged (QtProperty *prop, const QByteArray &value)
 
void valueChanged (QtProperty *prop, int min, int max)
 
void valueChanged (QtProperty *prop, int left, int top, int width, int height)
 
void currentItemChanged (QtBrowserItem *)
 
void parametersChanged (QMap< QString, ito::Param > parameters)
 

Private Member Functions

Q_CLASSINFO("prop://immediatelyModifyPluginParamsAfterChange", "If true (default), changed values in the widget will be immediately sent to the connected plugin, calling its 'setParam' method. Else, changed values will be stored in a temporary list and can be sent later (using applyChangedParameters).") public ParamEditorWidget (QWidget *parent=0)
 Constructor.
 
virtual ~ParamEditorWidget ()
 Destructor.
 
QPointer< ito::AddInBaseplugin () const
 
void setPlugin (QPointer< ito::AddInBase > plugin)
 
void refresh ()
 
int indentation () const
 
void setIndentation (int i)
 
bool collapsed () const
 
void setCollapsed (bool c)
 
bool popupSlider () const
 
void setPopupSlider (bool popup)
 
bool rootIsDecorated () const
 
void setRootIsDecorated (bool show)
 
bool alternatingRowColors () const
 
void setAlternatingRowColors (bool enable)
 
bool readonly () const
 
void setReadonly (bool enable)
 
bool isHeaderVisible () const
 
void setHeaderVisible (bool visible)
 
ResizeMode resizeMode () const
 
void setResizeMode (ResizeMode mode)
 
int splitterPosition () const
 
void setSplitterPosition (int position)
 
void setPropertiesWithoutValueMarked (bool mark)
 
bool propertiesWithoutValueMarked () const
 
void setShowDescriptions (bool show)
 
bool showDescriptions () const
 
void setFilteredCategories (const QStringList &filteredCategories)
 
QStringList filteredCategories () const
 
void setImmediatelyModifyPluginParamsAfterChange (bool immediateChange)
 
bool immediatelyModifyPluginParamsAfterChange () const
 
int numberOfChangedParameters () const
 
QVector< QSharedPointer< ito::ParamBase > > getAndResetChangedParameters ()
 
 Q_DECLARE_PRIVATE (ParamEditorWidget)
 
 Q_DISABLE_COPY (ParamEditorWidget)
 

Private Attributes

QScopedPointer< ParamEditorWidgetPrivated_ptr
 

Member Enumeration Documentation

◆ MessageLevel

MessageLevel enumeration defines whether warnings and/or errors that might occur during some executions should be displayed with a message box.

Enumerator
msgLevelNo 

no messagebox should information about warnings or errors

msgLevelErrorOnly 

a message box should only inform about errors

msgLevelWarningOnly 

a message box should only inform about warnings

msgLevelWarningAndError 

a message box should inform about warnings and errors

Constructor & Destructor Documentation

◆ ParamEditorWidget()

ParamEditorWidget::ParamEditorWidget ( QWidget * parent = 0)
private

Constructor.

Creates a new editor widget based on QTreeView

Parameters
parentoptional parent widget

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