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_Kernel/FITKAppFramework/FITKCopyrightDialog.h

115 lines
2.6 KiB
C

/**
*
* @file FITKCopyrightDialog.h
* @brief
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*
*/
#ifndef __FITKCOPYRIGHT_H___
#define __FITKCOPYRIGHT_H___
#include <QDialog>
#include <QString>
namespace Ui
{
class DlgCopyright;
}
class QTextBrowser;
/**
* @brief
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
class FITKCopyrigntInfoDlg : public QDialog
{
public:
/**
* @brief Construct a new FITKCopyrigntInfoDlg object
* @param[i] parent
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
FITKCopyrigntInfoDlg(QWidget* parent = nullptr);
/**
* @brief Destroy the FITKCopyrigntInfoDlg object
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
virtual ~FITKCopyrigntInfoDlg() = default;
/**
* @brief
* @param[i] text
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
void setText(const QString & text);
private:
/**
* @brief
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
QTextBrowser* _text{};
};
class FITKCopyRightDialog : public QDialog
{
Q_OBJECT
public:
/**
* @brief Construct a new FITKCopyRightDialog object
* @param[i] parent
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
explicit FITKCopyRightDialog(QWidget* parent = nullptr);
/**
* @brief Destroy the FITKCopyRightDialog object
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
virtual ~FITKCopyRightDialog();
private slots:
/**
* @brief
* @param[i] r
* @param[i] w
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
void onTableItemClickedSlot(int r, int w);
private:
/**
* @brief row
* @param[i] row
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
void browseLicense(int row);
/**
* @brief
* @param[i] row
* @param[i] col
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
void openUrl(int row, int col);
private:
/**
* @brief UI
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-05-16
*/
Ui::DlgCopyright* _ui{};
};
#endif