You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Component/FITKCompMessageWidget/FITKConsoleComponent.h

87 lines
2.3 KiB
C

/**
*
* @file FITKConsoleComponent.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-05
*
*/
#ifndef _FITKConsoleComponent_H_
#define _FITKConsoleComponent_H_
#include <QObject>
#include "FITKCompMessageWidgetAPI.h"
#include "FITK_Kernel/FITKAppFramework/FITKComponentInterface.h"
namespace Comp
{
class FITKConsole;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-05
*/
class CompMesWidgetAPI ConsoleComponent :public QObject,
public AppFrame::FITKComponentInterface
{
Q_OBJECT
public:
/**
* @brief Construct a new Console Component object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-05
*/
ConsoleComponent(QWidget* parent = nullptr);
/**
* @brief Destroy the Console Component object
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-05
*/
~ConsoleComponent();
/**
* @brief qtqdebug
* @param[i] takeover
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-03-26
*/
void takeoverQtMessage(bool takeover = true);
/**
* @brief
* @param[i] indexPort
* @return QWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-05
*/
QWidget* getWidget(const int indexPort = 0) override;
/**
* @brief
* @return QString
* @author BaGuijun (baguijun@163.com)
* @date 2024-03-05
*/
QString getComponentName() override;
private:
/**
* @brief -
* @author ChengHaotian (yeguangbaozi@foxmail.com)
* @date 2024-08-27
*/
QHash<int, FITKConsole*> m_widgetHash;
/**
* @brief
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-03-26
*/
QWidget* _parent{};
/**
* @brief qtqdebug
* @author libaojun (libaojunqd@foxmail.com)
* @date 2024-03-26
*/
bool _takeoverQt = false;
};
}
#endif