itom  3.0.0
ParamEditorWidget Class Reference
Inheritance diagram for ParamEditorWidget:

Public Types

enum  ResizeMode { Interactive, Stretch, Fixed, ResizeToContents }
 

Public Member Functions

 ParamEditorWidget (QWidget *parent=0)
 Constructor. More...
 
virtual ~ParamEditorWidget ()
 Destructor.
 
QPointer< ito::AddInBaseplugin () const
 
void setPlugin (QPointer< ito::AddInBase > plugin)
 
void refresh ()
 
int indentation () const
 
void setIndentation (int i)
 
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
 

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 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
 

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, 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_DECLARE_PRIVATE (ParamEditorWidget)
 
 Q_DISABLE_COPY (ParamEditorWidget)
 

Private Attributes

QScopedPointer< ParamEditorWidgetPrivated_ptr
 

Member Enumeration Documentation

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 ( QWidget *  parent = 0)

Constructor.

Creates a new editor widget based on QTreeView

Parameters
parentoptional parent widget

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