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

32 lines
1.0 KiB
C++

#ifndef NMDELETECONFIRMATIONDLG_H
#define NMDELETECONFIRMATIONDLG_H
#include "iDlgBase.h"
#include "nmSubWxs_global.h"
#include <QString>
/** @brief 展示待删除图元的名称和类型,仅返回用户确认结果。 */
class NM_SUB_WXS_EXPORT nmDeleteConfirmationDlg : public iDlgBase
{
Q_OBJECT
public:
/** @brief 按传入的名称和类型创建删除确认窗口,父窗口为所属画布。 */
explicit nmDeleteConfirmationDlg(
const QString& sObjectName,
const QString& sObjectType,
QWidget* pParent = nullptr);
private:
Q_DISABLE_COPY(nmDeleteConfirmationDlg)
/** @brief 创建图标、可换行的纯文本确认信息及统一底栏,尺寸随内容与主题调整。 */
void createUi(const QString& sObjectName,
const QString& sObjectType);
/** @brief 创建确认和取消按钮,默认焦点停留在取消,操作结果由 accept/reject 返回。 */
QWidget* createFooter();
};
#endif // NMDELETECONFIRMATIONDLG_H