tuchulcha  0.10.1
Graphical Workflow Configuration Editor
WorkflowComments.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 Eric Koenigs
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
26 #ifndef WORKFLOWCOMMENTS_H_
27 #define WORKFLOWCOMMENTS_H_
28 
29 #include <QTextEdit>
30 
31 class ObjectInspector;
32 class ParameterFileModel;
33 class QMutex;
34 
36 class WorkflowComments : public QTextEdit {
37  Q_OBJECT
38 
39  public:
43  WorkflowComments(QWidget* parent = 0);
44 
46 
47  public slots:
49  void save();
50 
53  void load();
54 
57  void update( ParameterFileModel* model );
58 
59 
60  private:
63 
68  QMutex* _textChangeLock;
69 };
70 
71 #endif
ParameterFileModel * _model
The currently active model.
void update(ParameterFileModel *model)
change the active model and call load()
A widget to display comments for the current workflow.
Object inspector widget.
void load()
load the comment from the model and display it in the text field
This model serves to provide a model frontend to access a ParameterFile instance. ...
WorkflowComments(QWidget *parent=0)
Default Constructor.
QMutex * _textChangeLock
Stop load() from doing anything while save() is executing.
void save()
save the comment to the model