MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    undoStack = new QUndoStack(this);

    createActions();
    createMenus();
    createToolBars();
    createStatusBar();
    createCentralWidget();
    createDockWindows();
#ifndef QT_NO_DEBUG
    createUndoView();
#endif

    connect(pipelineWidget, SIGNAL(sourceCodeChanged(QString)),
            codeWidget, SLOT(setPlainText(QString)));

    connect(pipelineWidget, SIGNAL(outputPixmapChanged(QPixmap)),
            imageWidget, SLOT(updatePixmap(QPixmap)));

    setWindowTitle("Prototyping Toolkit for Image Processing");

    loadImageFile(":/Images/lena.jpg");

    resize(QGuiApplication::primaryScreen()->availableSize() * 3 / 5);
}
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , showMessageTimout(3000)
{
    createActions();
    createMenus();
    createToolBars();
    createStatusBar();
    createCentralWidget();
    createDockWindows();

    connect(pipelineWidget, SIGNAL(sourceCodeChanged(QString)),
            codeWidget, SLOT(setPlainText(QString)));

    connect(pipelineWidget, SIGNAL(outputPixmapChanged(QPixmap)),
            imageWidget, SLOT(updatePixmap(QPixmap)));

    setWindowTitle("Prototyping Toolkit for Image Processing");

    loadImageFile(":/Images/lena.jpg");

    resize(QGuiApplication::primaryScreen()->availableSize() * 3 / 5);
}