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
45
~
WorkflowComments
();
46
47
public
slots:
49
void
save
();
50
53
void
load
();
54
57
void
update
(
ParameterFileModel
* model );
58
59
60
private
:
62
ParameterFileModel
*
_model
;
63
68
QMutex*
_textChangeLock
;
69
};
70
71
#endif
WorkflowComments::_model
ParameterFileModel * _model
The currently active model.
Definition:
WorkflowComments.h:62
WorkflowComments::update
void update(ParameterFileModel *model)
change the active model and call load()
Definition:
WorkflowComments.cpp:81
WorkflowComments
A widget to display comments for the current workflow.
Definition:
WorkflowComments.h:36
ObjectInspector
Object inspector widget.
Definition:
ObjectInspector.h:48
WorkflowComments::load
void load()
load the comment from the model and display it in the text field
Definition:
WorkflowComments.cpp:63
ParameterFileModel
This model serves to provide a model frontend to access a ParameterFile instance. ...
Definition:
ParameterFileModel.h:37
WorkflowComments::WorkflowComments
WorkflowComments(QWidget *parent=0)
Default Constructor.
Definition:
WorkflowComments.cpp:37
WorkflowComments::_textChangeLock
QMutex * _textChangeLock
Stop load() from doing anything while save() is executing.
Definition:
WorkflowComments.h:68
WorkflowComments::save
void save()
save the comment to the model
Definition:
WorkflowComments.cpp:51
src
WorkflowComments.h
Generated on Wed Aug 6 2014 12:31:05 for tuchulcha by
1.8.6