64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
/**
|
|
* @file PaiPromptLineEdit.h
|
|
* @brief 带提示信息的LineEdit的输入框控件
|
|
* @date 2013-10-12
|
|
*/
|
|
#ifndef PAI_FRAME_WIDGET_PAIPROMPTLINEEDIT_H
|
|
#define PAI_FRAME_WIDGET_PAIPROMPTLINEEDIT_H
|
|
|
|
#include "PaiLineEdit.h"
|
|
|
|
namespace pai
|
|
{
|
|
namespace gui
|
|
{
|
|
class PaiLabel;
|
|
}
|
|
}
|
|
#include "Turtle.h"
|
|
|
|
namespace pai
|
|
{
|
|
namespace gui
|
|
{
|
|
|
|
/**
|
|
* @class PaiPromptLineEdit
|
|
* @brief PaiPromptLineEdit 只是针对项目管理一些带有提示的输入框(横向显示提示信息的风格)。
|
|
*/
|
|
class PAI_WIDGET_EXPORT PaiPromptLineEdit : public PaiLineEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
/**
|
|
* @brief 构造函数
|
|
* @param[in] pParent 父窗口句柄
|
|
*/
|
|
PaiPromptLineEdit(QWidget *pParent = NULL);
|
|
/**
|
|
* @brief 析构函数
|
|
*/
|
|
virtual ~PaiPromptLineEdit();
|
|
|
|
/**
|
|
* @brief 设置label的信息
|
|
* @param[in] pLabel 接收到的指针
|
|
*/
|
|
void SetPromptLabel(PaiLabel *pLabel);
|
|
|
|
/**
|
|
* @brief 显示提示信息
|
|
* @param[in] message 输入需显示的信息
|
|
* @param[in] type 输入需显示的错误表示
|
|
*/
|
|
virtual void ShowPromptMessge(const QString & message, PromptType type = PT_Information);
|
|
|
|
private:
|
|
pai::gui::PaiLabel *m_pMessageLabel; ///< 信息标签
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif ///< PAI_FRAME_WIDGET_PAIPROMPTLINEEDIT_H
|