mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
37 lines
754 B
C++
37 lines
754 B
C++
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#pragma once
|
|
#include "ui_form_tab_messages.h"
|
|
|
|
class QProcess;
|
|
class QKeyEvent;
|
|
|
|
class qTabMessages : public QWidget, private Ui::TabMessagesObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
qTabMessages(QWidget *parent);
|
|
~qTabMessages();
|
|
void Refresh();
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent *event);
|
|
|
|
private slots:
|
|
void ExecuteCommand();
|
|
void SaveLog();
|
|
void ClearLog();
|
|
|
|
private:
|
|
void SetupWidgetWindow();
|
|
void Initialization();
|
|
void PrintNextLine();
|
|
void GetLastCommand();
|
|
void ClearCommand();
|
|
void AppendOutput();
|
|
void AppendError();
|
|
|
|
QProcess *process;
|
|
QStringList lastCommand;
|
|
};
|