tuchulcha  0.10.1
Graphical Workflow Configuration Editor
WorkflowComments Class Reference

A widget to display comments for the current workflow. More...

#include <WorkflowComments.h>

Inheritance diagram for WorkflowComments:

Public Slots

void load ()
 load the comment from the model and display it in the text field
 
void save ()
 save the comment to the model
 
void update (ParameterFileModel *model)
 change the active model and call load() More...
 

Public Member Functions

 WorkflowComments (QWidget *parent=0)
 Default Constructor. More...
 

Private Attributes

ParameterFileModel_model
 The currently active model.
 
QMutex * _textChangeLock
 Stop load() from doing anything while save() is executing. More...
 

Detailed Description

Definition at line 36 of file WorkflowComments.h.

Constructor & Destructor Documentation

WorkflowComments::WorkflowComments ( QWidget *  parent = 0)
Parameters
parentpointer to the parent widget

Definition at line 37 of file WorkflowComments.cpp.

References save().

Member Function Documentation

void WorkflowComments::update ( ParameterFileModel model)
slot
Parameters
modelthe new model

Definition at line 81 of file WorkflowComments.cpp.

References _model, _textChangeLock, and load().

Member Data Documentation

QMutex* WorkflowComments::_textChangeLock
private

This prevents weird behavior of the QTextEdit box due to emitted signals while editting the model.

Definition at line 68 of file WorkflowComments.h.


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