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.
66 lines
1.2 KiB
C++
66 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <QPen>
|
|
#include <QColor>
|
|
|
|
#include "iPlotCurveT_global.h"
|
|
#include "ZxDrawHelper.h"
|
|
#include "ZxRenderItem.h"
|
|
|
|
class IxPtyItem;
|
|
|
|
// 图标题
|
|
class I_PLOTCURVE_T_EXPORT ZxSubTitle : public ZxRenderItem
|
|
{
|
|
Q_OBJECT
|
|
ZX_DECLARE_DYNAMIC
|
|
|
|
public:
|
|
|
|
ZxSubTitle();
|
|
ZxSubTitle(const QString& name);
|
|
|
|
virtual void paintBack(QPainter* painter, const ZxPaintParam& param);
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
virtual void onLoadTempl(ZxSerializer* ser);
|
|
virtual void onSaveTempl(ZxSerializer* ser);
|
|
|
|
virtual void fillPtyPano(IxPtyPano* sheet);
|
|
|
|
public:
|
|
|
|
// 名称
|
|
QString getName(void) const;
|
|
void setName(QString name);
|
|
|
|
// 颜色
|
|
QColor getColor(void) const;
|
|
void setColor(QColor clr);
|
|
|
|
// 字体
|
|
QFont getFont(void) const;
|
|
void setFont(QFont font);
|
|
|
|
// 字体位置
|
|
void setFlags(int flags);
|
|
int getFlags(void);
|
|
|
|
// 下划线
|
|
bool isShowUnderline(void);
|
|
void showUnderline(bool bVisible);
|
|
|
|
protected:
|
|
|
|
QString m_sName;
|
|
QColor m_oClr;
|
|
QFont m_oFont;
|
|
int m_nFlags;
|
|
bool m_bShowUnderline;
|
|
};
|
|
|
|
|
|
|
|
|