72 lines
1.3 KiB
C++
72 lines
1.3 KiB
C++
/**
|
|
* @file PaiJobSummaryWidget.h
|
|
* @brief SummaryItem代理Widget
|
|
* @date 2013-04-17
|
|
*/
|
|
#ifndef PAI_FRAME_WORKFLOWWIDGET_PAIJOBSUMMARYWIDGET_H
|
|
#define PAI_FRAME_WORKFLOWWIDGET_PAIJOBSUMMARYWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QPushButton;
|
|
class QLabel;
|
|
class QGraphicsItem;
|
|
|
|
namespace pai
|
|
{
|
|
namespace objectmodel
|
|
{
|
|
class PaiJob;
|
|
}
|
|
}
|
|
|
|
namespace pai
|
|
{
|
|
namespace gui
|
|
{
|
|
/**
|
|
* @class PaiJobSummaryWidget
|
|
* @brief SummaryItem代理Widget
|
|
*/
|
|
class PaiJobSummaryWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
/**
|
|
* @brief 构造函数
|
|
* @param[in] pJob 作业
|
|
* @param[in] pParent 父亲
|
|
*/
|
|
PaiJobSummaryWidget(pai::objectmodel::PaiJob *pJob,QWidget *pParent = NULL);
|
|
|
|
/**
|
|
* @brief 析构函数
|
|
*/
|
|
virtual ~PaiJobSummaryWidget();
|
|
|
|
protected:
|
|
/**
|
|
* @brief 绘制函数
|
|
* @param[in] pEvent 绘制事件
|
|
*/
|
|
virtual void paintEvent(QPaintEvent *pEvent);
|
|
|
|
private slots:
|
|
/**
|
|
* @brief 重置按钮图标
|
|
*/
|
|
void ResetButtonIcon();
|
|
|
|
private:
|
|
QPushButton *m_pMoreButton; ///< 按钮
|
|
QLabel *m_pSummaryName; ///< 名称显示控件
|
|
QWidget *m_pExtension; ///< 展开显示控件
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#endif ///< PAI_FRAME_WORKFLOWWIDGET_PAIJOBSUMMARYWIDGET_H
|