mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00

* rxr src files and classes (detectordata, ZmqSocket) added to sls namespace * moving defines inside namespace * moving defines inside namespace, added helpdacs to namespace * added namespace to gui * gui also updated * removed unnecessary sls:: when already in sls namespace for slsDetectoSoftware, receverSoftware, slsDetectorGui and slsSupportlib
41 lines
791 B
C++
41 lines
791 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;
|
|
|
|
namespace sls {
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace sls
|