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.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "iDlgBase.h"
|
|
|
|
|
|
#include "mGuiJob_global.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
|
class iWxModelTipAssist;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 该类设置Tip助手,主代码框架源自AI
|
|
|
|
|
|
class M_GUI_JOB_EXPORT iWxModelTipAssist : public iDlgBase
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
explicit iWxModelTipAssist(QWidget *parent = 0);
|
|
|
|
|
|
~iWxModelTipAssist();
|
|
|
|
|
|
|
|
|
|
|
|
/// @brief 设置模型说明内容
|
|
|
|
|
|
/// @param sModel 井型/储层名称
|
|
|
|
|
|
/// @param sDesc 描述
|
|
|
|
|
|
/// @param sImg 示意图路径
|
|
|
|
|
|
/// @param bRichText 是否富文本
|
|
|
|
|
|
void setAssistTips(QString sModel, QString sDesc, QString sImg, \
|
|
|
|
|
|
bool bRichText = false);
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _SCAN_OLD_CODES_
|
|
|
|
|
|
|
|
|
|
|
|
QString findImageFile(const QString &basePath);
|
|
|
|
|
|
|
|
|
|
|
|
// 在指定位置附近显示
|
|
|
|
|
|
void showAt(const QPoint &globalPos);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
|
|
|
|
// 透明度切换
|
|
|
|
|
|
void slotOpacityChanged(int value);
|
|
|
|
|
|
|
|
|
|
|
|
// 关闭
|
|
|
|
|
|
//void onCloseClicked();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
bool loadImg(QPixmap& pixmap, QString sImg);
|
|
|
|
|
|
void adjustWindowSize();
|
|
|
|
|
|
|
|
|
|
|
|
void applyOpacity();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
Ui::iWxModelTipAssist *ui;
|
|
|
|
|
|
|
|
|
|
|
|
int m_nCurOpacity;
|
|
|
|
|
|
bool m_bImgOK;
|
|
|
|
|
|
};
|