Frapper  1.0a
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
Frapper::ParameterPanel Class Reference

Class representing a view for displaying and editing parameters of nodes. More...

#include <ParameterPanel.h>

Inheritance diagram for Frapper::ParameterPanel:
Inheritance graph
[legend]
Collaboration diagram for Frapper::ParameterPanel:
Collaboration graph
[legend]

Public Slots

void showParameters (Node *node)
 Displays the parameters and values for the given node.
 
void updateParameters (bool objectsSelected)
 Slot that is called when the selection in the scene model has changed.
 

Signals

void objectNameChangeRequested (const QString &oldName, const QString &newName)
 Signal that is emitted when the name of the currently edited node should change.
 
void parameterChangeRequested (const QString &objectName, const QString &parameterName, const QVariant &value)
 Signal that is emitted when the value of the parameter with the given name of the object with the given name should be changed to the given value.
 

Public Member Functions

 ParameterPanel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the ParameterPanel class.
 
virtual ~ParameterPanel ()
 Destructor of the ParameterPanel class.
 
virtual void fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar)
 Fills the given tool bars in a panel frame with actions for the panel.
 
- Public Member Functions inherited from Frapper::ViewPanel
 ViewPanel (Type viewPanelType, QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the ViewPanel class.
 
Type getViewPanelType ()
 Returns the type of the view panel.
 
- Public Member Functions inherited from Frapper::Panel
 Panel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the Panel class.
 
virtual ~Panel ()
 Destructor of the Panel class.
 
QMap< QString, QString > getPanelParameters ()
 Gets the panel parameters. For load and save functionality.
 
virtual void setPanelParameters (const QMap< QString, QString > &parameterMap)
 Sets the panel parameters. For load and save functionality.
 
virtual void registerControl (NodeModel *nodeModel, SceneModel *sceneModel)
 Connects the panel with the scene.
 

Protected Member Functions

virtual void timerEvent (QTimerEvent *event)
 Event handler that reacts to timer events.
 
virtual bool eventFilter (QObject *object, QEvent *event)
 Event filter, allows to disable value changes caused by the mouse wheel.
 

Private Slots

void on_m_nodeNameEdit_editingFinished ()
 Requests a name change for the currently edited node and displays the successfully changed name in the node name edit widget.
 
void on_m_searchEdit_textChanged (const QString &text)
 Starts the timer that launches the parameter filtering search after a specific delay.
 
void on_ui_resetSearchAction_triggered (bool checked=false)
 Cancels a running parameter search and resets the parameter search settings for the currently edited node.
 
void loadTabPage (int index)
 Fills the tab page of the given index with widgets for editing the parameters that the tab page represents.
 
void labelContextMenuRequested (const QPoint &position)
 Opens a context menu at the given position with actions for the label.
 
void checkBoxToggled (bool checked)
 Applies an edited boolean value to the parameter represented by the checkbox widget calling this slot.
 
void spinBoxEditingFinished ()
 Applies an edited numeric value to the parameter represented by the spinbox widget calling this slot.
 
void sliderValueChanged ()
 Applies an edited numeric value to the parameter represented by the slider widget calling this slot.
 
void doubleSpinBoxEditingFinished ()
 Applies an edited floating point numeric value to the parameter represented by the spinbox widget calling this slot.
 
void doubleSliderValueChanged ()
 Applies an edited floating point numeric value to the parameter represented by the slider widget calling this slot.
 
void lineEditEditingFinished ()
 Applies an edited string value to the parameter represented by the line edit widget calling this slot.
 
void browseButtonClicked ()
 Displays a dialog for selecting a file for the edited parameter.
 
void reloadButtonClicked ()
 Reloads the file that the edited parameter represents.
 
void selectColor ()
 Displays a dialog for selecting a color for the edited parameter.
 
void comboBoxIndexChanged (int index)
 Applies a changed combo box item selection to the edited parameter.
 
void commandButtonClicked ()
 Requests the execution of the command represented by the clicked button.
 
void updateBooleanWidget ()
 Updates the widget showing a boolean parameter's value.
 
void updateIntegerWidgets ()
 Updates the widgets showing an integer number parameter's value.
 
void updateIntegerWidgets (int index)
 Updates the widgets showing the component with the given index of an integer number parameter.
 
void updateUnsignedIntegerWidgets ()
 Updates the widgets showing an unsigned integer number parameter's value.
 
void updateUnsignedIntegerWidgets (int index)
 Updates the widgets showing the component with the given index of an unsigned integer number parameter.
 
void updateFloatingPointWidgets ()
 Updates the widgets showing a floating point number parameter's value.
 
void updateFloatingPointWidgets (int index)
 Updates the widgets showing the component with the given index of a floating point number parameter.
 
void updateStringWidget ()
 Updates the widget showing a string parameter's value.
 
void updateFilenameWidgets ()
 Updates the widgets showing a filename parameter's value.
 
void updateColorWidget ()
 Updates the widget showing a color parameter's value.
 
void updateEnumerationWidget ()
 Updates the widget showing an enumeration parameter's value.
 
void updateTextInfoWidget ()
 Updates the label showing the text info parameter's value.
 
void updateImageWidget ()
 Updates the label showing info about the image parameter's image.
 

Private Member Functions

void activateCustomContextMenu (QLabel *label)
 Activates the custom context menu for the given label widget.
 
void grayOut (QWidget *widget)
 Updates the given widget's palette so that it is painted with a Window color background instead of a Base color background.
 
void clear ()
 Removes all widgets from the layout.
 
void addRows (ParameterGroup *parameterGroup, QFormLayout *formLayout)
 Adds widgets for editing the parameters of the given parameter group to the given form layout.
 
void addRows (Parameter *parameter, QFormLayout *formLayout)
 Adds widgets for editing the given parameter to the given form layout.
 
QWidget * createBooleanWidget (Parameter *parameter)
 Creates a widget for editing a boolean parameter.
 
QLayout * createIntegerLayout (NumberParameter *numberParameter, int index=0)
 Creates a layout with widgets for editing editing an integer parameter.
 
QLayout * createUnsignedIntegerLayout (NumberParameter *numberParameter, int index=0)
 Creates a layout with widgets for editing an unsigned integer parameter.
 
QLayout * createFloatingPointLayout (NumberParameter *numberParameter, int index=0)
 Creates a layout with widgets for editing a floating point parameter.
 
QWidget * createStringWidget (Parameter *parameter)
 Creates a widget for editing a string parameter or displaying a read-only parameter's value.
 
QLayout * createFilenameLayout (FilenameParameter *filenameParameter)
 Creates a layout with widgets for editing a filename parameter.
 
QWidget * createColorWidget (Parameter *parameter)
 Creates a widget for editing a color parameter.
 
QWidget * createEnumerationWidget (EnumerationParameter *enumerationParameter)
 Creates a widget for editing an enumeration parameter.
 
QWidget * createTextInfoWidget (Parameter *parameter)
 Creates a label widget for displaying the text info contained in the given parameter.
 
QWidget * createGenericWidget (Parameter *parameter)
 Creates a label widget for displaying the type info contained in the given parameter.
 
QWidget * createCommandWidget (Parameter *parameter)
 Creates a button widget for executing the command represented by the given parameter.
 
QWidget * createImageWidget (Parameter *parameter)
 Creates a widget displaying information about the image represented by the given parameter.
 
QLayout * createVectorLayout (Parameter *parameter)
 Creates a layout with widgets for editing a parameter that stores several values of a specific type.
 
void requestParameterChange (const QString &name, const QVariant &value)
 Notifies connected objects that a parameter of the currently edited object should be changed.
 
void filterParameters ()
 Filters the parameters displayed in the panel by the search text entered in the search edit widget.
 
QWidget * createPluginWidget (Parameter *parameter)
 Creates a plugin widget.
 

Private Attributes

Nodem_node
 The node for which parameters are displayed in the view.
 
QObject * m_editedWidget
 The widget that is currently being edited which causes the requestParameterChange() function to be called.
 
QMultiMap< QString, QWidget * > m_widgetMap
 A map with parameter names as keys and pointers to editing widgets as values.
 
QLabel * m_nodeTypeLabel
 The label displaying the type of the currently edited node.
 
QAction * m_nodeTypeLabelAction
 The action by which the label displaying the type of the currently edited node in the tool bar can be accessed.
 
QLineEdit * m_nodeNameEdit
 The line edit for editing the name of the currently edited node.
 
QAction * m_nodeNameEditAction
 The action by which the line edit for editing the name of the currently edited node in the tool bar can be accessed.
 
QLineEdit * m_searchEdit
 The line edit for editing the string for a parameter search.
 
int m_searchTimer
 The ID of the timer that is (re-)started each time the search text in the search edit widget is changed.
 

Additional Inherited Members

- Public Types inherited from Frapper::ViewPanel
enum  Type {
  T_Documentation, T_Viewport, T_NetworkEditor, T_HierarchyEditor,
  T_ParameterEditor, T_CurveEditor, T_Timeline, T_PluginPanel,
  T_PainterPanel, T_NumTypes
}
 Nested enumeration for the different types of view panels. More...
 
- Static Public Member Functions inherited from Frapper::Panel
static QString getTypeName (Type panelType)
 Returns the name of the given panel type.
 
static QString getTypeIconName (Type panelType)
 Returns the icon name for the given panel type.
 
- Protected Attributes inherited from Frapper::Panel
QMap< QString, QString > m_parameterMap
 Map with default values. For load and save functionality.
 

Detailed Description

Class representing a view for displaying and editing parameters of nodes.

Constructor & Destructor Documentation

Frapper::ParameterPanel::ParameterPanel ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Constructor of the ParameterPanel class.

Constructors and Destructors.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.

Constructor of the ParameterPanel class.

Parameters
parentThe parent widget the created instance will be a child of.
flagsExtra widget options.
Frapper::ParameterPanel::~ParameterPanel ( )
virtual

Destructor of the ParameterPanel class.

Destructor of the NetworkPanel class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.

Member Function Documentation

void Frapper::ParameterPanel::showParameters ( Node node)
slot

Displays the parameters and values for the given node.

Public Slots.

Parameters
nodeThe node whose parameters to display in the parameter view.

Displays the parameters and values for the given node.

Parameters
nodeThe node whose parameters to display in the parameter view.
void Frapper::ParameterPanel::updateParameters ( bool  objectsSelected)
slot

Slot that is called when the selection in the scene model has changed.

Parameters
objectsSelectedFlag that states whether objects in the scene are selected.
void Frapper::ParameterPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
)
virtual

Fills the given tool bars in a panel frame with actions for the panel.

Public Functions.

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

Fills the given tool bars in a panel frame with actions for the panel.

Parameters
mainToolBarThe main tool bar to fill with actions.
panelToolBarThe panel tool bar to fill with actions.

Reimplemented from Frapper::Panel.

void Frapper::ParameterPanel::objectNameChangeRequested ( const QString &  oldName,
const QString &  newName 
)
signal

Signal that is emitted when the name of the currently edited node should change.

Parameters
oldNameThe name of the object to rename.
newNameThe new name for the object to rename.
void Frapper::ParameterPanel::parameterChangeRequested ( const QString &  objectName,
const QString &  parameterName,
const QVariant &  value 
)
signal

Signal that is emitted when the value of the parameter with the given name of the object with the given name should be changed to the given value.

Parameters
objectNameThe name of the object for which to change the parameter.
parameterNameThe name of the parameter to change.
valueThe new value for the parameter.
void Frapper::ParameterPanel::timerEvent ( QTimerEvent *  event)
protectedvirtual

Event handler that reacts to timer events.

Protected Events.

Parameters
eventThe description of the timer event.

Event handler that reacts to timer events.

Parameters
eventThe description of the timer event.
bool Frapper::ParameterPanel::eventFilter ( QObject *  object,
QEvent *  event 
)
protectedvirtual

Event filter, allows to disable value changes caused by the mouse wheel.

Parameters
objectthe object with the installed event filter.
eventthe description of the event.
void Frapper::ParameterPanel::on_m_nodeNameEdit_editingFinished ( )
privateslot

Requests a name change for the currently edited node and displays the successfully changed name in the node name edit widget.

Private Slots.

Is called when editing the node's name has finished.

Requests a name change for the currently edited node and displays the successfully changed name in the node name edit widget.

Is called when editing the node's name has finished.

void Frapper::ParameterPanel::on_m_searchEdit_textChanged ( const QString &  text)
privateslot

Starts the timer that launches the parameter filtering search after a specific delay.

Is called when the text in the search edit widget has changed.

Parameters
textThe text that has been entered in the search edit widget.
void Frapper::ParameterPanel::on_ui_resetSearchAction_triggered ( bool  checked = false)
privateslot

Cancels a running parameter search and resets the parameter search settings for the currently edited node.

Is called when the reset search action has been triggered.

Parameters
checkedThe state of the action (unused).
void Frapper::ParameterPanel::loadTabPage ( int  index)
privateslot

Fills the tab page of the given index with widgets for editing the parameters that the tab page represents.

Is called when the index of the current tab in a tab widget has changed.

Parameters
indexThe index of the tab page to fill with editing widgets.
void Frapper::ParameterPanel::labelContextMenuRequested ( const QPoint &  position)
privateslot

Opens a context menu at the given position with actions for the label.

Is called when a context menu is requested for a label widget.

Parameters
positionThe position at which to open the context menu.
void Frapper::ParameterPanel::checkBoxToggled ( bool  checked)
privateslot

Applies an edited boolean value to the parameter represented by the checkbox widget calling this slot.

Private Slots for updating parameter values when widgets change.

Is called when a checkbox representing a parameter has been toggled.

Parameters
checkedThe state of the check box.

Applies an edited boolean value to the parameter represented by the checkbox widget calling this slot.

Is called when a checkbox representing a parameter has been toggled.

Parameters
checkedThe state of the check box.
void Frapper::ParameterPanel::spinBoxEditingFinished ( )
privateslot

Applies an edited numeric value to the parameter represented by the spinbox widget calling this slot.

Is called when editing the value of a spin box representing a parameter has finished.

void Frapper::ParameterPanel::sliderValueChanged ( )
privateslot

Applies an edited numeric value to the parameter represented by the slider widget calling this slot.

Is called when the value of a slider representing a parameter has changed.

void Frapper::ParameterPanel::doubleSpinBoxEditingFinished ( )
privateslot

Applies an edited floating point numeric value to the parameter represented by the spinbox widget calling this slot.

Is called when editing the value of a double spin box representing a parameter has finished.

void Frapper::ParameterPanel::doubleSliderValueChanged ( )
privateslot

Applies an edited floating point numeric value to the parameter represented by the slider widget calling this slot.

Is called when the value of a double slider representing a parameter has changed.

void Frapper::ParameterPanel::lineEditEditingFinished ( )
privateslot

Applies an edited string value to the parameter represented by the line edit widget calling this slot.

Is called when editing the text of a line edit widget representing a parameter has finished.

void Frapper::ParameterPanel::browseButtonClicked ( )
privateslot

Displays a dialog for selecting a file for the edited parameter.

Is called when the browse button for a filename parameter has been clicked.

void Frapper::ParameterPanel::reloadButtonClicked ( )
privateslot

Reloads the file that the edited parameter represents.

Is called when the reload button for a filename parameter has been clicked.

void Frapper::ParameterPanel::selectColor ( )
privateslot

Displays a dialog for selecting a color for the edited parameter.

Is called when the color button representing a color parameter has been clicked.

void Frapper::ParameterPanel::comboBoxIndexChanged ( int  index)
privateslot

Applies a changed combo box item selection to the edited parameter.

Is called when the index of the currently selected item of a combo box representing an enumeration parameter has changed.

Parameters
indexThe index of the item currently selected in the combo box.
void Frapper::ParameterPanel::commandButtonClicked ( )
privateslot

Requests the execution of the command represented by the clicked button.

Is called when the button representing a command parameter is clicked.

void Frapper::ParameterPanel::updateBooleanWidget ( )
privateslot

Updates the widget showing a boolean parameter's value.

Private Slots for updating widgets when parameter values change.

Is called when the value of a boolean parameter has changed.

Updates the widget showing a boolean parameter's value.

Is called when the value of a boolean parameter has changed.

void Frapper::ParameterPanel::updateIntegerWidgets ( )
privateslot

Updates the widgets showing an integer number parameter's value.

Is called when the value of an integer number parameter has changed.

void Frapper::ParameterPanel::updateIntegerWidgets ( int  index)
privateslot

Updates the widgets showing the component with the given index of an integer number parameter.

Is called when one of the values of an integer number parameter that contains a list of values has changed.

Parameters
indexThe index of the value that has changed in the list of integer values.
void Frapper::ParameterPanel::updateUnsignedIntegerWidgets ( )
privateslot

Updates the widgets showing an unsigned integer number parameter's value.

Is called when the value of an unsigned integer number parameter has changed.

void Frapper::ParameterPanel::updateUnsignedIntegerWidgets ( int  index)
privateslot

Updates the widgets showing the component with the given index of an unsigned integer number parameter.

Is called when one of the values of an unsigned integer number parameter that contains a list of values has changed.

Parameters
indexThe index of the value that has changed in the list of unsigned integer values.
void Frapper::ParameterPanel::updateFloatingPointWidgets ( )
privateslot

Updates the widgets showing a floating point number parameter's value.

Is called when the value of a floating point number parameter has changed.

void Frapper::ParameterPanel::updateFloatingPointWidgets ( int  index)
privateslot

Updates the widgets showing the component with the given index of a floating point number parameter.

Is called when one of the values of a floating point number parameter that contains a list of values has changed.

Parameters
indexThe index of the value that has changed in the list of floating point values.
void Frapper::ParameterPanel::updateStringWidget ( )
privateslot

Updates the widget showing a string parameter's value.

Is called when the value of a string parameter has changed.

void Frapper::ParameterPanel::updateFilenameWidgets ( )
privateslot

Updates the widgets showing a filename parameter's value.

Is called when the value of a filename parameter has changed.

void Frapper::ParameterPanel::updateColorWidget ( )
privateslot

Updates the widget showing a color parameter's value.

Is called when the value of a color parameter has changed.

void Frapper::ParameterPanel::updateEnumerationWidget ( )
privateslot

Updates the widget showing an enumeration parameter's value.

Is called when the value of an enumeration parameter has changed.

void Frapper::ParameterPanel::updateTextInfoWidget ( )
privateslot

Updates the label showing the text info parameter's value.

Updates the label showing a text info parameter's value.

Is called when the value of a text info parameter has changed.

void Frapper::ParameterPanel::updateImageWidget ( )
privateslot

Updates the label showing info about the image parameter's image.

Is called when the value of an image parameter has changed.

void Frapper::ParameterPanel::activateCustomContextMenu ( QLabel *  label)
private

Activates the custom context menu for the given label widget.

Private Functions.

Parameters
labelThe label widget to activate a custom context menu for.

Activates the custom context menu for the given label widget.

Parameters
labelThe label widget to activate a custom context menu for.
void Frapper::ParameterPanel::grayOut ( QWidget *  widget)
private

Updates the given widget's palette so that it is painted with a Window color background instead of a Base color background.

Parameters
widgetThe widget to gray out.
void Frapper::ParameterPanel::clear ( )
private

Removes all widgets from the layout.

void Frapper::ParameterPanel::addRows ( ParameterGroup parameterGroup,
QFormLayout *  formLayout 
)
private

Adds widgets for editing the parameters of the given parameter group to the given form layout.

Adds widgets for editing the parameters of the given parameter group to the form layout.

Parameters
parameterGroupThe parameter group to create editing widgets for.
formLayoutThe form layout to add editing widgets to.
void Frapper::ParameterPanel::addRows ( Parameter parameter,
QFormLayout *  formLayout 
)
private

Adds widgets for editing the given parameter to the given form layout.

Adds widgets for editing the given parameter to the form layout.

Parameters
parameterThe parameter to create editing widgets for.
formLayoutThe form layout to add editing widgets to.
QWidget * Frapper::ParameterPanel::createBooleanWidget ( Parameter parameter)
private

Creates a widget for editing a boolean parameter.

Parameters
parameterThe boolean parameter to create an editing widget for.
Returns
A widget for editing a boolean parameter.
Parameters
parameterThe parameter to create an editing widget for.
Returns
A widget for editing a boolean parameter.
QLayout * Frapper::ParameterPanel::createIntegerLayout ( NumberParameter numberParameter,
int  index = 0 
)
private

Creates a layout with widgets for editing editing an integer parameter.

Creates a layout with widgets for editing an integer parameter.

Parameters
numberParameterThe number parameter to create an editing widget for.
indexThe index of the value to edit (for parameters that contain lists of values).
Returns
A widget for editing an integer parameter.
Parameters
numberParameterThe number parameter to create an editing widget for.
indexThe index of the value to edit (for parameters that contain lists of values).
Returns
A layout with widgets for editing an integer parameter.
QLayout * Frapper::ParameterPanel::createUnsignedIntegerLayout ( NumberParameter numberParameter,
int  index = 0 
)
private

Creates a layout with widgets for editing an unsigned integer parameter.

Parameters
numberParameterThe number parameter to create an editing widget for.
indexThe index of the value to edit (for parameters that contain lists of values).
Returns
A widget for editing an unsigned integer parameter.
Parameters
numberParameterThe number parameter to create an editing widget for.
indexThe index of the value to edit (for parameters that contain lists of values).
Returns
A layout with widgets for editing an unsigned integer parameter.
QLayout * Frapper::ParameterPanel::createFloatingPointLayout ( NumberParameter numberParameter,
int  index = 0 
)
private

Creates a layout with widgets for editing a floating point parameter.

Parameters
numberParameterThe number parameter to create an editing widget for.
indexThe index of the value to edit (for parameters that contain lists of values).
Returns
A layout with widgets for editing a floating point parameter.
QWidget * Frapper::ParameterPanel::createStringWidget ( Parameter parameter)
private

Creates a widget for editing a string parameter or displaying a read-only parameter's value.

Parameters
parameterThe string parameter to create an editing widget for.
Returns
A widget for editing a string parameter.
QLayout * Frapper::ParameterPanel::createFilenameLayout ( FilenameParameter filenameParameter)
private

Creates a layout with widgets for editing a filename parameter.

Parameters
filenameParameterThe filename parameter to create an editing widget for.
Returns
A layout with widgets for editing a filename parameter.
QWidget * Frapper::ParameterPanel::createColorWidget ( Parameter parameter)
private

Creates a widget for editing a color parameter.

Parameters
parameterThe color parameter to create an editing widget for.
Returns
A widget for editing a color parameter.
QWidget * Frapper::ParameterPanel::createEnumerationWidget ( EnumerationParameter enumerationParameter)
private

Creates a widget for editing an enumeration parameter.

Parameters
enumerationParameterThe parameter to create an editing widget for.
Returns
A widget for editing an enumeration parameter.
Parameters
enumerationParameterThe enumeration parameter to create an editing widget for.
Returns
A widget for editing an enumeration parameter.
QWidget * Frapper::ParameterPanel::createTextInfoWidget ( Parameter parameter)
private

Creates a label widget for displaying the text info contained in the given parameter.

Parameters
parameterThe text info parameter to create a label widget for.
Returns
A label widget for displaying the text info contained in the given parameter.
QWidget * Frapper::ParameterPanel::createGenericWidget ( Parameter parameter)
private

Creates a label widget for displaying the type info contained in the given parameter.

Parameters
parameterThe text info parameter to create a label widget for.
Returns
A label widget for displaying the type info contained in the given parameter.
QWidget * Frapper::ParameterPanel::createCommandWidget ( Parameter parameter)
private

Creates a button widget for executing the command represented by the given parameter.

Parameters
parameterThe command parameter to create a button widget for.
Returns
A widget for execting the command represented by the given parameter.
QWidget * Frapper::ParameterPanel::createImageWidget ( Parameter parameter)
private

Creates a widget displaying information about the image represented by the given parameter.

Parameters
parameterThe image parameter to create a widget for.
Returns
A widget displaying information about the image represented by the given parameter, or 0 if not applicable.
QLayout * Frapper::ParameterPanel::createVectorLayout ( Parameter parameter)
private

Creates a layout with widgets for editing a parameter that stores several values of a specific type.

Parameters
parameterThe vector parameter to create a layout with editing widgets for.
Returns
A layout with widgets for editing a parameter that stores several values of a specific type.
void Frapper::ParameterPanel::requestParameterChange ( const QString &  parameterName,
const QVariant &  value 
)
private

Notifies connected objects that a parameter of the currently edited object should be changed.

Parameters
nameThe name of the parameter to change.
valueThe new value for the parameter.
parameterNameThe name of the parameter to change.
valueThe new value for the parameter.
void Frapper::ParameterPanel::filterParameters ( )
private

Filters the parameters displayed in the panel by the search text entered in the search edit widget.

QWidget * Frapper::ParameterPanel::createPluginWidget ( Parameter parameter)
private

Creates a plugin widget.

Parameters
parameterthe parameter of the widget
Returns
The plugin widget

Member Data Documentation

Node* Frapper::ParameterPanel::m_node
private

The node for which parameters are displayed in the view.

QObject* Frapper::ParameterPanel::m_editedWidget
private

The widget that is currently being edited which causes the requestParameterChange() function to be called.

See Also
requestParameterChange()
QMultiMap<QString, QWidget *> Frapper::ParameterPanel::m_widgetMap
private

A map with parameter names as keys and pointers to editing widgets as values.

QLabel* Frapper::ParameterPanel::m_nodeTypeLabel
private

The label displaying the type of the currently edited node.

QAction* Frapper::ParameterPanel::m_nodeTypeLabelAction
private

The action by which the label displaying the type of the currently edited node in the tool bar can be accessed.

QLineEdit* Frapper::ParameterPanel::m_nodeNameEdit
private

The line edit for editing the name of the currently edited node.

QAction* Frapper::ParameterPanel::m_nodeNameEditAction
private

The action by which the line edit for editing the name of the currently edited node in the tool bar can be accessed.

QLineEdit* Frapper::ParameterPanel::m_searchEdit
private

The line edit for editing the string for a parameter search.

int Frapper::ParameterPanel::m_searchTimer
private

The ID of the timer that is (re-)started each time the search text in the search edit widget is changed.


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