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.
nmWATI/Include/iPlot/iPlotCurveT/ZxSubNaviBar.h

68 lines
1.2 KiB
C++

#pragma once
#include <QPen>
#include <QColor>
#include "ZxDrawHelper.h"
#include "iPlotCurveT_global.h"
#include "ZxRenderItem.h"
class IxPtyItem;
// 导航,暂未启用
class I_PLOTCURVE_T_EXPORT ZxSubNaviBar : public ZxRenderItem
{
Q_OBJECT
ZX_DECLARE_DYNAMIC
public:
ZxSubNaviBar();
ZxSubNaviBar(const QString& name);
public:
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);
virtual void onLeftClick(const QPointF& pt);
// 名称
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;
};