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.
nmWTAI-Platform/Include/nmNum/nmSubWxs/nmSwitchOutlineConfirmation...

32 lines
1.0 KiB
C++

#ifndef NMSWITCHOUTLINECONFIRMATIONDLG_H
#define NMSWITCHOUTLINECONFIRMATIONDLG_H
#include "iDlgBase.h"
#include "nmSubWxs_global.h"
#include <QString>
/** @brief 展示当前和目标边界类型,绘制流程仍由绘图层负责。 */
class NM_SUB_WXS_EXPORT nmSwitchOutlineConfirmationDlg : public iDlgBase
{
Q_OBJECT
public:
/** @brief 创建更换或重新绘制边界的确认窗口,仅保存展示所需信息。 */
explicit nmSwitchOutlineConfirmationDlg(
const QString& sCurrentType,
const QString& sTargetType,
QWidget* pParent = nullptr);
private:
Q_DISABLE_COPY(nmSwitchOutlineConfirmationDlg)
/** @brief 创建图标、可换行的纯文本确认信息及统一底栏,尺寸随内容与主题调整。 */
void createUi(const QString& sCurrentType,
const QString& sTargetType);
/** @brief 创建确认和取消按钮,默认焦点停留在取消,操作结果由 accept/reject 返回。 */
QWidget* createFooter();
};
#endif // NMSWITCHOUTLINECONFIRMATIONDLG_H