-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWorkflowAppWidget.cpp
67 lines (44 loc) · 1.17 KB
/
WorkflowAppWidget.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include "WorkflowAppWidget.h"
#include "Utils/ProgramOutputDialog.h"
#include <QWidget>
#include <QDebug>
ProgramOutputDialog *WorkflowAppWidget::progressDialog = nullptr;
WorkflowAppWidget::WorkflowAppWidget(QWidget *parent)
:QWidget(parent)
{
this->setContentsMargins(0,0,0,0);
progressDialog = ProgramOutputDialog::getInstance(this);
}
WorkflowAppWidget::~WorkflowAppWidget()
{
}
void WorkflowAppWidget::setMainWindow(MainWindowWorkflowApp* window)
{
theMainWindow = window;
}
MainWindowWorkflowApp *WorkflowAppWidget::getTheMainWindow() const
{
return theMainWindow;
}
void WorkflowAppWidget::statusMessage(const QString msg)
{
qDebug() << "WorkflowAppWidget::statusMessage" << msg;
emit sendStatusMessage(msg);
}
void WorkflowAppWidget::errorMessage(const QString msg)
{
qDebug() << "WorkflowAppWidget::errorMessage" << msg;
emit sendErrorMessage(msg);
}
void WorkflowAppWidget::fatalMessage(const QString msg)
{
emit sendFatalMessage(msg);
}
void WorkflowAppWidget::showOutputDialog(void)
{
progressDialog->setVisibility(true);
}
ProgramOutputDialog *WorkflowAppWidget::getProgressDialog()
{
return progressDialog;
}