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/FITKAbstractMainWinGenerator.h

104 lines
2.8 KiB
C

/**
*
* @file FITKAbstractMainWinGenerator.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-22
*
*/
#ifndef __FITKABSMAINWINDOWGENERATOR_H__
#define __FITKABSMAINWINDOWGENERATOR_H__
#include "FITKAppFrameworkAPI.h"
#include <QString>
#include <QObject>
class QWidget;
namespace AppFrame
{
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-22
*/
class FITKAppFrameworkAPI FITKAbstractMainwindowGenerator : public QObject
{
public:
/**
* @brief Construct a new FITKAbstractMainwindowGenerator object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-22
*/
FITKAbstractMainwindowGenerator() = default;
/**
* @brief Destroy the FITKAbstractMainwindowGenerator object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-22
*/
virtual ~FITKAbstractMainwindowGenerator() = default;
/**
* @brief qss
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-04-05
*/
virtual bool loadQssStyle();
/**
* @brief
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-06-15
*/
virtual bool loadTranslatorQmFiles();
/**
* @brief
* @return QWidget*
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-02-22
*/
virtual QWidget* genMainWindow() = 0;
/**
* @brief
* @param[i] max
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-04-03
*/
void showMaximize(bool max);
/**
* @brief
* @return true
* @return false
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-04-03
*/
bool showMaximize();
private:
/**
* @brief qss loadQssStyle
* @return QString
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-06-15
*/
virtual QString getQssStyle();
/**
* @brief loadTranslatorQmFiles
* @return QStringList
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-06-15
*/
virtual QStringList getTranslatorQmFiles();
private:
/**
* @brief
* @author libaojun (libaojunqd@Foxmail.com)
* @date 2024-04-03
*/
bool _showMaximize{ true };
};
}
#endif // __FITKABSMAINWINDOWGENERATOR_H__